/* КупиБеседку — основной UI (только тёмная тема) */
:root {
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --bg: #0f1410;
  --bg-elev: #171d18;
  --bg-alt: #1c241e;
  --ink: #ece7db;
  --muted: #a8ad9c;
  --line: rgba(236, 231, 219, 0.12);
  --accent: #c4a35a;
  --accent-ink: #14110a;
  --accent-soft: rgba(196, 163, 90, 0.14);
  --hero-veil: linear-gradient(105deg, rgba(15, 20, 16, 0.94) 0%, rgba(15, 20, 16, 0.62) 48%, rgba(15, 20, 16, 0.2) 100%);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  --metal: #d7d2c4;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, transparent, transparent);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
h1, h2, h3, .hero-brand, .footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon {
  display: block;
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.logo-mark {
  display: none;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 9px 7px 8px;
  border: 2px solid var(--accent-ink);
  border-bottom: none;
  clip-path: polygon(0 100%, 0 35%, 50% 0, 100% 35%, 100% 100%);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-family: var(--font-display); font-size: 0.95rem; }
.logo-text small { display: none; }
.nav { display: flex; gap: 1rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.nav-crm { color: var(--accent) !important; font-weight: 700 !important; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.phone, .header-email { font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-email { display: none; color: var(--muted); font-size: 0.88rem; }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; border: 1px solid transparent; border-radius: 999px;
  padding: 0.85rem 1.35rem; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; color: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* Hero — full-bleed */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: var(--hero-veil); }
.hero-content {
  position: relative; z-index: 1;
  padding: 5rem 0 4rem;
  animation: rise 0.9s var(--ease) both;
}
.hero-badge {
  display: inline-block; margin: 0 0 1rem;
  color: var(--accent); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.hero-brand {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  color: var(--ink);
}
.hero-title {
  margin: 0.6rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  max-width: 22ch;
}
.hero-lead {
  margin: 1rem 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (min-width: 900px) {
  .hero-copy {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.85rem 1.25rem;
    margin-top: 0.6rem;
    max-width: min(100%, 58rem);
  }
  .hero-title {
    margin: 0;
    max-width: none;
    flex: 0 1 auto;
    white-space: nowrap;
  }
  .hero-lead {
    margin: 0;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { margin: 0; color: var(--muted); }
.section-more { margin-top: 2rem; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.trust-item {
  position: relative;
  padding: 1.35rem 1.25rem 1.2rem;
  border-top: 2px solid var(--accent);
  overflow: hidden;
  isolation: isolate;
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0 0 0.75rem;
  border-radius: 12px;
  color: var(--accent);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      color-mix(in srgb, var(--accent) 6%, transparent)
    );
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: inset 0 1px 0 rgba(236, 231, 219, 0.08);
  animation: trustNumIn 0.7s var(--ease) both;
}
.trust-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.trust-item::after {
  content: "";
  position: absolute;
  right: -0.4rem;
  bottom: -0.85rem;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--accent) 10%, transparent);
  pointer-events: none;
  user-select: none;
}
.trust-item:nth-child(1)::after { content: "01"; }
.trust-item:nth-child(2)::after { content: "02"; }
.trust-item:nth-child(3)::after { content: "03"; }
.trust-item:nth-child(4)::after { content: "04"; }
.trust-item:nth-child(5)::after { content: "05"; }
.trust-item:nth-child(6)::after { content: "06"; }

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.3rem;
  position: relative;
}
.trust-desc {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

@keyframes trustNumIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.trust-item:nth-child(1) .trust-icon { animation-delay: 0.05s; }
.trust-item:nth-child(2) .trust-icon { animation-delay: 0.1s; }
.trust-item:nth-child(3) .trust-icon { animation-delay: 0.15s; }
.trust-item:nth-child(4) .trust-icon { animation-delay: 0.2s; }
.trust-item:nth-child(5) .trust-icon { animation-delay: 0.25s; }
.trust-item:nth-child(6) .trust-icon { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .trust-icon { animation: none; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.product-card { display: flex; flex-direction: column; gap: 0.9rem; }
.product-card-media {
  overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; background: var(--bg-alt);
}
.product-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-body h2,
.product-card-body h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.product-card-body h2 a,
.product-card-body h3 a { text-decoration: none; }
.product-card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.product-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin-top: 0.75rem;
}
.price { font-weight: 700; font-size: 1.05rem; }
.price-lg { font-family: var(--font-display); font-size: 1.8rem; margin: 0.5rem 0; }
.tag, .tag-lg {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.78rem; font-weight: 600;
}
.tag-lg { font-size: 0.9rem; padding: 0.4rem 0.85rem; }

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem; align-items: center;
}
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.check-list { padding: 0; list-style: none; margin: 1.25rem 0 1.75rem; }
.check-list li {
  position: relative; padding-left: 1.4rem; margin: 0.45rem 0; color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent);
}

.page-hero { padding: 3.5rem 0 1rem; }
.page-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.thanks-page {
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 55% 50% at 50% 20%, var(--accent-soft), transparent 62%);
}
.thanks-wrap {
  display: flex;
  justify-content: center;
}
.thanks-card {
  position: relative;
  width: min(100%, 34rem);
  padding: 2.25rem 2rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #243028) 0%, var(--bg-elev) 48%, var(--bg-alt) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  animation: thanks-card-in 0.7s var(--ease) both;
}
.thanks-card-glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 18rem;
  height: 12rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  pointer-events: none;
  animation: thanks-glow 2.8s ease-in-out infinite alternate;
}
.thanks-card-mark {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.15rem;
  animation: thanks-mark-in 0.8s var(--ease) 0.12s both;
}
.thanks-card-mark img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.thanks-check {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--bg-elev);
  animation: thanks-check-pop 0.55s var(--ease) 0.45s both;
}
.thanks-brand {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  animation: thanks-fade-up 0.55s var(--ease) 0.2s both;
}
.thanks-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  animation: thanks-fade-up 0.55s var(--ease) 0.28s both;
}
.thanks-lead {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  animation: thanks-fade-up 0.55s var(--ease) 0.36s both;
}
.thanks-points {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  animation: thanks-fade-up 0.55s var(--ease) 0.42s both;
}
.thanks-points li {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: thanks-fade-up 0.55s var(--ease) 0.5s both;
}

.error-page {
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 55% 50% at 50% 20%, var(--accent-soft), transparent 62%);
}
.error-wrap {
  display: flex;
  justify-content: center;
}
.error-card {
  position: relative;
  width: min(100%, 34rem);
  padding: 2.25rem 2rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--bg-elev) 88%, #243028) 0%, var(--bg-elev) 48%, var(--bg-alt) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  animation: thanks-card-in 0.7s var(--ease) both;
}
.error-card-glow {
  position: absolute;
  inset: -40% auto auto 50%;
  width: 18rem;
  height: 12rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  pointer-events: none;
  animation: thanks-glow 2.8s ease-in-out infinite alternate;
}
.error-code {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  animation: thanks-fade-up 0.55s var(--ease) 0.12s both;
}
.error-brand {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  animation: thanks-fade-up 0.55s var(--ease) 0.2s both;
}
.error-card h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.8vw, 2.1rem);
  animation: thanks-fade-up 0.55s var(--ease) 0.28s both;
}
.error-lead {
  margin: 0 auto 0.85rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  animation: thanks-fade-up 0.55s var(--ease) 0.36s both;
}
.error-hint {
  margin: 0 auto 1.6rem;
  max-width: 26rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
  animation: thanks-fade-up 0.55s var(--ease) 0.42s both;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: thanks-fade-up 0.55s var(--ease) 0.5s both;
}

@keyframes thanks-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes thanks-mark-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes thanks-check-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes thanks-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes thanks-glow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (max-width: 640px) {
  .thanks-page { padding: 2rem 0 3rem; min-height: auto; }
  .thanks-card { padding: 1.75rem 1.25rem 1.5rem; }
  .thanks-actions { width: 100%; }
  .thanks-actions .btn { flex: 1 1 auto; }
  .error-page { padding: 2rem 0 3rem; min-height: auto; }
  .error-card { padding: 1.75rem 1.25rem 1.5rem; }
  .error-actions { width: 100%; }
  .error-actions .btn { flex: 1 1 auto; }
}

.product-detail {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem; align-items: start;
}
.product-detail-media { border-radius: var(--radius); overflow: hidden; }
.product-detail-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lead { color: var(--muted); font-size: 1.05rem; }
.spec-list { list-style: none; padding: 0; margin: 1.25rem 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.spec-list span { color: var(--muted); }

.prose { color: var(--muted); }
.prose.narrow { max-width: 42rem; }
.prose h2 { color: var(--ink); }
.seo-block { border-top: 1px solid var(--line); }

.info-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-panel ol { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--muted); }

.contacts-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem;
}
.contact-form, .quiz-contact-form {
  display: grid; gap: 0.85rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-form label, .quiz-contact-form label {
  display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.form-status { color: var(--accent); font-weight: 600; }

.consent-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-weight: 500 !important;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.consent-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}
.consent-check a { color: var(--accent); }

.cookie-banner {
  position: fixed;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 90;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cookie-banner-inner p {
  margin: 0;
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.cookie-banner-inner a { color: var(--accent); }

.legal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 2rem;
  align-items: start;
}
.legal-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}
.legal-doc h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}
.legal-updated { margin-top: 2rem; font-size: 0.85rem; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  color: var(--muted);
  font-weight: 600;
  width: 40%;
}
.footer-ip { margin-top: 0.75rem; font-size: 0.82rem; }

.muted { color: var(--muted); }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem;
}
.footer-brand { font-size: 1.3rem; margin: 0 0 0.5rem; }
.footer-title { font-weight: 700; margin: 0 0 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0.4rem 0; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}

@media (max-width: 900px) and (min-width: 769px) {
  .nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--bg-elev); padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    z-index: 60;
  }
}

@media (max-width: 900px) {
  .product-grid, .split, .product-detail, .contacts-grid, .footer-grid, .legal-layout {
    grid-template-columns: 1fr;
  }
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero { min-height: 78vh; align-items: end; }
}

@media (max-width: 640px) {
  .trust-row {
    grid-template-columns: 1fr;
  }
}

/* Desktop: product reel list = обычная сетка */
.product-reel-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 1rem;
}
.reel-hint { display: none; }
.reel-cta-slide .section-more { margin: 0; }
.reel-intro .section-head { margin-bottom: 0; }

/* —— Mobile Reels: карточки + вертикальный snap —— */
@media (max-width: 768px) {
  html {
    scroll-snap-type: y proximity;
    scroll-padding-top: 0.55rem;
    scroll-behavior: smooth;
    touch-action: pan-y;
  }

  body.site-body {
    background: color-mix(in srgb, var(--bg) 70%, #000 30%);
    touch-action: pan-y;
    overscroll-behavior-y: contain;
  }

  .site-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible;
  }

  .site-header .header-inner {
    min-height: 56px;
    padding: 0.75rem 0;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
  }

  .site-header .nav,
  .site-header .nav-toggle,
  .site-header .header-cta {
    display: none !important;
  }

  .site-header .logo-icon {
    display: block;
  }

  .site-header .header-actions {
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
  }

  .site-header .phone,
  .site-header .header-email {
    display: block;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .site-header .phone {
    color: var(--accent);
  }

  .site-header .header-email {
    color: var(--muted);
    font-weight: 500;
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-main {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .product-reel-list {
    display: contents;
  }

  .reel-slide,
  .site-main > .hero,
  .site-main > .section,
  .site-main > .page-hero,
  .site-main > .product-card,
  .site-footer.reel-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex: 0 0 auto;
    width: 100%;
    min-height: calc(100dvh - 5.4rem);
    max-height: calc(100dvh - 5.4rem);
    height: calc(100dvh - 5.4rem);
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
  }

  .site-main > .hero.reel-slide {
    display: grid;
    align-items: center;
    padding: 0;
    background: #111;
    /* Скролл страницы пальцем, без перехвата жеста внутри карточки */
    overflow: hidden;
    touch-action: pan-y;
  }

  .site-main > .hero .hero-media {
    border-radius: 28px;
  }

  .site-main > .hero .hero-content {
    padding: 1rem 1rem 4.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    /* Чуть выше центра, чтобы контент не упирался в низ */
    transform: translateY(-6%);
  }

  .site-main > .hero .hero-badge {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-main > .hero .hero-brand {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 100%;
  }

  .site-main > .hero .hero-title {
    margin: 0.4rem 0 0;
    max-width: 100%;
    font-size: clamp(0.95rem, 3.8vw, 1.1rem);
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .site-main > .hero .hero-lead {
    margin: 0.45rem 0 0;
    max-width: 100%;
    font-size: 0.86rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .site-main > .hero .hero-cta {
    margin-top: 0.9rem;
    gap: 0.5rem;
  }

  .site-main > .hero .hero-cta .btn {
    padding: 0.7rem 1.05rem;
    font-size: 0.88rem;
  }

  .reel-hint {
    display: none;
  }

  .site-main > .hero > .reel-hint {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 2;
    margin: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    text-align: center;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .site-main > .hero > .reel-hint:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

  .site-main > .hero > .reel-hint:active {
    transform: translateX(-50%) scale(0.96);
  }

  .site-main > .hero > .reel-hint .reel-hint-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ink) 78%, var(--muted));
    white-space: nowrap;
  }

  .site-main > .hero > .reel-hint .reel-hint-mark {
    position: relative;
    display: grid;
    place-items: center;
  }

  .site-main > .hero > .reel-hint .reel-hint-mark i {
    display: none;
  }

  /* —— 1) pill: стеклянная пилюля + шевроны —— */
  .site-main > .hero > .reel-hint--pill {
    gap: 0.35rem;
    padding: 0.55rem 0.95rem 0.5rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg-elev) 55%, transparent),
        color-mix(in srgb, var(--bg) 72%, transparent)
      );
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(236, 231, 219, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: reelHintFloat 2.4s var(--ease) infinite;
  }

  .site-main > .hero > .reel-hint--pill .reel-hint-mark,
  .site-main > .hero > .reel-hint--fade .reel-hint-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 1.15rem;
  }

  .site-main > .hero > .reel-hint--fade .reel-hint-mark {
    height: 1.5rem;
  }

  .site-main > .hero > .reel-hint--pill .reel-hint-mark i {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    margin: -0.18rem 0;
    border-right: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-135deg);
    opacity: 0.2;
    animation: reelChevron 1.5s var(--ease) infinite;
  }

  .site-main > .hero > .reel-hint--pill .reel-hint-mark i:nth-child(1) { animation-delay: 0s; }
  .site-main > .hero > .reel-hint--pill .reel-hint-mark i:nth-child(2) { animation-delay: 0.15s; }
  .site-main > .hero > .reel-hint--pill .reel-hint-mark i:nth-child(3) { animation-delay: 0.3s; }

  /* —— 2) beam: вертикальный луч + бегущая точка —— */
  .site-main > .hero > .reel-hint--beam {
    gap: 0.55rem;
    animation: reelHintFloat 2.8s var(--ease) infinite;
  }

  .site-main > .hero > .reel-hint--beam .reel-hint-mark {
    width: 0.2rem;
    height: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--accent) 75%, transparent) 45%,
      transparent 100%
    );
    overflow: hidden;
  }

  .site-main > .hero > .reel-hint--beam .reel-hint-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 70%;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent),
      0 0 16px color-mix(in srgb, var(--accent) 70%, transparent);
    animation: reelBeamDot 1.7s var(--ease) infinite;
  }

  .site-main > .hero > .reel-hint--beam .reel-hint-label {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* —— 3) orbit: мягкое кольцо + стрелка (активный по умолчанию) —— */
  .site-main > .hero > .reel-hint--orbit {
    gap: 0.45rem;
    animation: reelHintFloat 2.6s var(--ease) infinite;
  }

  .site-main > .hero > .reel-hint--orbit .reel-hint-mark {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
    background:
      radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
      color-mix(in srgb, var(--bg-elev) 48%, transparent);
    box-shadow:
      0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent),
      0 12px 28px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .site-main > .hero > .reel-hint--orbit .reel-hint-mark::before {
    content: "";
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
    animation: reelOrbitSpin 8s linear infinite;
  }

  .site-main > .hero > .reel-hint--orbit .reel-hint-mark::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-135deg) translateY(0.12rem);
    animation: reelOrbitNudge 1.6s var(--ease) infinite;
  }

  /* —— 4) fade: минималистичные шевроны без подложки —— */
  .site-main > .hero > .reel-hint--fade {
    gap: 0.4rem;
  }

  .site-main > .hero > .reel-hint--fade .reel-hint-mark {
    height: 1.5rem;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 35%, transparent));
  }

  .site-main > .hero > .reel-hint--fade .reel-hint-mark i {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
    margin: -0.28rem 0;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-135deg);
    animation: reelFadeWave 1.8s var(--ease) infinite;
  }

  .site-main > .hero > .reel-hint--fade .reel-hint-mark i:nth-child(1) { animation-delay: 0s; }
  .site-main > .hero > .reel-hint--fade .reel-hint-mark i:nth-child(2) { animation-delay: 0.12s; }
  .site-main > .hero > .reel-hint--fade .reel-hint-mark i:nth-child(3) { animation-delay: 0.24s; }

  .site-main > .hero > .reel-hint--fade .reel-hint-label {
    opacity: 0.75;
  }

  @keyframes reelHintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
  }

  @keyframes reelChevron {
    0%, 100% { opacity: 0.15; }
    40% { opacity: 1; }
    70% { opacity: 0.35; }
  }

  @keyframes reelBeamDot {
    0% { top: 78%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 18%; opacity: 0; }
  }

  @keyframes reelOrbitSpin {
    to { transform: rotate(360deg); }
  }

  @keyframes reelOrbitNudge {
    0%, 100% { transform: rotate(-135deg) translateY(0.18rem); opacity: 0.55; }
    50% { transform: rotate(-135deg) translateY(-0.08rem); opacity: 1; }
  }

  @keyframes reelFadeWave {
    0%, 100% { opacity: 0.12; transform: rotate(-135deg) translateY(0.1rem); }
    45% { opacity: 1; transform: rotate(-135deg) translateY(-0.08rem); }
  }

  .site-main > .section.reel-slide,
  .site-main > .page-hero.reel-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
  }

  .site-main > .section.reel-intro.reel-slide {
    min-height: 0;
    max-height: none;
    height: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 1rem 0.85rem;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .site-main > .section.reel-intro .section-head h2 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .site-main > .section.reel-intro .section-head p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .site-main > .section.section-alt.reel-slide {
    background: var(--bg-alt);
  }

  .site-main > .trust.reel-slide {
    justify-content: center;
  }

  .trust-row {
    gap: 0.45rem;
  }

  .trust-item {
    padding: 0.75rem 0.35rem 0.7rem;
  }

  .trust-icon {
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.45rem;
    border-radius: 10px;
  }

  .trust-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .trust-item::after {
    font-size: 3.4rem;
    right: -0.2rem;
    bottom: -0.55rem;
    opacity: 0.85;
  }

  .trust-item strong {
    font-size: 0.92rem;
  }

  .trust-desc {
    font-size: 0.8rem;
  }

  /* Товар как рилс: фото на весь экран, текст снизу */
  .site-main > .product-card.reel-slide,
  .product-reel-list > .product-card.reel-slide {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .product-card.reel-slide .product-card-media {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0;
    aspect-ratio: auto;
    height: 62%;
  }

  .product-card.reel-slide .product-card-media img {
    height: 100%;
    object-fit: cover;
  }

  .product-card.reel-slide .product-card-body {
    flex: 0 0 auto;
    padding: 1.1rem 1.15rem 1.35rem;
    background: linear-gradient(180deg, transparent, var(--bg-elev) 18%);
  }

  .product-card.reel-slide:hover .product-card-media img {
    transform: none;
  }

  .reel-cta-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .reel-cta-slide .section-more {
    margin: 0;
    text-align: center;
  }

  .site-footer.reel-slide {
    margin: 0 0.7rem 0.7rem;
    width: auto;
    padding: 1.5rem 0 1rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer .footer-grid {
    gap: 1.25rem;
  }

  .site-footer .footer-bottom {
    margin-top: 1.25rem;
  }

  .quiz-page,
  .product-detail,
  .contacts-grid {
    scroll-snap-align: start;
  }

  /* Внутренние страницы: секции тоже карточки */
  .site-main > .product-detail {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100dvh - 5.4rem);
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 1rem;
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .site-main > .section.seo-block.reel-slide,
  .quiz-page.reel-slide {
    height: auto;
    max-height: none;
    min-height: calc(100dvh - 5.4rem);
  }

  .quiz-page.reel-slide {
    padding: 1.25rem 0.25rem 1.75rem;
  }

  /* Шапка: обычное позиционирование, без лишних отступов */
  .site-header.header-card.reel-slide {
    position: relative;
    top: auto;
    z-index: 1;
    height: auto;
    max-height: none;
    min-height: 0;
    flex: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: y proximity; }
  .site-main > .hero > .reel-hint,
  .site-main > .hero > .reel-hint .reel-hint-mark,
  .site-main > .hero > .reel-hint .reel-hint-mark i,
  .site-main > .hero > .reel-hint .reel-hint-mark::before,
  .site-main > .hero > .reel-hint .reel-hint-mark::after {
    animation: none !important;
  }
  .site-main > .hero > .reel-hint .reel-hint-mark i {
    opacity: 0.7;
  }
}
