/* ============================================================
   ECDOZER — сайт v2 «Этикетка»
   Палитра и мотивы — с этикетки продукта.
   Шрифты: Golos Text (локально), Oswald (локально), IBM Plex Mono — больше не используем.
   ============================================================ */

@import url('fonts/local.css');
@import url('fonts/oswald-local.css');

:root {
  --navy: #0B3A74;        /* синий круг этикетки */
  --navy-deep: #06224A;   /* основной текст */
  --cap: #1D5FD1;         /* синий крышки — ссылки, фокус */
  --green: #1BA34A;       /* зелёная лента СОЛЬ — кнопки, метки */
  --green-press: #14853B;
  --salt: #FFFFFF;
  --frost: #EEF3F9;
  --muted: #5B6B80;
  --line: #DCE6F2;
  --wrap: 1200px;
  --display: 'Golos Text', system-ui, -apple-system, sans-serif;
  --ribbon: 'Oswald', 'Arial Narrow', sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font: 400 18px/1.55 var(--display);
  color: var(--navy-deep);
  background: var(--salt);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cap); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 850; letter-spacing: -.02em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(34px, 4.6vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* —— лента-метка, как на этикетке —— */
.ribbon {
  font: 600 14px/1 var(--ribbon);
  text-transform: uppercase; letter-spacing: .07em;
  display: inline-block; background: var(--green); color: #fff;
  padding: 8px 14px; border-radius: 4px;
}
.ribbon.blue { background: var(--navy); }

/* ============================================================
   Кнопки — плоские и плотные + микро-эффекты (hover/нажатие)
   ============================================================ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font: 700 17px/1 var(--display);
  border-radius: 12px; border: 0; cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
}
.btn::after { /* пробегающий блик — микро-эффект при наведении */
  content: ""; position: absolute; top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); opacity: 0;
  transition: left .45s ease, opacity .2s ease;
}
.btn:hover::after { left: 120%; opacity: 1; }
.btn:hover { text-decoration: none; }
.btn-buy { background: var(--green); color: #fff; }
.btn-buy:hover { background: var(--green-press); box-shadow: 0 8px 20px rgba(27,163,74,.28); }
.btn-buy:active { transform: translateY(2px); box-shadow: 0 2px 6px rgba(27,163,74,.2); }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); background: transparent; }
.btn-line:hover { background: var(--frost); }
.btn-line:active { transform: translateY(2px); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn:focus-visible { outline: 3px solid var(--cap); outline-offset: 3px; }

/* ============================================================
   Шапка
   ============================================================ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.top-logo { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 20px; color: var(--navy-deep); }
.top-logo img { height: 30px; width: auto; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--navy-deep); font-weight: 600; font-size: 15.5px; }
.top-nav a:hover { color: var(--cap); text-decoration: none; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
@media (max-width: 760px) { .top-nav { display: none; } }

/* ============================================================
   Герой — синий полукруг + белая волна, как на этикетке
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 52px 0 92px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-kicker { margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts { margin: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hf { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; color: var(--navy-deep); background: #fff; }
.hf svg { width: 17px; height: 17px; flex: none; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-claim { font-size: clamp(19px, 2vw, 24px); font-weight: 700; color: var(--navy); margin: 14px 0 0; letter-spacing: -.01em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-art { position: relative; padding-bottom: 4%; }
.hero-art::before { /* тёмно-синий круг этикетки */
  content: ""; position: absolute; inset: -2% -7% 0 -7%;
  border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px;
  background: var(--navy);
}
.hero-art img { position: relative; width: 100%; height: auto;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  filter: drop-shadow(0 24px 40px rgba(6,34,74,.30)); }
.hero-art .wave { position: absolute; left: -7%; right: -7%; width: 114%; bottom: -2px; height: 46px; display: block; }
@media (max-width: 860px) {
  .hero { padding: 20px 0 56px; }
  .hero-art .wave { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; width: 86%; }
  .hero-art img { width: 94%; margin: 0 auto; }
  .hero-kicker { margin-bottom: 10px; }
  .hero-claim { font-size: 18px; margin-top: 8px; }
  .hero-facts { gap: 8px; margin: 16px 0 22px; }
  .hf { padding: 7px 12px; font-size: 13.5px; }
  .hero .cta { flex-direction: column; }
  .hero .cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Линейка: выберите объём
   ============================================================ */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.line-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vol {
  position: relative; background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vol:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(6,34,74,.10); border-color: var(--navy); }
.vol.best { border-color: var(--navy); }
.vol .flag { position: absolute; top: -13px; left: 22px; }
.vol .kg { font-size: clamp(34px, 4vw, 46px); font-weight: 850; letter-spacing: -.03em; }
.vol .kg small { font-size: .42em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.vol .sub { color: var(--muted); font-size: 15.5px; min-height: 44px; }
.vol .btn { margin-top: 16px; width: 100%; justify-content: center; }
.vol .ozon-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .line-grid { grid-template-columns: 1fr; max-width: 460px; } .vol .sub { min-height: 0; } }

/* ============================================================
   Зачем соль — схема накипь/ТЭН
   ============================================================ */
.why { background: var(--frost); }
.why-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.why-copy p { color: var(--muted); font-size: 18px; }
.why-copy p b { color: var(--navy-deep); }
.why-scheme { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.scheme-card { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; border: 2px solid var(--line); }
.scheme-card.bad { border-color: #F0C9A8; }
.scheme-card.good { border-color: var(--green); }
.scheme-card svg { width: 100%; height: auto; }
.scheme-card b { display: block; margin-top: 10px; font-size: 17px; }
.scheme-card span { color: var(--muted); font-size: 14.5px; display: block; margin-top: 4px; }
.scheme-arr { font-size: 28px; color: var(--navy); font-weight: 850; }
@media (max-width: 900px) { .why-in { grid-template-columns: 1fr; } }

/* ============================================================
   Способ применения — синий круг этикетки как веб-блок
   ============================================================ */
.howto {
  background: var(--navy); color: #fff;
  border-radius: 50% 50% 0 0 / 110px 110px 0 0;
  padding: clamp(80px, 10vw, 128px) 0 clamp(64px, 8vw, 96px);
  position: relative;
}
.howto .arc-title { text-align: center; }
.howto h2 { color: #fff; }
.howto .sub { color: rgba(255,255,255,.75); text-align: center; margin: 14px auto 0; max-width: 640px; }
.howto .tabs { display: flex; justify-content: center; gap: 10px; margin: 34px 0 44px; flex-wrap: wrap; }
.howto .tab {
  font: 700 16.5px/1 var(--display); padding: 15px 28px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6); background: none; color: #fff; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.howto .tab:hover { border-color: #fff; }
.howto .tab[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.howto .tab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps.three { grid-template-columns: repeat(3, 1fr); max-width: 960px; margin: 0 auto; }
.steps li { counter-increment: s; }
.steps .ph {
  position: relative;
  border-radius: 14px; background: #11508F; border: 1.5px solid rgba(255,255,255,.14);
  aspect-ratio: 3/2;
  display: grid; place-items: center; margin-bottom: 18px; overflow: visible;
}
.steps .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.steps .ph .num {
  position: absolute; top: 10px; left: 12px;
  font: 800 19px/1 var(--display); color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green);
}
.steps .ph svg.ic { width: 78px; height: 78px; stroke: #fff; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; opacity: .96; }
.steps li:not(:last-child) .ph::after {
  content: "→"; position: absolute; right: -20px; top: calc(50% - 15px);
  color: rgba(255,255,255,.8); font-size: 24px; font-weight: 700;
}
@media (max-width: 900px) { .steps li:not(:last-child) .ph::after { display: none; } }
.steps b { font-size: 19px; line-height: 1.25; display: block; margin-bottom: 6px; }
.steps .n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); font-weight: 850; margin-bottom: 12px; }
.steps p { margin: 0; color: rgba(255,255,255,.86); font-size: 16px; }
.note {
  margin: 44px auto 0; max-width: 760px; background: #fff; color: var(--navy-deep);
  border-radius: 14px; padding: 18px 22px 18px 64px; position: relative; font-size: 16.5px;
  box-shadow: 0 12px 28px rgba(6,34,74,.18);
}
.note::before {
  content: "!"; position: absolute; left: 18px; top: 16px; width: 30px; height: 30px;
  border-radius: 50%; display: grid; place-items: center; background: #FFC83D; font-weight: 850; color: #06224A;
}
.howto .more { display: block; text-align: center; margin-top: 30px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.howto .more:hover { text-decoration: underline; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .howto { border-radius: 0; } }
@media (max-width: 560px) { .steps, .steps.three { grid-template-columns: 1fr; } }

/* ============================================================
   Таблетки
   ============================================================ */
.tab-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.tab-photo { position: relative; }
.tab-photo img { border-radius: var(--radius); width: 100%; }
.tab-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; }
.tf { background: var(--frost); border-radius: 12px; padding: 14px 16px; }
.tf b { display: block; font-size: 17.5px; }
.tf span { color: var(--muted); font-size: 14.5px; }
.tab-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14.5px; }
@media (max-width: 900px) { .tab-in { grid-template-columns: 1fr; } .tab-photo { max-width: 460px; margin: 0 auto; } }
@media (max-width: 560px) { .tab-facts { grid-template-columns: 1fr; } }

/* ============================================================
   Комплект
   ============================================================ */
.kit { background: var(--navy-deep); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.kit h3 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); max-width: 560px; }
.kit p { color: rgba(255,255,255,.75); margin: 10px 0 0; max-width: 560px; }
.kit .ktas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-cols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.faq-list details { border: 2px solid var(--line); border-radius: 12px; padding: 0; margin-bottom: 12px; background: #fff; }
.faq-list details[open] { border-color: var(--navy); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 17.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 24px; font-weight: 600; color: var(--navy); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .a { padding: 0 22px 20px; color: var(--muted); font-size: 16.5px; }
.faq-side { position: sticky; top: 96px; background: var(--frost); border-radius: var(--radius); padding: 24px; }
.faq-side b { font-size: 18px; display: block; margin-bottom: 8px; }
.faq-side p { color: var(--muted); font-size: 15px; }
.faq-side .btn { width: 100%; justify-content: center; margin-top: 6px; }
@media (max-width: 900px) { .faq-cols { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ============================================================
   Где купить + подвал
   ============================================================ */
.buy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.buy-card { border: 2px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.buy-card b { display: block; margin-bottom: 4px; }
.buy-card span { display: block; color: #4A5A70; font-size: 15px; margin-bottom: 2px; }
.buy-card a { display: inline-block; margin-top: 8px; font-weight: 700; }
.foot { margin-top: 0; background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 44px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot a { color: #fff; }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .buy-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Reveal (появление при скролле) + reduced motion
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .btn::after { display: none; }
}
