/* ==========================================================
   V Национальный конгресс респираторной медицины
   Новый стиль главной. Старый styles.css не трогаем —
   его используют остальные страницы.
   ========================================================== */

:root {
    --ink: #0b2744;
    --ink-2: #0f3358;
    --sky: #0072bc;          /* синий из логотипа */
    --sky-light: #4ea6e6;    /* он же, светлее — для тёмного фона */
    --sky-deep: #005c99;
    --sky-soft: #e3f0fa;
    --frost: #f3f7fb;
    --paper: #ffffff;
    --gold: #ffcb04;          /* жёлтый из логотипа */
    --text: #1a2a38;
    --muted: #56697a;
    --line: #d5e1ec;
    --closed: #8d9fb0;

    --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
    --font-body: "Onest", "Segoe UI", Roboto, Arial, sans-serif;

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --section: clamp(64px, 9vw, 112px);
    --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--sky-deep); }

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Кнопки и статусы ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font: 600 16px/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #ffd83d; }

.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-outline { border-color: var(--sky-deep); color: var(--sky-deep); }
.btn-outline:hover { background: var(--sky-deep); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sky-soft); }

.btn-small {
    min-height: 40px;
    padding: 8px 16px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
}
.btn-small:hover { background: var(--sky-deep); }

/* Статус — не кнопка: на него нельзя нажать, и он так и выглядит */
.status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    font-weight: 500;
    font-size: 16px;
}
.status::before {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
}
.status-closed { color: var(--muted); }
.hero .status-closed,
.cabinet-band .status-closed { color: rgba(255,255,255,.72); }

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    flex-shrink: 0;
}
.brand img { width: 52px; height: 50px; object-fit: contain; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}
.site-nav ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav ul a {
    display: block;
    padding: 8px 9px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 4px;
}
.site-nav ul a:hover { color: var(--sky-deep); }
.nav-account { display: flex; align-items: center; gap: 14px; }
.nav-login { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav-login:hover, .nav-login[aria-current="page"] { color: var(--sky-deep); }
.site-nav ul a[aria-current="page"] {
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--sky);
    border-radius: 0;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    position: absolute;
    left: 10px;
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}

/* Петля «поток — объём»: главный образ страницы */
.hero-loop {
    position: absolute;
    right: -6%;
    top: 46%;
    width: min(56vw, 780px);
    transform: translateY(-50%);
    color: rgba(255,255,255,.05);
    pointer-events: none;
}
.hero-axis { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.loop {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: draw 2.4s cubic-bezier(.45,.05,.3,1) forwards;
}
.loop-1 { stroke: var(--sky-light); stroke-width: 4; animation-delay: .1s; }
.loop-2 { stroke: rgba(78,166,230,.45); stroke-width: 2; animation-delay: .35s; }
.loop-3 { stroke: rgba(78,166,230,.22); stroke-width: 2; animation-delay: .6s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; }

.hero-text { max-width: 720px; }

.hero-edition {
    margin: 0 0 20px;
    color: var(--sky-light);
    font-weight: 500;
    font-size: 18px;
}
.hero-edition::before {
    content: "V";
    display: inline-block;
    margin-right: 14px;
    padding: 2px 12px;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    vertical-align: 1px;
}

.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 40px;
}

.hero-facts {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px 48px;
    margin: clamp(56px, 8vw, 96px) 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.2);
}
.fact dt {
    margin-bottom: 4px;
    color: rgba(255,255,255,.6);
    font-size: 14px;
}
.fact dd { margin: 0; font-size: 17px; line-height: 1.45; }
.fact-date dd {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
    color: var(--gold);
}

/* ---------- Секции ---------- */

.section { padding: var(--section) 0; }

.section-title {
    margin: 0 0 40px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
}

/* О конгрессе */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}
.about-text { max-width: 68ch; }
.about-text p { margin: 0 0 1.1em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink); }
.audience {
    margin-top: 1.6em !important;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    color: var(--muted);
}
.audience strong { color: var(--text); }

.organizers {
    position: sticky;
    top: 100px;
    padding: 28px;
    background: var(--frost);
    border-left: 4px solid var(--sky);
}
.organizers h2, .organizers h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}
.organizers ul { margin: 0; padding: 0; list-style: none; }
.organizers li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.45;
}
.organizers li:first-child { border-top: 0; padding-top: 0; }

/* Направления */
.topics { background: var(--frost); }
.topics-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topics-list li {
    position: relative;
    padding: 18px 0 18px 28px;
    border-top: 1px solid var(--line);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--ink);
}
.topics-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 29px;
    width: 14px; height: 2px;
    background: var(--sky);
}

/* Сроки: настоящая последовательность, поэтому таймлайн */
.timeline {
    display: grid;
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 9px;
    height: 2px;
    background: var(--line);
}
.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 40px 24px 0 0;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--closed);
}
.timeline-item.is-open::before { border-color: var(--sky); background: var(--sky); }
.timeline-item.is-event::before { border-color: var(--gold); background: var(--gold); }

.timeline-date {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink);
}
.timeline-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
}
a.timeline-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
a.timeline-title:hover { text-decoration-color: var(--sky); }
.timeline-status { font-size: 14px; color: var(--muted); }
.timeline-item.is-open .timeline-status { color: var(--sky-deep); font-weight: 600; }
.timeline-item.is-closed .timeline-date { color: var(--closed); }

/* Условия участия */
.calls { padding-top: 0; }
.calls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 clamp(32px, 5vw, 72px);
}
.call {
    padding: 36px 0;
    border-top: 2px solid var(--ink);
}

.call h3 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    color: var(--ink);
}
.call h4 {
    margin: 24px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.call p { margin: 0 0 1em; max-width: 62ch; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin: 4px 0; }
.rules li::marker { color: var(--sky); }

.call-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 28px;
}

/* Трансляции (скрыты по умолчанию) */
.streams-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.streams-grid figure { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.streams-grid figcaption { margin-top: 8px; font-weight: 600; }

/* Регистрация */
.cabinet-band {
    background: var(--ink-2);
    color: #fff;
    padding: clamp(48px, 6vw, 72px) 0;
}
.cabinet-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}
.cabinet-band h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 2.6vw, 32px);
}
.cabinet-band p { margin: 0; color: rgba(255,255,255,.78); }
.cabinet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Подвал */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 32px 0;
    font-size: 14px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-inner p { margin: 0; }
.footer-org { color: #fff; font-weight: 600; }
.footer-contacts { display: flex; flex-direction: column; gap: 4px; }
.footer-contacts a { color: #fff; }

/* ---------- Адаптив ---------- */

@media (max-width: 1240px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px var(--gutter) 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(11,39,68,.08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav ul a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--sky-deep); }
    .site-nav .btn-small { min-height: 48px; white-space: nowrap; }
    .nav-account { justify-content: space-between; }

    .about-grid { grid-template-columns: 1fr; }
    .organizers { position: static; }
    .topics-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .hero-loop { width: 120vw; right: -40vw; opacity: .5; }
    .hero-facts { grid-template-columns: 1fr; gap: 20px; }
    .timeline { grid-template-columns: 1fr !important; }
    .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .timeline-item { padding: 0 0 32px 44px; }
    .calls-grid { grid-template-columns: 1fr; }
        .streams-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand span { font-size: 12px; }
    .topics-list { grid-template-columns: 1fr; }
    .lead { font-size: 18px; }
    .hero-actions .btn,
    .call-actions .btn,
    .cabinet-actions .btn { width: 100%; }
}

/* ==========================================================
   Внутренние страницы
   ========================================================== */

.page-intro {
    background: var(--ink);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}
.page-intro h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.015em;
}
.page-intro p { margin: 12px 0 0; color: rgba(255,255,255,.72); }

.narrow { max-width: 820px; }
.narrow-sm { max-width: 480px; }
.intro-text { max-width: 68ch; margin-bottom: 40px; }
.page-actions { margin: 24px 0 40px; }
.section-title-sm { font-size: clamp(22px, 2.4vw, 28px); margin-top: 56px; }

.rich p { margin: 0 0 1.1em; }
.rich h3, .rich h4 { margin: 1.4em 0 .5em; color: var(--ink); font-size: 18px; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-left: 22px; }
.rich li { margin: 4px 0; }
.rich li::marker { color: var(--sky); }
.rich > :last-child { margin-bottom: 0; }
.about-text.rich p:first-child { font-size: 20px; line-height: 1.55; color: var(--ink); }

.more-link { font-weight: 600; }
.status-open { color: var(--sky-deep); }
.status-open::before { background: currentColor; }

.empty-state {
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    background: var(--frost);
    border-radius: var(--radius);
}

.notice {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: #e7f4ec;
    border-left: 4px solid #1d7a46;
    color: #145a33;
}
.notice-error { background: #fbeceb; border-left-color: #b3261e; color: #8f1e18; }

/* Программа */
.day-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.day-nav a {
    padding: 8px 16px;
    border: 2px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.day-nav a:hover { border-color: var(--sky); }
.program-day + .program-day { margin-top: 56px; }
.program-day-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 24px;
    color: var(--ink);
}
.program-list { margin: 0; padding: 0; list-style: none; }
.program-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.program-time { font-weight: 600; color: var(--sky-deep); font-variant-numeric: tabular-nums; }
.program-body h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; color: var(--ink); }
.program-people { margin: 0; color: var(--text); }
.program-place { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Спикеры */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px 32px;
    margin: 0; padding: 0; list-style: none;
}
.person-photo {
    aspect-ratio: 4 / 5;
    margin-bottom: 16px;
    background: var(--frost) url("img/logo.png") center / 40% no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-name { margin: 0 0 4px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.person-regalia { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--sky-deep); }
.person-org, .person-country { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.person-bio { margin-top: 10px; font-size: 15px; }
.person-bio summary { cursor: pointer; color: var(--sky-deep); font-weight: 600; }
.person-bio p { margin: 8px 0 0; }

/* Спонсоры */
.sponsor-group + .sponsor-group { margin-top: 56px; }
.sponsor-level {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--ink);
}
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 0; padding: 0; list-style: none;
}
.sponsor a { display: block; text-decoration: none; color: inherit; }
.sponsor-logo {
    display: grid;
    place-items: center;
    height: 140px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.sponsor a:hover .sponsor-logo { border-color: var(--sky); }
.sponsor-logo img { max-height: 100px; width: auto; object-fit: contain; }
.sponsor-noname { font-weight: 700; color: var(--ink); text-align: center; }
.sponsor-name { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

/* Постеры */
.poster-list { margin: 0; padding: 0; list-style: none; }
.poster-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.poster-item h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); line-height: 1.4; }
.poster-authors { margin: 0; }
.poster-org { margin: 0; font-size: 14px; color: var(--muted); }

/* Оргкомитет */
.org-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0 48px;
    margin: 0; padding: 0; list-style: none;
}
.org-member {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}
.org-photo {
    width: 88px; height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--frost) url("img/logo.png") center / 50% no-repeat;
}
.org-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.org-role { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--sky-deep); }
.org-name { margin: 0 0 4px; font-size: 18px; color: var(--ink); line-height: 1.3; }
.org-position { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Формы ---------- */

.section-form { padding-top: clamp(40px, 5vw, 64px); }
.form-lead { margin: 0 0 24px; }
.form { display: grid; gap: 32px; }
.form-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-group legend {
    margin-bottom: 16px;
    padding: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    color: var(--ink);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); font-size: 14px; }
.field-hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; font-weight: 600; color: #b3261e; }

.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid #b9c8d6;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.form [aria-invalid="true"] { border-color: #b3261e; }

.choice-row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.45; }
.choice-row .choice {
    padding: 12px 18px;
    border: 1.5px solid #b9c8d6;
    border-radius: var(--radius);
    font-weight: 500;
}
.choice-row .choice:has(input:checked) { border-color: var(--sky); background: var(--sky-soft); }
.choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sky); flex-shrink: 0; }
.consent { display: grid; gap: 6px; padding: 18px; background: var(--frost); border-radius: var(--radius); font-size: 15px; }

.btn-wide { width: 100%; }
.form-aside { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.form-aside p { margin: 0 0 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Личный кабинет ---------- */

.cabinet-number { margin: 0 0 8px !important; color: var(--gold) !important; font-weight: 600; }
.cabinet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.cabinet-status {
    padding: 20px 24px;
    background: var(--sky-soft);
    border-left: 4px solid var(--sky);
    border-radius: var(--radius);
}
.cabinet-status h2 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.cabinet-status p { margin: 0; }
.cabinet-block { padding: 40px 0 0; margin-top: 40px; border-top: 1px solid var(--line); }
.cabinet-block > h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    color: var(--ink);
}
.muted { color: var(--muted); }
.cabinet-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.cabinet-side ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.cabinet-side nav a { display: block; padding: 8px 16px; color: var(--text); text-decoration: none; font-weight: 500; }
.cabinet-side nav a:hover { color: var(--sky-deep); }
.streams-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
    .form-grid { grid-template-columns: 1fr; }
    .cabinet-grid { grid-template-columns: 1fr; }
    .cabinet-side { position: static; order: -1; }
    .cabinet-side ul { display: flex; flex-wrap: wrap; border-left: 0; }
    .cabinet-side nav a { padding: 6px 12px 6px 0; }
    .program-item { grid-template-columns: 1fr; gap: 4px; }
    .poster-item { flex-direction: column; align-items: flex-start; }
    .org-list { grid-template-columns: 1fr; }
    .streams-grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .loop { animation: none; stroke-dashoffset: 0; }
}

.hero :focus-visible,
.cabinet-band :focus-visible { outline-color: var(--gold); }
