/* Сборы по грэпплингу — вёрстка по макету «Вариант B — Енисей (светлый)» */
:root {
  --bg: #F2F5F8;
  --white: #FFFFFF;
  --ink: #0C1B2E;
  --navy: #14263D;
  --muted: #4A5A6E;
  --muted-dark: #A9B7C9;
  --on-dark: #D5DEEA;
  --primary: #1450D2;
  --primary-hover: #0C3A9E;
  --soft: #EAF0FD;
  --accent: #F5A524;
  --amber-bg: #FDF1DC;
  --amber-ink: #7A4B00;
  --line: #CBD5E0;
  --line-soft: #D8E0E8;
  --row: #E4EAF1;
  --ph-border: #9AAABD;
  --ph-bg: #E4EAF1;
  --footer-line: #1F3553;
  --f-head: Unbounded, sans-serif;
  --f-body: 'Golos Text', system-ui, sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); min-height: 100vh; }
img, svg { max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid rgba(20, 80, 210, .45); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--white); border-radius: 12px; }
.skip:focus { left: 8px; }

/* placeholders */
.ph { border: 1.5px dashed var(--ph-border); background: var(--ph-bg); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; font: 500 14px/1.4 var(--f-body); padding: 8px; }
.ph--on-dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: var(--white); }

/* type */
.h2 { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.h2--apply { font-size: clamp(34px, 4vw, 52px); }
.h3 { margin: 0; font-family: var(--f-head); font-size: 19px; font-weight: 600; }
.h3--md { font-size: 22px; }
.h3--lg { font-size: 26px; }
.h3--sent { font-size: 24px; }
.h4 { margin: 0; font-family: var(--f-head); font-size: 18px; font-weight: 600; }
.muted { font-size: 15px; line-height: 1.5; color: var(--muted); }
.muted-sm { font-size: 14px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px var(--f-body); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-hover); color: var(--white); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--soft); color: var(--ink); }
.btn--ghost { padding: 0 28px; border: 1px solid rgba(255,255,255,.45); color: var(--white); font-weight: 500; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn--outline { padding: 0 20px; border: 1px solid var(--line); color: var(--primary); background: transparent; }
.btn--outline:hover { border-color: var(--primary); }
.btn--soft { padding: 0 20px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.btn--submit { min-height: 56px; font-size: 17px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* layout */
.container { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.section { padding: 96px var(--gutter); }
.section--first { padding-top: 120px; }
.section--tight-top { padding-top: 0; }
.section--white { background: var(--white); }
.section--faq { padding-top: 24px; }
.grid { display: grid; gap: 20px; }
.grid--200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--gap16 { gap: 16px; }

.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec-head--sm { gap: 16px; }
.sec-head--stack { flex-direction: column; align-items: flex-start; gap: 14px; }
.sec-head__stack { display: flex; flex-direction: column; gap: 12px; }
.sec-head__lead { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.sec-head__lead--sm { max-width: 460px; font-size: 16px; }
.sec-head__lead--wide { max-width: 620px; }
.sec-head__lead--520 { max-width: 520px; }

/* header */
.header { position: relative; z-index: 20; }
.header__in { max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__logo { width: 44px; height: 44px; flex: none; border-radius: 12px; font-size: 10px; gap: 0; padding: 0; }
.brand__name { font-family: var(--f-head); font-weight: 600; font-size: 14px; line-height: 1.25; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--primary); }
.nav__cta { display: none; }
.burger { display: none; }

/* hero */
.hero-wrap { padding: 8px 20px 0; }
.hero { max-width: 1400px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); color: var(--white); }
.hero__frame { position: absolute; inset: 16px; border: 1.5px dashed rgba(255,255,255,.28); border-radius: 22px; }
.hero__note { position: absolute; top: 32px; right: 32px; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(12,27,46,.6); font-size: 13px; line-height: 1.35; color: var(--on-dark); }
.hero__note svg { flex: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,27,46,.94) 0%, rgba(12,27,46,.72) 42%, rgba(12,27,46,.18) 100%); }
.hero__relief { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; pointer-events: none; }
.hero__body { position: relative; min-height: 600px; padding: clamp(104px, 10vw, 144px) clamp(24px, 4vw, 56px) 128px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }
.hero__kicker { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero__title { margin: 0; max-width: 820px; font-family: var(--f-head); font-weight: 700; font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -.025em; }
.hero__lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--on-dark); }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.hero__geo { font-size: 14px; letter-spacing: .08em; color: var(--muted-dark); }

/* facts */
.facts-wrap { padding: 0 var(--gutter); margin-top: -56px; position: relative; }
.facts { max-width: 1160px; margin: 0 auto; padding: 12px; background: var(--white); border-radius: 24px; box-shadow: 0 12px 40px rgba(12,27,46,.10); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fact { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.fact--hl { border-radius: 16px; background: var(--soft); }
.fact__k { font-size: 14px; color: var(--muted); }
.fact__v { font-family: var(--f-head); font-size: 19px; font-weight: 600; }
.fact__v--primary { color: var(--primary); }
.fact__sub { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* cards */
.card { padding: 12px; background: var(--white); border-radius: 24px; display: flex; flex-direction: column; gap: 16px; }
.card__photo { border-radius: 16px; }
.card__photo--square { aspect-ratio: 1 / 1; }
.card__photo--portrait { aspect-ratio: 3 / 4; }
.card__body { padding: 0 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.card__body--gap8 { gap: 8px; }
.card__tel { font-size: 15px; font-weight: 500; text-decoration: none; }
.tag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 14px; font-weight: 600; }
.tag--amber { background: var(--amber-bg); color: var(--amber-ink); font-size: 13px; }

/* organizers */
.orgs { display: flex; flex-wrap: wrap; gap: 20px; }
.org-main { flex: 2 1 560px; min-width: 0; padding: 36px; background: var(--primary); color: var(--white); border-radius: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.org-main__logo { width: 120px; height: 120px; flex: none; border-radius: 24px; }
.org-main__text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.org-main__k { font-size: 14px; color: #D5E2FF; }
.org-main__title { margin: 0; font-family: var(--f-head); font-size: 24px; font-weight: 600; line-height: 1.25; }
.org-main__p { margin: 0; font-size: 16px; line-height: 1.55; color: #E6EDFF; }
.org-co { flex: 1 1 280px; min-width: 0; padding: 28px; background: var(--white); border-radius: 28px; display: flex; flex-direction: column; gap: 18px; }
.org-co__logo { width: 88px; height: 88px; border-radius: 20px; font-size: 12px; }
.committee { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }

/* participants */
.req { padding: 28px; background: var(--bg); border-radius: 24px; display: flex; flex-direction: column; gap: 14px; }
.req svg { color: var(--primary); }
.req__p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.roster { padding: 28px; border: 1px solid var(--line-soft); border-radius: 24px; display: flex; flex-direction: column; gap: 18px; }
.roster__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.table th { padding: 12px 16px; font-weight: 500; text-align: left; color: var(--muted); }
.table td { padding: 14px 16px; }
.table tbody tr { border-top: 1px solid var(--row); }
.table td:first-child { color: var(--muted); }

/* apply */
.apply-wrap { padding: 96px 20px; }
.apply { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 56px); background: var(--ink); border-radius: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: start; }
.apply__info { display: flex; flex-direction: column; gap: 20px; color: var(--white); }
.apply__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.step { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--on-dark); }
.step__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.apply__card { padding: 32px; background: var(--white); border-radius: 24px; }

.waitlist { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; padding: 16px 18px; border-radius: 16px; background: var(--amber-bg); color: var(--amber-ink); font-size: 15px; line-height: 1.5; }
.waitlist svg { flex: none; margin-top: 1px; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.fld--full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 8px; font: 500 14px/1.3 var(--f-body); color: var(--ink); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font: 400 16px/1.4 var(--f-body); }
.fld select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A5A6E' 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; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid rgba(20,80,210,.25); border-color: var(--primary); background-color: var(--white); }
.fld input[aria-invalid="true"], .fld textarea[aria-invalid="true"] { border-color: #C2272D; }
.fld-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.fld-set legend { padding: 0; margin-bottom: 10px; font: 500 14px var(--f-body); color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font: 500 15px var(--f-body); color: var(--ink); cursor: pointer; background: var(--bg); }
.pill:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.pill input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.consent { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #9B1C22; font-size: 15px; line-height: 1.45; }

.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 0; }
.sent svg { color: var(--primary); }
.sent__p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* faq */
.faq { flex-direction: row; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.faq__head { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.faq__list { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qa { padding: 0 24px; background: var(--white); border-radius: 20px; }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 12px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa .chev { flex: none; color: var(--primary); transition: transform .2s; }
.qa[open] .chev { transform: rotate(180deg); }
.qa p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* partners */
.partners-wrap { padding: 0 20px 112px; }
.partners { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 56px); background: var(--white); border-radius: 32px; display: flex; flex-direction: column; gap: 36px; }
.partners__group { display: flex; flex-direction: column; gap: 14px; }
.partners__k { font-size: 14px; font-weight: 600; color: var(--muted); }
.partners__general { height: 160px; border-radius: 24px; }
.partners__logo { height: 112px; border-radius: 20px; }

/* footer */
.footer { background: var(--ink); color: var(--white); }
.footer__ridge { display: block; width: 100%; height: 60px; background: var(--bg); fill: var(--ink); }
.footer__in { max-width: 1280px; margin: 0 auto; padding: 48px var(--gutter) 40px; display: flex; flex-direction: column; gap: 48px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; }
.footer__col--brand { gap: 16px; }
.footer__col a { color: var(--white); text-decoration: none; }
.footer__col a:hover { color: var(--accent); }
.footer__logo { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); color: var(--ph-bg); font-size: 10px; padding: 0; }
.footer__name { font-family: var(--f-head); font-size: 17px; font-weight: 600; line-height: 1.3; }
.footer__k { font-size: 14px; color: var(--muted-dark); }
.footer__muted { font-size: 15px; color: var(--muted-dark); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--footer-line); font-size: 14px; color: var(--muted-dark); }
.footer__bottom a { color: var(--muted-dark); }
.footer__bottom a:hover { color: var(--white); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .header__in { flex-wrap: nowrap; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: var(--white); border-radius: 20px; box-shadow: 0 12px 40px rgba(12,27,46,.16); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 16px; border-radius: 12px; font-size: 17px; }
  .nav a:not(.btn):hover { background: var(--bg); }
  .nav__cta { display: inline-flex; margin: 8px 8px 8px; min-height: 52px; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .header__in { padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .header__cta { display: none; }
  .brand__name { font-size: 12px; }
  .brand__logo { width: 40px; height: 40px; }

  .hero-wrap { padding: 4px 8px 0; }
  .hero { border-radius: 24px; }
  .hero__frame { inset: 10px; border-radius: 16px; }
  .hero__note { top: 20px; left: 20px; right: 20px; font-size: 12px; padding: 8px 12px; }
  .hero__body { min-height: 0; padding: 120px 22px 104px; gap: 20px; }
  .hero__kicker { font-size: 12px; letter-spacing: .1em; }
  .hero__lead { font-size: 17px; }
  .hero__bottom .btn-row { width: 100%; }
  .hero__bottom .btn { flex: 1 1 200px; }
  .hero__geo { font-size: 12px; }

  .facts-wrap { margin-top: -64px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; border-radius: 20px; }
  .fact { padding: 14px 14px; }
  .fact__v { font-size: 16px; }
  .fact--hl { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .fact--hl .fact__v { font-size: 22px; }
  .fact--hl .fact__sub { flex-basis: 100%; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--first { padding-top: 72px; }
  .section--tight-top { padding-top: 0; }
  .section--faq { padding-top: 8px; }
  .container { gap: 28px; }
  .h3--lg { font-size: 22px; }

  .grid--280, .grid--260 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 8px; border-radius: 18px; gap: 12px; }
  .card__body { padding: 0 6px 8px; }
  .card .h3, .card .h4 { font-size: 15px; line-height: 1.25; }
  .card .tag { font-size: 12px; }
  .card .muted { font-size: 13px; }
  .card__tel { font-size: 13px; }

  .org-main { padding: 24px; gap: 20px; border-radius: 22px; }
  .org-main__logo { width: 88px; height: 88px; }
  .org-main__title { font-size: 19px; }
  .org-co { padding: 22px; border-radius: 22px; }

  .req { padding: 22px; }
  .roster { padding: 18px; }
  .table { min-width: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tbody tr { padding: 12px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; }
  .table td { padding: 0; font-size: 14px; color: var(--muted); }
  .table td:first-child { grid-row: span 4; font-weight: 600; }
  .table td:nth-child(2) { color: var(--ink); font-weight: 600; font-size: 15px; }
  .table td:nth-child(n+3)::before { content: attr(data-label) ": "; }

  .apply-wrap { padding: 56px 8px; }
  .apply { padding: 32px 16px 16px; border-radius: 24px; gap: 28px; }
  .apply__card { padding: 20px 16px; border-radius: 18px; }

  .qa { padding: 0 18px; border-radius: 16px; }
  .qa summary { font-size: 16px; min-height: 60px; }

  .partners-wrap { padding: 0 8px 72px; }
  .partners { padding: 32px 16px; border-radius: 24px; gap: 28px; }
  .partners__general { height: 120px; }
  .grid--200 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partners__logo { height: 88px; }
}
