/* ОМН-2027 · стили сайта. Айдентика «Траектория миссии»: глубокий космос, оранжевый акцент, цвет у каждого направления. */

@font-face { font-family: "Roboto Flex"; src: url("../fonts/RobotoFlex-omn.woff2") format("woff2"); font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/Onest-omn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular-omn.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Medium-omn.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-SemiBold-omn.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --space: #05070D;
  --space-1: #090D18;
  --space-2: #0D1322;
  --space-3: #121A2D;
  --field: #0B111F;
  --line: rgba(184, 196, 219, .15);
  --line-2: rgba(184, 196, 219, .3);
  --ink: #FFFFFF;
  --dust: #B8C4DB;
  --muted: #8D9AB5;
  --orange: #FF6A00;
  --orange-2: #FF8526;
  --blue: #00A6FB;
  --green: #00D18F;
  --violet: #9B7BFF;
  --deep: #0B3D91;
  --danger: #FF6B7A;
  --c: var(--orange);
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --r-card: 22px;
  --r-field: 12px;
  --display: "Roboto Flex", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --header-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--space); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.i18n-pending body { visibility: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--space); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.ico { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--space); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--text); font-size: 17px; font-weight: 600; line-height: 1.15; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; -webkit-tap-highlight-color: transparent; text-align: center; }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--orange); color: var(--space); }
.btn-primary:hover { background: var(--orange-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn-quiet { background: rgba(255, 255, 255, .06); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--space); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--orange); }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(5, 7, 13, .78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-weight: 900; font-stretch: 130%; font-size: 19px; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--dust); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.lang button { min-width: 48px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dust); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .05em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--space); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.header-cta { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 32px)); padding: 10px; border-radius: 18px; background: var(--space-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; gap: 2px; }
.menu-panel a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: rgba(255, 255, 255, .06); }
.menu-panel .btn { margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--dust); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 4px; }
.back-link:hover { color: var(--ink); }
@media (min-width: 1080px) { .header-cta { display: inline-flex; } .menu { display: none; } }
@media (max-width: 1079px) { .nav { display: none; } }
@media (max-width: 420px) { .brand-name { font-size: 16px; } .brand svg { width: 30px; height: 30px; } .header-tools { gap: 8px; } .lang button { min-width: 42px; } }

/* ---------- тестовая панель ---------- */
.testbar { background: repeating-linear-gradient(135deg, #1A1204 0 14px, #140E03 14px 28px); border-bottom: 1px solid rgba(255, 106, 0, .45); color: #FFD9BD; font-size: 14px; }
.testbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 9px; padding-bottom: 9px; }
.testbar b { color: var(--orange-2); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.testbar .tb-group { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.testbar button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 166, 102, .5); background: transparent; color: #FFD9BD; font-size: 13px; cursor: pointer; }
.testbar button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--space); font-weight: 600; }
.testbar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.testbar input { accent-color: var(--orange); width: 16px; height: 16px; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 7vw, 76px) 0 clamp(150px, 20vw, 230px); }
.sky { position: absolute; inset: 0; z-index: -2; background: url("../img/stars.svg") repeat; background-size: 640px 640px; opacity: .85; }
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 85% 0%, rgba(11, 61, 145, .55), transparent 60%), radial-gradient(80% 60% at 0% 10%, rgba(11, 61, 145, .25), transparent 60%); }
.horizon { position: absolute; z-index: -1; left: 50%; bottom: 0; width: max(2600px, 260vw); aspect-ratio: 1; transform: translate(-50%, calc(100% - clamp(84px, 11vw, 150px))); border-radius: 50%;
  background: radial-gradient(circle closest-side, #05070D calc(100% - 420px), #061331 calc(100% - 110px), #0B3D91 calc(100% - 38px), #00A6FB calc(100% - 12px), #DDF3FF calc(100% - 3px), #FFFFFF 100%, transparent calc(100% + 1px));
  box-shadow: 0 0 3px 1px #FFE6CC, 0 0 18px 6px rgba(255, 139, 46, .85), 0 0 70px 26px rgba(255, 106, 0, .55), 0 0 160px 60px rgba(255, 106, 0, .22); }
/* планета плавно уходит в темноту, без резкой границы со следующим разделом */
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(56px, 7vw, 110px); pointer-events: none; background: linear-gradient(to bottom, rgba(5, 7, 13, 0), rgba(5, 7, 13, .55) 45%, #05070D); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero-credits { font-size: 13px; font-weight: 500; color: var(--dust); }
.hero-credits b { color: var(--ink); font-weight: 600; }
.hero-title { margin-top: 26px; font-family: var(--display); text-transform: uppercase; }
.hero-title .t { display: block; font-weight: 900; font-stretch: 151%; font-size: clamp(30px, 8.6vw, 92px); line-height: .97; letter-spacing: -.012em; }
.lang-kk .hero-title .t { font-size: clamp(25px, 6.9vw, 74px); }
.year { position: relative; z-index: 1; display: block; margin-top: .06em; margin-left: -.02em; font-weight: 1000; font-stretch: 140%; font-size: clamp(98px, 26vw, 232px); line-height: .86; letter-spacing: -.02em; white-space: nowrap; }
.year .zero { position: relative; display: inline-block; margin: 0 .06em; }
.year .zero svg { position: absolute; left: .434em; top: .41em; width: 1.3em; height: .5em; transform: translate(-50%, -50%); overflow: visible; max-width: none; }
.year .zero .orbit-back { z-index: -1; }
.year .zero .orbit-front { z-index: 2; }
.year .num { position: relative; z-index: 1; }
.hero-lead { margin-top: 28px; max-width: 36em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--dust); }
.hero-lead b { color: var(--ink); font-weight: 600; }
.pill { margin-top: 26px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 24px 12px 20px; border-radius: 999px; background: var(--orange); color: var(--space); max-width: 100%; }
.pill .mono { font-size: 12px; font-weight: 600; line-height: 1.25; letter-spacing: .05em; }
.pill .dates { font-family: var(--display); font-weight: 900; font-stretch: 122%; font-size: clamp(22px, 3.4vw, 36px); line-height: 1; white-space: nowrap; }
.phase-note { margin-top: 16px; display: flex; align-items: flex-start; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); min-height: 1.5em; }
.phase-note::before { content: ""; width: 10px; height: 10px; margin-top: calc(.75em - 5px); border-radius: 50%; background: var(--muted); flex: none; }
.phase-note[data-phase="open"]::before { background: var(--green); box-shadow: 0 0 0 4px rgba(0, 209, 143, .2); }
.phase-note[data-phase="before"]::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(0, 166, 251, .2); }
.phase-note[data-phase="closed"]::before { background: var(--danger); }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; font-size: 12.5px; font-weight: 500; color: var(--dust); line-height: 1.7; }
@media (max-width: 559px) {
  .hero-actions .btn { flex: 1 1 100%; }
  /* на телефоне: подпись над датами, даты одной строкой и всегда помещаются */
  .pill { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 12px 18px 14px; border-radius: 20px; }
  .pill .mono br { display: none; }
  .pill .dates { font-size: min(30px, calc((100vw - 2 * var(--pad) - 40px) / 14)); }
}
.nw { white-space: nowrap; }

/* траектория направлений (как на афише) */
.trajectory { display: none; }
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: end; gap: 56px; }
  .hero-title .t { font-size: min(82px, 5.7vw); white-space: nowrap; }
  .lang-kk .hero-title .t { font-size: min(66px, 4.6vw); }
  .year { font-size: min(190px, 13.2vw); }
  /* компактнее по высоте: кнопки «Подать заявку» и «Положение» видны без прокрутки на экране ноутбука */
  .hero { padding-top: 44px; }
  .hero-title { margin-top: 18px; }
  .hero-lead { margin-top: 22px; }
  .pill { margin-top: 22px; }
  .phase-note { margin-top: 12px; }
  .hero-actions { margin-top: 18px; }
  .hero-meta { margin-top: 18px; }
  .trajectory { display: block; position: relative; margin-bottom: -6px; }
  .trajectory::before { content: ""; position: absolute; left: 25px; top: -40px; bottom: -150px; width: 2px; background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85) 22%, rgba(255, 255, 255, .55) 86%, rgba(255, 255, 255, 0)); }
  .traj-node { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 0; text-decoration: none; }
  .traj-node + .traj-node { margin-top: 14px; }
  .traj-node .dot { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--c); background: var(--space); color: var(--c); display: grid; place-items: center; position: relative; z-index: 1; transition: background-color .15s; }
  .traj-node .dot svg { width: 28px; height: 28px; }
  .traj-node .nm { display: block; font-family: var(--display); font-weight: 850; font-stretch: 120%; font-size: 20px; line-height: 1.08; text-transform: uppercase; white-space: nowrap; }
  .traj-node .ds { display: block; margin-top: 5px; font-size: 15px; line-height: 1.35; color: var(--dust); }
  .traj-node .tg { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c); line-height: 1.4; }
  .traj-node:hover .dot { background: color-mix(in srgb, var(--c) 18%, var(--space)); }
  .traj-node:hover .nm { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 4px; text-decoration-thickness: 2px; }
}

/* ---------- разделы ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.eyebrow span { color: var(--dust); font-weight: 500; }
.h2 { margin-top: 14px; font-family: var(--display); font-weight: 900; font-stretch: 132%; font-size: clamp(30px, 5vw, 56px); line-height: 1; text-transform: uppercase; letter-spacing: -.005em; max-width: 18em; }
.lang-kk .h2 { font-size: clamp(27px, 4.4vw, 50px); }
.lead { margin-top: 18px; max-width: 46em; color: var(--dust); font-size: clamp(17px, 1.6vw, 19px); }
.lead b { color: var(--ink); font-weight: 600; }

/* карточки направлений */
.dirs { margin-top: 44px; display: grid; gap: 18px; }
@media (min-width: 860px) { .dirs { grid-template-columns: 1fr 1fr; gap: 22px; } }
.dir { --c: var(--orange); position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--space-2)), var(--space-1) 46%); border: 1px solid color-mix(in srgb, var(--c) 34%, transparent); padding: clamp(22px, 3vw, 32px); scroll-margin-top: calc(var(--header-h) + 16px); transition: border-color .2s, box-shadow .2s; }
.dir.is-target { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
[data-section="ai-startup"] { --c: var(--green); }
[data-section="rocket-science"] { --c: var(--orange); }
[data-section="ai-drone"] { --c: var(--violet); }
[data-section="satellite-launch"] { --c: var(--blue); }
.dir-head { display: flex; align-items: center; gap: 16px; }
.dir-ico { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--c); color: var(--c); display: grid; place-items: center; flex: none; }
.dir-ico svg { width: 34px; height: 34px; }
.dir-name { font-family: var(--display); font-weight: 900; font-stretch: 128%; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.02; text-transform: uppercase; }
.dir-tag { margin-top: 5px; font-size: 16px; color: var(--c); font-weight: 600; }
.dir-what { margin-top: 20px; font-size: 17px; line-height: 1.55; }
.facts { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--dust); }
.facts dd b { color: var(--ink); font-weight: 600; }
@media (max-width: 479px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.dir .btn { margin-top: 24px; align-self: flex-start; background: var(--c); color: var(--space); }
.dir .btn:hover { filter: brightness(1.1); }
@media (max-width: 559px) { .dir .btn { align-self: stretch; } }

/* главное различие: регистрация ≠ сдача работ */
.callout { margin-top: 36px; display: grid; gap: 16px; grid-template-columns: auto 1fr; align-items: start; padding: 22px 24px; border-radius: 18px; border: 1.5px solid var(--orange); background: rgba(255, 106, 0, .08); }
.callout .ico { width: 28px; height: 28px; color: var(--orange); margin-top: 2px; }
.callout p { font-size: 17px; }
.callout p + p { margin-top: 6px; color: var(--dust); font-size: 16px; }
.callout b { font-weight: 700; }

/* календарь */
.timeline { margin-top: 40px; list-style: none; display: grid; gap: 0; counter-reset: st; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 30px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step .n { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--dust); background: var(--space); position: relative; z-index: 1; }
.step .when { font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.1; text-transform: uppercase; }
.step .what { margin-top: 4px; font-weight: 600; font-size: 17px; }
.step .how { margin-top: 6px; color: var(--dust); font-size: 15.5px; max-width: 34em; }
.step .badge { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: var(--space); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 4px; }
.step.is-now .n { border-color: var(--orange); background: var(--orange); color: var(--space); }
.step.is-reg .what { color: var(--ink); }
.step.is-work .n { border-color: var(--blue); color: var(--blue); }
@media (min-width: 1080px) {
  /* пять колонок как таблица: кружки, даты, названия и описания стоят на одних линиях,
     даже если одна дата в две строки, а другая в одну */
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); gap: 0 22px; }
  .step { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; align-content: start; grid-row: span 4; grid-template-rows: subgrid; }
  .step > div { grid-row: span 3; display: grid; grid-template-rows: subgrid; gap: 0; }
  .step .n { margin-bottom: 16px; }
  .step::before { left: 44px; right: -22px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .step .badge { margin: 8px 0 0; display: table; }
}

/* условия */
.cond-grid { margin-top: 44px; display: grid; gap: 18px; }
@media (min-width: 860px) { .cond-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1180px) { .cond-grid { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: var(--r-card); background: var(--space-2); border: 1px solid var(--line); padding: 24px 24px 26px; }
.card h3 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: 21px; line-height: 1.15; text-transform: uppercase; }
.card h3 .ico { color: var(--orange); width: 24px; height: 24px; }
.card p, .card li { margin-top: 10px; color: var(--dust); font-size: 16px; line-height: 1.55; }
.card ul { list-style: none; }
.card li { position: relative; padding-left: 18px; margin-top: 8px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.card b { color: var(--ink); font-weight: 600; }
.card.wide { grid-column: 1 / -1; }

.teams { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 15.5px; }
.teams th, .teams td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.teams th { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.teams td { color: var(--dust); }
.teams td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.teams td:first-child i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 9px; vertical-align: 1px; }
@media (max-width: 559px) { .teams { font-size: 14.5px; } .teams td:first-child { white-space: normal; } }

/* вопросы */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s; color: var(--orange); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; color: var(--dust); max-width: 46em; }

/* документы */
.docs { margin-top: 40px; display: grid; gap: 14px; }
@media (min-width: 860px) { .docs { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.doc { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 22px; border-radius: 18px; background: var(--space-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background-color .15s; }
.doc:hover { border-color: var(--orange); background: var(--space-3); }
.doc .ico { width: 38px; height: 38px; color: var(--orange); }
.doc b { display: block; font-size: 17px; font-weight: 600; }
.doc span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.note { margin-top: 22px; color: var(--dust); font-size: 15.5px; max-width: 52em; }
.note + .note { margin-top: 8px; }

/* организаторы и контакты */
.orgs { margin-top: 40px; display: grid; gap: 18px; }
@media (min-width: 860px) { .orgs { grid-template-columns: 1fr 1fr; gap: 22px; } }
.org { padding: 26px; border-radius: var(--r-card); background: var(--space-2); border: 1px solid var(--line); }
.org img { height: 48px; width: auto; }
.org h3 { margin-top: 20px; font-weight: 700; font-size: 18px; }
.org p { margin-top: 8px; color: var(--dust); font-size: 15.5px; }
.contacts { margin-top: 22px; display: grid; gap: 18px; }
@media (min-width: 860px) { .contacts { grid-template-columns: 1fr 1fr; gap: 22px; } }
.contacts .card ul { margin-top: 6px; }
.contacts .card li { padding-left: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-top: 10px; }
.contacts .card li::before { display: none; }
.contacts .card li:last-child { border-bottom: 0; padding-bottom: 0; }
.contacts a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.contacts a:hover { color: var(--orange-2); }
.contacts a .ico { width: 18px; height: 18px; color: var(--orange); }

/* подвал */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: grid; gap: 26px; }
.foot-logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.foot-logos img { height: 34px; width: auto; }
.foot-logos .div { width: 1.5px; height: 34px; background: rgba(255, 255, 255, .3); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
.foot-row a { color: var(--dust); }

/* липкая кнопка на телефоне */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #05070D 62%, rgba(5, 7, 13, 0)); transform: translateY(110%); transition: transform .25s; }
.sticky-cta.is-on { transform: none; }
.sticky-cta { display: flex; gap: 10px; }
.sticky-cta .btn { padding-left: 16px; padding-right: 16px; gap: 8px; font-size: 16px; white-space: nowrap; }
.sticky-cta .btn-primary { flex: 1 1 auto; }
.sticky-cta .btn-ghost { flex: none; background-color: var(--space); }
@media (max-width: 369px) { .sticky-cta .btn-ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (min-width: 860px) { .sticky-cta { display: none; } }

/* ---------- регистрация ---------- */
.reg-main { padding: clamp(28px, 5vw, 56px) 0 120px; }
.reg-wrap { max-width: 800px; margin: 0 auto; padding: 0 var(--pad); }
.reg-title { font-family: var(--display); font-weight: 900; font-stretch: 130%; font-size: clamp(30px, 5vw, 48px); line-height: 1; text-transform: uppercase; }
.reg-sub { margin-top: 12px; color: var(--dust); }
.progress { margin-top: 30px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.progress li { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-2); }
.progress li.is-done::before { background: color-mix(in srgb, var(--orange) 60%, transparent); }
.progress li.is-current { color: var(--ink); font-weight: 600; }
.progress li.is-current::before { background: var(--orange); }
.progress .pn { font-family: var(--mono); color: inherit; }
.progress-cap { display: none; }
/* на телефоне: только полоски, а под ними одна подпись «Шаг 2 из 4 · Команда»;
   названия шагов остаются в списке для экранного диктора */
@media (max-width: 559px) {
  .progress li > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .progress-cap { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
  .progress-cap span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
  .progress-cap b { color: var(--ink); font-weight: 600; }
}

.panel { margin-top: 26px; border-radius: var(--r-card); background: var(--space-1); border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px); }
.panel + .panel { margin-top: 18px; }
.panel-title { font-family: var(--display); font-weight: 850; font-stretch: 120%; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.1; text-transform: uppercase; }
.panel-sub { margin-top: 8px; color: var(--dust); font-size: 16px; }
.panel-sub b { color: var(--ink); }

.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset + .fieldset { margin-top: 30px; }
.legend { padding: 0; font-weight: 700; font-size: 18px; }
.legend-hint { margin-top: 4px; color: var(--muted); font-size: 15px; }

.choices { margin-top: 16px; display: grid; gap: 12px; }
@media (min-width: 640px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .box { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--field); transition: border-color .15s, background-color .15s; height: 100%; }
.choice .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; }
.choice .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.choice .ci { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--c); color: var(--c); display: grid; place-items: center; }
.choice .ci svg { width: 24px; height: 24px; }
.choice .ct { display: block; font-weight: 700; font-size: 17px; line-height: 1.25; }
.choice .cd { display: block; margin-top: 3px; color: var(--dust); font-size: 15px; line-height: 1.45; }
.choice .cm { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.choice:hover .box { border-color: rgba(255, 255, 255, .5); }
.choice input:checked + .box { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--field)); }
.choice input:checked + .box .radio { border-color: var(--c); }
.choice input:checked + .box .radio::after { background: var(--c); }
.choice input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 2px; }
.choices.sections .box { grid-template-columns: auto 1fr auto; align-items: center; }
.choices.is-invalid .box { border-color: color-mix(in srgb, var(--danger) 70%, transparent); }

.grid { display: grid; gap: 16px 18px; margin-top: 18px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } .span-2 { grid-column: span 2; } .grid.three .span-2 { grid-column: span 2; } }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > label, .field .label { font-size: 15px; font-weight: 600; color: var(--dust); }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-field); border: 1.5px solid var(--line-2); background: var(--field); color: var(--ink); font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8C4DB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.input::placeholder { color: #66728C; }
.input:hover, .select:hover { border-color: rgba(255, 255, 255, .5); }
.input:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .28); }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--danger); }
.field.is-invalid .input:focus, .field.is-invalid .select:focus { box-shadow: 0 0 0 3px rgba(255, 107, 122, .28); }
.hint { color: var(--muted); font-size: 14px; line-height: 1.45; }
.err { display: none; align-items: flex-start; gap: 7px; color: var(--danger); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.err .ico { width: 17px; height: 17px; margin-top: 1px; }
.is-invalid > .err, .is-invalid > .msgs > .err, .err.is-on { display: flex; }
/* подсказки и ошибки под полем; в рядах из 2–3 полей поля ввода стоят на одной линии, даже если подпись переносится */
.msgs { display: contents; }
@media (min-width: 640px) {
  .grid.two, .grid.three { row-gap: 7px; }
  .grid.two > .field, .grid.three > .field { grid-row: span 3; grid-template-rows: subgrid; }
  .grid.two > .field > label, .grid.three > .field > label { align-self: end; }
  .grid.two > .field > .msgs, .grid.three > .field > .msgs { display: grid; gap: 7px; align-content: start; margin-bottom: 9px; }
}
.warn { display: flex; gap: 8px; color: #FFC58F; font-size: 14px; line-height: 1.4; }
.warn .ico { width: 17px; height: 17px; margin-top: 1px; color: var(--orange-2); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; cursor: pointer; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); }
.check + .check { margin-top: 10px; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--space); border-bottom: 2.5px solid var(--space); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.check span { font-size: 15.5px; line-height: 1.5; color: var(--dust); }
.check span b { color: var(--ink); font-weight: 600; }
.check.is-invalid { border-color: var(--danger); }
.check-wrap .err { margin-top: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15.5px; color: var(--dust); margin-top: 14px; }
.toggle input { width: 20px; height: 20px; accent-color: var(--orange); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--field); margin-top: 12px; }
.seg button { min-width: 64px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--dust); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--space); }

.person { margin-top: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--space-2); padding: clamp(16px, 3vw, 24px); }
.person-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.person-head h3 { font-family: var(--display); font-weight: 850; font-stretch: 118%; font-size: 19px; text-transform: uppercase; }
.person-head .tag { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.add-person { margin-top: 16px; width: 100%; min-height: 56px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--ink); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.add-person:hover { border-color: var(--orange); color: var(--orange-2); }
.remove-person { border: 0; background: transparent; color: var(--dust); display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; cursor: pointer; padding: 6px; border-radius: 8px; }
.remove-person:hover { color: var(--danger); }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 166, 251, .08); border: 1px solid rgba(0, 166, 251, .35); font-size: 15.5px; color: var(--dust); }
.notice .ico { color: var(--blue); margin-top: 2px; }
.notice b { color: var(--ink); }
.notice.orange { background: rgba(255, 106, 0, .08); border-color: rgba(255, 106, 0, .45); }
.notice.orange .ico { color: var(--orange); }
.notice.danger { background: rgba(255, 107, 122, .08); border-color: rgba(255, 107, 122, .5); }
.notice.danger .ico { color: var(--danger); }

.errbox { margin-top: 22px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--danger); background: rgba(255, 107, 122, .08); }
.errbox h3 { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 17px; }
.errbox h3 .ico { color: var(--danger); }
.errbox p { margin-top: 6px; color: var(--dust); font-size: 15.5px; }
.errbox ul { margin-top: 8px; list-style: none; display: grid; gap: 4px; }
.errbox li a { color: var(--ink); font-size: 15.5px; }
.errbox .btn { margin-top: 14px; }

.form-nav { margin-top: 26px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.form-nav .btn-primary { margin-left: auto; min-width: 180px; }
@media (max-width: 559px) {
  .form-nav { position: sticky; bottom: 0; z-index: 20; margin: 22px calc(-1 * var(--pad)) 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #05070D 70%, rgba(5, 7, 13, 0)); }
  .form-nav .btn { flex: 1; min-width: 0; padding: 0 16px; }
  .form-nav .btn-quiet { background-color: #14161C; } /* непрозрачный вариант, чтобы поля не просвечивали */
  .form-nav .btn-primary { flex: 2; }
}

.summary { margin-top: 8px; display: grid; gap: 14px; }
.sum-block { border-radius: 16px; border: 1px solid var(--line-2); background: var(--space-2); padding: 16px 18px; }
.sum-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sum-head h3 { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sum-edit { border: 0; background: transparent; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; font-size: 14.5px; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.sum-edit:hover { color: var(--orange-2); }
.sum-edit .ico { width: 16px; height: 16px; }
.sum-body { margin-top: 8px; display: grid; gap: 4px; font-size: 16px; }
.sum-body .muted, .sum-people .muted { color: var(--dust); font-size: 15px; }
.sum-people { margin-top: 6px; list-style: none; display: grid; gap: 8px; counter-reset: p; }
.sum-people li { padding-top: 8px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.sum-people li:first-child { border-top: 0; padding-top: 0; }

/* состояния до открытия и после закрытия */
.state { text-align: left; }
.state .big { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; text-transform: uppercase; }
.state .big em { font-style: normal; color: var(--orange); }
.state .panel-sub { font-size: 17px; }
.prep { margin-top: 18px; list-style: none; display: grid; gap: 10px; }
.prep li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--dust); }
.prep li .ico { color: var(--green); width: 20px; height: 20px; margin-top: 3px; }
.prep li b { color: var(--ink); }
.state-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* подтверждение */
.done { text-align: left; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--space); display: grid; place-items: center; }
.done-mark .ico { width: 34px; height: 34px; }
.done h2, .done .reg-title { margin-top: 18px; }
.ticket { margin-top: 24px; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--space-2)), var(--space-2) 60%); }
.ticket-top { padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: flex-end; justify-content: space-between; border-bottom: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent); }
.ticket .lbl { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ticket .num { font-family: var(--display); font-weight: 1000; font-stretch: 130%; font-size: clamp(40px, 8vw, 64px); line-height: 1; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.ticket-body { padding: 18px 24px 22px; display: grid; gap: 12px; }
@media (min-width: 640px) { .ticket-body { grid-template-columns: 1fr 1fr; } }
.ticket-body div b { display: block; margin-top: 2px; font-weight: 600; }
.next-steps { margin-top: 26px; list-style: none; display: grid; gap: 12px; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--dust); }
.next-steps li span.n { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ink); }
.next-steps b { color: var(--ink); }
.dup-note { margin-top: 14px; }

.loading { padding: 60px 0; display: grid; place-items: center; color: var(--muted); gap: 14px; }
.loading::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--orange); animation: spin .8s linear infinite; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* печать подтверждения */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .testbar, .site-footer, .progress, .progress-cap, .form-nav, .state-actions, .no-print, .sticky-cta { display: none !important; }
  .panel, .ticket, .sum-block { border-color: #999 !important; background: #fff !important; color: #000 !important; }
  .ticket .num, .ticket-body b, .reg-title, .panel-title, .next-steps b { color: #000 !important; }
  .ticket .lbl, .next-steps li, .panel-sub { color: #333 !important; }
  .done-mark { background: #000; color: #fff; }
}

/* 404 */
.nf { min-height: 70vh; display: grid; align-content: center; gap: 18px; }

/* дополнения формы */
.fieldset-gap { height: 26px; }
.next-title { margin-top: 32px; }
.consents { margin-top: 12px; display: grid; gap: 10px; }
.check-wrap.is-invalid .check { border-color: var(--danger); }
.check-wrap .check + .err { margin-top: 6px; }
.fieldset.is-invalid .choice .box { border-color: color-mix(in srgb, var(--danger) 75%, transparent); }
.fieldset > .err { margin-top: 10px; }
.school-block + .toggle { margin-top: 16px; }
.ticket-body .lbl { display: block; }
.reg-wrap > .back-link { margin-bottom: 14px; margin-left: -4px; }
.notice p { margin: 0; }
.notice + .fieldset-gap { height: 22px; }
#err-summary .errbox { margin-top: 24px; margin-bottom: 0; }
#err-summary:empty { display: none; }
.form-nav > span:empty { display: block; }

/* приём заявок завершён: кнопки «Подать заявку» на главной не показываются */
html[data-reg-phase="closed"] a[data-reg-link] { display: none !important; }
