/* ==========================================================================
   septik-zayavki-garantiya-msk — стили лендинга и правовых страниц
   Дизайн: чистый, mobile-first, без внешних шрифтов (скорость / LCP).
   Палитра: глубокий зелёно-синий (доверие, экология) + оранжевый акцент CTA.
   ========================================================================== */

:root{
  --bg:#f5f7f8;
  --surface:#ffffff;
  --ink:#0b1220;
  --muted:#54637a;
  --line:#e2e8ee;
  --brand:#0b6b4f;
  --brand-2:#0e8f68;
  --brand-soft:#e8f5ef;
  --accent:#ff6a00;
  --accent-2:#e85f00;
  --accent-soft:#fff1e6;
  --hero-1:#052620;
  --hero-2:#0a3a2e;
  --ok:#0b6b4f;
  --err:#c62e2e;
  --err-soft:#fdeceb;
  --radius:16px;
  --radius-sm:12px;
  --shadow:0 12px 32px rgba(6,25,45,.08);
  --shadow-lg:0 24px 60px rgba(4,20,35,.18);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

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

body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.55;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover,a:focus{text-decoration:underline}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}

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

/* ---------- Экран 1: оффер (hero) ---------- */

.hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(14,143,104,.55), transparent 70%),
    radial-gradient(700px 380px at 96% 8%, rgba(255,106,0,.22), transparent 72%),
    linear-gradient(160deg,var(--hero-1) 0%,var(--hero-2) 100%);
}

.hero__inner{padding:20px 18px 34px}

.topline{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;margin-bottom:22px;
}

.brandmark{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.2px}
.brandmark__dot{
  width:34px;height:34px;border-radius:10px;flex:0 0 auto;
  background:linear-gradient(140deg,var(--brand-2),#37c79a);
  display:grid;place-items:center;color:#052620;font-size:18px;font-weight:800;
}

.adplate{
  font-size:12px;line-height:1.35;color:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.22);border-radius:999px;
  padding:6px 12px;background:rgba(255,255,255,.06);
}

.whoami{
  display:inline-flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;padding:8px 15px;
  font-size:14.5px;font-weight:600;letter-spacing:.1px;
  margin:0 0 16px;
}
.whoami svg{flex:0 0 auto}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(29px,6.4vw,50px);
  line-height:1.1;
  letter-spacing:-.5px;
  font-weight:800;
  max-width:19ch;
}

.hero h1 .hl{
  color:#5ff0b8;
  box-shadow:inset 0 -0.18em 0 rgba(95,240,184,.22);
}

.lead{
  margin:0 0 22px;
  font-size:clamp(16px,3.6vw,19.5px);
  line-height:1.5;
  color:rgba(255,255,255,.88);
  max-width:62ch;
}

/* Буллеты выгод */
.bullets{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:11px;max-width:70ch}
.bullets li{display:flex;gap:11px;align-items:flex-start;font-size:16.5px;color:rgba(255,255,255,.95)}
.bullets .tick{
  flex:0 0 auto;width:22px;height:22px;border-radius:50%;
  background:#5ff0b8;color:#052620;display:grid;place-items:center;
  font-size:13px;font-weight:800;margin-top:2px;
}
.bullets b{color:#fff}
.bullets .sub{display:block;font-size:14px;color:rgba(255,255,255,.66);font-weight:400}

/* Блок интриги */
.intrigue{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16);
  border-left:4px solid var(--accent);
  border-radius:var(--radius-sm);
  padding:15px 17px;margin:0 0 24px;max-width:74ch;
}
.intrigue h2{margin:0 0 6px;font-size:17.5px;font-weight:700;color:#fff}
.intrigue p{margin:0;font-size:15.5px;color:rgba(255,255,255,.82)}

/* CTA */
.cta-block{display:grid;gap:12px;justify-items:start;max-width:660px}

.btn{
  -webkit-appearance:none;appearance:none;border:0;cursor:pointer;
  font-family:inherit;font-weight:800;font-size:18px;line-height:1;
  color:#fff;background:linear-gradient(180deg,#ff8327,var(--accent));
  border-radius:14px;padding:19px 30px;
  box-shadow:0 12px 26px rgba(255,106,0,.34);
  transition:transform .12s ease,box-shadow .12s ease,background .2s ease;
  text-align:center;min-height:58px;width:auto;max-width:100%;
}
.btn:hover{background:linear-gradient(180deg,#ff8f3c,var(--accent-2));transform:translateY(-1px);box-shadow:0 16px 30px rgba(255,106,0,.4);text-decoration:none}
.btn:active{transform:translateY(0)}
.btn[disabled],.btn[aria-disabled="true"]{
  background:#9fabb8;box-shadow:none;cursor:not-allowed;transform:none;color:#f2f5f7;
}
.btn--block{width:100%;max-width:420px}
.btn__hint{display:block;font-size:13px;font-weight:500;opacity:.85;margin-top:7px}

.btn-caption{margin:0;font-size:14.5px;color:rgba(255,255,255,.8);max-width:56ch}

.microtrust{
  list-style:none;display:flex;flex-wrap:wrap;gap:8px 18px;margin:4px 0 0;padding:0;
  font-size:13.5px;color:rgba(255,255,255,.72);
}
.microtrust li{display:flex;align-items:center;gap:6px}
.microtrust li::before{content:"·";color:var(--accent);font-weight:800}
.microtrust li:first-child::before{content:"";margin:0}

/* Блок гарантии по договору */
.guarantee{
  margin:26px 0 0;
  background:rgba(255,255,255,.96);
  color:var(--ink);
  border-radius:var(--radius);
  padding:20px 20px 18px;
  box-shadow:var(--shadow-lg);
  max-width:760px;
  border:1px solid rgba(255,255,255,.5);
}
.guarantee h2{margin:0 0 8px;font-size:19px;display:flex;align-items:center;gap:9px}
.guarantee h2 .badge{
  font-size:11.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;
  background:var(--brand-soft);color:var(--brand);border-radius:999px;padding:4px 10px;
}
.guarantee p{margin:0 0 8px;font-size:15.5px;color:#25303f}
.guarantee p:last-child{margin-bottom:0}
.guarantee strong{color:var(--brand)}

/* ---------- Экран 2: квиз ---------- */

.quiz{background:var(--bg);padding:34px 0 46px}

.quiz__head{margin:0 0 20px}
.quiz__head h2{
  margin:0 0 8px;font-size:clamp(23px,5vw,34px);line-height:1.18;letter-spacing:-.3px;font-weight:800;
  max-width:26ch;
}
.quiz__head p{margin:0;color:var(--muted);font-size:16px}

.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:22px 20px;
}

.quiz__progress{
  display:flex;align-items:center;gap:10px;margin-bottom:20px;
  font-size:13.5px;color:var(--muted);font-weight:600;
}
.pips{display:flex;gap:6px}
.pip{width:26px;height:5px;border-radius:99px;background:#dde4ea}
.pip.is-on{background:var(--brand-2)}

.q{margin:0 0 22px;padding:0;border:0}
.q:last-of-type{margin-bottom:0}
.q legend{
  display:flex;gap:9px;align-items:baseline;
  font-size:17px;font-weight:700;margin:0 0 11px;padding:0;line-height:1.35;
}
.q legend .num{
  flex:0 0 auto;width:24px;height:24px;border-radius:8px;background:var(--brand-soft);
  color:var(--brand);font-size:13.5px;font-weight:800;display:grid;place-items:center;
  transform:translateY(2px);
}

.opts{display:flex;flex-wrap:wrap;gap:10px}
.opt{
  -webkit-appearance:none;appearance:none;font-family:inherit;
  background:#f7f9fb;border:2px solid var(--line);border-radius:var(--radius-sm);
  color:var(--ink);font-size:16px;font-weight:600;
  padding:13px 18px;cursor:pointer;min-height:50px;
  transition:border-color .14s ease,background .14s ease,color .14s ease,transform .1s ease;
}
.opt:hover{border-color:#c4d0da;background:#fff}
.opt[aria-checked="true"]{
  border-color:var(--brand-2);background:var(--brand-soft);color:#084c39;
  box-shadow:inset 0 0 0 1px var(--brand-2);
}
.opt:active{transform:scale(.99)}

.field{margin:0 0 6px}
.field label{display:block;font-size:17px;font-weight:700;margin:0 0 11px}
.field .hint{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:4px}

.input{
  width:100%;font-family:inherit;font-size:17px;color:var(--ink);
  background:#fff;border:2px solid var(--line);border-radius:var(--radius-sm);
  padding:14px 15px;min-height:54px;
}
.input::placeholder{color:#9aa7b4}
.input:focus{border-color:var(--brand-2);outline:none;box-shadow:0 0 0 4px rgba(14,143,104,.14)}
.input[aria-invalid="true"]{border-color:var(--err);background:#fffafa}
.input[aria-invalid="true"]:focus{box-shadow:0 0 0 4px rgba(198,46,46,.14)}

.err{display:none;color:var(--err);font-size:13.5px;font-weight:600;margin-top:7px}
.err.is-on{display:block}

.consent{display:flex;gap:11px;align-items:flex-start;margin:20px 0 0;font-size:14.5px;line-height:1.5;color:#3a4757}
.consent input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;flex:0 0 auto;
  width:24px;height:24px;margin:1px 0 0;border:2px solid #b9c5d1;border-radius:7px;
  background:#fff;cursor:pointer;position:relative;
}
.consent input[type="checkbox"]:checked{background:var(--brand-2);border-color:var(--brand-2)}
.consent input[type="checkbox"]:checked::after{
  content:"";position:absolute;left:7px;top:3px;width:6px;height:12px;
  border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg);
}
.consent input[type="checkbox"]:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.hp{display:none!important}

.actions{margin:18px 0 0}
.actions .btn{width:100%}

.formerr{
  display:none;margin:16px 0 0;padding:13px 15px;border-radius:var(--radius-sm);
  background:var(--err-soft);border:1px solid #f2c0bd;color:#8f1f1f;font-size:14.5px;font-weight:600;
}
.formerr.is-on{display:block}
.formerr ul{margin:7px 0 0;padding-left:19px;font-weight:400}
.formerr button{
  margin-top:10px;font-family:inherit;font-size:14.5px;font-weight:700;cursor:pointer;
  background:#fff;border:2px solid var(--err);color:var(--err);border-radius:10px;padding:9px 15px;
}

.quiz__note{margin:16px 0 0;font-size:13.5px;color:var(--muted)}
.quiz__note a{font-weight:600}

/* ---------- Экран «Спасибо» ---------- */

.thanks{display:none;padding:40px 0 52px}
.thanks.is-on{display:block}
.thanks .card{text-align:center;max-width:620px;margin:0 auto;padding:34px 24px}
.thanks .mark{
  width:74px;height:74px;border-radius:50%;margin:0 auto 16px;
  background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;
}
.thanks h2{margin:0 0 12px;font-size:clamp(23px,5.2vw,32px);letter-spacing:-.3px}
.thanks p{margin:0 0 10px;color:#33404f;font-size:16.5px}
.thanks .small{margin-top:16px;font-size:14px;color:var(--muted)}
.thanks .linkrow{margin-top:18px;font-size:15px}

/* ---------- Sticky CTA (мобильные) ---------- */

.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:60;display:none;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  background:rgba(255,255,255,.97);border-top:1px solid var(--line);
  box-shadow:0 -8px 24px rgba(6,25,45,.1);
}
.sticky-cta .btn{width:100%;font-size:17px;padding:16px 20px;min-height:54px}

/* ---------- Страница «Спасибо» (/thanks.html) ---------- */
.thanks h1{margin:0 0 12px;font-size:clamp(23px,5.2vw,32px);letter-spacing:-.3px}
a.btn{display:inline-block;text-decoration:none}
a.btn:hover{text-decoration:none}
.thanks__actions{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
/* Sticky-CTA — только на мобильных/узких экранах: на десктопе основная кнопка и так в первом экране,
   а фиксированная панель накрывала подпись под формой. */
@media (max-width:900px){
  .sticky-cta.is-on{display:block}
  #footer{padding-bottom:96px}
}

/* ---------- Cookie-баннер ---------- */

.cookies{
  position:fixed;z-index:70;left:14px;right:14px;bottom:14px;
  background:#101a26;color:#fff;border-radius:var(--radius);
  padding:15px 16px;box-shadow:var(--shadow-lg);
  display:none;gap:12px;align-items:center;flex-wrap:wrap;
  font-size:13.5px;line-height:1.45;max-width:820px;margin:0 auto;
}
.cookies.is-on{display:flex}
.cookies p{margin:0;flex:1 1 320px;color:rgba(255,255,255,.85)}
.cookies a{color:#7ff0c2;font-weight:600}
.cookies button{
  font-family:inherit;font-size:14.5px;font-weight:800;cursor:pointer;
  background:#fff;color:#101a26;border:0;border-radius:10px;padding:11px 22px;min-height:44px;
}

/* ---------- Подвал ---------- */

#footer{
  background:#0b1420;color:rgba(255,255,255,.74);
  padding:30px 0 34px;font-size:13.5px;line-height:1.6;
}
#footer .wrap{display:grid;gap:6px}
#footer strong{color:#fff;font-size:14.5px}
#footer a{color:#8fe3c1}
#footer .legal{
  margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.6);
}
#footer .sep{color:rgba(255,255,255,.35)}

/* ---------- Правовые страницы ---------- */

.page{padding:34px 0 46px}
.page .thanks{display:block;padding:0}
.page h1{font-size:clamp(22px,4.6vw,30px);line-height:1.2;margin:0 0 16px;letter-spacing:-.3px}
.page h2{font-size:18.5px;margin:26px 0 8px}
.page p{margin:0 0 12px;color:#26313f}
.page ul{margin:0 0 14px;padding-left:22px}
.page li{margin:0 0 7px}
.page .wrap{max-width:760px}

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

@media (max-width:640px){
  body{font-size:16.5px}
  .hero__inner{padding:16px 16px 28px}
  .whoami{font-size:13.5px;padding:7px 13px}
  .adplate{font-size:11px;padding:5px 10px}
  .bullets li{font-size:16px}
  .btn{padding:17px 22px;font-size:17px;width:100%}
  .card{padding:18px 16px}
  .opt{flex:1 1 calc(50% - 5px);padding:13px 12px;font-size:15.5px}
  .opt:first-child:last-child{flex-basis:100%}
  .cookies{left:10px;right:10px}
  .cookies button{width:100%}
  .quiz{padding:26px 0 96px}
  .thanks{padding:28px 0 96px}
}

@media (min-width:641px) and (max-width:900px){
  .opt{flex:0 1 auto}
}

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

@media print{
  .sticky-cta,.cookies{display:none!important}
}

/* ===== Cookie-баннер с выбором (M10, B5): Принять / Отклонить / Настроить ===== */
.cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cookies__actions button { min-height: 40px; }
.cookies__panel { margin-top: 10px; display: grid; gap: 6px; }
.cookies__panel[hidden] { display: none; }
.cookies__panel label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cookies__panel input[type="checkbox"] { width: 18px; height: 18px; }
.consent + .consent { margin-top: 6px; }
