/* ============================================================
   avtostory.ru — «Чистая история» · светлая тема Автотеки
   Токены → база → компоненты → страницы → анимации
   ============================================================ */

:root {
  /* палитра */
  --bg: #ffffff;
  --bg-mint: #f2faf5;
  --bg-mint-2: #e9f6ee;
  --ink: #0e1512;
  --ink-soft: #24312a;
  --muted: #5a6b60;
  --line: #e2ece5;
  --line-strong: #cfdfd5;

  --green: #00b850;
  --green-dark: #009a43;
  --green-deep: #0b1f14;
  --green-glow: #00e060;
  --green-tint: #e3f8eb;

  --pin-red: #f04050;
  --pin-blue: #00a0f0;
  --pin-purple: #b040f0;
  --amber: #ffb300;
  --amber-tint: #fff4d6;
  --red-tint: #fde8ea;

  /* типографика */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* геометрия */
  --r-card: 22px;
  --r-btn: 14px;
  --r-pill: 999px;
  --container: 1180px;

  --shadow-card: 0 2px 6px rgba(14, 21, 18, 0.04), 0 18px 44px -18px rgba(14, 21, 18, 0.12);
  --shadow-pop: 0 24px 60px -20px rgba(11, 31, 20, 0.25);
  --shadow-green: 0 14px 34px -12px rgba(0, 184, 80, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.12rem; }
p { margin: 0 0 1em; }
s { color: var(--muted); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.muted { color: var(--muted); }

::selection { background: var(--green-tint); color: var(--green-dark); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font: 700 1rem/1.2 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(0, 184, 80, 0.55); }

.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-tint); }

.btn--sm { padding: 0.55em 1.15em; font-size: 0.92rem; }
.btn--lg { padding: 1.05em 2.2em; font-size: 1.08rem; border-radius: 16px; }
.btn--block { width: 100%; }

.btn--telegram { background: #2aabee; color: #fff; }
.btn--telegram:hover { background: #1e9ad9; color: #fff; transform: translateY(-2px); }
.btn--vk { background: #07f; color: #fff; }
.btn--vk:hover { background: #0066dd; color: #fff; transform: translateY(-2px); }
.btn--max { background: linear-gradient(135deg, #7c5cff, #5b8def); color: #fff; }
.btn--max:hover { color: #fff; transform: translateY(-2px); }

/* ---------- прогресс-бар скролла ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-glow));
  z-index: 120;
  border-radius: 0 3px 3px 0;
}
.cursor-glow { display: none; }

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.94); }

.nav { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font: 700 0.9rem var(--font-mono);
  color: #fff;
  background: conic-gradient(from 210deg, var(--green) 0 25%, var(--pin-blue) 0 50%, var(--pin-purple) 0 75%, var(--pin-red) 0 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.logo__mark::after { content: ""; position: absolute; inset: 3px; border-radius: 9px; background: var(--green-deep); z-index: -1; }

.nav__panel { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav__links { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.35rem; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: right 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }

.nav__dock { display: flex; gap: 0.4rem; padding: 0.3rem; background: var(--bg-mint); border: 1px solid var(--line); border-radius: var(--r-pill); }
.nav__dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav__dock-btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14, 21, 18, 0.08); }
.nav__dock-btn--tg:hover { color: #2aabee; }
.nav__dock-btn--vk:hover { color: #07f; }
.nav__dock-btn--max:hover { color: #7c5cff; }
.nav__dock-icon { width: 18px; height: 18px; }
.nav__dock-icon svg { width: 100%; height: 100%; }

.nav__toggle { display: none; }

/* мобильная навигация */
@media (max-width: 900px) {
  .nav__toggle {
    display: grid;
    gap: 5px;
    margin-left: auto;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 102;
  }
  .nav__toggle span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav__panel {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 101;
  }
  .nav__panel.open { opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: center; gap: 1.2rem; }
  .nav__links a { font-size: 1.25rem; }
}

/* ---------- секции ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section--alt { background: var(--bg-mint); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.section__tag {
  display: inline-block;
  font: 700 0.72rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-tint);
  border: 1px solid #c8ecd6;
  padding: 0.55em 1.1em;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.section__title { font-size: clamp(1.55rem, 3.4vw, 2.3rem); text-wrap: balance; }
.section__title--left { text-align: left; }
.section__lead { color: var(--muted); max-width: 560px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .hero__stats { flex-wrap: wrap; gap: 1rem 1.6rem; }
  .hero-check { flex-wrap: wrap; }
  .hero-check .btn { flex: 1 1 100%; }
}

/* фон hero: мятная волна + сетка */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg__wash {
  position: absolute;
  inset: -20% -10% 30% 45%;
  background: radial-gradient(ellipse at 70% 30%, var(--bg-mint-2), transparent 65%);
}
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 68% 38%, rgba(0,0,0,0.5), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 68% 38%, rgba(0,0,0,0.5), transparent 72%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #c8ecd6;
  border-radius: var(--r-pill);
  padding: 0.5em 1.1em;
  box-shadow: 0 4px 14px -6px rgba(0, 184, 80, 0.25);
  margin-bottom: 1.3rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 224, 96, 0.6); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 224, 96, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 224, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 224, 96, 0); }
}

.hero__title {
  font-size: clamp(1.9rem, 4.6vw, 3.15rem);
  margin-bottom: 0.5em;
  text-wrap: balance;
}
.gradient-text {
  background: linear-gradient(100deg, var(--green-dark) 10%, var(--green) 55%, var(--pin-blue) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 480px; }
.hero__lead strong { color: var(--ink); }

/* строка проверки */
.hero-check {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  margin-top: 1.6rem;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-check:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 184, 80, 0.12), var(--shadow-card); }
.hero-check input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 0.6em 0.9em;
  font: 600 1rem var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--ink);
  outline: none;
}
.hero-check input::placeholder { color: #9fb2a6; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.hero-check.is-valid { border-color: var(--green); }
.hero-check.is-maybe { border-color: var(--amber); }

.hero-check__links { display: flex; gap: 1.4rem; margin-top: 0.9rem; font-size: 0.92rem; font-weight: 600; }

.hero__stats { display: flex; gap: clamp(1.4rem, 4vw, 2.6rem); margin-top: 2.2rem; }
.hero__stats > div { display: grid; gap: 0.15rem; }
.stat__n { font: 600 clamp(1.5rem, 3vw, 2rem)/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__l { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------- hero: сканер ---------- */
.scanner {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.scanner__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-mint);
  font: 600 0.78rem var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.scanner__dots { display: flex; gap: 5px; }
.scanner__dots span { width: 9px; height: 9px; border-radius: 50%; }
.scanner__dots span:nth-child(1) { background: var(--pin-red); }
.scanner__dots span:nth-child(2) { background: var(--amber); }
.scanner__dots span:nth-child(3) { background: var(--green); }
.scanner__status { margin-left: auto; color: var(--green-dark); display: inline-flex; align-items: center; gap: 0.4em; }
.scanner__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-dot 1.6s infinite; }

/* окно с авто */
.scanner__window {
  position: relative;
  padding: 1.6rem 1.4rem 1.1rem;
  background:
    linear-gradient(var(--bg-mint-2) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, var(--bg-mint-2) 1px, transparent 1px) 0 0 / 26px 100%,
    linear-gradient(180deg, #fbfffc, #f4fbf7);
}
.scanner__car { position: relative; margin-inline: auto; max-width: 360px; }
.scanner__car svg { width: 100%; height: auto; }
.scanner__car .car-body { fill: none; stroke: var(--ink-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scanner__car .car-glass { fill: var(--bg-mint-2); stroke: var(--ink-soft); stroke-width: 1.6; }
.scanner__car .car-wheel { fill: #fff; stroke: var(--ink-soft); stroke-width: 2.2; }
.scanner__car .car-hub { fill: var(--ink-soft); }

/* луч сканера */
.scanner__beam {
  position: absolute;
  top: -6%;
  bottom: -6%;
  width: 46px;
  left: -60px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 96, 0.28) 45%, rgba(0, 224, 96, 0.55) 50%, rgba(0, 224, 96, 0.28) 55%, transparent);
  filter: blur(1px);
}
.scanner__beam::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--green-glow);
  box-shadow: 0 0 14px 2px var(--green-glow);
}
.js-scan .scanner__beam { animation: beam-sweep 3.6s var(--ease-out) infinite; animation-delay: 0.5s; }
@keyframes beam-sweep {
  0% { left: -15%; opacity: 0; }
  8% { opacity: 1; }
  55% { left: 108%; opacity: 1; }
  62%, 100% { left: 108%; opacity: 0; }
}

/* номерная рамка РФ */
.scanner__plate {
  display: inline-flex;
  align-items: stretch;
  margin: 0.9rem auto 0;
  border: 2px solid var(--ink-soft);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
  font: 700 0.95rem var(--font-mono);
  letter-spacing: 0.08em;
}
.scanner__plate b { padding: 0.28em 0.7em; color: var(--ink); }
.scanner__plate i { display: grid; place-items: center; padding: 0.28em 0.5em; font-style: normal; font-size: 0.62em; line-height: 1.25; border-left: 2px solid var(--ink-soft); color: var(--ink); background: var(--bg-mint); }

/* строки отчёта */
.scanner__report { padding: 0.4rem 1.2rem 1.1rem; display: grid; }
.scan-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.2rem;
  border-bottom: 1px dashed var(--line);
  opacity: 0.25;
  transform: translateX(-6px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.scan-row:last-child { border-bottom: 0; }
.scan-row.lit { opacity: 1; transform: none; }
.scan-row__label { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.scan-row__value { margin-left: auto; font: 700 0.9rem var(--font-mono); color: var(--ink); }
.scan-row__value.ok { color: var(--green-dark); }
.scan-row__value.warn { color: #b57e00; }
.scan-row__tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  transform: scale(0);
  transition: transform 0.4s var(--ease-spring);
}
.scan-row.lit .scan-row__tick { transform: scale(1); }
.scan-row__tick--warn { background: var(--amber-tint); color: #b57e00; }

/* VIN печатается */
.scanner__vin {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--green-deep);
  font: 600 0.86rem var(--font-mono);
  color: #7ee2a8;
}
.scanner__vin b { color: #fff; letter-spacing: 0.12em; font-weight: 600; }
.scanner__vin .caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; background: var(--green-glow); vertical-align: text-bottom; animation: caret-blink 0.85s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* штамп */
.stamp {
  position: absolute;
  right: 16px;
  top: 12px;
  padding: 0.4em 0.9em;
  border: 2.5px solid var(--green);
  border-radius: 10px;
  color: var(--green-dark);
  font: 800 0.82rem var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(8deg) scale(2.4);
  opacity: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
}
.stamp.hit { animation: stamp-hit 0.5s var(--ease-out) forwards; }
@keyframes stamp-hit {
  0% { transform: rotate(8deg) scale(2.4); opacity: 0; }
  60% { transform: rotate(-6deg) scale(0.96); opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; }
}

/* ---------- лента источников ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 0.85rem 0;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, #fff, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 30s) linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(var(--marquee-end, -50%)); } }
.ticker__group { display: flex; align-items: center; gap: 1.9rem; padding-right: 1.9rem; }
.ticker__item { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap; }
.ticker__item b { font-weight: 700; }
.ticker__item .sep { color: var(--green); font-weight: 800; }

/* ---------- промо-карточки ---------- */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (max-width: 760px) { .promo-row { grid-template-columns: 1fr; } }
.promo-card {
  position: relative;
  padding: 1.6rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.promo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--green), var(--green-glow));
}
.promo-card h3 { margin-bottom: 0.35em; }
.promo-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- benefit-карточки ---------- */
.benefits-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .benefits-row { grid-template-columns: 1fr; } }
.benefit-card {
  padding: 1.8rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.benefit-card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 15px;
  background: var(--green-tint);
  margin-bottom: 1rem;
}
.benefit-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- сетка проверок ---------- */
.checks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1020px) { .checks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .checks-grid { grid-template-columns: 1fr; } }
.check-card {
  position: relative;
  padding: 1.45rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.check-card::after {
  content: "✓";
  position: absolute;
  top: 0.9rem; right: 1rem;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green-dark);
  background: var(--green-tint);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}
.check-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.check-card:hover::after { opacity: 1; transform: scale(1); }
.check-card__icon { font-size: 1.45rem; margin-bottom: 0.7rem; }
.check-card h3 { font-size: 1.02rem; margin-bottom: 0.35em; }
.check-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- лояльность ---------- */
.loyalty-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
@media (max-width: 860px) { .loyalty-layout { grid-template-columns: 1fr; } }
.loyalty-ladder { display: grid; gap: 0.65rem; }
.loyalty-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.loyalty-step:hover { transform: translateX(6px); border-color: var(--green); }
.loyalty-step--highlight { border-color: var(--green); background: linear-gradient(135deg, #fff 60%, var(--green-tint)); box-shadow: var(--shadow-card); }
.loyalty-step__badge {
  min-width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--green-deep);
  color: var(--green-glow);
  font: 700 1rem var(--font-mono);
}
.loyalty-step__main { display: grid; }
.loyalty-step__range { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.loyalty-step__price { font: 700 1.15rem var(--font-mono); color: var(--ink); }
.loyalty-step__save {
  margin-left: auto;
  font: 700 0.85rem var(--font-mono);
  color: var(--green-dark);
  background: var(--green-tint);
  padding: 0.35em 0.75em;
  border-radius: var(--r-pill);
}
.loyalty-aside { display: grid; gap: 1rem; position: sticky; top: 90px; }
.loyalty-card {
  padding: 1.7rem 1.6rem;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
}
.loyalty-card--accent { background: var(--green-deep); border-color: var(--green-deep); color: #e8f8ee; box-shadow: var(--shadow-pop); }
.loyalty-card--accent h3 { color: #fff; }
.loyalty-card--accent p { color: #a9cdb7; font-size: 0.95rem; margin: 0; }
.loyalty-card__icon { font-size: 1.7rem; margin-bottom: 0.7rem; }

/* ---------- шаги ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.steps__line {
  position: absolute;
  top: 44px;
  left: 12%; right: 12%;
  height: 3px;
  z-index: 0;
  pointer-events: none;
}
.steps__line path { stroke: var(--line-strong); stroke-width: 3; fill: none; stroke-dasharray: 8 9; }
.steps__line .steps__line-fill { stroke: var(--green); stroke-dasharray: none; stroke-dashoffset: var(--line-len, 1000); }
.steps.lines-on .steps__line-fill { transition: stroke-dashoffset 1.6s var(--ease-out); stroke-dashoffset: 0 !important; }
@media (max-width: 860px) { .steps__line { display: none; } }

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.6rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.step__num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--green-glow);
  font: 600 1.15rem var(--font-display);
  box-shadow: 0 0 0 6px var(--green-tint);
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------- мессенджеры ---------- */
.messengers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 860px) { .messengers-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.messenger-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.messenger-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.messenger-card__icon { width: 58px; height: 58px; margin: 0 auto 1rem; }
.messenger-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq__item[open] { border-color: var(--green); box-shadow: var(--shadow-card); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  margin-left: auto;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-dark);
  font-weight: 700;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.3rem 1.15rem; margin: 0; color: var(--muted); }

/* ---------- карточки ссылок (лендинги, блог) ---------- */
.cards { display: grid; gap: 1.1rem; }
.cards--2 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards--2 { grid-template-columns: 1fr; } }
.card {
  display: block;
  padding: 1.4rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--green); color: inherit; }
.card h3 { font-size: 1.02rem; margin-bottom: 0.3em; display: flex; align-items: center; gap: 0.5em; }
a.card h3::after { content: "→"; margin-left: auto; color: var(--green); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.25s; }
a.card:hover h3::after { opacity: 1; transform: none; }
.card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* блог-превью */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card__img { aspect-ratio: 1200 / 630; background: var(--bg-mint); }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 { padding: 1.05rem 1.2rem 0; font-size: 1rem; }
.blog-card p { padding: 0.3rem 1.2rem 1.2rem; }
.blog-card__meta { padding: 0 1.2rem 1rem; color: var(--muted); font-size: 0.8rem; }

/* ---------- CTA ---------- */
.cta-strip {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  background: var(--green-deep);
  border-radius: 28px;
  color: #e8f8ee;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 224, 96, 0.22), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 160, 240, 0.14), transparent 40%);
  pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.cta-strip p { color: #a9cdb7; }
.cta-strip p strong { color: var(--green-glow); }
.cta-strip__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- подвал ---------- */
.footer {
  background: var(--green-deep);
  color: #a9cdb7;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--pin-blue), var(--pin-purple), var(--pin-red));
}
.footer a { color: #d3ecdc; }
.footer a:hover { color: var(--green-glow); }
.footer .logo { color: #fff; }
.footer__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem 1.6rem;
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(211, 236, 220, 0.15);
  font-size: 0.9rem;
}
.footer__trust strong { color: #fff; }
.footer__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-left: auto; font-size: 0.9rem; }
.footer__copy { margin: 0; width: 100%; padding-top: 1rem; font-size: 0.82rem; color: #7fa38d; }

/* ---------- формы (order / login / cabinet) ---------- */
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 0.45rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  font: 600 1rem var(--font-mono);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9fb2a6; font-family: var(--font-body); font-weight: 500; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 184, 80, 0.12); }
.form-group textarea { resize: vertical; font-size: 0.95rem; }
.form-hint { font-size: 0.84rem; color: var(--muted); margin: 0.45rem 0 0; }

.service-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.service-tab {
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  font: 700 0.95rem var(--font-body);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.service-tab:hover { border-color: var(--green); }
.service-tab.is-active {
  border-color: var(--green);
  background: var(--green-tint);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px var(--green);
}
.legal-sample-btn { margin-top: 0.7rem; }

.price-line { font: 700 1.5rem var(--font-mono); margin: 0.4rem 0 1rem; color: var(--ink); }
.promo-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  border-radius: var(--r-pill);
  padding: 0.4em 0.95em;
  margin: 0 0 1rem;
}

.alert { padding: 0.9rem 1.2rem; border-radius: 14px; font-weight: 600; margin-bottom: 1.2rem; }
.alert--error { background: var(--red-tint); color: #b3222f; border: 1px solid #f6c6cb; }
.alert--ok { background: var(--green-tint); color: var(--green-dark); border: 1px solid #c8ecd6; }

.loyalty-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
}
.loyalty-mini__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.loyalty-mini__tag { font: 700 0.72rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark); }
.loyalty-mini__link { margin-left: auto; font-size: 0.85rem; font-weight: 700; }
.loyalty-mini__text { margin: 0; font-size: 0.93rem; color: var(--muted); }
.loyalty-mini__text strong { color: var(--ink); }

.messengers-note { font-size: 0.93rem; }

/* страница-обёртка узких форм */
.page-head { margin-bottom: 1.5rem; }

/* ---------- статус заказа ---------- */
.status-box {
  max-width: 500px;
  margin: clamp(2rem, 6vw, 3.5rem) auto 0;
  padding: clamp(1.6rem, 5vw, 2.4rem);
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.status-icon { font-size: 2.6rem; margin-bottom: 0.6rem; }

/* степпер статуса */
.status-steps { display: flex; justify-content: center; gap: 0; margin: 1.2rem 0 0.4rem; }
.status-steps__item { display: grid; justify-items: center; gap: 0.35rem; flex: 1; position: relative; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.status-steps__item::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--line-strong);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--line-strong);
  z-index: 1;
}
.status-steps__item::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -50%; right: 50%;
  height: 2.5px;
  background: var(--line);
}
.status-steps__item:first-child::after { display: none; }
.status-steps__item.done::before { background: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
.status-steps__item.done::after { background: var(--green); }
.status-steps__item.done { color: var(--green-dark); }

/* ---------- кабинет ---------- */
.cabinet-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cabinet-head > div { flex: 1; min-width: 220px; }
.cabinet-list { display: grid; gap: 1rem; }
.cabinet-card { box-shadow: none; transition: box-shadow 0.3s, transform 0.3s var(--ease-out); }
.cabinet-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cabinet-card__head { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.cabinet-card__id { font: 700 0.8rem var(--font-mono); color: var(--muted); }
.cabinet-card__title { font-weight: 800; }
.cabinet-card__status {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-dark);
  background: var(--green-tint);
  border-radius: var(--r-pill);
  padding: 0.3em 0.85em;
}
.cabinet-card__meta { font-size: 0.87rem; margin: 0.5rem 0 0.9rem; }
.cabinet-card__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cabinet-empty { text-align: center; }

/* ---------- модалки (капча, пример отчёта) ---------- */
body.modal-open { overflow: hidden; }
.captcha-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.captcha-modal[hidden] { display: none; }
.captcha-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 31, 20, 0.45); backdrop-filter: blur(4px); }
.captcha-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--r-card);
  padding: 1.8rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-pop);
  animation: modal-in 0.35s var(--ease-out);
}
@keyframes modal-in { from { transform: translateY(18px) scale(0.97); opacity: 0; } }
.legal-sample-dialog { width: min(560px, 100%); }
.captcha-modal__close {
  position: absolute;
  top: 0.8rem; right: 0.9rem;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-mint);
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.captcha-modal__close:hover { background: var(--green-tint); color: var(--green-dark); }
.captcha-modal__tag {
  display: inline-block;
  font: 700 0.68rem var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-tint);
  padding: 0.45em 0.95em;
  border-radius: var(--r-pill);
  margin-bottom: 0.8rem;
}
.captcha-modal__title { font-size: 1.25rem; }
.captcha-modal__desc { color: var(--muted); font-size: 0.92rem; }
.captcha-modal__widget { margin: 1rem 0 1.2rem; min-height: 90px; display: grid; place-items: center; }
.captcha-modal__loading { color: var(--muted); font-size: 0.9rem; }
.legal-sample__body {
  background: var(--green-deep);
  color: #cfeeda;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font: 500 0.78rem/1.55 var(--font-mono);
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0 0 1.2rem;
}

/* ---------- блог / статьи ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.article-shell { position: relative; }
.article-read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-glow));
  z-index: 130;
}
.article-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }
.article-header { max-width: 780px; }
.article-header h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.article-author { color: var(--muted); font-size: 0.85rem; }
.article-lead { font-size: 1.12rem; color: var(--ink-soft); }
.article-cover { border-radius: var(--r-card); overflow: hidden; margin: 1.6rem 0; box-shadow: var(--shadow-card); position: relative; }
.article-cover img { width: 100%; height: auto; }
.article-cover--hero { width: min(calc(100% - clamp(2rem, 8vw, 4rem)), 960px); margin: 1.9rem auto 0; max-height: 440px; }
.article-cover--hero img { height: 100%; max-height: 440px; object-fit: cover; }
.article-cover__shine { display: none; }
.article-glow { display: none; }

.article-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; padding-top: clamp(1.6rem, 4vw, 2.6rem); }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-sidebar { position: static; } }
.article-sidebar { position: sticky; top: 90px; }
.article-toc {
  background: var(--bg-mint);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  font-size: 0.88rem;
}
.article-toc__title { font-weight: 800; margin-bottom: 0.6rem; }
.article-toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.article-toc a { color: var(--ink-soft); }
.article-toc a:hover { color: var(--green-dark); }

.article-prose { max-width: 720px; }
.article-prose h2 {
  font-size: 1.45rem;
  margin-top: 2em;
  padding-top: 0.4em;
  position: relative;
}
.article-prose h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 52px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-glow));
}
.article-prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.article-prose p, .article-prose li { color: var(--ink-soft); }
.article-prose img { border-radius: 16px; }
.article-prose blockquote {
  margin: 1.4em 0;
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
}
.article-prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.article-prose th, .article-prose td { border: 1px solid var(--line-strong); padding: 0.55em 0.8em; text-align: left; }
.article-prose th { background: var(--bg-mint); }
.article-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-mint-2); border-radius: 6px; padding: 0.12em 0.4em; }

.article-steps { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 0.8rem; }
.article-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.article-step__n {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--green-glow);
  font: 700 0.9rem var(--font-mono);
}
.article-step p { margin: 0.25em 0 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4em 0; }
.article-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  border: 1px solid #c8ecd6;
  padding: 0.35em 0.9em;
  border-radius: var(--r-pill);
}

.article-callout {
  margin: 1.5em 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
}
.article-callout--warn, .article-callout--warning { border-left-color: var(--amber); background: var(--amber-tint); }
.article-callout--danger, .article-callout--error { border-left-color: var(--pin-red); background: var(--red-tint); }
.article-callout strong { display: block; margin-bottom: 0.3em; }
.article-callout p { margin: 0; }

.article-quote {
  margin: 1.6em 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--green);
  background: var(--bg-mint);
  border-radius: 0 16px 16px 0;
  font-style: italic;
}
.article-quote footer { font-style: normal; color: var(--muted); font-size: 0.88rem; margin-top: 0.5em; }

.article-fact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.6em 0;
  padding: 1.2rem 1.4rem;
  background: var(--green-deep);
  color: #d3ecdc;
  border-radius: 18px;
}
.article-fact__num { font: 600 2.2rem/1 var(--font-display); color: var(--green-glow); white-space: nowrap; }
.article-fact__num em { font-style: normal; font-size: 0.55em; margin-left: 0.15em; }
.article-fact p { margin: 0; }

.article-highlight {
  margin: 1.5em 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-tint), #fff 70%);
  border: 1px solid #c8ecd6;
}

.article-divider { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }

.article-table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: 14px; }
.article-table-wrap table { margin: 0; }

.article-related {
  margin: 1.8em 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.article-related__title { font-weight: 800; margin: 0 0 0.6em; }
.article-related ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.4em; }

.article-eeat {
  margin: 1.8em 0;
  padding: 1rem 1.3rem;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.feature-list li { padding-left: 1.9em; position: relative; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0.1em;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--green-dark);
  background: var(--green-tint);
}

.cta-inline {
  position: relative;
  margin: 2em 0;
  padding: 1.6rem 1.7rem;
  border-radius: 20px;
  background: var(--green-deep);
  color: #e8f8ee;
  overflow: hidden;
}
.cta-inline h3, .cta-inline strong { color: #fff; }
.cta-inline p { color: #a9cdb7; }
.cta-inline__glow { position: absolute; inset: -50%; background: radial-gradient(circle at 80% 20%, rgba(0, 224, 96, 0.25), transparent 45%); pointer-events: none; }

/* ---------- reveal-анимации ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal [data-reveal="right"] { transform: translateX(34px); }
.js-reveal [data-reveal="scale"] { transform: scale(0.96); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: clamp(3rem, 10vw, 6rem) 1rem; }
.nf-code {
  font: 600 clamp(4.5rem, 16vw, 8.5rem)/1 var(--font-display);
  letter-spacing: 0.02em;
  background: linear-gradient(115deg, var(--green-dark), var(--green) 45%, var(--pin-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf-tread {
  width: min(360px, 70vw);
  height: 14px;
  margin: 0.8rem auto 1.6rem;
  background: repeating-linear-gradient(-55deg, var(--green-deep) 0 12px, transparent 12px 22px);
  border-radius: 7px;
  opacity: 0.18;
}

/* ---------- виджет поддержки ---------- */
.support-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150; font-family: var(--font-body); }
.support-widget__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--green-deep);
  color: #eafaf0;
  cursor: pointer;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.support-widget__fab:hover { transform: translateY(-2px); }
.support-widget__fab--active { border-color: var(--green); }
.support-widget__fab-icon { font-size: 1.15rem; line-height: 1; }
.support-widget__fab-label { font-weight: 600; font-size: 0.92rem; }
.support-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.8rem);
  width: 360px;
  max-height: min(70vh, 560px);
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.support-widget__panel.is-open { display: flex; animation: modal-in 0.3s var(--ease-out); }
.support-widget__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-mint);
}
.support-widget__title { font-weight: 800; font-size: 1rem; }
.support-widget__sub { color: var(--muted); font-size: 0.8rem; }
.support-widget__close {
  margin-left: auto;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.support-widget__close:hover { background: var(--green-tint); color: var(--green-dark); }
.support-widget__ticket {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
  padding: 0.3em 0.8em;
  border-radius: var(--r-pill);
}
.support-widget__ticket--closed { color: var(--muted); background: var(--bg-mint-2); }
.support-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 160px;
}
.support-widget__empty { color: var(--muted); font-size: 0.86rem; text-align: center; padding: 1.4rem 0.6rem; }
.support-widget__msg {
  max-width: 86%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.support-widget__msg--user { justify-self: end; background: var(--green-deep); color: #eafaf0; border-bottom-right-radius: 4px; }
.support-widget__msg--admin { justify-self: start; background: var(--bg-mint); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.support-widget__msg-body { white-space: pre-wrap; word-break: break-word; }
.support-widget__msg-time { display: block; margin-top: 0.25rem; font-size: 0.68rem; opacity: 0.65; }
.support-widget__form { display: flex; gap: 0.5rem; padding: 0.8rem 1rem 1rem; border-top: 1px solid var(--line); }
.support-widget__input {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.55em 0.8em;
  font: 500 0.88rem/1.4 var(--font-body);
  color: var(--ink);
}
.support-widget__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 184, 80, 0.12); }
.support-widget__send {
  border: 0;
  border-radius: 12px;
  padding: 0 1.05em;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}
.support-widget__send:hover:not(:disabled) { transform: translateY(-1px); }
.support-widget__send:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 560px) {
  .support-widget__fab-label { display: none; }
  .support-widget__fab { padding: 0.9rem; border-radius: 50%; }
  .support-widget__panel { width: min(100vw - 1.5rem, 380px); right: -0.25rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .scanner__beam { display: none; }
  .scan-row { opacity: 1; transform: none; }
  .scan-row__tick { transform: scale(1); }
  .stamp { opacity: 1; transform: rotate(-6deg); }
}

/* ---------- печать ---------- */
@media print {
  .header, .footer, .ticker, .scroll-progress { display: none; }
}


/* growth: flash bar + sticky mobile CTA */
.flash-bar {
  background: linear-gradient(90deg, #0a2e1c, #134e32 45%, #0c3b26);
  color: #e8fff2;
  font-size: .92rem;
  border-bottom: 1px solid rgba(0, 224, 96, .28);
}
.flash-bar__inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  flex-wrap: wrap;
}
.flash-bar__label {
  font-family: Unbounded, system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #00e060;
  color: #062416;
  padding: .2rem .5rem;
  border-radius: 4px;
}
.flash-bar__text { flex: 1; min-width: 200px; }
.flash-bar__cta {
  font-weight: 700;
  color: #00e060;
  text-decoration: none;
  white-space: nowrap;
}
.flash-bar__cta:hover { text-decoration: underline; }

.sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  .sticky-cta:not([hidden]) {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(8, 14, 12, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 224, 96, .25);
    box-shadow: 0 -8px 28px rgba(0,0,0,.35);
  }
  .sticky-cta__btn {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #00e060, #12b886);
    color: #062416;
    text-decoration: none;
  }
  body.has-sticky-cta { padding-bottom: 5.5rem; }
}
