/*
Theme Name: VNS30
Theme URI: http://vns.local
Author: VNS
Description: Тема сайта «ВНС в лицах» — Всебелорусское народное собрание. Классическая PHP-тема без сборщиков.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vns
Tags: custom-menu, featured-images, translation-ready
*/


/* ===== style.css ===== */

:root {
    /* Светлая премиальная палитра: navy + gold */
    --bg: #f4f8fc;
    --bg-elevated: #ffffff;
    --bg-soft: #e8f0f8;
    --navy: #163a63;
    --navy-deep: #0f2a4a;
    --navy-mid: #2a5080;
    --gold: #c89a3d;
    --gold-bright: #c89a3d;
    --accent: #c9A84C;
    --text: #14263a;
    --muted: #5a6b7d;
    --line: rgba(22, 58, 99, 0.18);
    --font-display: "Fraunces", "Georgia", serif;
    --font-body: "Nunito Sans", system-ui, sans-serif;
    --header-h: 112px;
    --header-h-live: var(--header-h);
    --app-vh: 100dvh;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    overflow-x: clip;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 15% 10%, rgba(22, 58, 99, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 60%, rgba(200, 154, 61, 0.06), transparent 50%),
        linear-gradient(180deg, #f4f8fc 0%, #eef4fa 45%, #f4f8fc 100%);
    pointer-events: none;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 400;
    height: var(--header-h);
    overflow: visible;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition:
        background 0.45s var(--ease),
        border-color 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        background 0.45s var(--ease),
        border-color 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        backdrop-filter 0.45s var(--ease),
        -webkit-backdrop-filter 0.45s var(--ease);
}

.header.is-scrolled {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.header.is-scrolled::before {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    border-bottom-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 1px 0 rgba(22, 58, 99, 0.06),
        0 8px 28px rgba(22, 58, 99, 0.08);
}

.header__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo__mark {
    flex-shrink: 0;
    width: 84px;
    min-width: 84px;
    height: 84px;
}

.logo__mark img,
.logo__mark svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo__text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(20, 38, 58, 0.82);
    transition: color 0.3s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--navy-deep);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    flex: 0 0 40px;
    margin-left: auto;
    z-index: 2;
}

.nav-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--text);
    transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle span:nth-child(1) {
    top: 13px;
}

.nav-toggle span:nth-child(2) {
    top: 19px;
}

.nav-toggle span:nth-child(3) {
    top: 25px;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.page-ornament {
    height: 56px;
    background: url("/app/uploads/2026/09/orn.svg") repeat-x center / auto 100%;
    filter: brightness(0) saturate(100%) invert(42%) sepia(60%) saturate(600%) hue-rotate(195deg);
    opacity: 0.12;
    pointer-events: none;
}

.footer {
    padding: 24px 0 36px;
    border-top: 1px solid var(--line);
}

.footer__inner {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
}

.to-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 380;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(15, 42, 74, 0.42);
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 42, 74, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 0.3s var(--ease),
        transform 0.3s var(--ease),
        background 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.to-top:hover,
.to-top:focus-visible {
    background: rgba(15, 42, 74, 0.62);
    border-color: rgba(255, 255, 255, 0.45);
}

.to-top:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.to-top__icon {
    display: block;
    flex: 0 0 auto;
}

@media (max-width: 960px) {
    :root {
        --header-h: 72px;
    }

    .logo__mark {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .header .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 420;
    }

    .header .nav {
        position: fixed;
        inset: 0;
        z-index: 410;
        padding: calc(var(--header-h) + 24px) 28px 36px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
    }

    .header .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .logo__text {
        display: none;
    }

    .page-ornament {
        height: 40px;
        opacity: 0.28;
    }

    .footer__inner {
        flex-direction: column;
    }
}

.vns-reveal {
    --reveal-x: 36px;
    opacity: 0;
    transform: translate3d(var(--reveal-x), 0, 0);
    transition:
        opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.vns-reveal--from-left {
    --reveal-x: -36px;
}

.vns-reveal--from-right {
    --reveal-x: 36px;
}

.vns-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.vns-reveal:not(.is-visible) {
    transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .vns-reveal,
    .vns-reveal.is-leaving-up,
    .vns-reveal.is-leaving-down {
        opacity: 1;
        transform: none;
    }
}


/* ===== css/index.css ===== */

/* Второй вариант главной: светлая палитра оригинала, свободная структура */

.page-alt {
    --alt-rail: 168px;
}

.page-alt .page-ornament,
.page-alt .footer {
    margin-left: var(--alt-rail);
}

.alt-main {
    padding-top: 0;
}

.page-alt section.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: clamp(28px, 5vh, 56px);
    min-height: calc(100dvh - var(--header-h));
    padding:
        calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(28px, 5vh, 80px);
    padding-left: 0;
    overflow: hidden;
    background-color: #fff;
    background-image:
        radial-gradient(ellipse 70% 55% at 50% -8%, rgba(232, 240, 248, 0.95) 0%, transparent 68%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    background-position: center;
    background-size: cover;
}

.page-alt .hero__media {
    display: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    width: min(1440px, 90%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero__copy {
    width: 100%;
    max-width: 681px;
}

.page-alt section.hero .hero__heading {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(34px, 5.4vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--navy-deep);
}

.page-alt section.hero .hero__lead {
    margin: 28px 0 48px;
    font-size: clamp(15px, 1.35vw, 18px);
    font-weight: 500;
    line-height: 1.55;
    color: var(--muted);
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(100%, 24rem);
    max-width: 24rem;
    padding: 12px 12px 12px 28px;
    border-radius: 86px;
    background: var(--navy-deep);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 32px rgba(15, 42, 74, 0.22);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero__cta:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
}

.hero__cta-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--navy-deep);
    transition: transform 0.3s var(--ease);
}

.hero__cta:hover .hero__cta-icon {
    transform: rotate(45deg);
}

.hero__visual {
    width: min(92%, 560px);
    flex: 1 1 auto;
    display: grid;
    place-items: center;
}

.hero__visual img {
    display: block;
    width: min(100%);
    height: auto;
    object-fit: contain;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .hero__copy {
        max-width: 50%;
    }

    .hero__visual {
        width: auto;
    }
}

.page-alt #stats.alt-mosaic {
    --mosaic-gap: 3px;
    --mosaic-accent: var(--gold);
    --mosaic-h: calc(var(--app-vh) - var(--header-h-live, var(--header-h)));
    position: relative;
    overflow: hidden;
    background: #070707;
    color: var(--mosaic-accent);
    border: none;
    height: var(--mosaic-h);
    min-height: var(--mosaic-h);
}

.alt-mosaic__grid {
    display: grid;
    width: 100%;
    height: 100%;
    gap: var(--mosaic-gap);
    background: #070707;
    padding: var(--mosaic-gap);
    overflow: hidden;
}

.alt-mosaic__grid[data-cols="14"] {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(0, 1fr));
}

.alt-mosaic__grid[data-cols="8"] {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(9, minmax(0, 1fr));
}

.alt-mosaic__grid[data-cols="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
}

.alt-mosaic__tile {
    position: relative;
    display: block;
    overflow: hidden;
    background: #141414;
    min-width: 0;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.alt-mosaic__tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    filter: grayscale(0.88) sepia(0.28) contrast(1.12) brightness(0.82);
    transform: scale(1.02);
    transition: filter 0.45s var(--ease), transform 0.7s var(--ease);
}

.alt-mosaic__tile:hover img,
.alt-mosaic__tile:focus-visible img {
    filter: grayscale(0.15) sepia(0.18) contrast(1.08) brightness(0.88);
    transform: scale(1.08);
}

.alt-mosaic__tile:hover,
.alt-mosaic__tile:focus-visible {
    z-index: 3;
}

.alt-mosaic__tile:focus-visible {
    outline: 2px solid var(--mosaic-accent);
    outline-offset: -2px;
    z-index: 3;
}

.alt-mosaic__mark {
    display: grid;
    place-items: center;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    background: var(--navy-deep);
    border: 3px solid var(--gold);
    color: var(--gold);
    text-align: center;
    padding: clamp(8px, 1.4vw, 24px);
    box-shadow:
        inset 0 0 0 1px rgba(200, 154, 61, 0.28),
        inset 0 0 48px rgba(15, 42, 74, 0.45);
}

.alt-mosaic__title {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 0.08em;
    line-height: 0.86;
}

.alt-mosaic__brand,
.alt-mosaic__years {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.alt-mosaic__brand {
    font-size: clamp(11px, 1.4vw, 18px);
}

.alt-mosaic__num {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(64px, 11vw, 168px);
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 4px var(--gold);
    paint-order: stroke fill;
}

.alt-mosaic__years {
    font-size: clamp(12px, 1.6vw, 22px);
    letter-spacing: 0.42em;
    padding-left: 0.42em;
}

.alt-stream {
    display: grid;
    grid-template-columns: var(--alt-rail) minmax(0, 1fr);
    align-items: start;
}

.alt-stream__body {
    min-width: 0;
}

.alt-years {
    position: sticky;
    top: var(--header-h-live, var(--header-h));
    left: 0;
    z-index: 40;
    width: 100%;
    height: calc(var(--app-vh) - var(--header-h-live, var(--header-h)));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 18px 28px 32px;
    box-sizing: border-box;
    background: transparent;
    align-self: start;
}

.alt-years::before {
    content: "";
    position: absolute;
    left: 42px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: var(--line);
    pointer-events: none;
}

.alt-years__link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-height: 0;
    padding: 0 0 0 36px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.35s var(--ease);
}

.alt-years__link::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--navy-mid);
    transform: translateY(-50%);
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.alt-years__link:hover,
.alt-years__link.is-active {
    color: var(--navy-deep);
}

.alt-years__link.is-active::before {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 154, 61, 0.18);
    transform: translateY(-50%) scale(1.15);
}

.alt-year {
    --year-pad-x: clamp(24px, 4vw, 56px);
    position: relative;
    padding: clamp(40px, 6vh, 72px) var(--year-pad-x) clamp(56px, 8vh, 88px);
    overflow: hidden;
}

.alt-year:nth-child(even) {
    background: rgba(232, 240, 248, 0.45);
}

.alt-year__head {
    position: relative;
    margin: 0 0 28px;
    max-width: 920px;
}

.alt-year__roman {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.alt-year__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 9vw, 96px);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.03em;
    color: var(--navy-deep);
}

.alt-year__slogan {
    margin: 12px 0 0;
    max-width: 32ch;
    font-family: var(--font-display);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--muted);
}

.alt-heroes-band {
    overflow: hidden;
    padding: clamp(16px, 2.2vw, 28px) 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.alt-heroes-band__title {
    margin: 0;
}

.alt-heroes-band__row {
    display: flex;
    width: max-content;
    align-items: center;
    animation: heroMarquee 180s linear infinite;
}

.alt-heroes-band:hover .alt-heroes-band__row {
    animation-play-state: paused;
}

.alt-year__banner-item {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    font-family: var(--font-body);
    font-size: clamp(46px, 8vw, 108px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--navy-deep);
    white-space: nowrap;
}

.alt-year__spark {
    font-size: clamp(46px, 5vw, 68px);
    margin: 0 0.28em;
    flex: 0 0 auto;
    color: var(--gold);
}

@keyframes heroMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.alt-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 28px;
}

.alt-filter__btn {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.alt-filter__btn:hover,
.alt-filter__btn.is-active {
    color: var(--navy-deep);
    border-bottom-color: var(--gold);
}

.alt-faces {
    columns: 5 108px;
    column-gap: 18px;
}

.alt-face {
    break-inside: avoid;
    margin: 0 0 18px;
    background: transparent;
    width: 100%;
    max-width: calc(100% - 10px);
}

.alt-face--s {
    width: 78%;
    margin-left: 8%;
}

.alt-face--m {
    width: 94%;
}

.alt-face--l {
    width: 100%;
}

.alt-face--tall {
    width: 86%;
    margin-top: 22px;
}

.alt-face--wide {
    width: 100%;
    max-width: calc(100% - 10px);
}

.alt-face a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.alt-face img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    background: var(--bg-soft);
    filter: saturate(0.92);
    transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.alt-face--s img {
    aspect-ratio: 1 / 1;
}

.alt-face--m img {
    aspect-ratio: 4 / 5;
}

.alt-face--l img {
    aspect-ratio: 3 / 4;
}

.alt-face--tall img {
    aspect-ratio: 2 / 3;
}

.alt-face--wide img {
    aspect-ratio: 5 / 4;
}

.alt-face:nth-child(7n) {
    margin-top: 16px;
}

.alt-face:nth-child(odd) {
    margin-top: 10px;
}

.alt-face h3 {
    margin: 6px 0 2px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-deep);
}

.alt-face__post {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
}

.alt-face__quote {
    margin: 0;
    font-family: var(--font-display);
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    color: var(--muted);
}

.alt-face a:hover img {
    transform: none;
    filter: saturate(1);
}

.alt-heroes-cta {
    margin-top: 28px;
    width: auto;
    max-width: 24rem;
}

.alt-year__more {
    margin: 12px 0 0;
}

.alt-year__more a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid rgba(200, 154, 61, 0.4);
}

.alt-year__more a:hover {
    color: var(--navy-deep);
    border-bottom-color: var(--navy-deep);
}

@media (max-width: 640px) {
    .page-alt #stats.alt-mosaic {
        --mosaic-h: 132vh;
        height: var(--mosaic-h);
        min-height: var(--mosaic-h);
    }

    .alt-mosaic__num {
        font-size: clamp(56px, 22vw, 110px);
        -webkit-text-stroke-width: 3px;
    }
}

@media (max-width: 960px) {
    .alt-mosaic__num {
        -webkit-text-stroke-width: 3px;
    }

    .page-alt {
        --alt-rail: 0px;
    }

    .page-alt .page-ornament,
    .page-alt .footer {
        margin-left: 0;
    }

    .alt-stream {
        display: block;
        padding-top: 0;
    }

    .alt-years {
        position: sticky;
        top: var(--header-h-live, var(--header-h));
        z-index: 280;
        right: 0;
        width: 100%;
        height: auto;
        max-height: none;
        flex-direction: row;
        gap: 2px;
        padding: 10px 16px 14px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .alt-years::-webkit-scrollbar {
        display: none;
    }

    .alt-years::before {
        left: 16px;
        right: 16px;
        top: 72%;
        bottom: 10px;
        width: auto;
        height: 1px;
    }

    .alt-years__link {
        flex: 0 0 auto;
        padding: 8px 16px 18px;
        font-size: 16px;
    }

    .alt-years__link::before {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }

    .alt-years__link.is-active::before {
        transform: translateX(-50%) scale(1.15);
    }

    .page-alt section.hero {
        padding-left: 0;
        padding-right: 0;
    }

    .alt-year {
        --year-pad-x: 24px;
        padding-left: var(--year-pad-x);
        padding-right: var(--year-pad-x);
    }
}

@media (max-width: 1100px) {
    .alt-faces {
        columns: 5 86px;
    }
}

@media (max-width: 960px) {
    .alt-faces {
        columns: 4 78px;
    }
}

@media (max-width: 720px) {
    .alt-year .alt-faces {
        columns: 3 72px;
    }
}

@media (max-width: 560px) {
    .alt-years__link {
        padding: 8px 8px 18px;
        font-size: 14px;
    }

    .page-alt section.hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 28px);
        padding-bottom: 32px;
    }

    .hero__cta {
        width: 100%;
        font-size: 16px;
    }

    .alt-faces {
        columns: 3 72px;
        column-gap: 10px;
    }

    .alt-face:nth-child(odd) {
        margin-top: 0;
    }

    .alt-heroes-cta {
        width: 100%;
        max-width: 100%;
    }

    .alt-year__banner-item {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .alt-mosaic__tile img,
    .alt-years__link::before,
    .hero__cta,
    .hero__cta-icon,
    .alt-heroes-band__row,
    .alt-heroes-cta,
    .alt-face,
    .alt-face img {
        transition: none;
        animation: none;
    }

    .alt-mosaic__tile:hover img,
    .alt-mosaic__tile:focus-visible img {
        transform: none;
    }

    .alt-face a:hover img,
    .history-year__delegates .alt-face:hover {
        transform: none;
    }
}


/* ===== css/history.css ===== */

/* Страница «История ВНС» — масштабные секции годов */

.page-history {
    --history-rail: 120px;
}

.page-history .page-ornament,
.page-history .footer {
    margin-left: var(--history-rail);
}

.history {
    padding-top: var(--header-h);
}

.history-hero {
    position: relative;
    padding: clamp(72px, 10vh, 120px) clamp(24px, 4vw, 56px) clamp(56px, 8vh, 96px);
    padding-left: calc(var(--history-rail) + clamp(24px, 4vw, 56px));
    overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 20% 0%, rgba(22, 58, 99, 0.08), transparent 55%), var(--bg);
    border-bottom: 1px solid var(--line);
}

.history-hero__ornament {
    position: absolute;
    right: -5%;
    top: 50%;
    width: min(46vw);
    height: auto;
    aspect-ratio: 1;
    transform: translateY(-42%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.main-hero__ornament-clip {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    contain: paint;
}

.main-hero__ornament {
    position: absolute;
    right: -25%;
    top: 50%;
    width: 70vw;
    height: auto;
    aspect-ratio: 1 / 1;
    transform: translateY(-42%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

@media screen and (max-width: 1024px) {
    .main-hero__ornament {
        width: 100vw;
        right: 0;
        top: 65%;
    }
}

.history-hero__inner {
    position: relative;
    z-index: 1;
}


.history-hero .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.history-hero__eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.history-hero__title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: var(--navy-deep);
}

.history-hero__lead {
    margin: 0;
    max-width: 42ch;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.55;
    color: var(--muted);
}

.history-layout {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
}

.history-years {
    position: fixed;
    top: var(--header-h-live, var(--header-h));
    left: 0;
    z-index: 40;
    width: var(--history-rail);
    height: calc(var(--app-vh) - var(--header-h-live, var(--header-h)));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 18px 28px 28px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--line);
}

.history-years::before {
    content: "";
    position: absolute;
    left: 37px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: var(--line);
    pointer-events: none;
}

.history-years__link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-height: 0;
    padding: 0 0 0 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.history-years__link::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--navy-mid);
    transform: translateY(-50%);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.history-years__link:hover,
.history-years__link.is-active {
    color: var(--navy-deep);
}

.history-years__link.is-active::before {
    background: var(--gold);
    border-color: var(--gold-bright);
    box-shadow: 0 0 0 4px rgba(200, 154, 61, 0.2);
}

.history-stream {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-left: 0;
    padding-left: var(--history-rail);
    box-sizing: border-box;
}

.history-year {
    position: relative;
    width: 100%;
    min-height: min(100vh, 980px);
    border-bottom: 1px solid rgba(22, 58, 99, 0.1);
    overflow: hidden;
}

.history-year:nth-child(odd) {
    background: var(--bg-soft);
}

.history-year:nth-child(even) {
    background:
        radial-gradient(ellipse 70% 50% at 8% 20%, rgba(22, 58, 99, 0.08), transparent 55%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.history-year__stage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(48px, 7vh, 88px) clamp(24px, 4vw, 56px) clamp(56px, 8vh, 96px);
    box-sizing: border-box;
}

.history-year__head {
    margin-bottom: clamp(28px, 4vh, 44px);
    max-width: 920px;
}

.history-year__badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(200, 154, 61, 0.5);
    background: rgba(255, 255, 255, 0.55);
}

.history-year__title {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(64px, 12vw, 80px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--navy-deep);
}

.history-year__slogan {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.2vw, 24px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
}

/* Event photo gallery — cinematic */
.history-gallery {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 clamp(36px, 5vh, 56px);
}

.history-gallery__viewport {
    overflow: hidden;
    border-radius: 4px;
    box-shadow:
        0 24px 60px rgba(15, 42, 74, 0.18),
        0 2px 0 rgba(200, 154, 61, 0.35);
}

.history-gallery__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-anchor: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0;
}

.history-gallery__track::-webkit-scrollbar {
    display: none;
}

.history-gallery__slide {
    position: relative;
    flex: 0 0 auto;
    width: fit-content;
    height: 360px;
    scroll-snap-align: start;
    margin: 0;
    overflow: hidden;
    background: transparent;
}

.history-gallery__slide img {
    display: block;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: center;
}

.history-gallery__slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 18px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 42, 74, 0.78) 100%);
    pointer-events: none;
}

.history-gallery__nav,
.history-carousel__nav {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(22, 58, 99, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-deep);
    box-shadow: 0 8px 22px rgba(22, 58, 99, 0.12);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s;
}

.history-gallery__nav:hover:not(:disabled),
.history-carousel__nav:hover:not(:disabled) {
    background: rgba(200, 154, 61, 0.16);
    transform: scale(1.05);
}

.history-gallery__nav:disabled,
.history-carousel__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.history-year__body {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vh, 48px);
    align-items: stretch;
}

.history-block {
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.history-block>*:first-child {
    margin-top: 0;
}

.history-block>*:last-child {
    margin-bottom: 0;
}

.history-block p {
    margin: 0 0 1em;
    color: var(--text);
}

.history-block ul,
.history-block ol {
    margin: 0 0 1em;
    padding: 0 0 0 18px;
}

.history-block li+li {
    margin-top: 10px;
}

.history-block h2,
.history-block h3,
.history-block h4 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy-deep);
}

.history-year__cta {
    margin-top: 10px;
    text-transform: none;
}

.history-year__delegates {
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.history-year__delegates-title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
}

.history-year__delegates .alt-face {
    transition:
        opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.history-year__delegates .alt-face[hidden],
.history-year__delegates .alt-face.is-filtered-out {
    display: none !important;
}

.history-year__delegates .alt-spot {
    padding: 0;
    height: auto;
}

.history-year__delegates .alt-spot[data-spot="quote"],
.history-year__delegates .alt-spot[data-spot="stack"] {
    width: fit-content;
    /* max-width: 240px; */
    height: auto;
    margin-left: 0;
}

.history-year__delegates .alt-spot[data-spot="quote"] .alt-spot__inner,
.history-year__delegates .alt-spot[data-spot="stack"] .alt-spot__inner {
    width: auto;
    /* max-width: 240px; */
}

.history-year__delegates .alt-spot[data-spot="quote"] .alt-spot__panel,
.history-year__delegates .alt-spot[data-spot="stack"] .alt-spot__panel {
    width: max-content;
    max-width: 100%;
    height: auto;
    min-height: 0;
    align-content: start;
}

.history-year__delegates .alt-spot__inner {
    display: block;
    color: inherit;
    text-decoration: none;
    height: auto;
}

.history-year__delegates a.alt-spot__inner {
    cursor: pointer;
}

.history-year__delegates .alt-spot__kicker {
    display: block;
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.history-year__delegates .alt-spot__kicker--author {
    margin: 10px 0 0;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-transform: none;
}

.history-year__delegates .alt-spot__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(12px, 1.05vw, 15px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    color: var(--navy-deep);
    overflow-wrap: break-word;
}

.history-year__delegates .alt-spot--offset {
    padding: 20px 18px 6px 2px;
}

.history-year__delegates .alt-spot--offset .alt-spot__panel {
    position: relative;
    display: grid;
    align-content: start;
    height: auto;
    padding: 16px 14px 16px 22px;
    background: rgba(200, 154, 61, 0.34);
}

.history-year__delegates .alt-spot--offset .alt-spot__panel::after {
    content: "";
    position: absolute;
    top: -14px;
    right: -14px;
    left: 14px;
    bottom: 14px;
    border: 1.5px solid var(--navy-deep);
    pointer-events: none;
}

.history-year__delegates .alt-spot--stack {
    position: relative;
    padding: 18px 14px;
}

.history-year__delegates .alt-spot--stack .alt-spot__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-year__delegates .alt-spot--stack .alt-spot__panel {
    padding: 14px 12px;
    height: auto;
    min-height: 0;
    background: rgba(200, 154, 61, 0.34);
    border-radius: 12px;
}

.history-year__delegates .alt-spot--frame {
    position: relative;
    padding: 18px 14px;
}

.history-year__delegates .alt-spot--frame .alt-spot__panel {
    position: relative;
    display: grid;
    align-content: start;
    height: auto;
    min-height: 0;
    padding: 18px 14px;
    background: rgba(200, 154, 61, 0.3);
    border-radius: 14px;
}

.history-year__delegates .alt-spot--stack::before,
.history-year__delegates .alt-spot--frame::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 32%;
    height: 22%;
    border-top: 1.5px solid var(--navy-deep);
    border-right: 1.5px solid var(--navy-deep);
    pointer-events: none;
}

.history-year__delegates .alt-spot--stack::after,
.history-year__delegates .alt-spot--frame::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 32%;
    height: 22%;
    border-bottom: 1.5px solid var(--navy-deep);
    border-left: 1.5px solid var(--navy-deep);
    pointer-events: none;
}

.history-year__delegates .alt-spot--ink .alt-spot__panel {
    background: var(--navy-deep);
}

.history-year__delegates .alt-spot--ink .alt-spot__kicker {
    color: var(--gold);
}

.history-year__delegates .alt-spot--ink .alt-spot__text {
    color: #fff;
    font-style: normal;
    font-weight: 500;
}

.history-year__delegates .alt-spot.vns-reveal.is-visible:hover {
    transform: translateY(-4px);
}

.history-year__delegates .alt-face.vns-reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(var(--reveal-x, 36px), 0, 0);
}

.history-year__delegates .alt-face.vns-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.history-year__delegates .alt-face.vns-reveal.is-visible:hover {
    transform: translateY(-6px);
    z-index: 2;
    transition: transform 0.45s var(--ease), opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-year__media {
    min-width: 0;
}

@media (max-width: 960px) {
    .page-history {
        --history-rail: 0px;
    }

    .page-history .page-ornament,
    .page-history .footer {
        margin-left: 0;
    }

    .history-hero {
        padding: 56px 24px 40px;
    }

    .history-layout {
        padding-top: 0;
    }

    .history-years {
        position: sticky;
        top: var(--header-h-live, var(--header-h));
        z-index: 280;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: none;
        flex-direction: row;
        gap: 4px;
        padding: 10px 16px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .history-years::before {
        left: 16px;
        right: 16px;
        top: 69%;
        bottom: 10px;
        width: auto;
        height: 1px;
    }

    .history-years::-webkit-scrollbar {
        display: none;
    }

    .history-years__link {
        flex: 0 0 auto;
        padding: 8px 14px 16px;
    }

    .history-years__link::before {
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(-50%);
    }

    .history-stream {
        padding-left: 0;
    }

    .history-year {
        min-height: 0;
    }

    .history-year__stage {
        padding: 40px 24px 48px;
    }

    .history-year__title {
        font-size: clamp(52px, 16vw, 88px);
    }

    .history-gallery__slide {
        height: 280px;
    }

    .history-year__body {
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .history-hero {
        padding: 40px 16px 28px;
    }

    .history-hero__ornament {
        display: none;
    }

    .history-year__stage {
        padding: 32px 16px 40px;
    }

    .history-gallery__nav,
    .history-carousel__nav {
        display: none;
    }
}

/* ===== css/all-heroes.css ===== */

.delegates-page {
    padding-top: var(--header-h);
}

.delegates-hero {
    padding: 0 0 8px;
}

.delegates-stage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: clamp(24px, 4vw, 56px);
    box-sizing: border-box;
}

.delegates-hero__years {
    padding-top: 18px;
    padding-bottom: 4px;
}

.delegates-year-filters {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.delegates-year-filters .timeline-filter__btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 8px;
    text-align: center;
}

.delegates-catalog {
    padding: 28px 0 72px;
}

.delegates-catalog__layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 28px;
    align-items: start;
}

.delegate-filters {
    display: grid;
    gap: 18px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto;
    padding: 18px clamp(14px, 2vw, 20px);
    border: 1px solid rgba(10, 36, 99, 0.12);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: 0 10px 26px rgba(10, 36, 99, 0.08);
}

.delegate-filters__search {
    display: grid;
    gap: 8px;
    margin: 0;
}

.delegate-filters__group {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.delegate-filters__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-deep);
}

.delegate-filters__field {
    position: relative;
    display: flex;
    align-items: center;
}

.delegate-filters__icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    fill: var(--navy-mid);
    pointer-events: none;
}

.delegate-filters__input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px 10px 40px;
    border: 1px solid rgba(22, 58, 99, 0.2);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.delegate-filters__input::placeholder {
    color: rgba(22, 58, 99, 0.45);
}

.delegate-filters__input:focus {
    outline: none;
    border-color: rgba(200, 154, 61, 0.7);
    box-shadow: 0 0 0 3px rgba(200, 154, 61, 0.16);
}

.delegate-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-filter__btn {
    padding: 7px 12px;
    border: 1px solid rgba(22, 58, 99, 0.24);
    border-radius: 999px;
    background: rgba(22, 58, 99, 0.05);
    color: var(--navy-deep);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s var(--ease);
}

.timeline-filter__btn:hover {
    background: rgba(200, 154, 61, 0.12);
    border-color: rgba(200, 154, 61, 0.45);
}

.timeline-filter__btn.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.delegates-empty {
    column-span: all;
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--line);
    color: var(--muted);
    background: var(--bg-elevated);
}

@media (max-width: 1100px) {
    .delegates-year-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .delegates-stage {
        padding-inline: 24px;
    }

    .delegates-catalog__layout {
        grid-template-columns: 1fr;
    }

    .delegate-filters {
        position: static;
        max-height: none;
        overflow: visible;
        order: -1;
    }
}

@media (max-width: 560px) {
    .delegates-stage {
        padding-inline: 16px;
    }

    .delegates-year-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ===== css/delegate.css ===== */

/* Страница делегата — светлая премиальная тема (navy + gold) */

.page-delegate {
    --accent: #c9A84C;
    --blue: #0A2463;
    --aside-w: 33.333%;
    --font-serif: "Fraunces", "Georgia", serif;
}

.page-delegate .nav-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 4px;
    color: var(--blue);
    border-radius: 50%;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.page-delegate .nav-search:hover {
    color: var(--navy-deep);
    background: rgba(200, 154, 61, 0.14);
}

/* Layout */
.delegate {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-h);
}

.delegate-main {
    display: grid;
    grid-template-columns: 1fr 3fr;
    align-items: start;
}

.delegate-aside {
    position: sticky;
    top: var(--header-h);
    width: 100%;
    max-width: none;
    height: calc(100vh - var(--header-h));
    align-self: start;
    z-index: 4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    container-type: inline-size;
    container-name: delegate-aside;
    background:
        linear-gradient(180deg, #1a4470 0%, #163a63 45%, #122f52 100%);
    pointer-events: none;
    color: #f4f8fc;
}

.delegate-aside__crest {
    position: absolute;
    top: -4%;
    left: 50%;
    width: min(140%, 640px);
    transform: translateX(-50%);
    opacity: 0.12;
    filter: grayscale(0.15) brightness(1.4);
    pointer-events: none;
    z-index: 0;
}

.delegate-aside__crest img {
    width: 100%;
    height: auto;
}

.delegate-aside__info {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
    padding: 40px 28px 20px;
    background: linear-gradient(180deg,
            rgba(22, 58, 99, 0.92) 0%,
            rgba(22, 58, 99, 0.72) 78%,
            rgba(22, 58, 99, 0) 100%);
}

#breadcrumbs>span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 28px;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--muted);
}

#breadcrumbs span>a {
    color: inherit;
    transition: color 0.25s var(--ease);
}

#breadcrumbs span>a:hover {
    color: var(--gold);
}

#breadcrumbs [aria-current="page"] {
    color: var(--text);
}

.delegate-badge {
    display: inline-flex;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 6px 14px;
    border: 1px solid rgba(200, 154, 61, 0.65);
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delegate-district {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: #f4f8fc;
    overflow-wrap: anywhere;
}

.delegate-district::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 10px;
    background: var(--accent);
}

.delegate-name {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(24px, 8cqi, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.01em;
    color: #ffffff;
    overflow-wrap: break-word;
    hyphens: auto;
}

.delegate-role {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(244, 248, 252, 0.78);
    overflow-wrap: break-word;
}

.delegate-scroll-hint {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(244, 248, 252, 0.55);
    pointer-events: none;
}

.delegate-scroll-hint__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(244, 248, 252, 0.3);
    border-radius: 50%;
    animation: scroll-hint 1.8s var(--ease) infinite;
}

@keyframes scroll-hint {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(4px);
        opacity: 1;
    }
}

.delegate-portrait {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 400px;
    width: 100%;
    pointer-events: none;
}

.delegate-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: drop-shadow(0 0 40px rgba(200, 154, 61, 0.14));
}

.delegate-portrait__glow {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: radial-gradient(ellipse at 50% 100%, rgba(200, 154, 61, 0.16), transparent 70%);
    pointer-events: none;
}

/* Right content — тёплая журнальная статья */
.delegate-content {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding: 40px clamp(28px, 5vw, 80px) 88px;
    background:
        radial-gradient(ellipse 50% 30% at 100% 0%, rgba(200, 154, 61, 0.06), transparent 55%),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 40%, #fbf8f2 100%);
}

.delegate-content .content-authors {
    font-size: 1.15rem;
    list-style-type: custom-counter;
}

.delegate-content .content-authors>li {
    font-weight: 700;
    padding-bottom: 1rem;
}

.delegate-content .content-authors>li>span {
    font-weight: 400;
}

.delegate-content .content-authors>li::marker {
    color: var(--gold);
    font-weight: 400;
}

@counter-style custom-counter {
    system: cyclic;
    symbols: ❖;
    suffix: " ";
}

.delegate-article {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    font-optical-sizing: auto;
    line-height: 1.75;
    color: #2f3844;
}

.delegate-article__eyebrow {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.delegate-article a {
    color: var(--navy-mid);
    border-bottom: 1px solid rgba(42, 80, 128, 0.28);
}

.delegate-article a:hover {
    color: var(--navy-deep);
    border-bottom-color: var(--gold);
}

.delegate-article__dek {
    margin: 0 0 32px;
    padding-bottom: 18px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    border-bottom: 1px solid rgba(200, 154, 61, 0.28);
    background-image: radial-gradient(circle at center, var(--gold) 1.2px, transparent 1.3px);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 7px 7px;
}

.delegate-article p {
    margin: 0 0 1.15em;
}

.delegate-article__lead {
    margin: 0 0 1.6em;
    font-size: 1.25rem;
    line-height: 1.75;
    color: #1c2a38;
}

.delegate-article .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(22px, 3.2vw, 48px);
    margin: 2em 0;
}

.delegate-article .wp-block-column {
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
}

.delegate-article .wp-block-column>*:first-child {
    margin-top: 0;
}

.delegate-article .wp-block-column>*:last-child {
    margin-bottom: 0;
}

.delegate-article .wp-block-image {
    margin: 1.4em 0;
}

.delegate-article .wp-block-image img,
.delegate-article img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
}

.delegate-article img.is-zoomable {
    cursor: zoom-in;
}

.delegate-article .wp-block-image a,
.delegate-article a:has(> img) {
    border-bottom: 0;
}

.delegate-article .wp-block-image figcaption,
.delegate-article .wp-element-caption {
    margin-top: 10px;
    padding-left: 4px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.delegate-article .wp-block-quote {
    margin: 0 0 1.15em;
    width: 100%;
    max-width: none;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(to right, var(--accent), 20%, rgba(255, 192, 203, 0));
}

.delegate-article .wp-block-quote p {
    margin: 0;
}

.delegate-article .wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
    margin: 2.6em 0;
    padding: 0;
}

.delegate-article .wp-block-gallery.has-nested-images>.wp-block-image {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
    margin: 0;
    min-width: 0;
}

.delegate-article .wp-block-gallery.columns-1>.wp-block-image {
    flex-basis: 100%;
    width: 100%;
}

.delegate-article .wp-block-gallery.columns-2>.wp-block-image {
    flex-basis: calc(50% - 0.5rem);
    width: calc(50% - 0.5rem);
}

.delegate-article .wp-block-gallery.columns-3>.wp-block-image {
    flex-basis: calc(33.333% - 0.7rem);
    width: calc(33.333% - 0.7rem);
}

.delegate-article .wp-block-gallery .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(22, 58, 99, 0.1);
}

.delegate-article .wp-block-gallery .wp-element-caption,
.delegate-article .wp-block-gallery figcaption {
    margin-top: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.delegate-article__quote {
    position: relative;
    margin: 2.2em 0 2.4em;
    padding: 28px 28px 26px 32px;
    max-width: 40rem;
    border: 0;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 80% 70% at 0% 0%, rgba(200, 154, 61, 0.12), transparent 55%),
        linear-gradient(160deg, #fff8ea 0%, #fffdf7 55%, #f7f1e4 100%);
    box-shadow: 0 12px 32px rgba(22, 58, 99, 0.06);
}

.delegate-article__quote-mark,
.delegate-article__quote-close {
    position: absolute;
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    color: rgba(200, 154, 61, 0.55);
    pointer-events: none;
    user-select: none;
}

.delegate-article__quote-mark {
    top: 8px;
    left: 16px;
    font-size: 64px;
}

.delegate-article__quote-close {
    right: 18px;
    bottom: 4px;
    font-size: 48px;
}

.delegate-article__quote-ornament {
    display: block;
    width: 52px;
    height: 10px;
    margin-top: 16px;
    background:
        radial-gradient(circle at 6px 5px, var(--gold) 2px, transparent 2.5px),
        radial-gradient(circle at 26px 5px, var(--gold) 2.5px, transparent 3px),
        radial-gradient(circle at 46px 5px, var(--gold) 2px, transparent 2.5px),
        linear-gradient(90deg, transparent 0 10px, rgba(200, 154, 61, 0.45) 10px 16px, transparent 16px 36px, rgba(200, 154, 61, 0.45) 36px 42px, transparent 42px);
}

.delegate-article__quote p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-left: 40px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    color: var(--navy-deep);
}

.delegate-article__listen {
    margin: 0 0 2.4em;
    max-width: 40rem;
    padding: 22px 22px 18px;
    border-radius: 20px;
    background:
        linear-gradient(165deg, rgba(232, 240, 248, 0.85) 0%, rgba(255, 253, 248, 0.95) 100%);
    border: 1px solid rgba(22, 58, 99, 0.08);
    box-shadow: 0 10px 28px rgba(22, 58, 99, 0.05);
}

.delegate-article__listen-lead {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--navy-deep);
}

.delegate-article__listen .delegate-article__eyebrow {
    margin-bottom: 8px;
}

.audio-player {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 0;
    border-radius: 999px;
}

.audio-player__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: #1a2a18;
    transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
    box-shadow: 0 0 0 6px rgba(200, 154, 61, 0.16);
}

.audio-player__play:hover {
    background: var(--gold-bright);
    transform: scale(1.04);
}

.audio-player.is-playing .audio-player__icon-play {
    display: none;
}

.audio-player.is-playing .audio-player__icon-pause {
    display: block !important;
}

.audio-player__time {
    font-family: var(--font-body);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
}

.audio-player__wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    min-width: 0;
    padding-right: 6px;
}

.audio-player__wave span {
    flex: 1;
    min-width: 2px;
    max-width: 3px;
    height: calc(28% + var(--h, 40%) * 0.7);
    border-radius: 99px;
    background: rgba(22, 58, 99, 0.28);
}

.audio-player__wave span:nth-child(4n) {
    --h: 90%;
}

.audio-player__wave span:nth-child(4n + 1) {
    --h: 35%;
}

.audio-player__wave span:nth-child(4n + 2) {
    --h: 70%;
}

.audio-player__wave span:nth-child(4n + 3) {
    --h: 50%;
}

.audio-player.is-playing .audio-player__wave span {
    animation: wave 0.9s ease-in-out infinite alternate;
    background: rgba(200, 154, 61, 0.75);
}

.audio-player.is-playing .audio-player__wave span:nth-child(odd) {
    animation-delay: 0.12s;
}

@keyframes wave {
    from {
        transform: scaleY(0.55);
    }

    to {
        transform: scaleY(1);
    }
}

.delegate-article__video {
    margin: 2.2em 0;
    max-width: 800px;
}

.video-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(22, 58, 99, 0.12);
}

.video-card video,
.video-card iframe,
.video-card__player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #0b1520;
}

.video-card__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.9;
}

.video-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 154, 61, 0.94);
    color: #1a2a18;
    box-shadow: 0 0 0 12px rgba(200, 154, 61, 0.18);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.video-card__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--gold-bright);
}

.video-card__bar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.video-card__progress {
    display: block;
    width: 18%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.delegate-share {
    max-width: 38rem;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px dashed rgba(200, 154, 61, 0.35);
}

.delegate-share__label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.share-socials {
    display: inline-flex;
    gap: 8px;
}

.share-socials__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(22, 58, 99, 0.1);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.9);
    color: var(--muted);
    transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.share-socials__item:hover {
    background: rgba(200, 154, 61, 0.14);
    border-color: rgba(200, 154, 61, 0.45);
    color: var(--navy-deep);
}

.share-socials__item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.page-delegate .page-ornament {
    margin-top: 0;
    opacity: 0.22;
}

.page-delegate.is-scrolled .delegate-scroll-hint {
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

@media (max-width: 900px) {
    .page-delegate {
        --aside-w: 100%;
    }

    .delegate {
        display: block;
    }

    .delegate-main {
        display: block;
    }

    .delegate-aside {
        position: relative;
        top: auto;
        width: 100%;
        height: auto;
        min-height: 78vh;
        background: linear-gradient(180deg, #1a4470 0%, #163a63 100%);
        pointer-events: auto;
    }

    .delegate-aside__info {
        padding: 28px 24px 16px;
    }

    .delegate-name {
        font-size: clamp(26px, 7vw, 36px);
    }

    #breadcrumbs {
        margin-bottom: 20px;
    }

    .delegate-portrait {
        position: relative;
        flex: 1 1 auto;
        min-height: 400px;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .delegate-scroll-hint {
        display: none;
    }

    .delegate-content {
        padding: 28px 20px 88px;
        position: relative;
        z-index: 6;
        background:
            radial-gradient(ellipse 50% 30% at 100% 0%, rgba(200, 154, 61, 0.06), transparent 55%),
            linear-gradient(180deg, #fffdf8 0%, #ffffff 40%, #fbf8f2 100%);
    }

    .delegate-article {
        max-width: none;
    }

    .delegate-article__quote {
        padding: 24px 20px 22px;
        border-radius: 18px;
    }

    .delegate-article__quote-mark {
        font-size: 48px;
        top: 4px;
        left: 10px;
    }

    .delegate-article__quote-close {
        font-size: 36px;
        right: 12px;
    }

    .delegate-article__quote p {
        font-size: 1.2rem;
        padding-left: 4px;
    }

    .delegate-article__listen {
        padding: 18px 16px 14px;
        border-radius: 16px;
    }

    .audio-player {
        grid-template-columns: auto auto minmax(0, 1fr);
        border-radius: 18px;
        padding: 8px 10px;
    }
}

@media (max-width: 1240px) {

    .delegate-article .wp-block-columns {
        flex-direction: column;
        gap: 14px;
    }

    .delegate-article .wp-block-gallery.columns-2>.wp-block-image,
    .delegate-article .wp-block-gallery.columns-3>.wp-block-image {
        flex-basis: calc(50% - 0.5rem);
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 560px) {
    .delegate-name {
        font-size: 26px;
    }

    .delegate-article {
        font-size: 1.25rem;
    }

    .delegate-article__lead {
        font-size: 1.25rem;
    }

    .delegate-article__quote p {
        font-size: 1.2rem;
    }

    .delegate-article .wp-block-gallery.columns-2>.wp-block-image,
    .delegate-article .wp-block-gallery.columns-3>.wp-block-image {
        flex-basis: 100%;
        width: 100%;
    }

    .delegate-aside {
        min-height: unset;
    }

    .delegate-portrait {
        min-height: unset;
    }
}

@media (prefers-reduced-motion: reduce) {

    .delegate-scroll-hint__icon,
    .audio-player.is-playing .audio-player__wave span {
        animation: none;
    }

    .delegate-reveal,
    .vns-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

html.is-lightbox-open {
    overflow: hidden;
}

.vns-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 72px;
    background: rgba(15, 42, 74, 0.88);
    backdrop-filter: blur(10px);
}

.vns-lightbox[hidden] {
    display: none;
}

.vns-lightbox__stage {
    margin: 0;
    max-width: min(96vw, 1280px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vns-lightbox__image {
    display: block;
    max-width: min(92vw, 1280px);
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.vns-lightbox__caption {
    margin: 0;
    max-width: min(72ch, 90vw);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(244, 248, 252, 0.86);
    text-align: center;
}

.vns-lightbox__caption[hidden] {
    display: none;
}

.vns-lightbox__close,
.vns-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #f4f8fc;
    background: rgba(15, 42, 74, 0.55);
    border: 1px solid rgba(244, 248, 252, 0.22);
    border-radius: 999px;
    cursor: pointer;
}

.vns-lightbox__close:hover,
.vns-lightbox__nav:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
}

.vns-lightbox__close {
    top: 18px;
    right: 18px;
}

.vns-lightbox__nav--prev {
    left: 16px;
}

.vns-lightbox__nav--next {
    right: 16px;
}

.vns-lightbox.is-single .vns-lightbox__nav {
    display: none;
}

@media (max-width: 720px) {
    .vns-lightbox {
        padding: 64px 16px 24px;
    }

    .vns-lightbox__nav--prev,
    .vns-lightbox__nav--next {
        top: auto;
        bottom: 16px;
    }

    .vns-lightbox__nav--prev {
        left: 16px;
    }

    .vns-lightbox__nav--next {
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .vns-lightbox,
    .vns-lightbox__close,
    .vns-lightbox__nav {
        transition: none;
    }
}

/* ===== Видеовизитки ===== */

.videos-page {
    padding-top: var(--header-h);
}

.videos-page .history-hero {
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
}

.videos-page .delegates-hero__years {
    padding-top: 20px;
}

.videos-catalog {
    padding: 28px 0 72px;
}

.videos-grid {
    --videos-col-gap: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 32px var(--videos-col-gap);
    align-items: start;
    min-width: 0;
}

.videos-grid .delegates-empty {
    grid-column: 1 / -1;
}

.video-visit {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.video-visit--wide {
    grid-column: 1 / -1;
}

.video-visit[hidden],
.video-visit.is-filtered-out,
.videos-grid .delegates-empty[hidden] {
    display: none !important;
}

.video-visit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.video-visit__nav {
    display: none;
    flex: 0 0 auto;
    gap: 8px;
}

.video-visit--wide.has-carousel-nav .video-visit__nav {
    display: flex;
}

.video-visit__nav-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(22, 58, 99, 0.28);
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-deep);
    box-shadow: 0 8px 22px rgba(22, 58, 99, 0.12);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s;
}

.video-visit__nav-btn:hover:not(:disabled) {
    background: rgba(200, 154, 61, 0.16);
    transform: scale(1.05);
}

.video-visit__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.video-visit__videos {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.videos-page .delegates-catalog__layout>* {
    min-width: 0;
}

.video-visit__viewport {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    container-type: inline-size;
}

.video-visit__track {
    display: flex;
    gap: var(--videos-col-gap);
    transition: transform 0.45s var(--ease);
    will-change: transform;
}

.video-visit__slide {
    flex: 0 0 calc((100cqw - var(--videos-col-gap)) / 2);
    width: calc((100cqw - var(--videos-col-gap)) / 2);
    min-width: 0;
}

.video-visit .video-card {
    width: 100%;
}

.video-visit__name {
    margin: 0;
    min-width: 0;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-deep);
    text-decoration: none;
}

.video-visit__name .alt-year__spark {
    font-size: clamp(18px, 2.1vw, 26px);
}

a.video-visit__name:hover {
    color: var(--gold);
}

@media (max-width: 960px) {
    .videos-page .history-hero {
        padding: 56px 24px 40px;
    }
}

@media (max-width: 800px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .video-visit__slide {
        flex: 0 0 100cqw;
        width: 100cqw;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-visit__track {
        transition: none;
    }
}

/* ===== Announce ===== */

body.page-announce .header,
body.page-announce .footer,
body.page-announce .to-top,
body.page-announce .nav-toggle {
    display: none;
}

html.announce-is-revealing body {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.announce {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: clamp(32px, 8vh, 80px) 24px clamp(24px, 5vh, 48px);
    text-align: center;
}

.announce__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.4vh, 28px);
    flex: 1 1 auto;
    gap: 0;
    z-index: 2;
}

.announce__title {
    margin: 0;
    /* max-width: 18ch; */
    font-family: var(--font-display);
    font-size: clamp(28px, 4.6vw, 46px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.12;
    ;
    color: var(--navy-deep);
}

.announce__gif {
    display: block;
    width: min(72vw, 420px);
    height: auto;
}

.announce__years {
    margin: 0;
    padding-left: 0.42em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 28px);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--navy);
}

.announce__timer {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(28px, 6vw, 56px);
    letter-spacing: 0.08em;
    color: var(--navy-deep);
    padding: 0px 16px;
    border-radius: 999px;
    background: rgba(15, 42, 74, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(15, 42, 74, 0.16);
    z-index: 2;
}

.announce__ornament {
    right: 10%;
    top: 90%;
    width: 80vw;
}

@media screen and (max-width: 1024px) {
    .announce__ornament {
        right: 0;
        top: 70%;
        width: 100vw;
    }
}


@media (max-width: 560px) {
    .main-hero__ornament {
        display: none;
    }
}

.announce-gif {
    max-height: fit-content;
}

@media (max-width: 560px) {
    .announce {
        padding-inline: 16px;
    }
}

/* ===== 404 ===== */

.error-page {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
}

.error-page__hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) 0 clamp(48px, 8vh, 96px);
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 18% 0%, rgba(22, 58, 99, 0.08), transparent 55%),
        var(--bg);
}

.error-page__ornament {
    position: absolute;
    right: -8%;
    top: 48%;
    width: min(52vw, 640px);
    height: auto;
    transform: translateY(-42%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.88;
}

.error-page__inner {
    position: relative;
    z-index: 1;
}

.error-page__code {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(88px, 18vw, 200px);
    font-weight: 700;
    line-height: 0.82;
    color: transparent;
    -webkit-text-stroke: 3px var(--gold);
}

.error-page__eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.error-page__title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--navy-deep);
}

.error-page__lead {
    margin: 0 0 32px;
    max-width: 42ch;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.55;
    color: var(--muted);
}

.error-page__cta {
    margin-bottom: 28px;
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.error-page__links a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.error-page__links a:hover {
    color: var(--navy-deep);
}

@media (max-width: 720px) {
    .error-page__ornament {
        width: min(90vw, 420px);
        right: -18%;
        opacity: 0.45;
    }

    .error-page__code {
        -webkit-text-stroke-width: 2px;
    }
}

/* ===== WordPress ===== */

.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

body.admin-bar {
    scroll-padding-top: 32px;
}