/* Дизайн-система под продукт: тёмная основа, тил как основной, оранжевый на действии.
   Тёмная тема выбрана ради стыковки с самим приложением: лендинг и сервис должны
   выглядеть одним продуктом, а не двумя разными сайтами. */

:root {
  --bg: #0b1014;
  --bg-2: #101820;
  --surface: #151f29;
  --surface-2: #1b2733;
  --line: #24323f;
  --line-soft: #1c2833;

  --fg: #eef3f7;
  --muted: #94a6b6;
  --dim: #6d8091;

  --teal: #14b8a6;
  --teal-deep: #0d9488;
  --cta: #f97316;
  --cta-hover: #ea640c;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0 0 18px; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(32px, 3.9vw, 52px); }
h2 { font-size: clamp(28px, 3.9vw, 46px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 18px; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.dim { color: var(--dim); font-size: 15px; }

.grad {
  background: linear-gradient(96deg, var(--teal-deep) 0%, var(--teal) 38%, #7dead9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cta);
  color: #17110a;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 22px;
  font: 600 16px/1 "Plus Jakarta Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.btn:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn--ghost:hover { background: var(--surface-2); border-color: var(--teal-deep); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 16, 20, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 160ms ease; }
.nav__links a:hover { color: var(--fg); }

/* ---- первый экран ---- */

.hero {
  position: relative;
  padding: 60px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -380px; right: -180px;
  width: 1100px; height: 800px;
  background: radial-gradient(ellipse at center, rgba(20, 184, 166, .16), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  /* Текстовой колонке отдано больше: в первом экране поле ввода важнее превью,
     а в узкой колонке placeholder обрезался на середине примера. */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* Ниже поля ввода, а не над заголовком: сверху они перехватывали внимание
   у единственного сообщения первого экрана. Здесь они отвечают на вопрос
   «а под мою задачу это подойдёт», который возникает уже после обещания. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.chips span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(21, 31, 41, .6);
}

.lead {
  font-size: clamp(17px, 1.9vw, 19px);
  color: var(--muted);
  max-width: 34em;
}

.lead--center { text-align: center; margin-inline: auto; }

.cta-row { display: flex; gap: 12px; margin: 30px 0 18px; flex-wrap: wrap; }
.cta-facts { color: var(--dim); font-size: 14px; margin: 0; }

/* Каскад слайдов: четыре реальных файла внахлёст, правый край уходит за экран.
   Ровная сетка превью читается как каталог, каскад — как объём работы сервиса. */

.hero__shots { position: relative; height: clamp(280px, 25vw, 360px); }

.shot {
  position: absolute;
  width: 70%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shot--1 { top: 0; left: 0; z-index: 4; }
.shot--2 { top: 122px; left: 26%; z-index: 3; }
.shot--3 { top: 34px; left: 56%; width: 54%; z-index: 1; opacity: .4; }
.shot--4 { display: none; }

/* ---- полоса фактов ---- */

.strip {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-2);
  margin-top: 56px;
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-block: 30px;
  text-align: center;
}

.strip strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.strip span { color: var(--dim); font-size: 14px; }

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

section { padding: 96px 0; }
.strip { padding: 0; }

.tag {
  display: inline-block;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.doors, .gallery, .price, .final, .weak { text-align: center; }
.doors .tag, .gallery .tag, .price .tag, .faq .tag { display: inline-block; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 40px;
  text-align: left;
}

blockquote {
  margin: 0 0 18px;
  padding: 18px 20px;
  background: var(--surface);
  border-left: 3px solid var(--cta);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
}

/* ---- отчёт о дословности ---- */

.report {
  max-width: 660px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

.report__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.report__title { margin-left: 10px; font-size: 14px; color: var(--muted); }
.report__body { padding: 26px 24px 22px; }

.metric {
  display: grid;
  grid-template-columns: 1fr 120px 62px;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.metric__label { font-size: 15px; color: var(--muted); }
.metric__track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }

.metric__track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal));
}

.metric__value { font-size: 22px; font-weight: 800; text-align: right; }

.report__warn {
  margin: 20px 0 0;
  padding: 12px 14px;
  background: rgba(249, 115, 22, .09);
  border-left: 3px solid var(--cta);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.report__hint { margin: 12px 0 0; font-size: 14px; color: var(--dim); }

/* ---- шаги ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 42px;
  text-align: left;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.step:hover { border-color: var(--teal-deep); transform: translateY(-2px); }

.step__num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---- галерея слайдов ---- */

.gallery__rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 40px max(24px, calc((100vw - 1120px) / 2)) 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.gallery__rail figure {
  margin: 0;
  flex: 0 0 min(76vw, 540px);
  scroll-snap-align: center;
}

.gallery__rail img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---- тарифы ---- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  text-align: left;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.plan--now { border-color: var(--teal-deep); box-shadow: 0 0 0 1px rgba(20, 184, 166, .18); }
.plan .plan__price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; color: var(--fg); }
.plan p { color: var(--muted); font-size: 16px; }

.ticks { list-style: none; margin: 0 0 26px; padding: 0; }

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 16px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---- вопросы ---- */

.faq__list { max-width: 760px; margin: 38px auto 0; text-align: left; }

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 26px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--dim);
  border-bottom: 2px solid var(--dim);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }

/* ---- финал ---- */

.final {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, .16), transparent 62%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

.final p { color: var(--muted); margin-bottom: 30px; }

.foot { padding: 30px 0; border-top: 1px solid var(--line-soft); }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ---- появление при прокрутке ---- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .step:hover { transform: none; }
}

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

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__shots { height: 58vw; }
  .shot { width: 78%; }
  .shot--4 { display: none; }
}

@media (max-width: 900px) {
  section { padding: 66px 0; }
  .grid-2, .steps, .plans { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .metric { grid-template-columns: 1fr 70px 54px; gap: 10px; }
}

@media (max-width: 520px) {
  .btn--lg { width: 100%; }
  .cta-row { flex-direction: column; }
  .report__body { padding: 20px 16px; }
  .metric { grid-template-columns: 1fr 52px; }
  .metric__track { display: none; }
}

/* ---- посадка под брендовый запрос ---- */

.hero--compact { padding-bottom: 20px; }
.hero--compact + .problem { padding-top: 70px; }

.step--accent { border-color: var(--teal-deep); background: linear-gradient(180deg, rgba(20,184,166,.07), transparent 60%), var(--surface); }

/* Таблица набрана гридом, а не table: на узком экране колонки схлопываются в строки,
   а настоящая таблица уезжает за край. */
.compare {
  max-width: 860px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}

.compare__row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--muted);
}

.compare__row:last-child { border-bottom: 0; }

.compare__row--head {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--fg);
  font-size: 14px;
  letter-spacing: .02em;
}

.compare__row > span:first-child { color: var(--fg); }
.compare .yes { color: #5eead4; font-weight: 600; }
.compare .no { color: #f98a6a; }
.compare__note { max-width: 860px; margin: 14px auto 0; text-align: left; }

@media (max-width: 760px) {
  .compare__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .compare__row--head { display: none; }
  .compare__row > span:first-child { font-weight: 700; margin-bottom: 4px; }
  .compare .yes::before { content: "preza: "; color: var(--dim); font-weight: 400; }
  .compare__row > span:nth-child(2):not(.yes)::before { content: "Gamma: "; color: var(--dim); }
  .compare .no::before { content: "Gamma: "; color: var(--dim); font-weight: 400; }
}

/* ---- признание слабых мест ---- */

.weak { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.weak__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; text-align: left; }

.weak__item {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.weak__item h3 { color: var(--fg); }
.weak__item p { color: var(--muted); font-size: 15px; margin: 0; }

@media (max-width: 900px) {
  .weak__grid { grid-template-columns: 1fr; }
}

/* ---- исходный абзац рядом со слайдом ---- */

.mirror { text-align: center; background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.mirror__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 42px;
  text-align: left;
}

.mirror__side { margin: 0; display: flex; flex-direction: column; gap: 10px; }

.mirror__side figcaption {
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mirror__text {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
}

.mirror__text p { margin: 0; color: var(--fg); font-size: 16px; }

.mirror__side img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mirror__cta { margin: 26px 0 0; color: var(--dim); font-size: 15px; }
.mirror__cta a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(20,184,166,.4); }
.mirror__cta a:hover { color: #5eead4; }

@media (max-width: 900px) {
  .mirror__grid { grid-template-columns: 1fr; }
}

/* ---- ввод прямо в первом экране ---- */

.starter { display: flex; gap: 10px; margin: 30px 0 16px; }

.starter input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  padding: 15px 18px;
  font: 400 16px/1.2 "Plus Jakarta Sans", sans-serif;
}

.starter input::placeholder { color: var(--dim); }
.starter input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }

.cta-facts a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cta-facts a:hover { color: var(--fg); }

.plan .plan__anchor {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 4px;
  text-decoration: line-through;
  text-decoration-color: rgba(249, 115, 22, .5);
}

@media (max-width: 520px) {
  .starter { flex-direction: column; }
  .starter .btn { width: 100%; }
}

/* ---- две двери: свой текст или одна тема ---- */

.doors { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.door {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg);
}

.door h3 { margin: 0; color: var(--fg); font-size: 22px; }
.door p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Слайд под текстом двери показывает, чем эта дверь заканчивается. */
.door figure { margin: 0; width: 100%; }

.door img {
  width: 100%;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.door .btn { margin-top: auto; }

.doors__note { margin: 26px 0 0; color: var(--dim); font-size: 15px; }
.doors__note a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(20,184,166,.4); }
.doors__note a:hover { color: #5eead4; }

/* Месячный тариф выделен: он выгоднее разового уже со второй презентации,
   и человеку не надо это высчитывать. */
.plan--best { border-color: var(--teal-deep); box-shadow: 0 0 0 1px rgba(20, 184, 166, .18); }
.plan--now { border-color: var(--line); box-shadow: none; }

.plan h3 { margin: 0 0 6px; font-size: 18px; color: var(--dim); font-weight: 600; }
.plan .ticks { margin-top: 18px; margin-bottom: 0; }

.price__note { margin: 26px 0 0; color: var(--dim); font-size: 15px; }
