/* ШОЯКШО FILMHOUSE — сайт, напрям «Темна зала».
   Кольори й шрифти — з brand/tokens.css (бренд-бук v3, 25.10.2026).
   Макет: темна кінозала — кадр у рамці видошукача, один червоний акцент REC, решта — чорне і світло. */
:root {
  --sh-black: #0b0b0b;
  --sh-light: #f7f5f2;
  --sh-ink: #f4f1ec;
  --sh-rec: #e8502c;
  --sh-grey: #8a8a8a;
  /* похідні для темної зали */
  --surface: #141211;
  --line: #2a2624;
  --muted: #b9b2a9;
  --blood: #7a1d14;
  /* айдентика «Жахливого конкурсу» — лише в його зоні */
  --zhk-pink: #ef7ac4;
  --zhk-ink: #0a0709;
  /* Discord — лише в його зоні */
  --dc: #5865f2;
  --dc-soft: #9aa3ff;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sh-black);
  color: var(--sh-ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Без «висячого» слова в останньому рядку абзацу (старші браузери — widows.js) */
body { text-wrap: pretty; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--sh-black); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sh-rec); outline-offset: 3px; }
::selection { background: var(--sh-rec); color: var(--sh-black); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sec { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); }
.block { margin-top: clamp(56px, 8vw, 96px); }

/* зерно плівки */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; opacity: .05; mix-blend-mode: screen; }

/* ---------- типографіка ---------- */
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-grey); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--rec { color: var(--sh-rec); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.h3 { margin: 0 0 28px; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.h3--flush { margin-bottom: 12px; }
.lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 62ch; }
.small { margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.rec-text { color: var(--sh-rec); }
.todo { color: var(--sh-rec); font-size: .9em; }
.link { color: var(--sh-ink); text-decoration: underline; text-decoration-color: var(--sh-rec); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { color: var(--sh-rec); }
.dot--ink { background: var(--sh-black) !important; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sh-rec); flex: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 16px 28px;
  font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--rec { background: var(--sh-rec); color: var(--sh-black); }
.btn--rec:hover { background: #ff6a43; }
.btn--light { background: var(--sh-ink); color: var(--sh-black); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--sh-ink); border-color: var(--sh-ink); }
.btn--ghost:hover { background: var(--sh-ink); color: var(--sh-black); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- шапка ---------- */
/* кнопка «Кіно на коліні» в шапці: крапка блимає, як REC, і пульсує */
.top__cta .dot { position: relative; animation: rec-blink 1.1s steps(1) infinite; }
.top__cta .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sh-black); animation: rec-ping 1.1s ease-out infinite; }
@keyframes rec-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
@keyframes rec-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .top__cta .dot, .top__cta .dot::after { animation: none; } }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 80; background: rgba(11, 11, 11, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { max-width: var(--maxw); margin-inline: auto; padding: 12px var(--gutter-r) 12px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.top__nav { display: flex; gap: 26px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.top__nav a { text-decoration: none; color: var(--muted); padding-block: 8px; }
.top__nav a:hover { color: var(--sh-ink); }
.top__cta { display: flex; justify-content: flex-end; }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sh-ink); }
.lockup__mark { width: 40px; height: 40px; }
.lockup__words { display: flex; flex-direction: column; line-height: 1; }
.lockup__name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.lockup__sub { margin-top: 5px; font-family: var(--font-text); font-weight: 600; font-size: 8.5px; letter-spacing: .72em; color: var(--sh-grey); }

/* ---------- герой ---------- */
.hero { padding: clamp(16px, 2.4vw, 32px) var(--gutter-r) 0 var(--gutter); }
/* Сторінка «Конкурси й клуби» */
.kl-title { margin: 12px 0 20px; font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 7vw, 96px); line-height: .95; letter-spacing: -.04em; }
.kl-item__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.kl-item__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.kl-num { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.kl-num span { font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -.04em; color: var(--sh-ink); }
.kl-nums { margin: 0; display: grid; gap: 28px; }
.kl-nums dt { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 5.4vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--zhk-pink); }
.kl-nums dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.kl-pink { color: var(--zhk-pink); }
@media (max-width: 860px) { .kl-item__in { grid-template-columns: minmax(0, 1fr); } }
.zks__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.zks__logo { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.zks__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.zks__quote { margin: 8px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; color: var(--sh-rec); }
.zks__nums { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 20px 48px; }
.zks__nums dt { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; }
.zks__nums dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.zks__members { margin-top: clamp(40px, 5vw, 64px); }
.zks-people .backers__btn { border-color: var(--line); }
.zks-people .backers__btn:hover { border-color: var(--sh-rec); color: var(--sh-rec); }
.zks-people .zks-people__list li { width: 200px; align-items: flex-start; text-align: left; gap: 6px; padding: 16px; border: 1px solid var(--line); background: var(--surface); scroll-snap-align: start; }
.zks-people__emoji { width: 56px; height: 56px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; background: #2a2624; border: 2px solid var(--sh-rec); font-style: normal; font-size: 28px; line-height: 1; }
.zks-people .zks-people__list b { font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.2; color: var(--sh-ink); }
.zks-people .zks-people__list span { font-size: 13px; line-height: 1.4; color: var(--muted); }
/* Шапка сторінки: три плитки-розділи */
.kl-tiles { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kl-tile { display: flex; flex-direction: column; text-decoration: none; color: var(--sh-ink); border: 1px solid var(--line); background: var(--surface); transition: transform .2s, border-color .2s; }
.kl-tile:hover { transform: translateY(-3px); border-color: var(--sh-ink); }
.kl-tile__pic { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.kl-tile--zks .kl-tile__pic { background: #d6421f; }
.kl-tile--zks .kl-tile__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.kl-tile--zhk .kl-tile__pic { background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(239, 122, 196, .18), transparent 70%), var(--zhk-ink); }
.kl-tile--zhk .kl-tile__pic img { width: 78%; height: auto; transform: rotate(-2deg); }
.kl-tile--dc .kl-tile__pic { background: radial-gradient(ellipse 70% 80% at 80% 0%, rgba(88, 101, 242, .45), transparent 70%), #0d0e1a; color: var(--dc-soft); gap: 8px; align-content: center; }
.kl-tile--dc svg { width: 56px; height: 56px; }
.kl-tile__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.kl-tile__cap { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.kl-tile__cap b { font-family: var(--font-display); font-weight: 900; font-size: 17px; }
.kl-tile__cap small { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .kl-tiles { grid-template-columns: minmax(0, 1fr); } .kl-tile { flex-direction: row; align-items: center; } .kl-tile__pic { width: 120px; flex: none; aspect-ratio: 1; } .kl-tile__cap { min-width: 0; } .kl-tile--dc svg { width: 36px; height: 36px; } .kl-tile__num { font-size: 20px; } }
@media (max-width: 420px) { .kl-tile__pic { width: 92px; } .kl-tile--dc svg { width: 28px; height: 28px; } .kl-tile__num { font-size: 16px; } .kl-tile__cap b { font-size: 15px; } .zks__text .h2 { font-size: clamp(24px, 7.2vw, 32px); } }
@media (max-width: 860px) { .zks__in { grid-template-columns: minmax(0, 1fr); } .zks__logo { max-width: 320px; } }

/* До 31.10: «Кіно на коліні» лише постером і «Coming soon» (клас .knk-soon ставить скрипт на початку body) */
.knk-soon-block { display: none; }
.knk-soon .knk-soon-block { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.knk-soon #konkurs > :not(.knk-soon-block), .knk-soon .ticker, .knk-soon .dzone .btn--discord, .knk-soon .foot__cta { display: none !important; }
/* «Прихований постер»: кадр розмитий і темний, видно силует і крапку REC; при наведенні трохи проявляється */
.knk-soon__poster { position: relative; z-index: 75; width: min(380px, 80vw); aspect-ratio: 1600 / 2263; overflow: hidden; border: 1px solid var(--line); background: #050505; }
.knk-soon__poster img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.45) saturate(.6); transform: scale(1.12); transition: filter 1.2s ease, transform 1.2s ease; }
.knk-soon__poster:hover img { filter: blur(6px) brightness(.6) saturate(.8); transform: scale(1.06); }
.knk-soon__rec { position: absolute; left: 50%; top: 52%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--sh-rec); box-shadow: 0 0 24px 6px rgba(232, 80, 44, .6); animation: knk-blink 1.4s steps(1) infinite; }
@keyframes knk-blink { 50% { opacity: .15; } }
.knk-soon__title { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.knk-soon__date { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.6vw, 32px); color: var(--sh-rec); }
@media (prefers-reduced-motion: reduce) { .knk-soon__rec { animation: none; } .knk-soon__poster img { transition: none; } }

/* Широкий кадр: чорні смуги зверху й знизу, у кадрі лого, слоган — як субтитр */
.wide { max-width: 1400px; margin-inline: auto; }
.wide__bar { display: flex; align-items: center; min-height: clamp(56px, 6.7vw, 96px); padding-inline: clamp(4px, 3.3vw, 48px); }
.wide__bar--bottom { justify-content: center; text-align: center; }
.wide__frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: clamp(300px, 36vw, 560px); padding-inline: 16px;
  background:
    radial-gradient(ellipse 60% 55% at 72% 28%, rgba(232, 80, 44, .22), transparent 70%),
    radial-gradient(ellipse 80% 70% at 30% 90%, rgba(122, 29, 20, .35), transparent 70%),
    linear-gradient(180deg, #1a1513 0%, #120e0d 100%);
}
/* Лок-ап як у бренд-буці: знак на всю висоту, під словом FILMHOUSE (Plex Mono 600, розрядка .72em) */
.wide__rec { position: absolute; top: clamp(16px, 2.2vw, 32px); left: clamp(16px, 3.3vw, 48px); font-size: 12px; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.wide__logo { margin: 0; display: flex; align-items: center; gap: .6em; font-size: clamp(30px, 7vw, 112px); line-height: 1; }
.wide__mark { width: 1.44em; height: 1.44em; flex: none; }
.wide__words { display: flex; flex-direction: column; align-items: flex-start; }
.wide__name { font-family: var(--font-display); font-weight: 900; letter-spacing: -.02em; }
.wide__fh { margin-top: .9em; font-family: var(--font-text); font-weight: 600; font-size: max(9px, .245em); letter-spacing: .72em; color: var(--sh-grey); }
.wide__sub { margin: 0; padding-block: 12px; font-size: clamp(15px, 1.55vw, 22px); letter-spacing: .02em; color: var(--sh-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.corner { position: absolute; width: clamp(28px, 4vw, 56px); height: clamp(28px, 4vw, 56px); border: 0 solid var(--sh-ink); pointer-events: none; }
.corner--tl { top: 16px; left: 16px; border-top-width: 3px; border-left-width: 3px; }
.corner--tr { top: 16px; right: 16px; border-top-width: 3px; border-right-width: 3px; }
.corner--bl { bottom: 16px; left: 16px; border-bottom-width: 3px; border-left-width: 3px; }
.corner--br { bottom: 16px; right: 16px; border-bottom-width: 3px; border-right-width: 3px; }
.rec { display: inline-flex; align-items: center; gap: 10px; color: var(--sh-ink); }
.rec__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sh-rec); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- біжучий рядок ---------- */
.ticker { margin-top: clamp(16px, 2.4vw, 32px); background: var(--sh-rec); color: var(--sh-black); overflow: hidden; white-space: nowrap; border-block: 2px solid var(--sh-black); }
.ticker__track { display: inline-flex; animation: ticker 38s linear infinite; padding-block: 14px; }
.ticker__track span { font-family: var(--font-display); font-weight: 900; font-size: clamp(14px, 1.6vw, 20px); text-transform: uppercase; padding-inline: 22px; display: inline-flex; align-items: center; gap: 22px; }
.ticker__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sh-black); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- конкурс ---------- */
.contest { border-top: 0; }
.about { border-top: 0; }
.about .eyebrow { align-self: flex-start; }
.contest__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* Постер «до / після»: кадр піднято над зерном плівки (.grain, z 70); шапка (z 80) лишається над ним */
.poster-switch { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.poster-switch__frame { position: relative; z-index: 75; border: 1px solid var(--line); background: var(--sh-black); }
.poster-img { display: block; width: 100%; height: auto; }
.poster-img--raw { position: absolute; inset: 0; height: 100%; }
/* Стрілка на самому постері: перемикає «як вийшло» ↔ «як знято» */
.poster-switch__btn { position: absolute; z-index: 2; right: 14px; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--sh-rec); color: var(--sh-black); cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); transition: transform .2s; }
.poster-switch__btn svg { width: 26px; height: 26px; transition: transform .3s; }
.poster-switch__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sh-rec); animation: rec-ping 1.6s ease-out infinite; pointer-events: none; }
.poster-switch__btn:hover { transform: scale(1.08); }
.poster-switch.is-raw .poster-switch__btn svg { transform: rotate(180deg); }
.poster-switch.is-raw .poster-switch__btn::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .poster-switch__btn::after { animation: none; opacity: 0; } }
.contest__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* наліпки жанрів — як у каруселі */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.tag { font-family: var(--font-display); font-weight: 900; font-size: 14px; text-transform: uppercase; padding: 10px 16px; border: 3px solid var(--sh-black); box-shadow: 6px 6px 0 var(--sh-rec); transform: rotate(-1.5deg); }
.tag--blood { background: var(--blood); color: var(--sh-ink); }
.tag--rec { background: var(--sh-rec); color: var(--sh-black); transform: rotate(1deg); box-shadow: 6px 6px 0 var(--blood); }
.tag--ink { background: var(--sh-black); color: var(--sh-ink); border-color: var(--sh-ink); }

.prize { border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.prize__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.prize__sum { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--sh-rec); font-variant-numeric: tabular-nums; }
.prize__cap { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-grey); }
.prize__note { margin: 0; font-size: 14px; color: var(--muted); }
.prize-line { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 900; line-height: 1.1; }
.prize-line__cap { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -.01em; }
.prize-line__sum { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; color: var(--sh-rec); white-space: nowrap; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* кроки */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { border-top: 3px solid var(--sh-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.steps__n { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--sh-rec); }
.steps b { font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1.2; }
.steps span:last-child { font-size: 14px; color: var(--muted); }

/* таймлайн */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.timeline li { position: relative; padding: 28px 16px 0 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--sh-black); border: 2px solid var(--sh-grey); }
.timeline li.is-now::before { background: var(--sh-rec); border-color: var(--sh-rec); }
.timeline time { font-family: var(--font-display); font-weight: 900; font-size: clamp(13px, 1.2vw, 18px); white-space: nowrap; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.timeline li.is-now time { color: var(--sh-rec); }
.timeline b { font-size: 14px; font-weight: 600; }
.timeline span { font-size: 13px; color: var(--muted); }

/* правила */
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--font-display); font-weight: 900; font-size: 14px; color: var(--sh-rec); }

/* судді */
.judges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.judges li { padding-block: 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.judges b { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: -.01em; }
.judges span { font-size: 13px; color: var(--muted); }


/* форма */
.apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); border: 2px solid var(--sh-rec); background: linear-gradient(180deg, #170f0d, var(--sh-black)); }
.apply__intro { display: flex; flex-direction: column; gap: 20px; }
.apply__intro p { margin: 0; color: var(--muted); }
.apply__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.apply__facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.apply__facts li::before { content: "●"; color: var(--sh-rec); font-size: 10px; line-height: 2.2; }
.form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label, .field legend { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-ink); padding: 0; }
.opt { color: var(--sh-grey); letter-spacing: .04em; text-transform: none; font-weight: 400; }
.hint { margin: 0; font-size: 12px; color: var(--sh-grey); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 16px/1.4 var(--font-text); color: var(--sh-ink);
  background: var(--sh-black); border: 1px solid #4a4440; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--sh-ink) 50%), linear-gradient(135deg, var(--sh-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder { color: #6f6a64; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sh-rec); box-shadow: 0 0 0 1px var(--sh-rec); }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--sh-rec); }
fieldset.field.is-bad .choice span { border-color: var(--sh-rec); }
.check.is-bad span { color: var(--sh-ink); }
.check.is-bad input { outline: 2px solid var(--sh-rec); outline-offset: 2px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid #4a4440; font-size: 14px; cursor: pointer; }
.choice input:checked + span { background: var(--sh-ink); color: var(--sh-black); border-color: var(--sh-ink); }
.choice input:focus-visible + span { outline: 2px solid var(--sh-rec); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sh-rec); cursor: pointer; }
.form__error { margin: 0; padding: 12px 14px; border: 1px solid var(--sh-rec); color: var(--sh-ink); font-size: 14px; }
.done { grid-column: 2; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.done p { margin: 0; color: var(--muted); }
.done:focus { outline: none; }

.partners { margin-top: clamp(56px, 8vw, 96px); display: flex; align-items: center; flex-wrap: wrap; gap: 24px 48px; }
.partners__cap { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-grey); }
.partners img { height: 44px; width: auto; opacity: .9; }
.contest__media { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.partners--poster { margin: 0; justify-content: center; gap: 20px; flex-wrap: nowrap; }
.partners--poster img { height: auto; width: auto; max-height: 40px; max-width: 42%; }
.partners__x { color: var(--sh-grey); font-size: 18px; }

/* ---------- про нас ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 88px); align-items: start; }
.about__eyebrow { grid-column: 1 / -1; }
.about__story { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.about__lead { margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.about__quote { margin: 0; max-width: 58ch; font-size: 18px; line-height: 1.6; color: var(--sh-ink); }
.about__text { margin: 0; max-width: 58ch; color: var(--muted); font-size: 16px; }
.about__sub { margin: 12px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; }
.about__steps { list-style: none; margin: 0; padding: 0; max-width: 58ch; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.about__steps li { position: relative; padding-left: 44px; color: var(--muted); counter-increment: step; }
.about__steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--sh-rec); border-radius: 50%; font-family: var(--font-display); font-weight: 900; font-size: 13px; color: var(--sh-rec); }
.about__steps b { color: var(--sh-ink); }
.about__accent { color: var(--sh-ink); font-weight: 600; }
/* Шлях компанії: три етапи на одній лінії */
.stages { --gap: clamp(32px, 3.4vw, 44px); align-self: center; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--gap); }
.stages__item:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: calc(-1 * var(--gap) - 6px); width: 2px; background: var(--line); }
.stages__item { position: relative; display: flex; flex-direction: column; gap: 8px; padding-left: 40px; }
.stages__item::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--sh-black); border: 2px solid var(--sh-grey); }
.stages__item--now::before { background: var(--sh-rec); border-color: var(--sh-rec); box-shadow: 0 0 0 4px rgba(232, 80, 44, .25); }
.stages__when { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-grey); }
.stages__item--now .stages__when { color: var(--sh-rec); }
.stages__name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
.stages__d { margin: 0; font-size: 15px; color: var(--muted); }
.stages__more { align-self: flex-start; margin-top: 4px; padding-block: 8px; font-size: 14px; font-weight: 600; color: var(--sh-ink); text-decoration: none; border-bottom: 2px solid var(--sh-rec); }
.stages__more:hover { color: var(--sh-rec); }
.stages__item--zhk .stages__more { border-color: var(--zhk-pink); }
.stages__item--zhk .stages__more:hover { color: var(--zhk-pink); }
@media (max-width: 860px) { .about__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- зона «Жахливого конкурсу» ---------- */
.zhk { position: relative; background: var(--zhk-ink); border-block: 1px solid #2a1824; padding-block: clamp(72px, 10vw, 120px); overflow: hidden; }
.zhk::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 85% 10%, rgba(239, 122, 196, .16), transparent 70%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(122, 29, 20, .3), transparent 70%); pointer-events: none; }
.zhk__in { position: relative; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); }
.zhk__head { display: flex; flex-direction: column; gap: 20px; }
.zhk__kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--zhk-pink); }
.zhk__title { margin: 0; }
.zhk__title img { width: min(620px, 100%); transform: rotate(-2deg); mix-blend-mode: screen; }
.zhk__lead { margin: 0; max-width: 56ch; font-size: 17px; color: var(--muted); }
.zhk__nums { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--zhk-pink); }
.zhk__nums div { padding: 24px 20px 0 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zhk__nums dt { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.04em; color: var(--zhk-pink); font-variant-numeric: tabular-nums; }
.zhk__nums dd { margin: 0; font-size: 14px; color: var(--sh-ink); }
.zhk__foot { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--sh-grey); }
.zhk__rating { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.zhk__rating-n { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--zhk-pink); }
.zhk__rating span:last-child { font-size: 13px; color: var(--muted); }
.zhk__intensive { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: end; padding: clamp(20px, 3vw, 32px); border: 1px solid #3a2232; background: rgba(239, 122, 196, .06); }
.zhk__intensive .zhk__kicker { grid-column: 1 / -1; }
.zhk__int-text { margin: 0; max-width: 60ch; font-size: 16px; color: var(--sh-ink); }
.zhk__score { margin: 0; display: flex; flex-direction: column; gap: 6px; text-align: right; }
.zhk__score-n { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; color: var(--zhk-pink); }
.zhk__score span:last-child { font-size: 12px; color: var(--muted); max-width: 26ch; margin-left: auto; }
.zhk__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
.btn--zhk { background: var(--zhk-pink); color: var(--zhk-ink); }
.btn--zhk:hover { background: #ff9ad6; }
@media (max-width: 860px) { .zhk__intensive { grid-template-columns: minmax(0, 1fr); } .zhk__score { text-align: left; } .zhk__score span:last-child { margin-left: 0; } }
@media (max-width: 860px) { .zhk__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* ---------- «Нас підтримали» — карусель, яку гортають ---------- */
.backers { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.backers__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.backers__nav { display: flex; gap: 8px; }
.backers__btn { width: 44px; height: 44px; border: 1px solid #3a2232; background: transparent; color: var(--sh-ink); font-size: 18px; cursor: pointer; }
.backers__btn:hover { border-color: var(--zhk-pink); color: var(--zhk-pink); }
.backers__list { list-style: none; margin: 0; padding: 6px 2px 10px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.backers__list::-webkit-scrollbar { display: none; }
.backers__list.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.backers__list li { width: 124px; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; user-select: none; -webkit-user-select: none; }
.backers__list img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid #3a2232; background: #1a1016; pointer-events: none; }
.backers__list span { font-size: 12px; line-height: 1.3; color: var(--sh-ink); }
.backers__list small { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zhk-pink); }
.backers__list .is-judge img { border-color: var(--zhk-pink); box-shadow: 0 0 0 3px rgba(239, 122, 196, .2); }
@media (prefers-reduced-motion: reduce) { .backers__list { scroll-behavior: auto; } }

/* ---------- сторінка «Жахливого конкурсу» ---------- */
.zhk-page { background: var(--zhk-ink); }
.zhk--page { border-top: 0; }
.zhk-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zhk-stages li { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #3a2232; min-width: 0; }
.zhk-stages span { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--zhk-pink); }
.zhk-stages b { font-family: var(--font-display); font-weight: 900; font-size: 15px; line-height: 1.2; }
.zhk-stages small { font-size: 12px; color: var(--muted); }
.zhk-stages .is-final { border-color: var(--zhk-pink); }
.zhk-thanks { background: var(--zhk-ink); border-top: 1px solid #2a1824; }
.zhk-thanks__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.zhk-thanks .h2 { color: var(--zhk-pink); }
.zhk-judges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.zhk-judges li { padding-block: 22px; border-top: 1px solid #3a2232; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zhk-judges b { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.zhk-judges__role { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--zhk-pink); }
.zhk-judges p { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 56ch; }
.zhk-thanks__sign { margin: 40px 0 0; font-size: 14px; color: var(--sh-ink); }
.zhk-intensive { background: var(--zhk-ink); border-top: 1px solid #2a1824; }
.zhk-intensive__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.zhk-intensive__in > div { display: flex; flex-direction: column; gap: 16px; }
.zhk-next { background: var(--zhk-ink); border-top: 1px solid #2a1824; }
.zhk-next__in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.zhk-page .foot { background: var(--zhk-ink); border-top-color: #2a1824; }
@media (max-width: 860px) {
  .zhk-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zhk-judges, .zhk-intensive__in { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- зона Discord ---------- */
.dzone { margin-top: 0; padding-block: clamp(56px, 8vw, 96px); background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(88, 101, 242, .22), transparent 70%), #0d0e1a; border-block: 1px solid #23264a; }
.dzone__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.dzone__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dzone__sub { display: block; margin-top: .35em; font-size: .5em; letter-spacing: -.01em; color: var(--dc-soft); }
.dzone__kicker { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dc-soft); }
.dzone__icon { width: 22px; height: 22px; color: var(--dc-soft); }
.dzone__for { margin: -8px 0 0; max-width: 34ch; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--dc-soft); }
.dzone__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dzone__list li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid #2c3060; background: rgba(88, 101, 242, .08); min-width: 0; }
.dzone__list b { font-family: var(--font-display); font-weight: 900; font-size: 15px; color: var(--sh-ink); }
.dzone__list span { font-size: 13px; color: var(--muted); }
.dzone__side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.dzone__num { margin: 0; display: flex; flex-direction: column; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dzone__num span { font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -.04em; color: var(--dc-soft); }
.btn--discord { background: var(--dc); color: #fff; }
.btn--discord:hover { background: #6b77ff; }
@media (max-width: 1060px) { .dzone__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .dzone__in, .dzone__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- засновники ---------- */
.founders__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.founders__lead { margin: 0; font-size: 17px; color: var(--muted); }
@media (min-width: 861px) { .founders__lead { white-space: nowrap; } }
.founder__text .founder__tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-black); background: var(--sh-ink); padding: 4px 8px; }
.founders__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; }
/* Фото засновників — над зерном плівки (.grain, z 70), як і постер; шапка (z 80) над ними */
img.founder__photo { position: relative; z-index: 75; width: 100%; height: auto; object-fit: cover; display: block; filter: contrast(1.05); }
.founder__photo { aspect-ratio: 3 / 4; max-width: 100%; background: linear-gradient(180deg, #1e1a18, #121010); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--sh-grey); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.founder__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.founder__text p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (min-width: 1061px) and (max-width: 1240px) { .founders__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; } .founder { grid-template-columns: 300px minmax(0, 1fr); max-width: 900px; } }
.founder__name { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2vw, 26px); line-height: 1.1; letter-spacing: -.02em; }
.founder__text .founder__role { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-rec); }

/* ---------- футер ---------- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(72px, 9vw, 112px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: flex; flex-direction: column; gap: 28px; }
.foot .pitch { margin-block: 0 16px; }
.foot__mail { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.foot__email { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 5.4vw, 72px); line-height: 1; letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
.foot__email:hover { color: var(--sh-rec); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.socials a { text-decoration: none; color: var(--muted); padding-block: 8px; display: inline-block; }
.socials a:hover { color: var(--sh-ink); }
.foot__bottom a { padding-block: 10px; }
.foot__bottom { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; font-size: 12px; color: var(--sh-grey); }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot__brand img { width: 22px; height: 22px; }
.foot__cta { display: inline-flex; align-items: center; gap: 10px; color: var(--sh-ink); font-weight: 600; text-decoration: none; }
.foot__cta:hover { color: var(--sh-rec); }

/* ванпейджер у контактах */
.pitch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 48px); align-items: center; margin-block: 24px 8px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); background: var(--surface); }
.pitch__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pitch__text p { margin: 0; color: var(--muted); max-width: 64ch; }
.pitch__text b { color: var(--sh-ink); }
.pitch__warn { margin: 0; padding: 7px 12px; background: var(--sh-rec); color: var(--sh-black); font-family: var(--font-display); font-weight: 900; font-size: 11px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; text-align: center; }
.sheet { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* Аркуш A4 (210×297): пунктир — поля 2,54 см, стрілки з чотирьох боків; вимоги надруковані всередині */
.sheet__page { --w: clamp(270px, 24vw, 310px); position: relative; width: var(--w); max-width: 100%; aspect-ratio: 210 / 297; background: var(--sh-light); color: #1d1d1d; padding: calc(var(--w) * .16); box-shadow: 10px 10px 0 var(--sh-rec); font-family: "Courier New", Courier, monospace; }
.sheet__guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sheet__box { fill: none; stroke: #b9b2a9; stroke-width: .5; stroke-dasharray: 2.5 2; }
.sheet__arrows line { stroke: #a39d95; stroke-width: .6; }
.sheet__arrows path, #sh-a path { fill: #a39d95; }
.sheet__dim { font: 600 6.5px var(--font-text); fill: #8a8a8a; dominant-baseline: middle; }
.sheet__body { position: relative; display: flex; flex-direction: column; gap: 6px; }
.sheet__title { margin: 0; font-weight: 700; font-size: 13px; text-align: center; }
.sheet__line { margin: 0 0 8px; font-size: 11px; text-align: center; color: #5a5550; }
.sheet__specs { margin: 0; display: flex; flex-direction: column; gap: 7px; line-height: 1.2; }
.sheet__specs div { display: flex; flex-direction: column; gap: 1px; }
.sheet__specs dt { font-size: 10px; color: #7a746d; }
.sheet__specs dd { margin: 0; font-size: 12px; font-weight: 700; color: #1d1d1d; }
@media (max-width: 860px) { .pitch { grid-template-columns: minmax(0, 1fr); padding: 18px; } .pitch__text p { font-size: 14px; line-height: 1.5; } .pitch .h3 { font-size: 20px; } }

/* ---------- вікно «Правила гри» ---------- */
.rules-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 2px solid var(--sh-rec); background: var(--sh-black); color: var(--sh-ink); overflow: auto; }
.rules-dialog::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rules-dialog__in { padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.rules-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rules-dialog__x { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); background: transparent; color: var(--sh-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.rules-dialog__x:hover { border-color: var(--sh-rec); color: var(--sh-rec); }
.rules-dialog .rules { grid-template-columns: minmax(0, 1fr); }
button.btn { font-family: var(--font-display); }

/* ---------- кнопки конкурсу ---------- */
.cta-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.cta-row .btn { padding-inline: 18px; font-size: 14px; }
.cta-row .btn--two small { font-size: 9px; letter-spacing: .1em; }
.btn--two { flex-direction: column; gap: 2px; line-height: 1.1; padding-block: 10px; }
.btn--two small { font-family: var(--font-text); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-rec); }
.btn--two:hover small { color: var(--sh-black); }
.apply-band { display: flex; justify-content: space-between; align-items: center; gap: 28px 48px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border: 2px solid var(--sh-rec); background: linear-gradient(180deg, #170f0d, var(--sh-black)); }
.apply-band > div:first-child { display: flex; flex-direction: column; gap: 14px; flex: 1 1 420px; min-width: 0; }
.apply-band p { margin: 0; color: var(--muted); }
.apply-band .h2 { font-size: clamp(32px, 3.6vw, 48px); }

/* ---------- сторінка заявки ---------- */
.top__in--form { grid-template-columns: auto 1fr; }
.apply-page { border-top: 0; padding-top: clamp(40px, 6vw, 72px); }
.apply-page__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.apply-page__intro { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 20px; }
.apply-page__intro > p { margin: 0; color: var(--muted); }
.apply-page__logo { width: min(280px, 80%); }
.apply-page__form { min-width: 0; padding: clamp(24px, 4vw, 48px); border: 2px solid var(--sh-rec); background: linear-gradient(180deg, #170f0d, var(--sh-black)); }
.apply-page .form { gap: 26px; }
.field i, .check i { font-style: normal; color: var(--sh-rec); }
.field legend { margin-bottom: 10px; line-height: 1.5; }
.other, .other-note { margin-top: 10px; }
textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.counter { align-self: flex-end; font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--sh-rec); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rules-link { display: flex; flex-direction: column; gap: 4px; align-self: flex-start; padding: 14px 18px; border: 2px solid var(--sh-ink); text-decoration: none; }
.rules-link span { font-family: var(--font-display); font-weight: 900; font-size: 16px; text-transform: uppercase; }
.rules-link small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-rec); }
.rules-link:hover { background: var(--sh-ink); color: var(--sh-black); }
.apply-page .done { grid-column: auto; }
.foot--slim { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot--slim .foot__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.foot--slim b { color: var(--sh-ink); font-weight: 600; }
@media (max-width: 860px) {
  .apply-page__grid { grid-template-columns: minmax(0, 1fr); }
  .apply-page__intro { position: static; }
  .cta-row .btn { flex: 1 1 220px; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1060px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .timeline time { font-size: 18px; }
  .judges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder__photo { max-width: 320px; }
}
@media (max-width: 860px) {
  .top__in { grid-template-columns: auto 1fr; }
  .top__nav { display: none; }
  .lockup { justify-self: start; }
  .contest__grid, .apply, .founders__grid { grid-template-columns: minmax(0, 1fr); }
  .contest__media { max-width: 440px; width: 100%; margin-inline: auto; }
  .done { grid-column: 1; }
  .rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .top__cta .btn { padding-inline: 12px; font-size: 11px; white-space: nowrap; min-height: 40px; }
  .lockup__mark { width: 32px; height: 32px; }
  .lockup__name { font-size: 18px; }
  .lockup__sub { font-size: 7px; }
  .wide__logo { font-size: clamp(28px, 9vw, 112px); }
  .kl-item .h2 { font-size: 7.4vw; }
  .timeline, .judges, .steps, .field-row { grid-template-columns: minmax(0, 1fr); }
    .partners img { height: 34px; }
}

@media (max-width: 560px) { .zhk-stages b { font-size: 13px; } }
@media (max-width: 360px) { .top__in { gap: 8px; } .lockup { gap: 8px; } .lockup__mark { width: 30px; height: 30px; } .lockup__name { font-size: 14px; } .top__cta .btn { padding-inline: 10px; gap: 6px; } #discord-title, .zhk-intensive .h2 { font-size: 28px; } .stages__name { white-space: normal; } .sheet__specs { gap: 4px; } .sheet__line { margin-bottom: 4px; } .zhk-stages { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .rec__dot { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
