/* 2026-10-28 18:08 UTC+3 — лого и название в хедере: без курсора-указателя и выделения текста */
/* 2026-10-28 17:01 UTC+3 — h1 на главной: font-weight 500 */
/* 2026-10-28 16:57 UTC+3 — h1 на главной (лендинг-хедер) чёрного цвета */
/* 2026-10-28 16:34 UTC+3 — мобильная главная: партнёры, контакты и футер по центру */
/* 2026-10-28 16:24 UTC+3 — баннер главной ограничен высотой области между хедером и футером */
/* 2026-10-27 22:09 UTC+3 — футер: VK/Telegram иконки; на мобильных футер в потоке страницы */
/* 2026-10-25 03:54 UTC+3 — карточки документов: кнопка просмотра (глаз) над скачиванием */
/* 2026-10-25 03:54 UTC+3 — партнёры и контакты на 3-й странице оформлены плашками (2 в ряд, на узких 1) */
/* 2026-10-25 03:54 UTC+3 — шеврон-подсказка прокрутки на первом экране главной (крупнее, bottom:0, пульсация) */
/* 2026-10-25 03:54 UTC+3 — тень плашек на главной, полупрозрачный фон хедера (0.5) */
/* 2026-10-25 03:54 UTC+3 — карточки документов: мобильные как десктоп в одну колонку, единый вид (doc-card/about-section) */
/* 2026-10-25 03:54 UTC+3 — мобильная шапка: лого 60px, чтобы заголовок помещался в 2 строки */
/* 2026-10-25 03:54 UTC+3 — календарь: обёртка .cal-table-wrap (горизонтальный скролл на мобильных) */
/* 2026-10-25 03:54 UTC+3 — узкие экраны: секционный скролл отключён, плашки 2 в ряд под баннером */
/* 2026-10-25 03:54 UTC+3 — стили лого партнёра (landing-partner--logo) */
/* 2026-10-25 03:54 UTC+3 — лого на главной 165px, крупнее h1, убран letter-spacing у заголовков */
/* 2026-10-25 03:54 UTC+3 — цвет иконок плашек #1035AD */
/* 2026-10-25 03:54 UTC+3 — плашки лендинга строго 200px высотой (одинаковый размер) */
/* 2026-10-25 03:54 UTC+3 — иконки плашек увеличены до 100×100 (как в исходнике) */
/* 2026-10-25 02:26 UTC+3 — лендинг: постраничный проскролл (JS-пагинация + snap proximity), скрытый скроллбар, плашки 6 (2x3), 3-я секция с партнёрами/контактами */
/* 2026-06-13 17:00 MSK — info-panel */
/* 2026-06-11 21:09 UTC+3 — col-balls 58px для двух колонок (чистые/с бонусом) */
/* 2026-06-08 16:21 UTC+3 — place-1/2/3 background opacity 0.5 (было 0.15/0.12) */
/* 2026-06-29 — layout с сайдбаром */
/* 2026-06-29 22:20 UTC+3 — app-layout центрирован; карточки чемпионов горизонтальные, 2 в ряд */
/* 2026-06-29 23:45 UTC+3 — закрывающая } для @media (max-width:640px) */
/* 2026-06-29 23:55 UTC+3 — сайдбар светлый 350px как на старом сайте */
/* 2026-06-30 17:00 UTC+3 — сайдбар в стиле старого сайта: верт. линия + маркер-точка у активного пункта */
/* 2026-06-30 — index-nav карточки */
/* 2026-06-30 16:00 UTC+3 — .page-content (ru/en) вместо .history-content, rem, typohelper */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: url('world.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #222;
    font-size: 16px;
    overflow-y: scroll;
}

.app-layout {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 35px 30px;
    border-radius: 0 6px 6px 0;
}

/* ---------- sidebar ---------- */
.sidebar {
    width: 350px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 47px 20px 0 40px;
}

.sidebar__logo {
    margin-bottom: 64px;
}

.sidebar__logo-img {
    width: 165px;
    height: auto;
    display: block;
}

.sidebar__head {
    margin-bottom: 25px;
}

/* section header: icon + title */
.sidebar__section-title {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    color: #000;
}

.sidebar__icon {
    margin-right: 20px;
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.sidebar__icon-svg {
    display: block;
    width: 40px;
    height: 40px;
    fill: #082894;
}

.sidebar__section-title-text {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.08;
}

/* vertical bar + nav items */
.sidebar__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
    padding-left: 22px;
    border-left: 1px solid #082894;
}

.sidebar__link {
    position: relative;
    display: block;
    padding: 0;
    color: #000;
    text-decoration: none;
    line-height: 1.28571;
    transition: color 0.2s;
}

.sidebar__link:not(:last-child) {
    margin-bottom: 27px;
}

.sidebar__link:hover {
    color: #607CD6;
    text-decoration: none;
    background: none;
}

.sidebar__link.active {
    color: #082894;
}

.sidebar-year-tab {
    font-size: 0.85rem;
    padding-left: 0.5rem;
}
.sidebar-year-tab:not(:last-child) {
    margin-bottom: 10px;
}

/* dot marker on the vertical bar */
.sidebar__link::before {
    content: '';
    position: absolute;
    top: calc(50% - 3.5px);
    left: -28px;
    width: 7px;
    height: 7px;
    background: #082894;
    border: 2px solid #fff;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.1);
    transition: opacity 0.2s, transform 0.2s;
}

.sidebar__link.active::before {
    opacity: 1;
    transform: scale(1);
}

.sidebar__foot {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
}

.sidebar__lang {
    margin-bottom: 12px;
}

.sidebar__lang-btn {
    display: inline-block;
    padding: 5px 20px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar__lang-btn:hover {
    background: #1a5a99;
    color: #fff;
    border-color: #1a5a99;
    text-decoration: none;
}

.sidebar__copy {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

.sidebar__copy-text {
    font-size: 10px;
}

/* 2026-07-02 18:28 UTC+3 — fixed hamburger + org outside sidebar */
/* ---------- hamburger ---------- */
.hamburger {
    display: none;
}
.hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    transition: left 0.3s;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #082894;
    position: relative;
}
.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #082894;
}
.hamburger span::before { top: -7px; }
.hamburger span::after  { top: 7px; }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -360px;
        z-index: 1000;
        height: 100vh;
        width: 320px;
        overflow-y: auto;
        transition: left 0.3s;
        border-right: 1px solid #eee;
        background: #fff;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay.visible {
        display: block;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body {
        background: #f5f5f5;
    }

    .app-layout {
        flex-direction: column;
    }

    .main-content {
        border-radius: 0;
        padding: 10px 25px;
    }
}
/* ---------- mobile logo (inline in content) ---------- */
.mobile-logo {
    display: none;
}
@media (max-width: 1024px) {
    .mobile-logo {
        display: flex;
        flex-direction: column;
        padding: 10px 0 0 55px;
    }
    .mobile-logo__title {
        font-size: 18px;
        font-weight: 700;
        color: #082894;
        letter-spacing: 1px;
        line-height: 1.1;
    }
    .mobile-logo__sub {
        font-size: 7px;
        font-weight: 600;
        color: #555;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }
}

/* 2026-07-02 18:28 UTC+3 — .heading class for H1 & H2 */
h1.heading {
    font-size: 1.75rem;
    font-weight: 700;
}
h2.heading {
    font-size: 1.25rem;
    font-weight: 700;
}
.heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1a5a99;
    margin: 2rem 0 1.125rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    line-height: 1.3;
}

h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

a {
    color: #1a5a99;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------- index navigation ---------- */
.index-nav {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.index-card {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
    background: #fff;
}

/* 2026-10-25 03:54 UTC+3 — инверсия цвета плашки и иконки при наведении (как на hsif.world) */
.index-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    background: #082894;
    border-color: #082894;
    color: #fff;
}

.index-card__icon {
    font-size: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.index-card__icon-svg {
    display: block;
    width: 100px;
    height: 100px;
    fill: #1035AD;
    transition: fill 0.2s;
}

.index-card:hover .index-card__icon-svg {
    fill: #fff;
}

.index-card:hover .index-card__title {
    color: #fff;
}

.index-card:hover .index-card__desc {
    color: rgba(255,255,255,0.85);
}

.index-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a5a99;
    transition: color 0.2s;
}

.index-card__desc {
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* ---------- profile row (event page etc.) ---------- */
.profile-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}
.profile-left {
    flex: 1;
}
.profile-right {
    flex: 1;
}

/* ---------- profile grid ---------- */
.profile-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}
.pg-item {
    flex: 1 1 calc(50% - 15px);
}
.pg-info { order: 1; }
.pg-photo { order: 3; text-align: center; }
.pg-stats { order: 2; text-align: right; }
.pg-awards { order: 4; }

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    .main-content {
        border-radius: 0;
        padding: 10px 25px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 0;
    }
    .main-content {
        border-radius: 0;
        padding: 10px 12px;
    }
    .rating-table .col-country {
        width: 38%;
    }
    .profile-grid {
        gap: 16px;
    }
    .profile-row {
        flex-direction: column;
        gap: 16px;
    }
    .profile-right {
        text-align: left;
    }
    .award-item {
        white-space: normal;
    }
    .pg-item {
        flex: 0 0 100%;
    }
    .pg-photo {
        flex: 0 0 calc(50% - 8px);
        order: 2;
    }
    .pg-photo .photo-frame > img:not(.photo-flag) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .pg-stats {
        flex: 0 0 calc(50% - 8px);
        order: 3;
        text-align: left;
    }
    .pg-awards {
        order: 4;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }
    .pagination a, .pagination span {
        padding: 3px 7px;
        font-size: 13px;
    }
    .champ-tabs {
        gap: 3px;
    }
    .champ-tab {
        padding: 3px 10px;
        font-size: 13px;
    }
}

.photo-wrap {
    text-align: center;
}
.photo-frame {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 300px;
}
.photo-frame > img:not(.photo-flag) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    overflow: hidden;
    display: block;
}
.photo-flag {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 60%;
}

.info-line {
    margin-bottom: 4px;
}
.info-line strong {
    font-weight: 600;
}

.name-en {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px #aaa;
}

.name-ru {
    color: #555;
    margin-bottom: 10px;
}

.country-block {
    margin-top: 10px;
}
.country-block img {
    vertical-align: middle;
    margin-right: 5px;
}

.stat-block {
    margin-bottom: 12px;
}
.stat-block--rank {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
}
.stat-block--secondary {
    margin-bottom: 8px;
}
.stat-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.stat-num--rank {
    font-size: 48px;
    color: #1a5a99;
    letter-spacing: 2px;
}
.stat-num--secondary {
    font-size: 22px;
    color: #666;
}
.stat-label {
    color: #555;
}
.stat-label--rank {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

/* ---------- awards list ---------- */
.award-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    white-space: nowrap;
}
.award-item > img:not(.flag-icon) {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- rating table ---------- */
.rating-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.rating-table th {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    font-weight: 600;
}
.rating-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.rating-table .num {
    width: 30px;
    text-align: center;
    font-weight: 600;
    color: #555;
}
.rating-table .col-name {
    width: auto;
}
.rating-table .col-country {
    width: 30%;
}
.rating-table .col-balls {
    width: 58px;
}
.rating-table tbody tr {
    transition: background 0.2s ease, transform 0.15s ease;
}
.rating-table tbody tr:hover {
    background: rgba(26,90,153,0.08);
    transform: scale(1.003);
}
.rating-table .place-1 { background: rgba(255,215,0,0.5); }
.rating-table .place-2 { background: rgba(192,192,192,0.5); }
.rating-table .place-3 { background: rgba(205,127,50,0.5); }
.rating-table .balls {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}
.flag-icon {
    width: 20px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

/* ---------- site header ---------- */
.site-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.site-logo {
    width: 150px;
    height: auto;
    display: block;
}
.site-title {
    font-size: clamp(1.2rem, 6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: navy;
}

/* ---------- top header bar ---------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.top-bar h1 {
    margin: 0;
}


/* ---------- pagination ---------- */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 16px;
    list-style: none;
}
.pagination a, .pagination span {
    padding: 4px 10px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
}
.pagination .active {
    background: #1a5a99;
    color: #fff;
    border-color: #1a5a99;
}

/* ---------- event page ---------- */
.event-info {
    line-height: 1.7;
}

/* ---------- info panel ---------- */
.info-panel {
    margin-top: 30px;
    padding: 14px 18px;
    background: rgba(26,90,153,0.06);
    border: 1px solid rgba(26,90,153,0.2);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}
.info-panel p {
    margin: 0;
}

/* ---------- champions page ---------- */
.champ-section {
    margin-bottom: 32px;
}

.panel__head {
    padding: 16px 14px 17px;
    background: #F9F9F9;
    border-radius: 4px 4px 0 0;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.33333;
}

.champ-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.champ-tab {
    padding: 4px 14px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.champ-tab:hover {
    background: rgba(26,90,153,0.08);
}

.champ-tab.active {
    background: #1a5a99;
    color: #fff;
    border-color: #1a5a99;
}

.champ-year {
    display: none;
}

.champ-year.visible {
    display: block;
}

.champ-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* ---------- person card (shared: champions, about, etc) ---------- */
.about-persons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

.champ-card,
.person-card {
    width: calc(50% - 5px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s, box-shadow 0.2s;
}
.champ-card {
    text-decoration: none;
    color: #222;
}
.champ-card:hover,
.person-card:hover {
    background: rgba(26,90,153,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
}

.champ-card__photo,
.person-card__photo {
    flex-shrink: 0;
}

.champ-card__img,
.person-card__img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-size: cover;
    background-position: top center;
}
.champ-card__img {
    background-size: 108%;
}

.champ-card__body,
.person-card__body {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.champ-card__surname,
.person-card__surname {
    font-size: 23px;
    font-weight: 700;
    color: #082894;
    line-height: 1.2;
}

.champ-card__name,
.person-card__name {
    font-size: 19px;
    color: #333;
    margin-bottom: 1px;
}

/* 2026-07-01 21:00 UTC+3 — .about-persons font-family sans-serif; pos 10px; compact body line-height */
.champ-card__weight,
.person-card__weight {
    font-size: 17px;
    font-weight: 700;
    color: #082894;
    margin-top: 3px;
}

.champ-card__country,
.person-card__country {
    font-size: 15px;
    color: #555;
    margin-top: 1px;
}

.champ-card__country .flag-icon,
.person-card__country .flag-icon {
    width: 16px;
    height: 11px;
    vertical-align: middle;
    margin-right: 4px;
}

.person-card__pos {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    line-height: 1.2;
}

.champ-discipline {
    font-size: 16px;
    font-weight: 500;
    color: #444;
    margin: 16px 0 8px;
    padding: 8px 16px;
    background: #F9F9F9;
    border-left: 3px solid #aaa;
    border-radius: 0 4px 4px 0;
}

@media (max-width: 640px) {
    .champ-grid,
    .about-persons {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .champ-card,
    .person-card {
        width: 100%;
        flex: 0 0 100%;
    }
    .about-section {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.event-discipline {
    font-size: 18px;
    font-weight: 700;
    color: #082894;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #082894;
}
.wc-badge {
    display: inline-block;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #eee;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}
.badge-sd {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #6a1b9a;
    border-radius: 3px;
    vertical-align: middle;
}

/* 2026-07-02 18:28 UTC+3 — .about-section card-like container */
.about-section {
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.about-section .heading {
    margin: 0;
    padding: 0.9rem 1.25rem 0.6rem;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.about-section .about-intro {
    padding: 0.75rem 1.25rem 0;
}
.about-section .about-persons {
    padding: 0.5rem 1.25rem 1.25rem;
    margin-bottom: 0;
}
.about-section .person-card {
    border: none;
    background: rgba(0,0,0,0.02);
}
.about-section .person-card:hover {
    background: rgba(26,90,153,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
/* 2026-10-25 03:54 UTC+3 — doc-card внутри about-section как на странице документов */
.about-section .doc-card {
    border: 1px solid rgba(0,0,0,0.06);
    background: transparent;
}
.about-section .doc-card:hover {
    background: rgba(26,90,153,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.about-section .champ-card {
    border: none;
}
.about-section .champ-card:hover {
    background: rgba(26,90,153,0.06);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.about-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* ---------- static page content ---------- */
.page-content {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.page-content--ru p {
    text-indent: 1.75rem;
    margin-bottom: 0;
}
.page-content--en p {
    margin-bottom: 0.75rem;
    text-indent: 0;
}
.page-content ul {
    margin: 0.5rem 0 0.75rem 1.75rem;
    list-style: disc;
}
.page-content li {
    margin-bottom: 0.25rem;
}
.page-content .text-small {
    font-size: 0.8125rem;
}
.page-content .page-conclusion {
    font-style: italic;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #F9F9F9;
    border-radius: 4px;
    text-indent: 0;
    line-height: 2;
}
.page-content--history {
    text-align: justify;
}

@media (max-width: 640px) {
    .page-content {
        line-height: 1.7;
    }
    .page-content h2 {
        font-size: 1.125rem;
    }
    .page-content--ru p {
        text-indent: 1.25rem;
    }
}

/* 2026-07-01 — doc-card, judges-table */
/* ---------- doc-card ---------- */
.doc-card {
    cursor: default;
}
.doc-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
}
.doc-card__icon img {
    width: 36px;
    height: auto;
}
.doc-card__body {
    flex: 1;
    min-width: 0;
}
.doc-card__place {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.doc-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #082894;
    line-height: 1.3;
    margin: 2px 0;
}
.doc-card__date {
    font-size: 12px;
    color: #888;
}

/* ---------- judges-table ---------- */
.judges-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}
.judges-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    font-weight: 600;
    font-size: 14px;
}
.judges-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
}
.judges-table tbody tr:hover {
    background: rgba(26,90,153,0.05);
}

/* ---------- modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}
.modal-overlay.visible {
    display: block;
}
.modal-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 2001;
    overflow-y: auto;
    padding: 24px 30px;
}
.modal-box.visible {
    display: block;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    z-index: 1;
}
.modal-close:hover {
    color: #333;
}
body.modal-open {
    overflow: hidden;
}
.modal-body .profile-grid {
    gap: 20px;
}
.modal-body .photo-frame {
    width: 160px;
    height: 240px;
}
.modal-body .name-en {
    font-size: 24px;
}
.modal-body .stat-num--rank {
    font-size: 36px;
}
.modal-body .stat-num--secondary {
    font-size: 18px;
}
.modal-body .award-item {
    white-space: normal;
}

@media (max-width: 640px) {
    .modal-box {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        padding: 16px;
    }
    .modal-body .profile-grid {
        gap: 12px;
    }
    .modal-body .pg-photo {
        flex: 0 0 140px;
        order: 2;
        overflow: hidden;
    }
    .modal-body .photo-frame {
        width: 140px;
        height: 210px;
    }
    .modal-body .pg-stats {
        flex: 1;
        min-width: 0;
        order: 3;
        text-align: left;
        overflow: hidden;
    }
    .modal-body .pg-awards {
        flex: 0 0 100%;
        order: 4;
    }
}

/* 2026-07-02 — documents: year tabs + doc-block */
.doc-year-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.doc-year-tab {
    padding: 5px 16px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    transition: all 0.2s;
    font-family: inherit;
}
.doc-year-tab:hover {
    background: rgba(26,90,153,0.08);
}
.doc-year-tab.active {
    background: #1a5a99;
    color: #fff;
    border-color: #1a5a99;
}
.doc-year-section {
    display: none;
}
.doc-year-section.visible {
    display: block;
}
.doc-block {
    margin-bottom: 2rem;
}
.doc-block .heading {
    margin-top: 0;
}
.doc-block.doc-validation {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0,0,0,0.08);
}
/* 2026-10-25 03:54 UTC+3 — кнопки карточки документа: просмотр (глаз) над скачиванием */
.doc-card .doc-card__actions {
    flex-shrink: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.doc-card .doc-card__download,
.doc-card .doc-card__view {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: #1a5a99;
    transition: background 0.2s;
}
.doc-card .doc-card__download:hover,
.doc-card .doc-card__view:hover {
    background: rgba(26,90,153,0.1);
    text-decoration: none;
}

/* 2026-07-02 — sidebar-doc-link active tracking */
.sidebar-doc-link.active {
    color: #082894;
}

/* 2026-07-03 — calendar: horizontal tabs removed */
.cal-year-section {
    display: none;
}
.cal-year-section.visible {
    display: block;
}
.cal-tba {
    color: #999;
    font-style: italic;
}
/* 2026-10-25 03:54 UTC+3 — обёртка таблицы календаря: горизонтальный скролл на мобильных */
.cal-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.cal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 14px;
}
.cal-table th {
    background: rgba(26,90,153,0.06);
    text-align: left;
    padding: 6px 8px;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    white-space: nowrap;
}
.cal-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    vertical-align: top;
}
.cal-col-num { width: 30px; text-align: center; }
.cal-col-title { }
.cal-col-date { white-space: nowrap; }
.cal-col-place { }
.cal-col-orgs { }
@media (max-width: 640px) {
    .cal-table { font-size: 13px; min-width: 640px; }
    .cal-col-num { width: 24px; }
    .cal-table th, .cal-table td { padding: 4px 6px; }
}

/* 2026-07-03 — Regents (Попечительский совет) */
.page-content--regents {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}
.page-content--regents p {
    text-indent: 0;
    margin-bottom: 0;
}
.page-content--regents .heading {
    margin-top: 1.2rem;
}
.regents-section + .regents-section {
    margin-top: 2rem;
}
.regents-card {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 1.5rem;
}
.regents-card__img {
    flex-shrink: 0;
    align-self: flex-start;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}
.regents-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.regents-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 130px;
}
.regents-card__position {
    font-size: 13px;
    color: #888;
}
.regents-card__surname {
    font-size: 23px;
    font-weight: 700;
    color: #082894;
    line-height: 1.2;
}
.regents-card__name-line {
    font-size: 19px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}
.regents-card__name {
    font-size: 19px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}
.regents-card__title {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.regents-quote {
    background: #f0f2f5;
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin: 1rem 0 2rem;
}
.regents-quote p {
    margin: 0 0 0.6rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.regents-quote p:last-of-type {
    margin-bottom: 0;
}
.regents-quote__sign {
    text-align: right;
    font-weight: 700;
    font-style: italic;
    color: #222;
}
.regents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.regents-grid .regents-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 280px;
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .regents-grid .regents-card {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* ============================================================
   2026-10-28 16:24 UTC+3 — баннер вписывается в высоту между хедером и футером
   2026-10-25 01:01 UTC+3 — ГЛАВНАЯ-ЛЕНДИНГ (режим $layout='landing')
   Верхняя шапка вместо сайдбара, баннер 16:9, плашки по 3 в ряд,
   scroll-snap по секциям (по мотивам hsif.world).
   ============================================================ */

.landing-body {
    overflow: hidden;
}

/* 2026-10-25 03:54 UTC+3 — убран белый фон контейнера на главной (просвечивает world.jpg) */
.landing {
    --banner-fit-h: calc(100dvh - 220px);
    max-width: 1140px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
}

/* ---------- верхняя шапка ---------- */
.landing-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 35px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 3;
}

.landing-header__logo {
    flex: 0 0 auto;
    display: block;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.landing-header__logo img {
    display: block;
    width: 165px;
    height: auto;
}

.landing-header__title {
    flex: 1 1 auto;
    text-align: center;
    font-size: clamp(13px, 1.9vw, 21px);
    font-weight: 500;
    line-height: 1.3;
    color: #000;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.landing-header__aside {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.landing-social__icon {
    width: 22px;
    height: 22px;
    fill: #1a5a99;
    transition: fill 0.2s;
}

.landing-social:hover .landing-social__icon {
    fill: #082894;
}

.landing-tv,
.lang-switch {
    font-size: 13px;
    font-weight: 600;
    color: #1a5a99;
    white-space: nowrap;
}

.lang-switch {
    padding: 4px 12px;
    border: 1px solid #cfd8e6;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.lang-switch:hover {
    background: #1a5a99;
    color: #fff;
    border-color: #1a5a99;
    text-decoration: none;
}

/* ---------- скролл-контейнер с секциями ---------- */
.landing-scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.landing-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.landing-section {
    flex: 0 0 100%;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
    box-sizing: border-box;
}

.landing-section--banner {
    padding: 0;
    align-items: center;
}

.landing-section--tiles {
    padding: 28px 35px;
}

/* ---------- баннер 16:9 (плейсхолдер) ---------- */
.landing-banner {
    position: relative;
    flex: 0 0 auto;
    width: min(100%, calc(max(0px, var(--banner-fit-h, calc(100dvh - 220px))) * 16 / 9));
    max-width: 100%;
    max-height: max(0px, var(--banner-fit-h, calc(100dvh - 220px)));
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a1f4d 0%, #1a5a99 55%, #2f7fc4 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.landing-banner__label {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 700;
}

.landing-banner__hint {
    font-size: clamp(11px, 1.3vw, 14px);
    opacity: 0.8;
}

/* 2026-10-25 03:07 UTC+3 — слайдер баннеров: слайды, точки, лайтбокс */
.landing-slider {
    position: relative;
    flex: 0 0 auto;
    width: min(100%, calc(max(0px, var(--banner-fit-h, calc(100dvh - 220px))) * 16 / 9));
    max-width: 100%;
    max-height: max(0px, var(--banner-fit-h, calc(100dvh - 220px)));
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1f4d;
}

.landing-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.landing-slider__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.landing-slider__zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.landing-slider__zoom picture {
    display: block;
    width: 100%;
    height: 100%;
}

.landing-slider__zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.landing-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.landing-slider__dot.is-active {
    background: #fff;
}

.landing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.9);
}

.landing-lightbox.is-open {
    display: flex;
}

.landing-lightbox__img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1920px, 100%);
    max-height: min(1080px, 100%);
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.landing-lightbox__close {
    position: absolute;
    top: 12px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.landing-lightbox__close:hover {
    opacity: 1;
}

.landing-lightbox__link {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 8px 20px;
    border-radius: 4px;
    background: #1a5a99;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.landing-lightbox__link:hover {
    background: #082894;
    color: #fff;
}

/* ---------- плашки-ссылки: 3 в ряд ---------- */
.landing-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.landing-tiles .index-card {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    height: 200px;
    padding: 18px 14px;
    gap: 6px;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(48, 48, 48, 0.24);
}

.landing-tiles .index-card__icon-svg {
    width: 100px;
    height: 100px;
}

/* ---------- 3-я секция: остатки плашек + партнёры/контакты ---------- */
.landing-tiles--more {
    margin-bottom: 26px;
}

.landing-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* 2026-10-25 03:54 UTC+3 — партнёры и контакты оформлены плашками: 2 в ряд, на узких — 1 */
.landing-info__col {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(48, 48, 48, 0.24);
}

.landing-info__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a5a99;
    margin: 0 0 14px;
}

.landing-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.landing-partner {
    flex: 0 0 130px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccd3dd;
    border-radius: 6px;
    color: #aab;
    font-size: 12px;
}

.landing-partner--logo {
    flex: 0 0 200px;
    height: auto;
    padding: 0;
    border: 0;
}

.landing-partner--logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 74px;
}

.landing-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.landing-contacts__row a {
    color: #1a5a99;
}

/* ---------- подсказка прокрутки: шеврон вниз ---------- */
.landing-scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: #082894;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    filter: drop-shadow(0 1px 3px rgba(255,255,255,0.7));
}
@media (min-width: 1025px) {
    .landing-scroll-hint {
        display: flex;
    }
}
.landing-scroll-hint.is-visible {
    visibility: visible;
    animation: landing-hint-pulse 1.9s ease-in-out infinite;
}
@keyframes landing-hint-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
    .landing-scroll-hint.is-visible {
        animation: none;
        opacity: 0.7;
    }
}

/* ---------- нижняя панель ---------- */
.landing-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 35px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
}

.landing-footer a {
    color: #1a5a99;
}

.landing-footer__links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
    .landing-body {
        background: #f5f5f5;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .landing {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }
    .landing-scroll {
        flex: 0 0 auto;
        min-height: auto;
        overflow: visible;
    }
    .landing-footer {
        margin-top: auto;
    }
    .landing-header {
        padding: 10px 16px;
        gap: 10px;
    }
    .landing-header__logo img {
        width: 120px;
        height: auto;
    }
    .landing-section--tiles {
        padding: 18px 16px;
    }
    .landing-footer {
        padding: 8px 16px;
    }
    /* узкие экраны: без постраничной прокрутки секциями, обычный поток; плашки 2 в ряд под баннером */
    .landing-scroll {
        scroll-snap-type: none;
    }
    .landing-section {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
        justify-content: flex-start;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    .landing-section--banner {
        padding-top: 0;
        padding-bottom: 0;
        align-items: stretch;
    }
    .landing-slider,
    .landing-banner {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
    .landing-tiles .index-card {
        flex: 0 0 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
    .landing-tiles {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .landing-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .landing-info__col {
        align-items: center;
        text-align: center;
    }
    .landing-partners {
        justify-content: center;
    }
    .landing-contacts {
        align-items: center;
        text-align: center;
    }
    .landing-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .landing-footer__links {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .landing-header__logo img {
        width: 60px;
    }
    .landing-header__title {
        font-size: 12px;
    }
    .landing-tv,
    .landing-social {
        display: none;
    }
    .landing-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .landing-footer__links {
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    .landing-footer .landing-social {
        display: inline-flex;
    }
}

/* 2026-10-28 16:53 UTC+3 — заголовки h1/h2 на Open Sans (Google Fonts CDN) */
h1, h2, .heading, .h1, .h2 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}
