@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/GolosText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/GolosText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/GolosText-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/static/fonts/GolosText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/static/fonts/Lora-Var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/static/fonts/Lora-Italic-Var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f3f3f1;
  --line: #e2e2de;
  --muted: #74746f;
  --serif: "Lora", Georgia, serif;
  --sans: "Golos Text", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 500 14px/1 var(--sans);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip:focus-visible { transform: none; }

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

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 500 15px/1 var(--sans);
  letter-spacing: .01em;
}

.mark__sq {
  width: 13px; height: 13px;
  background: var(--ink);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.mark:hover .mark__sq { transform: rotate(45deg); }

.mark__txt i {
  font-style: normal;
  color: var(--muted);
  margin: 0 1px;
}

.top__nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font: 500 14px/1 var(--sans);
}

.top__nav a {
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left calc(100% - 1px) / 0 1px;
  padding-bottom: 4px;
  transition: background-size .3s ease;
}

.top__nav a:hover { background-size: 100% 1px; }

/* ---------- hero ---------- */

.hero {
  min-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 7vh, 84px) 0 clamp(28px, 5vh, 48px);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  gap: clamp(18px, 2.4vh, 28px);
}

.hero__foot { margin-top: auto; padding-top: clamp(28px, 6vh, 64px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker__dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .22; }
}

.hero__h {
  margin: 0;
  font: 500 clamp(54px, 10.6vw, 158px)/0.92 var(--serif);
  letter-spacing: -.038em;
  text-wrap: balance;
}

.ln {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}

.ln__in {
  display: block;
  transform: translateY(112%);
  animation: lnIn 1s cubic-bezier(.19, 1, .22, 1) forwards;
}

.ln:nth-child(2) .ln__in { animation-delay: .1s; }

.ln__in--it {
  font-style: italic;
  font-weight: 400;
  font-size: .93em;
  letter-spacing: -.03em;
}

@keyframes lnIn { to { transform: none; } }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .45s cubic-bezier(.19, 1, .22, 1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero__lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 19px);
  color: #2c2c2a;
  text-wrap: pretty;
}

/* ---------- кнопки ---------- */

.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--fg);
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}

.btn--ink { --bg: var(--ink); --fg: var(--paper); }

.btn--line {
  --bg: transparent;
  --fg: var(--ink);
}

.btn:hover { background: var(--paper); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

.btn__arw {
  display: inline-block;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.btn:hover .btn__arw { transform: translateX(4px); }
.btn[href^="#"]:hover .btn__arw { transform: translateY(3px); }

.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- секции ---------- */

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(24px, 4vw, 44px);
}

.idx {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--muted);
  padding-top: 8px;
}

.sec-head h2 {
  margin: 0;
  font: 500 clamp(24px, 3.1vw, 40px)/1.1 var(--serif);
  letter-spacing: -.02em;
}

/* ---------- правила ---------- */

.rules {
  padding: clamp(48px, 8vh, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
}

.rules__list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rules__list li:nth-child(-n+2) { border-top: 0; }

.rules__list p {
  margin: 0;
  color: #2c2c2a;
  text-wrap: pretty;
}

.rules__list b { font-weight: 600; }

/* ---------- форма ---------- */

.form-sec { padding: clamp(48px, 8vh, 96px) 0; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.form-col { min-width: 0; }

.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.steps__bar {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}

.steps__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--ink);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}

.steps__num {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  color: var(--muted);
}

.step {
  border: 0;
  margin: 0 0 28px;
  padding: 0;
  display: none;
  animation: stepIn .32s cubic-bezier(.2, .8, .2, 1);
}

.step.is-on { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.q {
  margin: 0 0 22px;
  font: 500 clamp(20px, 2.2vw, 26px)/1.25 var(--serif);
  letter-spacing: -.01em;
}

/* плитки выбора */

.picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pick { display: block; cursor: pointer; }

.pick input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.pick__box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.pick:hover .pick__box { border-color: var(--ink); }

.pick input:checked + .pick__box {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pick input:focus-visible + .pick__box {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.pick__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pick__t {
  font: 500 22px/1 var(--serif);
  letter-spacing: -.015em;
}

.pick__i {
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  opacity: .55;
}

.pick__d {
  font-size: 14px;
  line-height: 1.45;
  opacity: .72;
  text-wrap: pretty;
}

/* поля */

.field { margin-bottom: 26px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 19px/1.4 var(--sans);
  border-radius: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field textarea {
  resize: none;
  overflow: hidden;
  min-height: 62px;
}

.field input::placeholder,
.field textarea::placeholder { color: #b4b4ae; }

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.field.has-err input,
.field.has-err textarea { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }

.hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.err {
  margin: 8px 0 0;
  font: 500 13px/1.4 var(--sans);
  min-height: 0;
}

.err:not(:empty)::before { content: "— "; }

.err--big { margin-top: 18px; }

/* медиа */

.only-pb { display: none; }
body[data-kind="pb"] .only-pb { display: block; }

.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 24px;
  margin-bottom: 14px;
  border: 1px dashed #c9c9c3;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.drop:hover,
.drop.is-drag {
  border-color: var(--ink);
  border-style: solid;
  background: var(--soft);
}

.drop__t { font: 500 17px/1.3 var(--sans); }

.drop__d { font-size: 14px; color: var(--muted); }

.drop__file {
  font: 500 13px/1.4 var(--mono);
  letter-spacing: .02em;
  word-break: break-all;
}

.prog {
  display: block;
  height: 2px;
  background: var(--line);
  margin-top: 6px;
  overflow: hidden;
}

.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width .2s ease;
}

.note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* кто подаёт */

.who {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.mono-sm {
  display: block;
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.who__n { font: 500 17px/1.3 var(--sans); }

.who__r {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.anon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.anon input { accent-color: var(--ink); width: 15px; height: 15px; }

.send {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.send__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.nav-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.nav-row .btn--ink { margin-left: auto; }

/* ---------- превью ---------- */

.prev-col { position: sticky; top: 96px; }

.prev-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.prev-head h2 {
  margin: 0;
  font: 500 18px/1.2 var(--serif);
  letter-spacing: -.01em;
}

.post {
  border: 1px solid var(--line);
  background: var(--paper);
}

.post__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.post__media img,
.post__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__ph {
  font: 500 10px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a5a5a0;
}

.post__body {
  padding: 18px 18px 20px;
  font-size: 14.5px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.post__body p { margin: 0 0 10px; }
.post__body p:last-child { margin-bottom: 0; }

.post__author { color: var(--muted); font-size: 13.5px; }
.post__author b { color: var(--ink); }

.post__name {
  font: 600 17px/1.3 var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post__q {
  margin: 0 0 10px;
  padding: 8px 0 8px 12px;
  border-left: 2px solid var(--ink);
  color: #33332f;
}

.post__foot { color: var(--muted); font-size: 13px; }

.prev-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- готово ---------- */

.done {
  padding: clamp(56px, 12vh, 140px) 0;
  border-top: 1px solid var(--line);
}

.done__h {
  margin: 18px 0 22px;
  font: 500 clamp(44px, 8vw, 110px)/0.94 var(--serif);
  letter-spacing: -.035em;
  animation: stamp .9s cubic-bezier(.19, 1, .22, 1);
}

.done__h em { font-style: italic; font-weight: 400; }

@keyframes stamp {
  from { clip-path: inset(0 0 100% 0); transform: translateY(12px); }
  to { clip-path: inset(0 0 -10% 0); transform: none; }
}

.done__id {
  font: 500 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.done__p { max-width: 52ch; margin: 0 0 30px; text-wrap: pretty; }

/* ---------- футер ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

.foot__in {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot__links { display: flex; gap: 22px; }

.foot a {
  text-decoration: none;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left calc(100% - 0px) / 0 1px;
  padding-bottom: 3px;
  transition: background-size .3s ease, color .2s ease;
}

.foot a:hover { background-size: 100% 1px; color: var(--ink); }

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

@media (max-width: 1024px) {
  .form-grid { grid-template-columns: 1fr; }
  .prev-col { position: static; }
  .post__media { aspect-ratio: 16 / 10; }
  .prev-note { margin-bottom: 8px; }
}

@media (max-width: 760px) {
  .hero { min-height: 0; }
  .who { flex-direction: column; gap: 16px; }
  .rules { padding: 56px 0 44px; }
  .hero .wrap { gap: 40px; }
  .hero__foot { align-items: flex-start; }
  .hero__foot .btn { width: 100%; }
  .rules__list { grid-template-columns: 1fr; }
  .rules__list li:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .rules__list li:first-child { border-top: 0; }
  .picks { grid-template-columns: 1fr; }
  .who { align-items: flex-start; }
  .send .btn { width: 100%; }
  .nav-row { flex-wrap: wrap; }
  .nav-row .btn { flex: 1 1 auto; }
  .top__nav { gap: 18px; font-size: 13px; }
  .top__in { height: 60px; }
}

@media (max-width: 420px) {
  .hero__h { font-size: clamp(38px, 10.4vw, 52px); }
  .btn { width: 100%; }
  .nav-row .btn { width: 100%; }
}

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