/* Green Helper — общие стили лендингов KEEO.
   Тёмно-зелёные «сцены» (3D видно сквозь них) + кремовые/тёмные сплошные секции. */
:root {
  --bg: #0B2819;
  --bg-2: #0F3322;
  --green-950: #06190F;
  --green-900: #0C2A1B;
  --green-800: #123A26;
  --green-700: #1A4D33;
  --green-600: #1F6B45;
  --green-500: #2E8457;
  --gold: #D2AE62;
  --gold-deep: #A8843B;
  --gold-light: #F0DA9C;
  --gold-grad: linear-gradient(120deg, #F5E3A8 0%, #D5AF5E 36%, #A67E33 62%, #EDD491 100%);
  --cream: #F3EEE4;
  --cream-2: #E9E1D1;
  --paper: #FCFAF5;
  --ink: #10261A;
  --muted: #5A685E;
  --text-l: #F1EDE2;
  --muted-l: rgba(241, 237, 226, .72);
  --line-d: rgba(210, 174, 98, .24);
  --line-l: rgba(16, 38, 26, .12);
  --glass: rgba(9, 34, 22, .74);
  --shadow: 0 20px 50px -26px rgba(4, 20, 12, .55);
  --radius: 22px;
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pacifico", cursive;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--text-l);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.3vw, 46px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h1 em, h2 em, h3 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.solid.light h2 em, .solid.light h3 em { background: none; color: var(--green-600); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 700 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.eyebrow.center { justify-content: center; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .8; }
.eyebrow.center::before { display: none; }
.solid.light .eyebrow { color: var(--green-600); }
.keeo { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold-grad); color: var(--green-900); letter-spacing: .08em; font-weight: 800; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted-l); max-width: 540px; }
.note { font-size: 14px; color: var(--muted-l); }
.solid.light .lead, .solid.light .note { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1.2 var(--sans); color: var(--green-950); text-decoration: none; text-align: center;
  background: var(--gold-grad); background-size: 200% 100%;
  box-shadow: 0 14px 34px -14px rgba(213, 175, 94, .8), inset 0 1px 0 rgba(255,255,255,.45);
  transition: background-position .6s ease, transform .2s ease, box-shadow .2s;
}
.btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .i { font-size: 18px; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter);
  background: rgba(8, 30, 19, .7);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line-d); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-d); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; font: 700 12px/1 var(--sans); letter-spacing: .08em; color: var(--muted-l); padding: 8px 11px; border-radius: 999px; cursor: pointer; }
.lang button.is-active { background: var(--gold-grad); color: var(--green-950); }

/* ---------- 3D scene layer ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 72% 52%, rgba(64, 140, 92, .42) 0%, rgba(30, 90, 58, .16) 45%, transparent 70%),
    radial-gradient(60vw 40vw at 90% -10%, rgba(210, 174, 98, .12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%, var(--green-950) 100%);
}
.backdrop::before {
  /* мягкие лучи света, как на фото упаковки */
  content: ""; position: absolute; inset: -20% -10%;
  background: repeating-linear-gradient(115deg, rgba(190,230,200,0) 0, rgba(190,230,200,.05) 60px, rgba(190,230,200,.05) 110px, rgba(190,230,200,0) 170px, rgba(190,230,200,0) 280px);
  mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 70%);
}
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
#scene.is-ready { opacity: 1; }
.scene-fallback { display: none; }
.no-webgl .scene-fallback { display: block; position: fixed; z-index: 0; right: 5vw; top: 50%; transform: translateY(-50%); width: 36vw; max-width: 480px; }
.no-webgl .scene-fallback img { border-radius: 28px; box-shadow: var(--shadow); }

#app, main, .footer { position: relative; z-index: 1; }

/* Stage sections: прозрачные, модель видна справа (десктоп) / сверху (телефон) */
.stage { min-height: 125vh; display: flex; align-items: center; padding: 110px 0 80px; }
.stage.hero { min-height: 100vh; min-height: 100svh; position: relative; }
.stage .panel { max-width: 560px; }
.stage.offer { min-height: 100vh; }

/* Сплошные секции перекрывают 3D */
.solid { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.solid.light { background: var(--cream); color: var(--ink); }
.solid.light::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 420px at 92% 0%, #FFFFFF 0, transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(210,174,98,.18) 0, transparent 70%); }
.solid.dark { background: var(--green-900); }
.solid.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 85% 10%, rgba(46,132,87,.35) 0, transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(210,174,98,.10) 0, transparent 70%); }
.solid > .wrap { position: relative; }

/* ---------- Hero ---------- */
.product-script { font: 400 clamp(30px, 3vw, 42px)/1.3 var(--script); color: var(--gold-light); margin: 0 0 6px; }
.hero-pills { list-style: none; padding: 0; margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-d); }
.hero-pills .i { color: var(--gold); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.stock-note { margin: 0; font-size: 14px; color: var(--muted-l); display: flex; align-items: center; gap: 6px; }
.stock-note b, .stock-bar b { color: #F0B07A; font-size: 1.1em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #E9895A; box-shadow: 0 0 0 0 rgba(233,137,90,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(233,137,90,0); } 100% { box-shadow: 0 0 0 0 rgba(233,137,90,0); } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--gold); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Карточки на сцене ---------- */
.problems { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.problems li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-d); font-weight: 600; font-size: 15px; line-height: 1.35; }
.problems .i { color: #F0B07A; font-size: 18px; margin-top: 1px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 60px; border-bottom: 1px solid var(--line-d); }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 12px; font: 800 30px/1 var(--head); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps b { display: block; font: 700 18px/1.3 var(--head); margin-bottom: 3px; }
.steps span { color: var(--muted-l); font-size: 15px; }

.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 0; }
.nums div { padding: 16px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-d); }
.nums b { display: block; font: 800 clamp(24px, 2.4vw, 32px)/1.05 var(--head); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.nums span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted-l); }

.checks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-d); font-weight: 600; font-size: 15px; line-height: 1.4; }
.checks .ck { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-grad); color: var(--green-950); font-size: 14px; }
.checks .ck .i { stroke-width: 2.6; }

.how { display: grid; gap: 10px; margin: 22px 0 16px; }
.how div { display: grid; grid-template-columns: 46px 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-d); }
.how .ic { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-d); color: var(--gold); font-size: 22px; }
.how b { font: 700 17px/1.25 var(--head); }
.how span { font-size: 14px; line-height: 1.45; color: var(--muted-l); }
.tip { position: relative; padding: 14px 18px 2px; border-radius: 16px; background: rgba(210,174,98,.10); border-left: 3px solid var(--gold); }
.tip p { font-size: 14px; color: var(--text-l); }

/* ---------- Benefits (light) ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 260px; gap: 36px; align-items: end; margin-bottom: 40px; }
.sec-head h2 { margin: 0; max-width: 700px; }
.photo-card { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 24px 50px -28px rgba(12, 42, 27, .6); background: var(--green-800); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 24px 22px 12px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-l); box-shadow: 0 12px 30px -24px rgba(12,42,27,.5); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -28px rgba(12,42,27,.55); }
.card .ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%; background: linear-gradient(145deg, var(--green-600), var(--green-800)); color: var(--gold-light); font-size: 22px; box-shadow: inset 0 0 0 1px rgba(240,218,156,.35); }
.card h4 { font-size: 17px; margin-bottom: 6px; color: var(--green-900); }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- Compare (dark) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 36px auto 0; }
.cmp { padding: 28px 26px 16px; border-radius: 24px; border: 1px solid var(--line-d); background: rgba(255,255,255,.03); }
.cmp h3 { font-size: 20px; margin-bottom: 18px; }
.cmp ul { list-style: none; padding: 0; margin: 0; }
.cmp li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-d); font-size: 15px; }
.cmp .mk { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; }
.cmp .mk .i { stroke-width: 2.6; }
.cmp.bad { color: var(--muted-l); }
.cmp.bad .mk { background: rgba(233,137,90,.16); color: #F0A27A; }
.cmp.good { background: linear-gradient(160deg, rgba(46,132,87,.35), rgba(12,42,27,.4)); border-color: rgba(210,174,98,.55); box-shadow: 0 30px 60px -36px rgba(210,174,98,.45); }
.cmp.good h3 { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp.good .mk { background: var(--gold-grad); color: var(--green-950); }

/* ---------- Trust + certs (light) ---------- */
.badges { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badges li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px 12px; border-radius: 20px; border: 1px solid var(--line-l); background: var(--paper); font: 700 15px/1.3 var(--head); color: var(--green-900); }
.badges .ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-deep); font-size: 26px; }
.flag { width: 34px; height: 23px; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 26px); max-width: 960px; margin: 44px auto 0; }
.cert { margin: 0; }
.cert a { display: block; position: relative; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line-l); box-shadow: 0 14px 40px -26px rgba(12,42,27,.5); }
.cert img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.cert a:hover img { transform: scale(1.03); }
.cert a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none; background: linear-gradient(180deg, rgba(12,42,27,0) 0%, rgba(12,42,27,.28) 100%); }
.cert-zoom {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(12, 42, 27, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .25s;
}
.cert a:hover .cert-zoom { transform: scale(1.1); }
.cert figcaption { padding: 14px 2px 0; }
.cert figcaption b { display: block; font: 700 16px/1.3 var(--head); color: var(--green-900); margin-bottom: 4px; }
.cert figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- Offer / form ---------- */
.form-panel { padding: clamp(24px, 3vw, 38px); border-radius: 28px; background: rgba(9, 34, 22, .9); border: 1px solid rgba(210,174,98,.4); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.offer-top { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.offer-top h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 0; }
.offer-top .eyebrow { margin-bottom: 6px; }
.offer-top .eyebrow::before { display: none; }
.sale-badge { flex: none; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--gold-grad); color: var(--green-950); font: 800 26px/1 var(--head); box-shadow: 0 10px 26px -10px rgba(213,175,94,.8); transform: rotate(-8deg); }
.offer-sub { color: var(--muted-l); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 12px; }
.price s { color: var(--muted-l); font-size: 18px; }
.price b { font: 800 34px/1 var(--head); color: var(--gold-light); }
.stock-bar { margin: 6px 0 8px; font-size: 14px; color: var(--muted-l); }
.stock-meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 22px; }
.stock-meter span { display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, #E9895A, #F2C27B); transition: width 1.2s ease; }
.lead-form { display: grid; gap: 14px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--muted-l); }
.field input { width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(210,174,98,.35); background: rgba(255,255,255,.96); font: 600 17px var(--sans); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210,174,98,.25); }
.field input.is-invalid { border-color: #E07A5F; box-shadow: 0 0 0 4px rgba(224,122,95,.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; font-size: 14px; color: #F2A27F; }
.form-msg:empty { display: none; }
.form-hint { margin: 0; font-size: 13px; color: var(--muted-l); text-align: center; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 18px/1.35 var(--head); color: var(--green-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }
.faq-cta { margin-top: 36px; }

/* ---------- Cross-sell (dark) ---------- */
.pair { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; max-width: 980px; margin: 0 auto 44px; padding: 20px 24px; border-radius: 24px; border: 1px solid rgba(210,174,98,.45); background: linear-gradient(120deg, rgba(46,132,87,.3), rgba(12,42,27,.2)); }
.pair img { width: 150px; height: 150px; object-fit: cover; border-radius: 16px; }
.pair h3 { font-size: 22px; margin-bottom: 6px; }
.pair p { margin: 0; color: var(--muted-l); font-size: 15px; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-d); background: rgba(255,255,255,.03); transition: transform .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); border-color: rgba(210,174,98,.6); }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s ease; }
.pcard:hover img { transform: scale(1.04); }
.pcard div { padding: 16px 18px 18px; }
.pcard b { display: block; font: 700 18px/1.2 var(--head); margin-bottom: 4px; }
.pcard span { display: block; font-size: 14px; color: var(--muted-l); margin-bottom: 10px; }
.pcard em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--gold); }
.pcard em span { display: inline; margin: 0; font-size: inherit; color: inherit; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: var(--muted-l); text-align: center; padding: 50px 0 110px; border-top: 1px solid var(--line-d); }
.footer img { height: 34px; width: auto; margin: 0 auto 14px; }
.footer-slogan { font: 400 22px/1.4 var(--script); color: var(--gold-light); }
.footer .phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 18px 0; }
.footer .phones a { font: 700 18px var(--head); color: var(--text-l); text-decoration: none; }
.footer .small { font-size: 12px; opacity: .75; max-width: 680px; margin: 18px auto 0; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); display: none; transform: translateY(140%); transition: transform .4s ease; }
.sticky-cta.is-visible { transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px); background: rgba(4, 18, 11, .92); backdrop-filter: blur(6px); animation: lbIn .25s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(100%, 900px); max-height: 86vh; width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px -30px #000; object-fit: contain; }
.lb-close, .lb-nav { position: absolute; z-index: 2; display: grid; place-items: center; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; font: 400 30px/1 var(--sans); backdrop-filter: blur(4px); transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 16px; right: 16px; font-size: 26px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: var(--text-l); font-size: 13px; padding: 0 70px; }
.lb-caption a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }

#order-form { scroll-margin-top: 84px; }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .topbar { padding: 10px 16px; }
  .brand img { height: 24px; }
  .topbar .btn-sm { display: none; }
  #order-form { scroll-margin-top: 66px; }

  .backdrop { background:
    radial-gradient(80vw 60vw at 50% 24%, rgba(64, 140, 92, .45) 0%, rgba(30, 90, 58, .16) 45%, transparent 72%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%, var(--green-950) 100%); }

  /* Модель — в верхней части экрана, текстовая карточка заезжает снизу */
  .stage { min-height: 0; display: block; padding: 58vh 0 40px; padding: 58svh 0 40px; }
  .stage .panel { padding: 22px 18px 10px; border-radius: 24px; background: rgba(9, 34, 22, .9); border: 1px solid var(--line-d); box-shadow: var(--shadow); }
  .stage .panel .problems li, .stage .panel .checks li, .stage .panel .nums div, .stage .panel .how div { background: rgba(255,255,255,.04); }
  .stage.offer { padding-top: 46svh; }
  .stage .form-panel { padding: 22px 18px; }

  /* Первый экран: CTA должен быть виден, модель — в верхних ~36% */
  .stage.hero { padding-top: 36svh; padding-bottom: 20px; min-height: 100svh; display: flex; align-items: flex-start; }
  .stage.hero .panel { padding: 18px 16px 16px; background: rgba(9, 34, 22, .8); }
  .stage.hero .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: .14em; }
  .stage.hero .eyebrow::before { display: none; }
  .product-script { font-size: 24px; margin-bottom: 2px; }
  .stage.hero h1 { font-size: clamp(26px, 7.6vw, 34px); margin-bottom: .35em; }
  .stage.hero .lead { font-size: 14px; line-height: 1.5; margin-bottom: 0; }
  .hero-pills { margin: 12px 0 14px; gap: 6px; }
  .hero-pills li { font-size: 12px; padding: 6px 10px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .stock-note { font-size: 13px; }
  .scroll-hint { display: none; }

  h2 { font-size: 27px; }
  .problems { grid-template-columns: 1fr; }
  .problems li { padding: 11px 14px; }
  .nums { gap: 8px; }
  .nums div { padding: 12px 10px; }
  .nums b { font-size: 22px; }
  .nums span { font-size: 12px; }
  .steps li { padding-left: 50px; }
  .steps li::before { font-size: 26px; }

  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .photo-card { aspect-ratio: 16 / 11; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 18px 18px 8px; }
  .card .ic { grid-row: span 2; margin: 0; }
  .compare { grid-template-columns: 1fr; }
  .badges { grid-template-columns: 1fr 1fr; gap: 10px; }
  .badges li { padding: 18px 10px; font-size: 14px; }
  .certs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cert a { aspect-ratio: 1 / 1; border-radius: 14px; }
  .cert figcaption b { font-size: 14px; }
  .cert figcaption span { font-size: 12px; }
  .sale-badge { width: 68px; height: 68px; font-size: 21px; }
  .faq summary { font-size: 16px; }
  .pair { grid-template-columns: 90px 1fr; gap: 16px; padding: 16px; }
  .pair img { width: 90px; height: 90px; }
  .pair .btn { grid-column: 1 / -1; }
  .pair h3 { font-size: 18px; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard div { padding: 12px 12px 14px; }
  .pcard b { font-size: 15px; }
  .pcard span { font-size: 12px; }
  .sticky-cta { display: flex; }
  .no-webgl .scene-fallback { left: 50%; right: auto; top: 76px; transform: translateX(-50%); width: min(62vw, 260px); }
  .lightbox img { max-height: 78vh; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 10px; right: 10px; }
  .lb-caption { bottom: 8px; padding: 0 16px; font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .stage.hero .lead { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
