/* ============================================================
   Лендинг: набор моделей. Mobile-first — 90% трафика с Meta мобильный.
   ============================================================ */

:root {
  --bg:        #0a0a0e;
  --surface:   #131319;
  --surface-2: #1b1b23;
  --line:      #26262f;
  --text:      #f4f4f7;
  --muted:     #9494a4;
  --accent:    #ff3d78;
  --accent-2:  #ff7a45;
  --ok:        #3ddc97;
  --no:        #ff5c5c;
  --tg:        #2aabee;
  --radius:    16px;
  --wrap:      1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

.accent {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- ШАПКА ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,14,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.logo span { color: var(--accent); }
.badge-18 {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; font-size: 12px; font-weight: 700; color: var(--muted);
}

/* ---------- ПЕРВЫЙ ЭКРАН ---------- */
.hero { padding: 48px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 50%;
  width: 700px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,61,120,.16), transparent 65%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero__kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); border: 1px solid rgba(255,61,120,.3);
  background: rgba(255,61,120,.08); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero__h1 { font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.hero__sub { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 620px; }
.hero__note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* Блок честных условий — главный текстовый фильтр */
.honest {
  margin: 30px 0; padding: 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.honest__title { font-weight: 700; margin-bottom: 14px; font-size: 16px; }
.honest__list { list-style: none; display: grid; gap: 10px; }
.honest__list li { padding-left: 20px; position: relative; color: #d3d3dd; font-size: 15px; }
.honest__list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.honest__list b { color: var(--text); }
.honest__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; cursor: pointer;
  font: 600 16px/1 inherit; font-family: inherit;
  padding: 16px 28px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--lg { width: 100%; padding: 18px 28px; font-size: 17px; }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--line); }
.btn--tg { background: var(--tg); color: #fff; width: 100%; padding: 18px; font-size: 17px; }
.btn--tg:hover { filter: brightness(1.08); }

/* ---------- СЕКЦИИ ---------- */
.sec { padding: 56px 0; }
.sec--alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec__h { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 28px; }

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.sec--alt .card { background: var(--bg); }
.card__ico { color: var(--accent); font-size: 14px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- ПОДХОДИМ / НЕ ПОДХОДИМ ---------- */
.pane { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pane--yes { border-top: 3px solid var(--ok); }
.pane--no  { border-top: 3px solid var(--no); }
.pane__h { font-size: 18px; margin-bottom: 16px; }
.ticks, .crosses { list-style: none; display: grid; gap: 12px; }
.ticks li, .crosses li { padding-left: 30px; position: relative; color: #d3d3dd; font-size: 15px; }
.ticks li::before   { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.crosses li::before { content: "✕"; position: absolute; left: 0; color: var(--no); font-weight: 700; }

/* ---------- ЭТАПЫ ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: s; }
.steps li {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.steps span {
  font-weight: 800; font-size: 20px; color: var(--accent);
  min-width: 34px; letter-spacing: -.02em;
}
.steps h3 { font-size: 16px; margin-bottom: 5px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 46px 18px 20px; font-weight: 600;
  list-style: none; position: relative; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 20px 20px; color: var(--muted); font-size: 15px; }

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */
.cta { padding: 64px 0; text-align: center; background: linear-gradient(180deg, transparent, rgba(255,61,120,.07)); }
.cta__h { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta__sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- ФУТЕР ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot__18 { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.foot__c { color: #62626f; font-size: 13px; }
.foot__c a { color: #62626f; }

/* ============================================================
   ВОЗРАСТНОЙ ГЕЙТ 18+
   Непрозрачный слой поверх страницы. Разметка под ним остаётся
   в DOM целиком и одинакова для всех посетителей и роботов.
   ============================================================ */

.gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 24px;
}

/* Вернувшийся посетитель: гасим до отрисовки, чтобы не мигало */
.age-ok .gate { display: none; }

.gate__box {
  width: 100%; max-width: 440px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px 26px 28px;
}

.gate__badge {
  width: 62px; height: 62px; margin: 0 auto 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--accent);
  background: rgba(255,61,120,.1);
  border: 1px solid rgba(255,61,120,.3);
}

.gate__h { font-size: 23px; font-weight: 800; margin-bottom: 14px; }
.gate__t { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.gate__t--strong { color: var(--text); font-weight: 600; margin-bottom: 24px; }

.gate__btns { display: grid; gap: 10px; }
.gate__btns .btn { width: 100%; }

.gate__legal {
  color: #62626f; font-size: 12px; line-height: 1.5;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.gate__legal a { color: #8a8a99; }

/* ============================================================
   КВИЗ
   ============================================================ */
.quiz {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,6,9,.9); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
}
.quiz[hidden] { display: none; }

.quiz__panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  width: 100%; max-width: 540px;
  max-height: 92vh; display: flex; flex-direction: column;
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(28px); opacity: 0; } }

.quiz__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.quiz__counter { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.quiz__close {
  background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1;
  cursor: pointer; padding: 0 4px; margin-left: auto;
}
.quiz__close:hover { color: var(--text); }

.quiz__progress { height: 3px; background: var(--line); }
.quiz__progress i { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease; }

.quiz__body { padding: 24px 20px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ---------- шаг ---------- */
.step__q { font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.step__hint { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.step__options { display: grid; gap: 10px; }

.opt {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 17px 18px;
  color: var(--text); font: 500 16px/1.35 inherit; font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.opt:hover { border-color: var(--accent); background: #21212a; }
.opt:active { transform: scale(.99); }

.step__back {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 500 14px inherit; font-family: inherit; margin-top: 18px; padding: 6px 0;
}
.step__back:hover { color: var(--text); }

/* ---------- поле контакта ---------- */
.field {
  width: 100%; box-sizing: border-box;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
  color: var(--text); font: 500 16px/1.3 inherit; font-family: inherit;
  transition: border-color .15s ease;
  /* 16px обязательны: при меньшем размере Safari на iOS зумит страницу при фокусе */
}
.field::placeholder { color: #5c5c6a; }
.field:focus { outline: none; border-color: var(--accent); background: #21212a; }
.field--bad { border-color: var(--no); }

.field__err { color: var(--no); font-size: 14px; margin-top: 10px; }

.btn--full { width: 100%; margin-top: 14px; }

.step__legal { color: #62626f; font-size: 12px; line-height: 1.5; margin-top: 16px; text-align: center; }
.step__legal a { color: #8a8a99; }

/* ---------- результат ---------- */
.result { text-align: center; padding: 8px 0; }
.result__icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700;
}
.result--ok .result__icon     { background: rgba(61,220,151,.14); color: var(--ok); }
.result--reject .result__icon { background: rgba(255,92,92,.14);  color: var(--no); }
.result__title { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.result__text { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.result__note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.result__code { color: #62626f; font-size: 12px; margin-top: 8px; letter-spacing: .06em; }
.result--reject .btn { width: 100%; }

.summary {
  text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 16px; margin-bottom: 20px;
}
.summary__row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.summary__row:last-child { border-bottom: 0; }
.summary__k { color: var(--muted); }
.summary__v { font-weight: 600; text-align: right; }

/* ============================================================
   ПЛАНШЕТ / ДЕСКТОП
   ============================================================ */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .hero { padding: 76px 0 84px; }
  .hero__h1 { font-size: 56px; }
  .hero__sub { font-size: 19px; }
  .sec { padding: 76px 0; }
  .sec__h { font-size: 32px; }
  .btn--lg { width: auto; min-width: 300px; }
  .quiz { align-items: center; }
  .quiz__panel { border-radius: 20px; max-height: 88vh; }
  .quiz__body { padding: 28px 32px 34px; }
  .step__q { font-size: 24px; }
  .cta__h { font-size: 36px; }
}

@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hero__h1 { font-size: 64px; }
  .honest { padding: 28px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
