/* Лендинг «Бесплатный маркетинговый план»: цвета и шрифты заглушки, но спокойнее —
   без анимаций, частиц и бегущей ленты. */

:root {
  --night: #140F3A;
  --night-2: #2A1A6B;
  --ink: #14112E;
  --cream: #FFF4E0;
  --orange: #FF6B35;
  --pink: #FF3D7F;
  --lime: #C6FF3D;
  --yellow: #FFD23F;
  --muted: #5B5676;
  --wa: #25D366;
  --tg: #2AABEE;

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 107, 53, 0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(42, 26, 107, 0.9), transparent 70%),
    var(--night);
  color: var(--cream);
  font: 500 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Подвал всегда прижат к низу экрана, даже на короткой странице */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main { flex: 1 0 auto; }

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

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

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(20, 15, 58, 0.85);
  border-bottom: 1px solid rgba(255, 244, 224, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font: 800 24px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}

.logo__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Buttons ---------- */

.btn {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  background: var(--orange);
  color: #fff;
  font: 800 16px/1.1 var(--display);
  text-align: center;
  text-decoration: none;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn--small { min-height: 42px; padding: 0 16px; font-size: 13px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--wa { background: var(--wa); }
.btn--tg { background: var(--tg); }

.link { font-weight: 700; color: rgba(255, 244, 224, 0.75); text-underline-offset: 4px; }
.link:hover { color: var(--cream); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font: 800 11px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge--lime { background: var(--lime); }
.badge--pink { background: var(--pink); color: #fff; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; }
.hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.hero__title {
  max-width: 900px;
  font: 800 clamp(30px, 5.2vw, 54px)/1.08 var(--display);
  letter-spacing: -0.03em;
}

.hero__title em, .section__title em {
  font-style: normal;
  color: var(--ink);
  background: var(--lime);
  padding: 0 6px;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead { max-width: 680px; font-size: 19px; color: rgba(255, 244, 224, 0.82); }

.limit { font-weight: 700; color: var(--yellow); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }

/* ---------- Sections ---------- */

.section { padding: 48px 0; }

.section__title {
  margin-bottom: 24px;
  font: 800 clamp(24px, 3.6vw, 36px)/1.15 var(--display);
  letter-spacing: -0.02em;
}

.section__lead { margin: -12px 0 24px; color: rgba(255, 244, 224, 0.75); font-size: 17px; }

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

.card {
  padding: 26px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--orange);
}

.card h3 { font: 800 18px/1.25 var(--display); letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); }

.card__num { display: block; margin-bottom: 14px; font: 800 14px/1 var(--display); color: var(--orange); }

/* Образец плана */
.sample figure { display: flex; flex-direction: column; gap: 10px; }
.sample img { width: 100%; height: auto; border-radius: 12px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--orange); background: var(--cream); }
.sample figcaption { font-weight: 700; color: rgba(255, 244, 224, 0.75); }

/* Как это работает */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }

.steps__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 244, 224, 0.05);
  border: 2px solid rgba(255, 244, 224, 0.14);
}

.steps__item h3 { font: 800 17px/1.25 var(--display); margin-bottom: 6px; }
.steps__item p { color: rgba(255, 244, 224, 0.75); font-size: 15px; margin-bottom: 12px; }

.steps__dot {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--cream);
  font: 800 16px/1 var(--display);
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(198, 255, 61, 0.14);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

/* Кому подойдёт */
.fit ul { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.fit li { position: relative; padding-left: 32px; }
.fit li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font: 800 12px/1 var(--text);
}
.fit--yes li::before { content: "✓"; background: var(--lime); }
.fit--no { box-shadow: 6px 6px 0 var(--pink); }
.fit--no li::before { content: "✕"; background: #FFD9E3; }

/* Почему бесплатно */
.card--accent { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.why .section__title { margin-bottom: 12px; }
.why p { max-width: 760px; font-size: 18px; color: var(--ink); }

/* Об авторе */
.author { display: flex; align-items: center; gap: 28px; }

.author__photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--night-2);
  color: var(--cream);
  border: 3px solid var(--ink);
  font: 800 56px/1 var(--display);
  object-fit: cover;
}

.author__name { font-size: 22px !important; }
.author__facts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.author__facts li { position: relative; padding-left: 20px; }
.author__facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }

.faq details {
  border-radius: 18px;
  background: rgba(255, 244, 224, 0.05);
  border: 2px solid rgba(255, 244, 224, 0.14);
}

.faq details[open] { background: rgba(255, 244, 224, 0.09); }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font: 800 16px/1.35 var(--display);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--orange); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: rgba(255, 244, 224, 0.8); }
.faq a { color: var(--yellow); }

/* ---------- Form ---------- */

.section--form { padding-bottom: 72px; }
.form-card { padding: 30px; }

.progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.progress__text { font-size: 14px; color: var(--muted); }
.progress__text b { color: var(--ink); }
.progress__bar { height: 8px; border-radius: 99px; background: rgba(20, 17, 46, 0.1); overflow: hidden; }
.progress__fill { display: block; width: var(--p, 25%); height: 100%; border-radius: 99px; background: var(--orange); transition: width 0.3s ease-out; }

.step { border: 0; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.form.is-js .step:not(.is-active) { display: none; }

.field, .q { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }

.field__label { font-weight: 800; font-size: 15px; line-height: 1.35; }
.field__label small { font-weight: 500; color: var(--muted); font-size: 14px; }
.field__hint { margin-top: -4px; font-size: 13px; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* меньше 16px — iOS зумит страницу при фокусе */
}

.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314112E' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #9C97B3; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25); }

.is-invalid input, .is-invalid select, .is-invalid textarea, input.is-invalid { border-color: #E0204F; }
.q.is-invalid .chip span, .consent.is-invalid span::before { border-color: #E0204F; }
.err { color: #C8173F; font-size: 13px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 2px solid rgba(20, 17, 46, 0.25);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  transition: background 0.12s, border-color 0.12s;
}

.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent span::before {
  content: "";
  float: left;
  width: 24px;
  height: 24px;
  margin: -1px 12px 0 0;
  border-radius: 7px;
  border: 2px solid var(--ink);
  background: #fff center / 14px no-repeat;
}
.consent input:checked + span::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5l4 4L13 1' fill='none' stroke='%2314112E' stroke-width='2.5'/%3E%3C/svg%3E"); }
.consent input:focus-visible + span::before { outline: 3px solid var(--orange); outline-offset: 2px; }
.consent a { color: var(--ink); font-weight: 700; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__error { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #FFD9E3; color: #8C0F30; font-weight: 700; font-size: 14px; }

.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form__nav .btn:last-child, .form__nav #btn-next { margin-left: auto; }

.form__fallback { color: var(--ink); }
.form__fallback a { font-weight: 700; }

.result { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.result:focus { outline: none; }
.result h3 { font: 800 clamp(20px, 3vw, 26px)/1.2 var(--display); }
.result p { color: var(--muted); }
.result a:not(.btn) { color: var(--ink); font-weight: 700; }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result__small { font-size: 14px; }

.next { display: flex; flex-direction: column; gap: 12px; counter-reset: next; }
.next li { position: relative; padding-left: 40px; counter-increment: next; }
.next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
  font: 800 13px/1 var(--display);
}

/* ---------- Footer ---------- */

.footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 244, 224, 0.1); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__link { font-size: 14px; color: rgba(255, 244, 224, 0.6); text-underline-offset: 3px; }
.footer__link:hover { color: var(--cream); }

.pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 99px;
  background: rgba(255, 244, 224, 0.08);
  border: 2px solid rgba(255, 244, 224, 0.18);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.pill:hover { background: rgba(255, 244, 224, 0.16); }

/* ---------- Tablet & phone ---------- */

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  .wrap { padding: 0 16px; }
  .top__inner { min-height: 56px; }
  .logo { font-size: 21px; }

  .hero { padding: 36px 0 24px; }
  .hero .wrap { gap: 18px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }

  .section { padding: 36px 0; }
  .grid--2, .grid--3, .steps { grid-template-columns: 1fr; }
  .card { padding: 22px; border-radius: 20px; box-shadow: 5px 5px 0 var(--orange); }
  .fit--no { box-shadow: 5px 5px 0 var(--pink); }
  .card--accent { box-shadow: 5px 5px 0 var(--ink); }
  .why p { font-size: 16px; }

  .steps__item { flex-direction: row; align-items: flex-start; padding: 18px; }
  .steps__dot { flex-shrink: 0; width: 36px; height: 36px; }

  .author { flex-direction: column; align-items: flex-start; gap: 18px; }
  .author__photo { width: 96px; height: 96px; font-size: 40px; }

  .faq summary { padding: 16px; font-size: 15px; }
  .faq details p { padding: 0 16px 16px; }

  .form-card { padding: 20px 16px; margin: 0 -4px; }
  .form__nav { position: sticky; bottom: 0; margin: 24px -16px -20px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 2px solid rgba(20, 17, 46, 0.1); border-radius: 0 0 20px 20px; }
  .form__nav .btn { flex: 1; padding: 0 14px; font-size: 15px; }
  .form__nav #btn-back { flex: 0 0 auto; }
  .result__actions { width: 100%; flex-direction: column; }
  .result__actions .btn { width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Политика ПДн ---------- */

.legal h2 { margin: 24px 0 8px; font: 800 17px/1.3 var(--display); }
.legal p { color: var(--ink); }
.legal a { color: var(--ink); font-weight: 700; }
.legal .legal__edition { margin-top: 24px; color: var(--muted); font-size: 14px; }

/* ---------- Контакты ---------- */

.vcard { display: flex; flex-direction: column; gap: 22px; }
.card .vcard__name { font: 800 clamp(22px, 4vw, 28px)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.vcard__org { margin-top: 6px; color: var(--muted); font-weight: 700; }
.vcard__save { align-self: flex-start; }
.vcard__hint { margin-top: -10px; font-size: 14px; color: var(--muted); }

.vcard__list { display: flex; flex-direction: column; border-top: 2px solid rgba(20, 17, 46, 0.1); }
.vcard__list:first-child { margin: -12px 0; border-top: 0; }
.vcard__list:first-child a:last-child { border-bottom: 0; }
.vcard__list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 2px solid rgba(20, 17, 46, 0.1);
  text-decoration: none;
}
.vcard__list a:hover b { color: var(--orange); }
.vcard__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 19px;
}
.vcard__icon--wa { background: var(--wa); }
.vcard__icon--tg { background: var(--tg); }
.vcard__list span:last-child { display: flex; flex-direction: column; min-width: 0; }
.vcard__list small { font-size: 13px; color: var(--muted); }
.vcard__list b { font-size: 17px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .vcard__save { align-self: stretch; }
}
