:root {
  --primary: #14532d;
  --secondary: #2e7d4f;
  --accent: #7cb518;
  --danger: #e2401c;
  --bg: #eef3ee;
  --card: #ffffff;
  --text: #1c2420;
  --muted: #66706b;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* clip, а не hidden: hidden робить body контейнером прокрутки і ламає sticky-шапку */
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Montserrat", system-ui, sans-serif;
  padding-bottom: 72px;
}
img { max-width: 100%; display: block; }
h1 { font-size: 26px; line-height: 1.2; margin: 16px 0 8px; }
h2 { font-size: 21px; line-height: 1.25; margin: 0 0 12px; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--danger); color: #fff;
  text-align: center; font-weight: 700; font-size: 14px; padding: 8px 12px;
}
.wrap { max-width: 480px; margin: 0 auto; background: var(--card); }

.hero, .block { padding: 24px 16px; }
.block { border-top: 8px solid var(--bg); }
.logo { font-weight: 800; font-size: 24px; text-align: center; color: var(--primary); }
.logo span { color: var(--accent); }
.hero-img, .order img, .photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.15); margin-top: 12px; }
.sub { color: var(--muted); margin: 0 0 12px; }

.price-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.price-new { font-size: 34px; font-weight: 800; color: var(--danger); }
.price-old { color: var(--muted); font-size: 18px; }
.badge { background: var(--accent); font-weight: 800; padding: 4px 10px; border-radius: 999px; }

.stock { background: #fff4e5; border-radius: 12px; padding: 10px 12px; margin: 12px 0; font-size: 14px; }
.bar { height: 8px; background: #f1dcc0; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: 70%; background: var(--danger); transition: width .6s; }

.btn {
  display: block; width: 100%; border: 0; cursor: pointer;
  background: var(--danger); color: #fff; font: inherit; font-weight: 800; font-size: 18px;
  padding: 16px; border-radius: 12px; margin-top: 12px;
  box-shadow: 0 4px 0 #a5321e;
  animation: pulse 2s infinite;
}
.btn:disabled { opacity: .6; cursor: wait; animation: none; }
.btn-sm { font-size: 15px; padding: 10px 16px; margin: 0; width: auto; animation: none; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.hint { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow-wrap: anywhere; gap: 8px; padding: 16px; border-top: 8px solid var(--bg); text-align: center; font-size: 12px; font-weight: 600; }
.icons span { display: block; font-size: 26px; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0 6px 28px; position: relative; }
.checks li::before { content: "✔️"; position: absolute; left: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px; border-bottom: 1px solid #e3e8e5; text-align: left; }
.note { font-size: 14px; color: var(--muted); }

.scale { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.scale div { height: 8px; background: #e3e8e5; border-radius: 99px; overflow: hidden; }
.scale i { display: block; height: 100%; background: var(--secondary); }

.grad { background: linear-gradient(135deg, #1d1f22, #6b2412); color: #fff; }
blockquote { margin: 0 0 12px; padding: 12px 16px; background: rgba(255,255,255,.12); border-radius: 12px; font-style: italic; }
cite { display: block; font-style: normal; font-weight: 700; margin-top: 4px; font-size: 14px; }
.accent { font-weight: 800; color: var(--danger); font-size: 20px; text-align: center; }

.features, .guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guarantees { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; overflow-wrap: anywhere; }
.features div, .guarantees div { background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; }
.features span, .guarantees span { display: block; font-size: 24px; }
.features b, .guarantees b { display: block; font-size: 15px; }

.cmp-scroll { overflow-x: auto; }
.cmp { min-width: 520px; }
.cmp .our { background: #fff1e6; font-weight: 700; }

.modes { display: grid; gap: 12px; }
.modes figure { margin: 0; }
.modes img { width: 100%; height: auto; border-radius: 12px; }
.modes figcaption { font-size: 14px; margin-top: 6px; }
.steps { padding-left: 22px; margin: 12px 0 0; }
.steps li { padding: 4px 0; }
.specs td:first-child { color: var(--muted); width: 42%; }
.safety { background: #fff8e6; }
.safety ul { margin: 0; padding-left: 20px; font-size: 14px; }
.safety li { padding: 3px 0; }

.faq details { border-bottom: 1px solid #e3e8e5; padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.rating-head { display: flex; gap: 16px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 14px; margin-bottom: 12px; }
.rating-big b { font-size: 32px; display: block; line-height: 1; }
.rating-big span { color: var(--accent); }
.review-form { display: grid; gap: 8px; margin-bottom: 16px; }
.stars i { font-style: normal; font-size: 28px; color: #ccc; cursor: pointer; }
.stars i.on { color: var(--accent); }
.review { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e3e8e5; animation: fadein .5s; }
.review .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--secondary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.review .meta { font-size: 13px; color: var(--muted); }
.review .st { color: var(--accent); }
.review .ok { color: var(--secondary); font-weight: 600; }
.review p { margin: 4px 0; }
@keyframes fadein { from { opacity: 0; transform: translateY(-8px); } }

.timer { text-align: center; font-weight: 700; margin-bottom: 8px; }
.timer span { background: var(--text); color: #fff; padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

.order-form { display: grid; gap: 10px; margin-top: 12px; }
.order-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
/* 16px обов'язково: iOS Safari збільшує масштаб сторінки при фокусі на полі з шрифтом < 16px */
input, select, textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 12px; border: 1px solid #c9d2cd; border-radius: 10px; width: 100%; background: #fff; }
textarea { min-height: 80px; resize: vertical; }
input.err, select.err { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bundles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bundle { position: relative; border: 2px solid #c9d2cd; border-radius: 10px; padding: 10px 4px 6px; text-align: center; cursor: pointer; font-size: 12px; background: #fff; }
.bundle b { display: block; font-size: 16px; }
.bundle small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; }
.bundle .per { display: block; font-weight: 700; white-space: nowrap; }
.bundles-note { font-size: 12px; color: var(--muted); text-align: center; margin: -4px 0 0; }
.bundle.on { border-color: var(--danger); background: #fff1ee; }
.bundle .hit { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; }
.total { font-size: 18px; text-align: center; }
.total b { color: var(--danger); font-size: 24px; }
.total s { color: var(--muted); }
.form-msg { min-height: 1em; color: var(--danger); font-size: 14px; margin: 0; text-align: center; }
.form-msg.good { color: var(--secondary); }

.footer { padding: 24px 16px; font-size: 13px; color: var(--muted); text-align: center; border-top: 8px solid var(--bg); }
.footer a { color: inherit; }

.sticky {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: #fff; padding: 10px 16px; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.sticky b { font-size: 20px; color: var(--danger); display: block; line-height: 1.1; }
.sticky small { color: var(--secondary); font-weight: 600; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--radius); padding: 20px 16px; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; position: relative; }
.modal-box h3 { margin: 0; }
.modal-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }

.popup {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 40;
  width: calc(100% - 32px); max-width: 448px;
  background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,.2); border-left: 4px solid var(--secondary);
  animation: fadein .4s;
}
.popup[hidden] { display: none; }

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