/* Pussy Models. Токены и решения описаны в DESIGN.md */

:root {
  --ink: #0B0D0D;
  --ink-2: #111515;
  --paper: #F3F5F4;
  --muted: #9AA3A0;
  --line: #26302D;
  --line-strong: #5C6864;
  --acid: #B7FF3C;
  --pink: #E52D83;
  --error: #FF5C8A;

  --display: 'Playfair Display', 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --gutter: 16px;
  --maxw: 1320px;
  --section-y: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
.nowrap { white-space: nowrap; }

::selection { background: var(--acid); color: var(--ink); }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--acid); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- сетка ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.grid > * { grid-column: 1 / -1; }

.section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- кнопки и ссылки ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: 2px;
  font: 600 17px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
}
.btn--primary { background: var(--pink); color: var(--ink); gap: 14px; }
.btn--primary:not(.btn--submit)::after {
  content: ""; width: 18px; height: 10px; flex: none;
  background: currentColor;
  clip-path: polygon(0 42%, 68% 42%, 68% 0, 100% 50%, 68% 100%, 68% 58%, 0 58%);
  transition: transform .25s var(--ease);
}
.btn--primary:hover { background: #F04593; box-shadow: 0 14px 34px -14px rgba(229, 45, 131, .85); }
.btn--primary:hover::after { transform: translateX(4px); }
.btn--primary:active { transform: translateY(1px) scale(.99); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--paper); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color .18s, color .18s;
}
.link:hover { text-decoration-color: var(--acid); }

.badge18 {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 8px;
  border: 1.5px solid var(--pink); border-radius: 2px;
  color: var(--pink); font: 600 13px/1 var(--sans); letter-spacing: .02em;
}
.badge18--inline { height: 22px; font-size: 12px; margin-right: 6px; vertical-align: 1px; }

/* ---------- верхняя полоса ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 18px var(--gutter);
}
.topbar__brand {
  font: 900 22px/1 var(--display); text-decoration: none; letter-spacing: -.02em;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; gap: 10px;
}
/* переключатель языка: RU / UA, активный язык подсвечен */
.lang { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.lang a {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; text-decoration: none; color: var(--muted);
  border-radius: 999px; transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--paper); }
.lang a[aria-current="true"] { color: var(--ink); background: var(--paper); min-height: 30px; min-width: 38px; margin: 7px 3px; }
.topbar__cta {
  margin-left: 18px; min-height: 44px; display: inline-flex; align-items: center;
  font-weight: 500; font-size: 15px; text-decoration: none;
  border-bottom: 1px solid var(--pink); line-height: 1.2; padding: 0 2px;
}
.topbar__cta:hover { color: var(--pink); }

/* ---------- первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  /* нижний край экрана показывает начало следующего раздела */
  min-height: calc(100svh - 120px);
  display: flex; align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}
.hero__rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__rain--figure { background: transparent; }
.hero::after {
  /* затемнение снизу и слева для читаемости текста поверх дождя */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(11, 13, 13, .6) 14%, rgba(11, 13, 13, 0) 36%),
    radial-gradient(70% 55% at 0% 100%, rgba(11, 13, 13, .95), rgba(11, 13, 13, .7) 50%, rgba(11, 13, 13, 0) 100%);
}

.hero__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 72px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(183, 255, 60, 0), rgba(183, 255, 60, .035) 80%, rgba(183, 255, 60, .12) 100%);
  border-bottom: 1px solid rgba(183, 255, 60, .28);
  transform: translateY(-130px);
  animation: scan 9s cubic-bezier(.45, 0, .55, 1) 1.6s infinite;
  opacity: .7;
}
@keyframes scan {
  0% { transform: translateY(-130px); }
  55%, 100% { transform: translateY(105svh); }
}

.hero__frame { position: absolute; inset: 76px var(--gutter) 20px; pointer-events: none; z-index: -1; }
.hero__corner { position: absolute; width: 22px; height: 22px; border-color: rgba(243, 245, 244, .45); border-style: solid; border-width: 0; }
.hero__corner--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hero__corner--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hero__corner--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hero__corner--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hero__meta {
  position: absolute; top: 10px;
  font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .04em;
}
.hero__meta--tl { left: 32px; display: inline-flex; gap: 6px; align-items: center; }
.hero__meta--tr { right: 32px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); display: inline-block; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.hero__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 104px var(--gutter) clamp(40px, 7vh, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}

.masthead {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(76px, min(21vw, 25svh), 300px);
  line-height: .8;
  letter-spacing: -0.035em;
  display: flex; flex-direction: column;
}
.masthead__line { display: block; }
.masthead__line--b { font-style: italic; align-self: flex-end; padding-right: .04em; }

.hero__copy { max-width: 560px; position: relative; z-index: 2; }
.masthead { position: relative; z-index: 2; text-shadow: 0 4px 40px rgba(11, 13, 13, .55); }

/* маскот бренда: стоит за мастхедом, как модель на обложке */
.hero__mascot {
  /* лицо встаёт справа от «Pussy», «Models» идёт по фигуре ниже лица и не закрывает его */
  position: absolute; z-index: 1; top: -5%; bottom: auto;
  right: max(-40px, calc((100vw - var(--maxw)) / 2 - 220px));
  height: min(90%, 980px); width: auto; max-width: none;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 99%);
}
/* мягкое розовое свечение за фигурой: отдельный слой, а не filter, чтобы не было рамки по краю картинки */
.hero__halo {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(0px, calc((100vw - var(--maxw)) / 2)); bottom: 6%;
  width: min(62vw, 900px); aspect-ratio: 1;
  transform: translateX(4%);
  background: radial-gradient(closest-side, rgba(229, 45, 131, .2), rgba(229, 45, 131, .07) 55%, rgba(229, 45, 131, 0));
}
.js .hero__halo { opacity: 0; }
.is-ready .hero__halo { opacity: 1; transition: opacity 1.6s var(--ease) .3s; }
.js .hero__mascot { opacity: 0; transform: translateY(18px) scale(.985); }
.is-ready .hero__mascot { opacity: 1; transform: none; transition: opacity 1.1s var(--ease) .15s, transform 1.1s var(--ease) .15s; }
.hero__lead {
  font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.005em;
  text-wrap: balance;
}
.hero__text { margin-top: 16px; color: #D3D8D6; font-size: 18px; max-width: 44ch; text-wrap: pretty; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* оркестрованное появление первого экрана, один раз */
.js .masthead__line, .js .hero__copy > * { opacity: 0; transform: translateY(24px); }
.is-ready .masthead__line, .is-ready .hero__copy > * {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.is-ready .masthead__line--b { transition-delay: .12s; }
.is-ready .hero__copy > :nth-child(1) { transition-delay: .3s; }
.is-ready .hero__copy > :nth-child(2) { transition-delay: .38s; }
.is-ready .hero__copy > :nth-child(3) { transition-delay: .46s; }

/* ---------- о сотрудничестве ---------- */
/* первый раздел после героя начинается выше: его заголовок виден на первом экране */
.about { padding-top: 48px; padding-bottom: calc(var(--section-y) * .7); border-top: 0; }
.about__text { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; max-width: 34em; color: #DCE1DF; }
.about__body { margin-top: 28px; }
/* площадки: бегущая строка во всю ширину экрана, как полоса кода из «матрицы» */
.ticker {
  position: relative; margin: 44px 0 0;
  width: 100vw; margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item {
  font: italic 700 clamp(24px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.015em;
  padding: 16px 0; white-space: nowrap; transition: color .25s;
}
.ticker__item.is-code { color: var(--acid); font-family: var(--mono); font-style: normal; font-weight: 400; letter-spacing: 0; }
.ticker__sep { font: 400 11px/1 var(--mono); color: var(--acid); opacity: .7; padding: 0 clamp(18px, 3vw, 40px); letter-spacing: .04em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (min-width: 900px) { .ticker { margin-top: 64px; } .ticker__item { padding: 22px 0; } }
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; width: auto; }
  .ticker__group { flex-wrap: wrap; padding: 0 var(--gutter); }
  .ticker__group + .ticker__group { display: none; }
}
@media (min-width: 900px) {
  .about__title { grid-column: 1 / 7; }
  .about__body { grid-column: 7 / -1; margin-top: 10px; }
}

/* ---------- карусели: кейсы и цитаты ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.carousel { position: relative; min-width: 0; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.carousel__count { font: italic 400 22px/1 var(--display); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.carousel__count b { font-weight: 700; font-size: 30px; color: var(--paper); }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn {
  position: relative; width: 52px; height: 52px; padding: 0; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%;
  transition: border-color .2s, color .2s, background-color .2s, opacity .2s, transform .2s var(--ease);
}
.carousel__btn::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 10px; background: currentColor;
  clip-path: polygon(0 42%, 68% 42%, 68% 0, 100% 50%, 68% 100%, 68% 58%, 0 58%);
}
.carousel__btn--prev::before { transform: scaleX(-1); }
.carousel__btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.carousel__btn:active:not(:disabled) { transform: scale(.94); }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
.carousel__rail { position: relative; height: 1px; background: var(--line); margin-top: 28px; overflow: hidden; }
.carousel__rail span { position: absolute; inset: 0; background: var(--acid); transform-origin: left; transform: scaleX(.2); transition: transform .35s var(--ease); }

/* кейсы: плёнка одной высоты, ширина кадра по пропорциям скриншота */
.cases { --case-h: 340px; }
@media (min-width: 900px) { .cases { --case-h: 380px; } }
.cases__note { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 58ch; }
.cases__carousel { margin-top: 40px; }
.cases__carousel .carousel__bar { margin-bottom: 24px; }
/* лента уходит за правый край экрана: видно, что дальше есть ещё кейсы */
.cases__list { --bleed: calc(var(--gutter) + max(0px, (100vw - var(--maxw)) / 2)); gap: 20px; margin-right: calc(var(--bleed) * -1); padding-right: var(--bleed); }
@media (min-width: 900px) { .cases__list { gap: 28px; } }
@media (min-width: 1100px) { .cases__head { grid-column: 1 / 9; } }
.case { flex: none; display: flex; flex-direction: column; scroll-snap-align: start; }
.case__img {
  display: block; padding: 0; border: 1px solid var(--line); background: var(--ink-2);
  cursor: zoom-in; overflow: hidden; transition: border-color .2s;
}
.case__img img {
  height: var(--case-h); width: auto; min-width: 250px; max-width: min(84vw, 760px);
  object-fit: cover; object-position: left top;
  transition: transform .5s var(--ease);
}
.case__img:hover { border-color: var(--pink); }
.case__img:hover img { transform: scale(1.025); }
.case__cap {
  width: 0; min-width: 100%;
  margin-top: 14px; font-size: 15px; line-height: 1.5; color: #C9CFCD;
  padding-left: 14px; border-left: 1px solid var(--line-strong); transition: border-color .2s;
}
.case:hover .case__cap { border-left-color: var(--pink); }
.case__cap b { color: var(--paper); font-weight: 600; }

/* ---------- отзывы ---------- */
.reviews .grid { row-gap: 0; align-items: start; }
.reviews__video { margin: 36px 0 0; display: flex; align-items: center; gap: 20px; }
.reviews__video figcaption { color: var(--muted); font-size: 14px; max-width: 24ch; }
/* видео свёрнуто в кружок, как видеосообщение в Telegram */
.vcircle {
  position: relative; flex: none; width: 116px; height: 116px; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; overflow: hidden; background: #000; color: var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px var(--ink), 0 0 0 7px rgba(229, 45, 131, .7);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.vcircle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transition: transform .5s var(--ease); }
.vcircle__play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11, 13, 13, .72); backdrop-filter: blur(4px);
}
.vcircle__play::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 16px; transform: translateX(2px);
  background: var(--paper); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.vcircle:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 6px var(--ink), 0 0 0 7px var(--pink); }
.vcircle:hover img { transform: scale(1.06); }
.vcircle:active { transform: scale(.97); }
.vcircle:focus-visible { outline-offset: 10px; border-radius: 50%; }
.vplayer { flex: none; }
.vround {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer; color: var(--paper);
  width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; background: #000;
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px -20px rgba(229, 45, 131, .35);
  animation: vplayer-in .4s var(--ease);
}
.vround video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* кольцо прогресса по краю */
.vround__ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); transform: rotate(-90deg); pointer-events: none; }
.vround__ring circle { fill: none; stroke: var(--pink); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.vround__state {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(11, 13, 13, .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s;
}
.vround__state::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 20px; transform: translateX(2px);
  background: var(--paper); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.vround.is-paused .vround__state { opacity: 1; }
/* телефон: открытый кружок во всю ширину, подпись под ним, а не сбоку за краем экрана */
@media (max-width: 899px) {
  .reviews__video.is-open { flex-direction: column; align-items: center; text-align: center; }
  .reviews__video.is-open figcaption { max-width: 32ch; }
}
/* субтитры внутри кружка: снизу, на тёмной плашке, читаются поверх любого кадра */
.vround__cap {
  position: absolute; left: 14%; right: 14%; bottom: 13%; text-align: center; pointer-events: none;
  font: 600 clamp(14px, 4.2vw, 17px)/1.25 var(--sans); color: #fff;
  opacity: 0; transition: opacity .15s;
}
.vround__cap span {
  display: inline; padding: 3px 8px; border-radius: 6px; background: rgba(11, 13, 13, .82);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.vround__cap.is-on { opacity: 1; }
/* встроенные субтитры браузера не показываем: рисуем свои */
.vround video::cue { color: transparent; background: transparent; }
.vround:focus-visible { outline-offset: 12px; border-radius: 50%; }
@keyframes vplayer-in { from { opacity: 0; transform: scale(.94); } }

/* цитаты: одна за раз */
.quotes { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 8px; }
.quotes__track { gap: 0; }
.quote {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 76px; gap: 20px 28px; align-items: center;
  padding: 32px 0 28px; min-height: 220px;
}
.quote blockquote {
  margin: 0; font: italic 700 clamp(26px, 3.4vw, 46px)/1.16 var(--display); letter-spacing: -.012em;
  text-wrap: balance; max-width: 30ch;
}
.quote__proof {
  position: relative; display: block; padding: 0; border: 1px solid var(--line-strong); background: #000;
  width: 76px; height: 98px; overflow: hidden; cursor: zoom-in; color: var(--paper);
  transition: border-color .2s, transform .25s var(--ease);
}
.quote__proof img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .75; transition: opacity .2s; }
.quote__proof span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0 5px;
  background: rgba(11, 13, 13, .85); font: 400 12px/1 var(--mono); letter-spacing: .02em;
}
.quote__proof:hover { border-color: var(--pink); transform: rotate(-2deg); }
.quote__proof:hover img { opacity: 1; }
.quotes .carousel__bar { padding-top: 20px; border-top: 1px solid var(--line); }
.quotes .carousel__rail { display: none; }
@media (min-width: 900px) {
  .reviews__title { grid-column: 1 / 8; }
  .reviews__video { grid-column: 8 / -1; justify-self: end; margin-top: 0; flex-direction: row-reverse; text-align: right; }
  .reviews__video.is-open { flex-direction: row; }
  .quotes { margin-top: 56px; }
  .quote { grid-template-columns: 1fr 120px; padding: 48px 0 40px; min-height: 280px; }
  .quote__proof { width: 120px; height: 156px; }
}

/* ---------- просмотр скриншота ---------- */
.lightbox {
  padding: 0; border: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 6, 6, .88); }
.lightbox img { display: block; max-width: min(96vw, 1100px); max-height: 86vh; width: auto; height: auto; }
.lightbox__close {
  display: block; margin: 0 0 10px auto; min-height: 44px; padding: 0 16px;
  background: var(--paper); color: var(--ink); border: 0; border-radius: 2px; font: 600 15px/1 var(--sans); cursor: pointer;
}
.lightbox[open] { animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }

/* ---------- шаги ---------- */
.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line);
}
.step { padding: 28px 0 32px; transition: background-color .3s var(--ease); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
.step__n { grid-row: span 2; font: italic 700 40px/1 var(--display); color: var(--acid); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.step__title { font: 600 22px/1.25 var(--sans); letter-spacing: -.005em; }
.step p { margin-top: 8px; color: #C9CFCD; max-width: 34ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .step { display: block; padding: 32px 32px 40px 0; border-bottom: 0; }
  .step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
  .step__n { display: block; margin-bottom: 72px; font-size: 72px; }
}

/* ---------- вопросы ---------- */
.faq__list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq__mascot { display: block; width: min(60vw, 300px); height: auto; margin-top: 32px; }
/* телефон: маскот рядом с заголовком, а не на целый экран */
@media (max-width: 899px) {
  .faq__side { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .faq__mascot { width: 34vw; max-width: 150px; margin: 0 -8px -6px 0; flex: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
}
@media (min-width: 900px) {
  .faq__side { grid-column: 1 / 5; }
  .faq__list { grid-column: 6 / -1; margin-top: 8px; }
  .faq__mascot { width: 100%; max-width: 360px; margin-top: 48px; }
}
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 18px 0;
  font: 500 clamp(18px, 1.6vw, 21px)/1.35 var(--sans);
  transition: color .18s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat;
  transition: transform .25s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); color: var(--acid); }
.qa summary:hover { color: #fff; }
.qa__a { padding: 0 48px 26px 0; color: #C9CFCD; max-width: 60ch; }
.qa__a a { text-underline-offset: 4px; }
.qa[open] .qa__a { animation: qa-in .26s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- анкета ---------- */
.apply { background: var(--ink-2); outline: none; }
.apply__sub { margin-top: 18px; font-size: 19px; color: #DCE1DF; }
.apply__note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.apply__mascot { display: none; }
@media (min-width: 900px) {
  .apply__mascot {
    display: block; width: 100%; max-width: 380px; height: auto; margin-top: 48px;
    /* края картинки уже растворены в цвете сайта; фон секции чуть светлее, поэтому добавляем мягкую маску */
    -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
            mask-image: radial-gradient(closest-side, #000 72%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
.apply__box { margin-top: 48px; }
@media (min-width: 900px) {
  .apply__intro { grid-column: 1 / 6; }
  .apply__box { grid-column: 7 / -1; margin-top: 0; }
}

.form { display: grid; gap: 26px; }
.field { position: relative; display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 15px; padding: 0; }
.optional { color: var(--muted); font-weight: 400; margin-left: 6px; }

.field input[type="text"] {
  width: 100%; min-height: 56px; padding: 14px 16px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font: 400 18px/1.3 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
.field input[type="text"]::placeholder { color: #6E7975; }
.field input[type="text"]:hover { border-color: #7C8884; }
.field input[type="text"]:focus { outline: none; border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.field__hint { font-size: 14px; color: var(--muted); }
.field__error { font-size: 14px; color: var(--error); min-height: 0; display: none; }
.field.is-invalid .field__error { display: flex; gap: 8px; align-items: baseline; }
.field.is-invalid .field__error::before { content: "!"; font: 600 12px/18px var(--mono); flex: none; width: 18px; height: 18px; text-align: center; border: 1px solid currentColor; border-radius: 50%; }
.field.is-invalid input[type="text"] { border-color: var(--error); }
.field.is-invalid input[type="text"]:focus { box-shadow: 0 0 0 1px var(--error); }
.field.is-invalid .field__hint { display: none; }

.choice { display: flex; gap: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  flex: 1 1 0; min-height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); cursor: pointer; font-weight: 500; font-size: 16px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.choice label + input + label { border-left: 0; }
.choice label:first-of-type { border-radius: 2px 0 0 2px; }
.choice label:last-of-type { border-radius: 0 2px 2px 0; }
.choice label:hover { border-color: #7C8884; }
.choice input:checked + label { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.choice input:focus-visible + label { outline: 2px solid var(--acid); outline-offset: 2px; position: relative; z-index: 1; }

.field--consent { grid-template-columns: 24px 1fr; column-gap: 14px; align-items: start; }
.field--consent input {
  appearance: none; margin: 1px 0 0; width: 24px; height: 24px; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 2px; background: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.field--consent input::after {
  content: ""; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s var(--ease);
}
.field--consent input:checked { background: var(--acid); border-color: var(--acid); }
.field--consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--consent input:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.field--consent label { font-weight: 400; font-size: 15px; line-height: 1.5; color: #C9CFCD; cursor: pointer; }
.field--consent label a { color: var(--paper); text-underline-offset: 3px; }
.field--consent .field__error { grid-column: 2; }
.field--consent.is-invalid input { border-color: var(--error); }

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

.form__alert {
  border-left: 2px solid var(--error); padding: 12px 16px; background: rgba(255, 92, 138, .08);
  color: #FFD3DF; font-size: 15px;
}

.btn--submit { width: 100%; overflow: hidden; }
.btn__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left; opacity: 0;
}
.btn--submit[aria-busy="true"] { cursor: progress; background: #B8296C; }
.btn--submit[aria-busy="true"] .btn__bar { opacity: .5; animation: bar 1.4s var(--ease) infinite; }
@keyframes bar { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

.success { position: relative; outline: none; border-top: 2px solid var(--acid); padding-top: 28px; animation: success-in .5s var(--ease); }
.success__mascot {
  display: block; width: min(70vw, 260px); height: auto; margin: 0 0 8px;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
          mask-image: radial-gradient(closest-side, #000 70%, transparent);
  animation: mascot-in .7s var(--ease) .1s both;
}
@keyframes mascot-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (min-width: 600px) {
  .success { padding-right: 240px; min-height: 260px; }
  .success__mascot { position: absolute; right: -24px; top: 0; margin: 0; width: 260px; }
}
.success__sys { font: 400 12px/1 var(--mono); color: var(--acid); letter-spacing: .04em; }
.success__title { margin-top: 18px; font: 700 clamp(40px, 5vw, 64px)/1 var(--display); letter-spacing: -.015em; }
.success__text { margin-top: 12px; font-size: 21px; }
.success__cta { margin-top: 22px; }
@media (max-width: 599px) { .success__cta { width: 100%; } }
.success__tip { margin-top: 26px; color: var(--muted); font-size: 15px; max-width: 46ch; }
@keyframes success-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 15px; color: #C9CFCD; }
.footer .grid { row-gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 16px; font: 900 36px/1 var(--display); color: var(--paper); letter-spacing: -.02em; }
.footer__label { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.footer__col p + p { margin-top: 8px; }
.footer a { text-underline-offset: 3px; }
/* ссылки в тексте подвала: зона нажатия по высоте не меньше 44px на телефоне */
@media (max-width: 767px) {
  .footer a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
.footer__legal { color: #7E8884; font-size: 13px; max-width: 70ch; border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 900px) {
  .footer__brand { grid-column: 1 / 5; }
  .footer__col--contact { grid-column: 6 / 9; }
  .footer__col--legal { grid-column: 9 / -1; }
  .footer__legal { grid-column: 1 / -1; }
}

/* ---------- мобильная фиксированная кнопка ---------- */
.dock {
  /* компактная капсула справа внизу: не перекрывает текст на всю ширину экрана */
  position: fixed; z-index: 20;
  right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(11, 13, 13, .6), 0 14px 34px -10px rgba(229, 45, 131, .55), 0 10px 24px -8px rgba(0, 0, 0, .9);
  transform: translateY(170%); transition: transform .35s var(--ease);
}
.dock.is-visible { transform: none; }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- телефон ---------- */
@media (max-width: 767px) {
  :root { --section-y: 72px; }
  .topbar { gap: 8px; }
  .topbar__cta { margin-left: 8px; font-size: 14px; }
  body { font-size: 16px; }
  .hero { min-height: calc(100svh - 56px); }
  .hero__inner { padding-top: 92px; gap: 28px; }
  .masthead { line-height: .9; }
  .hero__mascot {
    position: relative; right: auto; bottom: auto; top: auto; z-index: 1;
    height: auto; width: 118%; align-self: center; margin: -14% 0 -34%;
  }
  /* текст под маскотом: плотная подложка, чтобы подзаголовок читался поверх костюма */
  .hero__copy {
    padding-top: 56px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
    background: linear-gradient(to bottom, rgba(11, 13, 13, 0) 0, rgba(11, 13, 13, .88) 48px, var(--ink) 120px);
  }
  /* на телефоне текст стоит под фигурой: плотное затемнение снизу */
  .hero::after {
    background: linear-gradient(to top, var(--ink) 0%, rgba(11, 13, 13, .94) 38%, rgba(11, 13, 13, 0) 62%);
  }
  .hero__frame { inset: 70px 10px 12px; }
  .hero__halo { right: auto; left: 50%; bottom: auto; top: 22%; width: 120vw; transform: translateX(-50%); }
  .hero__meta--tr { display: none; }
  .hero__meta--tl { left: 28px; }
  .hero__text { font-size: 17px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link { justify-content: center; }
  .qa__a { padding-right: 0; }
}

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__scan { display: none; }
  .js .masthead__line, .js .hero__copy > *, .js .hero__mascot, .js .hero__halo { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.lost {
  min-height: 100svh; max-width: var(--maxw); margin: 0 auto;
  padding: 120px var(--gutter) 0;
  display: grid; grid-template-columns: 1fr; align-items: end; gap: 24px;
  overflow: hidden;
}
.lost__copy { align-self: center; padding-bottom: 40px; }
.lost__code { font: italic 900 clamp(110px, 18vw, 240px)/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.lost__title { margin-top: 36px; font: 700 clamp(36px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.015em; }
.lost__text { margin-top: 16px; color: #C9CFCD; font-size: 18px; max-width: 40ch; }
.lost__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.lost__mascot {
  width: min(72vw, 420px); height: auto; justify-self: center;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
@media (min-width: 768px) {
  .lost { grid-template-columns: 7fr 5fr; }
  .lost__mascot { width: 100%; max-width: 480px; justify-self: end; }
}

/* ---------- служебные страницы ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 96px; }
.doc h1 { font: 700 clamp(36px, 6vw, 60px)/1.05 var(--display); letter-spacing: -.015em; }
.doc h2 { font: 600 21px/1.3 var(--sans); margin-top: 44px; }
.doc p, .doc li { color: #C9CFCD; margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .todo { color: var(--ink); background: var(--acid); padding: 0 4px; }
.doc__back { display: inline-block; margin-top: 56px; }
