/* ============================================
   ВИКТОРИЯ — расписание соревнований 2026
   Вариант 1: календарная лента
   ============================================ */

.schedule-page {
    --schedule-ink: #2b1010;
    --schedule-deep: #140405;
    --schedule-wine: #2d090d;
    --schedule-paper: #f2ead9;
    --schedule-paper-light: #fbf6eb;
    --schedule-line: rgba(93, 54, 40, .17);
    --schedule-muted: #77665e;
    --schedule-gold: #b8872b;
    --schedule-ui: "Inter", Arial, sans-serif;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--schedule-deep);
    color: var(--cream);
}

.schedule-page :where(a):focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
}

.schedule-page :where(section[id]) {
    scroll-margin-top: 96px;
}

.schedule-shell {
    width: min(1240px, calc(100% - clamp(36px, 8vw, 120px)));
    margin-inline: auto;
}

.schedule-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto 0;
    min-height: 70px;
    padding: 0 clamp(22px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(243, 217, 139, .16);
    background: rgba(20, 4, 5, .9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.schedule-header a,
.schedule-footer a {
    color: inherit;
    text-decoration: none;
}

.schedule-header__brand,
.schedule-footer a:first-child {
    color: var(--gold-light) !important;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.schedule-header__back,
.schedule-footer__back {
    font-family: var(--schedule-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.schedule-header__back::before {
    margin-right: 10px;
    color: var(--gold-light);
    content: "←";
}

.schedule-hero {
    position: relative;
    min-height: max(650px, 92svh);
    padding-top: 70px;
    display: flex;
    overflow: hidden;
    isolation: isolate;
    background: #150405;
}

.schedule-hero::before,
.schedule-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.schedule-hero::before {
    inset: 0;
    opacity: 1;
    background-image:
        linear-gradient(90deg, #150405 0%, rgba(21, 4, 5, .98) 22%, rgba(21, 4, 5, .82) 38%, rgba(21, 4, 5, .34) 56%, rgba(21, 4, 5, 0) 72%),
        url("../images/schedule-hero-nso.avif");
    background-position: center, right center;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, auto 100%;
}

.schedule-hero::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 180px;
    background: linear-gradient(0deg, var(--schedule-deep), transparent);
}

.schedule-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0 120px;
}

.schedule-kicker,
.schedule-calendar__head > p,
.schedule-month-nav > p,
.schedule-month__head p,
.schedule-event__age {
    font-family: var(--schedule-ui);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.schedule-kicker {
    margin: 0;
    color: var(--gold);
}

.schedule-hero h1 {
    max-width: 650px;
    margin: 20px 0 30px;
    color: #fff6df;
    font-size: clamp(64px, 6.5vw, 98px);
    font-weight: 500;
    line-height: .72;
    letter-spacing: -.055em;
}

.schedule-hero h1 em {
    color: var(--gold-light);
    font-weight: 400;
}

.schedule-hero__lead {
    max-width: 520px;
    margin: 0;
    color: rgba(244, 228, 193, .66);
    font-family: var(--schedule-ui);
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.6;
}

.schedule-calendar {
    padding: clamp(86px, 9vw, 132px) 0 clamp(105px, 11vw, 156px);
    background: linear-gradient(135deg, var(--schedule-paper-light), var(--schedule-paper));
    color: var(--schedule-ink);
}

.schedule-calendar__head {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) minmax(280px, .62fr);
    gap: clamp(22px, 4vw, 58px);
    align-items: end;
    margin-bottom: clamp(68px, 8vw, 104px);
}

.schedule-calendar__head > p {
    align-self: start;
    margin: 10px 0 0;
    color: var(--schedule-gold);
}

.schedule-calendar__head h2 {
    margin: 0;
    color: var(--schedule-wine);
    font-size: clamp(58px, 6.3vw, 88px);
    font-weight: 600;
    line-height: .76;
    letter-spacing: -.05em;
}

.schedule-calendar__head h2 em {
    color: #906a1c;
    font-weight: 500;
}

.schedule-calendar__head > span {
    padding-top: 19px;
    border-top: 1px solid var(--schedule-line);
    color: rgba(43, 16, 16, .62);
    font-size: 16px;
    line-height: 1.55;
}

.schedule-selection {
    margin: calc(clamp(68px, 8vw, 104px) * -.35) 0 clamp(68px, 8vw, 104px);
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--schedule-gold) 55%, transparent);
    background: rgba(255, 251, 240, .46);
    box-shadow: 0 18px 46px rgba(75, 35, 15, .06);
}

.schedule-selection__buttons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid rgba(122, 79, 18, .34);
}

.schedule-selection__buttons button {
    min-height: 54px;
    padding: 10px 8px;
    border: 0;
    border-right: 1px solid rgba(122, 79, 18, .22);
    background: transparent;
    color: rgba(43, 16, 16, .72);
    cursor: pointer;
    font-family: var(--schedule-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.schedule-selection__buttons button:last-child { border-right: 0; }
.schedule-selection__buttons button:hover { background: rgba(184, 135, 43, .1); }

.schedule-selection__buttons button[aria-pressed="true"] {
    background: var(--schedule-gold);
    color: #fff9e9;
}

.schedule-selection__buttons button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid #5c230f;
    outline-offset: -4px;
}

.schedule-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(42px, 7vw, 94px);
    align-items: start;
}

.schedule-month-nav {
    position: sticky;
    top: 104px;
    padding-right: 28px;
    border-right: 1px solid var(--schedule-line);
}

.schedule-month-nav > p {
    margin: 0 0 24px;
    color: var(--schedule-gold);
}

.schedule-month-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(93, 54, 40, .1);
    color: rgba(43, 16, 16, .74);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
}

.schedule-month-nav a:last-child { border-bottom: 1px solid rgba(93, 54, 40, .1); }
.schedule-month-nav a:hover { color: #8f641c; }
.schedule-month-nav a span { color: rgba(43, 16, 16, .36); font-family: var(--schedule-ui); font-size: 8px; letter-spacing: .1em; }

.schedule-month + .schedule-month {
    margin-top: clamp(66px, 8vw, 104px);
}

.schedule-month__head {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

.schedule-month__head::after {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(142, 95, 30, .38), transparent);
    content: "";
}

.schedule-month__head p {
    margin: 5px 0 0;
    color: var(--schedule-gold);
    white-space: nowrap;
}

.schedule-month__head h2 {
    margin: 0;
    color: #713516;
    font-size: clamp(35px, 4vw, 49px);
    font-weight: 600;
    line-height: 1;
}

.schedule-month__events {
    position: relative;
}

.schedule-month__events::before {
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 107px;
    width: 1px;
    background: rgba(150, 104, 41, .26);
    content: "";
}

.schedule-event {
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(260px, 1fr) minmax(205px, .65fr);
    gap: clamp(20px, 3.5vw, 44px);
    padding: 0 0 32px;
    margin-bottom: 31px;
    border-bottom: 1px solid var(--schedule-line);
    scroll-margin-top: 100px;
}

.schedule-event:last-child { margin-bottom: 0; }

.schedule-event--selection::before {
    background: #8b5b12;
    box-shadow: 0 0 0 5px rgba(184, 135, 43, .14);
}

.schedule-event::before {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 102px;
    width: 11px;
    height: 11px;
    border: 3px solid var(--schedule-paper);
    border-radius: 50%;
    background: var(--schedule-gold);
    box-shadow: 0 0 0 4px rgba(184, 135, 43, .08);
    content: "";
}

.schedule-event__date {
    display: block;
    color: var(--schedule-ink);
    font-style: normal;
}

.schedule-event__date strong {
    font-family: var(--font-numerals);
    display: block;
    color: #713516;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    line-height: .82;
}

.schedule-event__date span {
    display: block;
    margin-top: 9px;
    font-family: var(--schedule-ui);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

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

.schedule-event__title {
    margin: 0 0 13px;
    color: var(--schedule-ink);
    font-size: clamp(21px, 2.35vw, 30px);
    font-weight: 600;
    line-height: 1.02;
}

.schedule-event__selection-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 13px;
    padding: 9px 12px 8px;
    border: 1px solid rgba(126, 79, 12, .28);
    background: #c69639;
    color: #fff9e9;
    font-family: var(--schedule-ui);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.schedule-event__selection-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 13px;
}

.schedule-event__selection-chip {
    padding: 7px 9px 6px;
    border: 1px solid rgba(137, 87, 18, .4);
    background: rgba(198, 150, 57, .08);
    color: #704611;
    font-family: var(--schedule-ui);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.schedule-event__age {
    margin: 0;
    color: #96661c;
    letter-spacing: .1em;
}

.schedule-event__weapons {
    margin: 12px 0 0;
    color: rgba(43, 16, 16, .72);
    font-family: var(--schedule-ui);
    font-size: 10px;
    line-height: 1.55;
}

.schedule-event__weapons span {
    display: block;
    margin-bottom: 3px;
    color: rgba(43, 16, 16, .42);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.schedule-event__registration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    border-bottom: 1px solid rgba(150, 102, 28, .38);
    color: #7d5118;
    font-family: var(--schedule-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.7;
    text-decoration: none;
    text-transform: uppercase;
}

.schedule-event__registration:hover {
    border-bottom-color: currentColor;
    color: #5e3515;
}

.schedule-event__place {
    margin: 1px 0 0;
    color: var(--schedule-muted);
    font-family: var(--schedule-ui);
    font-size: 10px;
    font-style: normal;
    line-height: 1.55;
}

.schedule-event__place strong,
.schedule-event__place span {
    display: block;
}

.schedule-event__place strong {
    color: rgba(43, 16, 16, .66);
    font-size: 10px;
    font-weight: 600;
}

.schedule-event__place span { margin-top: 5px; }

.schedule-footer {
    padding: 50px 0;
    border-top: 1px solid rgba(243, 217, 139, .16);
    background: var(--schedule-deep);
}

.schedule-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.schedule-footer p {
    margin: 11px 0 0;
    color: rgba(244, 228, 193, .52);
    font-family: var(--schedule-ui);
    font-size: 10px;
    letter-spacing: .06em;
}

.schedule-footer__back {
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(243, 217, 139, .45);
    color: rgba(244, 228, 193, .78) !important;
}

@media (max-width: 950px) {
    .schedule-calendar__head { grid-template-columns: 62px minmax(0, 1fr); }
    .schedule-calendar__head > span { grid-column: 2; }
    .schedule-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 42px; }
    .schedule-event { grid-template-columns: 92px minmax(0, 1fr); }
    .schedule-event__place { grid-column: 2; }
    .schedule-month__events::before { left: 91px; }
    .schedule-event::before { left: 86px; }
}

@media (max-width: 700px) {
    .schedule-page :where(section[id]) { scroll-margin-top: 78px; }
    .schedule-shell { width: min(100% - 36px, 620px); }
    .schedule-header { min-height: 62px; padding-inline: 18px; }
    .schedule-header__brand { font-size: 22px; }
    .schedule-header__back { font-size: 8px; }
    .schedule-hero { min-height: 720px; padding-top: 62px; }
    .schedule-hero::before {
        inset: 0;
        background-image:
            linear-gradient(180deg, #150405 0%, rgba(21, 4, 5, .98) 31%, rgba(21, 4, 5, .82) 46%, rgba(21, 4, 5, .3) 68%, rgba(21, 4, 5, 0) 84%),
            url("../images/schedule-hero-nso.avif");
        background-position: center, right bottom;
        background-size: 100% 100%, auto 64%;
    }
    .schedule-hero__inner { justify-content: flex-start; padding: 66px 0 330px; }
    .schedule-hero h1 { max-width: 100%; margin-top: 17px; font-size: clamp(48px, 14vw, 64px); line-height: .8; }
    .schedule-hero__lead { max-width: 310px; font-size: 12px; }
    .schedule-calendar { padding: 78px 0 100px; }
    .schedule-calendar__head { display: block; margin-bottom: 58px; }
    .schedule-calendar__head > p { margin-bottom: 14px; }
    .schedule-calendar__head h2 { font-size: clamp(53px, 15vw, 66px); }
    .schedule-calendar__head > span { display: block; margin-top: 29px; font-size: 15px; }
    .schedule-selection { margin: -18px 0 48px; padding: 8px; }
    .schedule-selection__buttons {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .schedule-selection__buttons::-webkit-scrollbar { display: none; }
    .schedule-selection__buttons button { min-width: 92px; flex: 0 0 auto; }
    .schedule-layout { display: block; }
    .schedule-month-nav {
        position: sticky;
        z-index: 10;
        top: 62px;
        display: flex;
        gap: 18px;
        margin: 0 -18px 54px;
        padding: 15px 18px;
        overflow-x: auto;
        border: 0;
        border-top: 1px solid var(--schedule-line);
        border-bottom: 1px solid var(--schedule-line);
        background: rgba(242, 234, 217, .95);
        scrollbar-width: none;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .schedule-month-nav::-webkit-scrollbar { display: none; }
    .schedule-month-nav > p { display: none; }
    .schedule-month-nav a { min-height: 30px; flex: 0 0 auto; border: 0; font-size: 16px; }
    .schedule-month-nav a:last-child { border: 0; }
    .schedule-month-nav a span { display: none; }
    .schedule-month + .schedule-month { margin-top: 72px; }
    .schedule-month__head { gap: 15px; margin-bottom: 26px; }
    .schedule-month__head h2 { font-size: 36px; }
    .schedule-month__head p { font-size: 7px; }
    .schedule-month__events::before { left: 71px; }
    .schedule-event {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px;
        padding-bottom: 25px;
        margin-bottom: 25px;
        scroll-margin-top: 142px;
    }
    .schedule-event::before { left: 65px; width: 10px; height: 10px; }
    .schedule-event__date strong { font-size: 27px; }
    .schedule-event__date span { font-size: 7px; }
    .schedule-event__title { font-size: 21px; line-height: 1.04; }
    .schedule-event__age { font-size: 7px; }
    .schedule-event__place { grid-column: 2; font-size: 9px; }
    .schedule-event__place strong { font-size: 9px; }
    .schedule-footer { padding: 44px 0; }
    .schedule-footer__inner { align-items: flex-start; flex-direction: column; }
    .schedule-footer a:first-child { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .schedule-page { scroll-behavior: auto; }
    .schedule-page *, .schedule-page *::before, .schedule-page *::after { transition-duration: .01ms !important; }
}

@media (min-width: 1500px) {
    .schedule-shell { width: min(1600px, calc(100% - var(--site-gutter) - var(--site-gutter))); }
    .schedule-hero { min-height: calc(100svh - var(--site-header-height)); }
    .schedule-hero h1 { font-size: clamp(92px, 6.1vw, 126px); }
    .schedule-hero__lead { max-width: 720px; font-size: clamp(20px, 1.25vw, 26px); }
}
