/* Стиль страницы повторяет стиль самих роликов (paper из скилла):
   бумага с точками, чёрные «чернила», один красный, стикеры с точечной тенью. */

@font-face {
  font-family: "Geologica";
  src: url("fonts/Geologica-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("fonts/SofiaSansExtraCondensed-Variable.ttf") format("truetype");
  font-weight: 1 1000;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --dots: #c9c6bf;
  --ink: #141210;
  --red: #f83a20;
  --muted: #6f6b65;
  --card: #ffffff;
  --line: #e3dfd8;
  --window: #181818;
  --window-ink: #ededed;
  --dark: #2a2119;
  --dark-ink: #f7eddb;

  --body: "Geologica", system-ui, sans-serif;
  --head: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;

  --measure: 34rem;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.2px);
  background-size: 10px 10px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 350;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

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

/* ── шапка ── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.brand { font-family: var(--head); font-weight: 900; font-size: 26px; letter-spacing: .01em; text-decoration: none; }
.top a.small { font-size: 15px; color: var(--muted); }

/* ── стикер: заголовок как в роликах ── */
.sticker {
  font-family: var(--head);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--ink);
  -webkit-text-stroke: 0;
  text-shadow:
    3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff,
    0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff;
}
.sticker .w { display: inline-block; position: relative; white-space: nowrap; }
.sticker .w::after { /* точечная тень под словом */
  content: attr(data-w);
  position: absolute; left: 7px; top: 7px; z-index: -1; white-space: nowrap;
  color: transparent;
  background-image: radial-gradient(var(--ink) 1.1px, transparent 1.4px);
  background-size: 5px 5px;
  -webkit-background-clip: text; background-clip: text;
  text-shadow: none;
}

/* ── первый экран ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(12px, 3vw, 40px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero h1 { font-size: clamp(64px, 10.5vw, 150px); }
.hero .lead { max-width: var(--measure); font-size: clamp(18px, 1.6vw, 21px); margin: 28px 0 0; }
.hero .lead b { font-weight: 600; }

.buybar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 34px; }
.price { display: flex; align-items: baseline; gap: 12px; }
.price { flex-wrap: wrap; }
.price .now { font-family: var(--head); font-weight: 900; font-size: 52px; line-height: 1; white-space: nowrap; }
.price .alt { color: var(--muted); font-size: 16px; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 19px;
  background: var(--red); color: #fff;
  padding: 17px 30px; border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
  text-decoration: none; display: inline-block;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

.fine { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* ── телефон с живым примером ── */
.phone {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 34px;
  background: var(--window);
  padding: 10px;
  box-shadow: 10px 12px 0 -2px rgba(20,18,16,.0);
  transform: rotate(2.5deg);
}
.phone::after { /* полутоновая тень */
  content: ""; position: absolute; inset: 18px -14px -16px 18px; z-index: -1; border-radius: 36px;
  background-image: radial-gradient(var(--ink) 1.3px, transparent 1.6px);
  background-size: 6px 6px;
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 25px; overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(#9b988f 1px, transparent 1.2px);
  background-size: 7px 7px;
  container-type: inline-size;
}
.screen video { width: 100%; height: 100%; object-fit: cover; }

/* мини-ролик внутри экрана (заглушка, пока нет настоящих видео) */
.reel { position: absolute; inset: 0; font-family: var(--body); }
.reel .scene { position: absolute; inset: 0; opacity: 0; transition: opacity .12s linear; }
.reel .scene.on { opacity: 1; }
.reel .scene.dark { background: radial-gradient(circle at 50% 45%, var(--dark), #17120d 75%); color: var(--dark-ink); }
.reel .caps {
  position: absolute; left: 12%; right: 10%; top: 14%;
  font-size: 8.4cqw; line-height: 1.08; font-weight: 450; letter-spacing: -.02em;
}
.reel .caps span { display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity .1s, transform .1s; margin-right: .22em; }
.reel .caps span.in { opacity: 1; transform: none; }
.reel .caps span.hot { color: var(--red); }
.reel .big {
  position: absolute; left: 0; right: 0; top: 47%;
  text-align: center; font-family: var(--head); font-weight: 900; text-transform: uppercase;
  font-size: 19cqw; line-height: .85;
  color: var(--ink);
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
  transform: scale(1.25); opacity: 0; transition: transform .08s ease-out, opacity .05s;
}
.reel .big.in { transform: none; opacity: 1; }
.reel .dark .big { color: var(--dark-ink); text-shadow: none; }
.reel .win {
  position: absolute; left: 11%; right: 11%; top: 46%;
  background: var(--window); color: var(--window-ink); border-radius: 12px;
  padding: 9cqw 6cqw 6cqw; font-size: 5cqw; line-height: 1.35;
  transform: translate(-30%, 40%) rotate(-10deg); opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .15s;
}
.reel .win::before { content: "● ● ●"; position: absolute; top: 2.6cqw; left: 4cqw; font-size: 3cqw; color: #6b6b6b; letter-spacing: .2em; }
.reel .win.in { transform: none; opacity: 1; }
.reel .win .typed::after { content: "▍"; color: var(--red); animation: blink 1s steps(1) infinite; }
.reel .cards { position: absolute; left: 0; right: 0; top: 44%; height: 40%; }
.reel .cards i {
  position: absolute; width: 30%; aspect-ratio: 3/4; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  left: 35%; top: 10%; opacity: 0; transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  background-image: linear-gradient(160deg, #e9e5dd, #cfc9be);
}
.reel .cards.in i { opacity: 1; }
.reel .cards.in i:nth-child(1) { transform: translate(-95%, 6%) rotate(-10deg); transition-delay: 0s; }
.reel .cards.in i:nth-child(2) { transform: translate(0, -4%) rotate(2deg); transition-delay: .05s; }
.reel .cards.in i:nth-child(3) { transform: translate(95%, 8%) rotate(9deg); transition-delay: .1s; }
.reel .stamp {
  position: absolute; left: 50%; top: 60%;
  border: 1.2cqw double var(--red); color: var(--red); border-radius: 6px;
  font-family: var(--head); font-weight: 900; font-size: 13cqw; text-transform: uppercase; line-height: 1;
  padding: 2cqw 4cqw;
  transform: translate(-50%, -50%) rotate(-8deg) scale(2.4); opacity: 0;
  transition: transform .13s cubic-bezier(.16,1,.3,1), opacity .05s;
}
.reel .stamp.in { transform: translate(-50%, -50%) rotate(-8deg) scale(1); opacity: 1; }
.reel .label { position: absolute; top: 5%; left: 12%; font-size: 3.6cqw; font-weight: 700; color: var(--muted); }
.reel .dark .label { color: #8f877c; }
.badge {
  position: absolute; right: -8px; bottom: 22px; z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 500; transform: rotate(-3deg);
}
@keyframes blink { 50% { opacity: 0; } }

/* ── секции ── */
section.block { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(8px, 2vw, 24px); }
.block h2 { font-size: clamp(46px, 6.4vw, 88px); max-width: 15ch; }
.block .intro { max-width: var(--measure); margin: 22px 0 0; font-size: 19px; }

/* как это идёт: настоящая последовательность шагов */
.flow { margin-top: 44px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ask {
  background: var(--window); color: var(--window-ink); border-radius: 22px; padding: 46px 26px 26px; position: relative;
  font-size: 20px; line-height: 1.4;
}
.ask::before { content: "● ● ●"; position: absolute; top: 16px; left: 22px; font-size: 11px; letter-spacing: .25em; color: #6b6b6b; }
.ask .me { display: inline-block; background: #2d2d2d; border-radius: 14px 14px 4px 14px; padding: 12px 16px; margin-left: auto; }
.ask .row { display: flex; }
.ask .cl { margin-top: 18px; color: #bdbdbd; font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 54px 1fr; gap: 6px 14px; padding: 16px 0; border-top: 1.5px solid var(--ink); }
.steps li:last-child { border-bottom: 1.5px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--head); font-weight: 900; font-size: 44px; line-height: .9; color: var(--red); grid-row: span 2; }
.steps b { font-weight: 600; font-size: 19px; }
.steps span { color: var(--muted); font-size: 16px; }

/* примеры */
.examples { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.example .phone { width: 100%; transform: none; border-radius: 26px; padding: 7px; }
.example .phone::after { inset: 12px -9px -10px 12px; border-radius: 26px; background-size: 5px 5px; }
.example .screen { border-radius: 20px; }
.example:nth-child(odd) .phone { transform: rotate(-1.5deg); }
.example:nth-child(even) .phone { transform: rotate(1.5deg); }
.example p { margin: 16px 2px 0; font-size: 15px; }
/* обложка-заглушка: выглядит как первый кадр ролика, пока нет видео */
.slot { position: absolute; inset: 0; container-type: inline-size; }
.slot.dark { background: radial-gradient(circle at 50% 45%, var(--dark), #17120d 75%); color: var(--dark-ink); }
.slot .lbl { position: absolute; top: 7%; left: 10%; font-size: 6cqw; font-weight: 700; color: var(--muted); }
.slot .cap { position: absolute; top: 17%; left: 10%; right: 10%; font-size: 9.5cqw; line-height: 1.1; font-weight: 450; letter-spacing: -.02em; }
.slot .cap em { font-style: normal; color: var(--red); }
.slot .hit {
  position: absolute; left: 0; right: 0; top: 50%; text-align: center;
  font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: 23cqw; line-height: .85;
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
}
.slot.dark .hit { text-shadow: none; }
.slot .soon {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  white-space: nowrap; font-size: 5.6cqw; font-weight: 500; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 1.6cqw 4cqw;
}

/* лента тем: то, что люди просят у скилла */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: 0 -20px; }
.ticker .track { display: flex; width: max-content; animation: run 38s linear infinite; }
.ticker span { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4vw, 48px); line-height: 1; padding: 16px 0; white-space: nowrap; }
.ticker span::after { content: "✶"; color: var(--red); margin: 0 .55em; }
@keyframes run { to { transform: translateX(-50%); } }

/* единственный «выход» страницы: заголовок приземляется как стикер в ролике */
.slam .w { animation: slam .32s cubic-bezier(.2,1.4,.4,1) both; }
.slam .w:nth-of-type(2) { animation-delay: .14s; }
.slam .w:nth-of-type(3) { animation-delay: .28s; }
@keyframes slam { 0% { opacity: 0; transform: scale(1.35) rotate(-2deg); } 35% { opacity: .35; } 100% { opacity: 1; transform: none; } }

/* что внутри */
.inside { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tree {
  background: var(--window); color: var(--window-ink); border-radius: 22px; padding: 46px 24px 24px; position: relative;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; white-space: pre;
}
.tree::before { content: "● ● ●"; position: absolute; top: 16px; left: 22px; font-size: 11px; letter-spacing: .25em; color: #6b6b6b; font-family: var(--body); }
.tree em { font-style: normal; color: #8f8f8f; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 14px 0 14px 34px; position: relative; border-bottom: 1px solid var(--line); }
.list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 16px; height: 9px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.list b { font-weight: 600; }

/* что понадобится */
.needs { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.need { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; }
.need h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.need p { margin: 0; font-size: 16px; color: #3d3a36; }
.need code, .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: #f0ede7; padding: 2px 6px; border-radius: 6px; }

/* честно о времени */
.honest { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.honest div { padding: 22px 18px 22px 0; }
.honest div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.honest strong { display: block; font-family: var(--head); font-weight: 900; font-size: 46px; line-height: .95; text-transform: uppercase; }
.honest span { font-size: 16px; color: #3d3a36; }

/* вопросы */
.faq { margin-top: 36px; max-width: 46rem; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 30px; font-weight: 300; color: var(--red); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 40rem; color: #3d3a36; }

/* финал */
.final { text-align: center; padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(72px, 10vw, 120px); }
.final h2 { font-size: clamp(54px, 8vw, 116px); margin: 0 auto; max-width: 14ch; }
.final .buybar { justify-content: center; }
.stamp-price {
  display: inline-block; margin-top: 30px;
  border: 5px double var(--red); color: var(--red); border-radius: 8px; padding: 6px 18px;
  font-family: var(--head); font-weight: 900; font-size: 54px; line-height: 1; transform: rotate(-6deg);
}

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ── окно покупки ── */
dialog.buy {
  border: 0; padding: 0; border-radius: 22px; width: min(460px, calc(100vw - 32px));
  background: var(--paper); color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
dialog.buy::backdrop { background: rgba(20, 18, 16, .55); }
.buy form { padding: 30px 26px 26px; }
.buy h3 { margin: 0 0 6px; font-family: var(--head); font-weight: 900; font-size: 40px; line-height: .95; text-transform: uppercase; }
.buy p { margin: 0 0 18px; font-size: 16px; color: #3d3a36; }
.buy label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.buy input[type=email] {
  width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
}
.buy .ways { display: grid; gap: 10px; margin-top: 18px; }
.buy .way {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px 16px;
}
.buy .way:hover { border-color: var(--red); }
.buy .way b { font-weight: 600; font-size: 17px; display: block; }
.buy .way small { color: var(--muted); font-size: 14px; }
.buy .way .sum { font-family: var(--head); font-weight: 900; font-size: 30px; white-space: nowrap; }
.buy .way[disabled] { opacity: .5; cursor: progress; }
.buy .err { color: #c22a13; font-size: 15px; margin: 12px 0 0; min-height: 1.2em; }
.buy .close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px; }

/* ── страница доступа ── */
.access { max-width: 760px; padding-top: 24px; padding-bottom: 80px; }
.access h1 { font-size: clamp(54px, 9vw, 104px); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-top: 30px; }
.panel h2 { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.panel ol { margin: 0; padding-left: 22px; }
.panel ol li { margin-bottom: 14px; }
.panel pre { white-space: pre-wrap; word-break: break-word; background: var(--window); color: var(--window-ink); border-radius: 12px; padding: 14px 16px; font-size: 14px; margin: 10px 0 0; }
.status { margin-top: 26px; font-size: 19px; }

/* ── узкие экраны ── */
@media (max-width: 900px) {
  .hero, .flow, .inside { grid-template-columns: 1fr; }
  .hero .phone { width: min(78vw, 320px); margin-top: 8px; }
  .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs, .honest { grid-template-columns: 1fr; }
  .honest div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  body { font-size: 17px; }
  .price .now { font-size: 44px; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
