/* Статьи-лонгриды BASESMM. Цвета из сторис Насти: тёмно-зелёный и мятный */
:root {
  --ground: #f3f4f0;
  --ground-2: #e7eae3;
  --ink: #111813;
  --ink-2: #4a544d;
  --field: #123d2f;
  --field-2: #1a4b3a;
  --field-ink: #edf6ef;
  --field-ink-2: #b9d1c1;
  --mint: #8fe3a9;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 18px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.bar { background: var(--field); color: var(--field-ink); }
.bar .in { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar b { font: 600 16px/1.3 var(--display); letter-spacing: .02em; }
.bar span { color: var(--field-ink-2); white-space: nowrap; }

article { max-width: 720px; margin: 0 auto; padding: 32px 16px 40px; }
.kicker { font: 600 16px/1 var(--display); color: var(--field); margin: 0 0 14px; }
h1 { font: 600 clamp(34px, 8.4vw, 56px)/1.05 var(--display); letter-spacing: -0.01em; margin: 0 0 22px; }
h2 { font: 600 clamp(28px, 6.4vw, 40px)/1.1 var(--display); letter-spacing: -0.01em; margin: 56px 0 18px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 18px; }
.sub { font-size: 20px; line-height: 1.5; }
.hl { font-weight: 800; background: linear-gradient(transparent 62%, rgba(143, 227, 169, .75) 62%); }
.soft { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }

figure { margin: 28px 0; }
figure img { width: 100%; }
figcaption { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }

.toc { background: var(--field); color: var(--field-ink); padding: 24px 22px; margin: 28px 0; }
.toc p { font: 600 22px/1.2 var(--display); margin: 0 0 14px; }

ol.n { list-style: none; counter-reset: n; padding: 0; margin: 0 0 22px; }
ol.n > li { counter-increment: n; position: relative; padding: 4px 0 4px 50px; margin-bottom: 14px; min-height: 36px; }
ol.n > li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--field); color: var(--mint); font: 600 18px/36px var(--display); text-align: center; }
.toc ol.n > li::before, .field-box ol.n > li::before { background: var(--mint); color: var(--field); }

ul.d { list-style: none; padding: 0; margin: 0 0 22px; }
ul.d > li { position: relative; padding-left: 30px; margin-bottom: 12px; }
ul.d > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 14px; height: 4px; background: var(--field); }
.field-box ul.d > li::before { background: var(--mint); }
ul.d.check > li::before { content: "✓"; width: auto; height: auto; background: none; top: 0; left: 2px; font-weight: 800; color: var(--field); }

.quote { background: var(--ground-2); padding: 22px; margin: 28px 0; font: 500 21px/1.45 var(--text); }
.quote cite { display: block; margin-top: 10px; font: 400 15px/1.4 var(--text); font-style: normal; color: var(--ink-2); }
.field-box { background: var(--field); color: var(--field-ink); padding: 26px 22px; margin: 28px 0; }
.field-box .soft { color: var(--field-ink-2); }
.field-box h3 { color: var(--field-ink); }
.vs { display: grid; gap: 4px; margin: 28px 0; }
.vs > div { background: var(--ground-2); padding: 20px 22px; }
.vs > div:last-child { background: var(--field); color: var(--field-ink); }
.vs h3 { font: 600 22px/1.15 var(--display); margin-bottom: 10px; }
.vs p:last-child { margin: 0; }
@media (min-width: 640px) { .vs { grid-template-columns: 1fr 1fr; } }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 16px 28px; border: 0; border-radius: 999px; background: var(--field); color: #fff; font: 700 18px/1.2 var(--text); text-decoration: none; text-align: center; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { background: var(--field-2); }
.btn:active { transform: scale(.97); }
.field-box .btn { background: var(--mint); color: var(--field); }
.btn-note { text-align: center; font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }
.cta { margin: 32px 0; }

.shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 24px -16px 0; padding: 0 16px 14px; }
.shots figure { flex: 0 0 min(80vw, 340px); margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ground-2); cursor: zoom-in; }
.shots figcaption { font-size: 14px; }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(17, 24, 19, .94); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lb-x { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: 400 30px/1 var(--text); cursor: pointer; }

/* Страхи в блоке «А вдруг не получится?»: вопросы видны, ответы по нажатию */
.faq { display: grid; gap: 8px; margin: 18px 0 28px; }
.faq details { border: 2px solid var(--mint); border-radius: 24px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 20px; font-weight: 700; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--field); font: 400 22px/28px var(--text); text-align: center; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--field); }
.faq details p { margin: 0; padding: 0 20px 16px; }

/* Скрины отзывов из переписки: как сообщение в телефоне, не на всю ширину */
.review { max-width: 420px; margin: 28px auto; }
.review img { width: 100%; border-radius: 20px; background: #fff; }
.review figcaption { text-align: center; }

/* Видеоотзывы: на телефоне лента, на десктопе 4 в ряд */
.vids { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 24px -16px 0; padding: 0 16px 14px; }
.vids figure { flex: 0 0 min(72vw, 270px); margin: 0; scroll-snap-align: center; }
.vids video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); display: block; }
.vids figcaption { font-size: 15px; line-height: 1.4; color: var(--ink-2); margin-top: 8px; }
.vids figcaption b { display: block; color: var(--ink); font-size: 16px; }
@media (min-width: 900px) { .vids { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 24px 0 0; padding: 0; } .vids figure { flex: none; } }

/* Программа по блокам свёрнута: для первичной продажи она не нужна, но её можно открыть */
.prog-wrap { margin: 20px 0 0; }
.prog-wrap summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 22px; border: 2px solid var(--mint); border-radius: 999px; background: transparent; color: var(--mint); font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.prog-wrap summary:hover, .prog-wrap[open] summary { background: var(--mint); color: var(--field); }
.prog-wrap summary::-webkit-details-marker { display: none; }
.prog-wrap summary::after { content: "+"; font: 400 26px/1 var(--text); }
.prog-wrap[open] summary::after { content: "−"; }
.prog-wrap[open] summary { margin-bottom: 12px; }

.prog { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.prog li { background: var(--field-2); padding: 16px 18px; }
.prog b { display: block; font: 600 15px/1 var(--display); color: var(--mint); margin-bottom: 6px; }
.prog span { color: var(--field-ink-2); font-size: 15px; }

/* Форма */
.form-box { background: var(--field); color: var(--field-ink); padding: 28px 20px; margin: 28px -16px 0; }
@media (min-width: 640px) { .form-box { margin: 28px 0 0; padding: 36px; } }
.form-box h2 { margin-top: 0; color: var(--field-ink); }
.form-box .soft { color: var(--field-ink-2); }
label.f { display: block; font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.row { margin-bottom: 18px; }
.form-box input[type=text], .form-box input[type=tel] { width: 100%; min-height: 56px; padding: 14px 16px; border: 0; border-radius: 0; font: 500 18px var(--text); background: var(--field-ink); color: var(--ink); }
.form-box input:focus-visible { outline: 3px solid var(--mint); outline-offset: 0; }
.row.err input { outline: 3px solid #ff9b8a; }
.err-text { display: none; color: #ffb4a6; font-size: 14px; margin-top: 6px; }
.row.err .err-text { display: block; }
.pref { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pref legend { padding: 0; margin-bottom: 8px; width: 100%; }
.pref label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: var(--field-2); border-radius: 999px; cursor: pointer; font-size: 16px; }
.pref input { width: 18px; height: 18px; margin: 0; accent-color: var(--mint); }
.pref label:has(input:checked) { background: var(--mint); color: var(--field); font-weight: 700; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--field-ink-2); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--mint); }
.consent.err span { color: #ffb4a6; }
.form-box .btn { background: var(--mint); color: var(--field); }
.form-box .btn:hover { background: #a9ecbd; }
.form-msg { display: none; }
.form-msg.show { display: block; }
.form-msg h3 { font: 600 30px/1.1 var(--display); margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; }

footer { max-width: 720px; margin: 0 auto; padding: 40px 16px 120px; font-size: 14px; color: var(--ink-2); }
footer p { margin: 0 0 8px; }
footer .name { font: 600 clamp(44px, 12vw, 96px)/0.9 var(--display); color: var(--ink); margin: 0 0 24px; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ground); transform: translateY(110%); transition: transform .25s ease; }
.sticky.show { transform: none; }
.sticky .btn { max-width: 560px; margin: 0 auto; min-height: 54px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky { transition: none; }
}
