.vsosh-root {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Блокировка внешних битых картинок и эмодзи */
.vsosh-root img.wp-smiley {
    display: none !important;
}
.vsosh-root a::before,
.vsosh-root a::after {
    content: none !important;
    background: none !important;
}
.vsosh-svg-icon {
    display: inline-block;
    vertical-align: -2px;
    flex-shrink: 0;
    margin-right: 5px;
}

/* Шапка */
.vsosh-header {
    padding: 15px 0 25px;
}
.vsosh-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.vsosh-badge-num {
    background: #162e6e;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 12px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vsosh-badge-logo-img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.vsosh-title-text h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: #0f172a;
    line-height: 1.2;
}
.vsosh-title-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Вкладки */
.vsosh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 25px;
}
.vsosh-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.vsosh-tab-btn:hover {
    background: #f1f5f9;
}
.vsosh-tab-btn.active {
    background: #162e6e;
    color: #ffffff;
}

/* Баннер */
.vsosh-hero {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 15px;
    margin-bottom: 35px;
    align-items: stretch;
}
.vsosh-banner-main {
    background: linear-gradient(105deg, #dbeafe 0%, #e0f2fe 55%, #eff6ff 100%);
    border-radius: 16px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #bfdbfe;
    position: relative;
    overflow: hidden;
}
.vsosh-banner-main.has-custom-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.80) 60%, rgba(255, 255, 255, 0.45) 100%);
    z-index: 1;
}
.vsosh-banner-content {
    z-index: 2;
    position: relative;
}
.vsosh-banner-main h2 {
    font-size: 28px;
    font-weight: 900;
    color: #0369a1;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}
.vsosh-banner-main .subtitle {
    font-size: 17px;
    font-weight: 700;
    color: #0284c7;
    margin: 0 0 10px;
}
.vsosh-banner-main .school-tag {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.88);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.vsosh-banner-side {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}
.vsosh-side-brand {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 4px;
}
.vsosh-side-brand span {
    color: #0284c7;
}
.vsosh-side-text {
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

/* Новости */
.vsosh-section-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
}
.vsosh-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.vsosh-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vsosh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
}
.vsosh-card-poster {
    height: 260px;
    background: #f8fafc;
    overflow: hidden;
}
.vsosh-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vsosh-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.vsosh-card-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.vsosh-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
}
.vsosh-card-title a {
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}
.vsosh-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* Таблицы */
.vsosh-table-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}
.vsosh-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.vsosh-table th,
.vsosh-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}
.vsosh-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}
.vsosh-table tbody tr:hover {
    background-color: #f8fafc;
}
.vsosh-btn-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vsosh-btn-link:hover {
    text-decoration: underline;
    color: #0369a1;
}
.vsosh-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-weight: 800;
    font-size: 14px;
}
.vsosh-wait-icon {
    color: #94a3b8;
    font-weight: bold;
}

/* КАЛЕНДАРЬ ТУРОВ */
.vsosh-calendar-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 30px;
}
.vsosh-cal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}
.vsosh-cal-month-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}
.vsosh-cal-nav-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
}
.vsosh-cal-nav-btn:hover {
    background: #162e6e;
    color: #ffffff;
    border-color: #162e6e;
}

.vsosh-cal-grid-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.vsosh-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.vsosh-cal-weekday {
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.vsosh-cal-weekday.weekend {
    color: #ef4444;
}

.vsosh-cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(75px, auto);
}
.vsosh-cal-cell {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 5px;
    position: relative;
    background: #ffffff;
    transition: all 0.15s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.vsosh-cal-cell:nth-child(7n) {
    border-right: none;
}
.vsosh-cal-cell.empty {
    background: #fafafa;
    cursor: default;
}

/* Сегодняшний день */
.vsosh-cal-cell.today .vsosh-cal-day-num {
    background: #0284c7;
    color: #fff;
}

/* Выбранный день (выделение контура) */
.vsosh-cal-cell.selected {
    outline: 3px solid #eab308 !important;
    z-index: 5;
    border-radius: 6px;
}

/* ПОДСВЕТКА ДНЕЙ КАЛЕНДАРЯ ЦВЕТОМ ТУРА */
.vsosh-cal-cell.cell-stage-shk {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
.vsosh-cal-cell.cell-stage-mun {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
}
.vsosh-cal-cell.cell-stage-reg {
    background: #faf5ff !important;
    border-color: #e9d5ff !important;
}
.vsosh-cal-cell.cell-stage-zak {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

.vsosh-cal-cell:hover:not(.empty) {
    filter: brightness(0.96);
}

.vsosh-cal-day-num {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 2px;
}

/* КУБКИ В КАЛЕНДАРЕ */
.vsosh-cal-cups-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: auto;
    padding-top: 3px;
}
.vsosh-cal-cup-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s;
}
.vsosh-cal-cup-badge:hover {
    transform: scale(1.2);
}

/* Цвета для этапов олимпиады */
.stage-shk {
    background: #dcfce7;
    border: 1px solid #10b981;
    color: #15803d;
}
.stage-mun {
    background: #e0f2fe;
    border: 1px solid #0284c7;
    color: #0284c7;
}
.stage-reg {
    background: #f3e8ff;
    border: 1px solid #8b5cf6;
    color: #7e22ce;
}
.stage-zak {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
}

/* Легенда под календарем */
.vsosh-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
}
.vsosh-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Сайдбар туров на 4 дня */
.vsosh-upcoming-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.vsosh-upcoming-header {
    background: #162e6e;
    color: #ffffff;
    padding: 14px 18px;
}
.vsosh-upcoming-header h4 {
    margin: 0 0 3px 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vsosh-upcoming-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
}
.vsosh-upcoming-body {
    padding: 15px;
    max-height: 520px;
    overflow-y: auto;
}
.vsosh-day-bucket {
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
.vsosh-day-bucket:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.vsosh-day-bucket-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vsosh-day-bucket-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}
.vsosh-day-bucket-tag.is-active-day {
    background: #fef08a;
    color: #854d0e;
}

/* Карточка тура в сайдбаре */
.vsosh-tour-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
}
.vsosh-tour-card.stage-shk {
    border-left-color: #10b981;
}
.vsosh-tour-card.stage-mun {
    border-left-color: #0284c7;
}
.vsosh-tour-card.stage-reg {
    border-left-color: #8b5cf6;
}
.vsosh-tour-card.stage-zak {
    border-left-color: #ef4444;
}

.vsosh-tour-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}
.vsosh-tour-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vsosh-stage-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.vsosh-tour-card-classes {
    font-size: 12px;
    color: #475569;
    margin-bottom: 4px;
}
.vsosh-tour-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    background: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Карта предметов и документы */
.vsosh-subjects-interactive-wrap {
    position: relative;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}
.vsosh-subjects-base-img {
    width: 100%;
    height: auto;
    display: block;
}
.vsosh-subjects-overlay-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
    box-sizing: border-box;
}
.vsosh-subj-hotspot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 8px;
}
.vsosh-subj-hotspot:hover {
    background: rgba(2, 132, 199, 0.16);
    border-color: #0284c7;
}
.vsosh-hotspot-hint {
    display: none;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    white-space: nowrap;
}
.vsosh-subj-hotspot:hover .vsosh-hotspot-hint {
    display: inline-block;
}

.vsosh-directions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.vsosh-dir-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    border-top: 4px solid #0284c7;
}
.vsosh-dir-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vsosh-dir-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vsosh-dir-tag {
    display: inline-block;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
}
.vsosh-dir-tag:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.vsosh-doc-block {
    margin-bottom: 30px;
}
.vsosh-doc-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.vsosh-doc-block-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vsosh-doc-count-badge {
    font-size: 12px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 6px;
}

.vsosh-tab-pane {
    display: none;
}
.vsosh-tab-pane.active {
    display: block;
}

@media (max-width: 960px) {
    .vsosh-calendar-layout {
        grid-template-columns: 1fr;
    }
    .vsosh-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vsosh-hero {
        grid-template-columns: 1fr;
    }
    .vsosh-banner-side {
        display: none;
    }
}
@media (max-width: 580px) {
    .vsosh-news-grid {
        grid-template-columns: 1fr;
    }
    .vsosh-cal-days-grid {
        grid-auto-rows: minmax(55px, auto);
    }
}