/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary-dark); }
input, textarea, select { font: inherit; color: inherit; }

/* ============== Layout ============== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s-5); }
section { padding: var(--s-20) 0; }
@media (max-width: 768px) { section { padding: var(--s-12) 0; } }

/* ============== Typography ============== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; color: var(--c-ink); }
h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.5vw, 40px); line-height: 1.2; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }
.lead { font-size: 18px; line-height: 1.6; color: var(--c-graphite); }
.mono { font-family: var(--font-mono); }

/* ============== Header ============== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-cloud);
}
/* компенсируем высоту фиксированной шапки */
body { padding-top: 64px; }
/* плавный скролл к якорю с учётом шапки */
html { scroll-padding-top: 72px; }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo svg { height: 32px; width: auto; }
.site-nav { display: flex; gap: var(--s-6); align-items: center; }
.site-nav a { font-weight: 500; font-size: 14px; }
.site-nav a:hover {  }
@media (max-width: 768px) { .site-nav { display: none; } }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: var(--c-snow); }
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-snow); box-shadow: var(--sh-md); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-secondary:hover { background: rgba(42,116,0,0.06); color: var(--c-primary-dark); }
.btn-lg { padding: 16px 32px; font-size: 18px; line-height: 1.3; }
.btn-icon svg { width: 18px; height: 18px; }

/* Иконки внутри .btn не должны разрастаться по флексу */
.btn > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-lg > svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* ============== Hero ============== */
.hero {
  position: relative;
  padding: var(--s-16) 0 var(--s-20);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F8 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--c-cloud) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.6; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-12); align-items: center; position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-10); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 12px; background: var(--c-success-bg); color: var(--c-primary-dark);
  border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  margin-bottom: var(--s-5);
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary); animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.3); } }

.hero-title { margin-bottom: var(--s-5); }
.hero-title .accent { color: var(--c-primary); }
.hero-lead { font-size: 20px; line-height: 1.5; color: var(--c-graphite); margin-bottom: var(--s-6); max-width: 560px; }
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  max-width: 620px;
  margin-bottom: var(--s-6);
}
.hero-actions .btn-lg { width: 100%; justify-content: center; }
@media (max-width: 600px) {
  .hero-actions { grid-template-columns: 1fr; max-width: none; }
}
.hero-meta { display: flex; gap: var(--s-5); flex-wrap: wrap; font-size: 14px; color: var(--c-slate); }
.hero-meta-item { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--c-primary); }
.hero-meta b { color: var(--c-ink); font-weight: 600; }

/* ============== Mockup (иллюстрация в hero) ============== */
.mockup {
  position: relative; background: var(--c-snow);
  border-radius: var(--r-xl); box-shadow: var(--sh-xl);
  border: 1px solid var(--c-cloud); overflow: hidden;
}
.mockup-header {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 10px 14px; background: var(--c-mist);
  border-bottom: 1px solid var(--c-cloud);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-cloud); }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-body { padding: var(--s-5); }
.mockup-title { font-weight: 700; font-size: 18px; margin-bottom: var(--s-4); }
.mockup-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--c-mist);
  border-radius: var(--r-md); margin-bottom: var(--s-2);
}
.mockup-row-name { font-weight: 600; font-size: 14px; }
.mockup-row-meta { font-size: 12px; color: var(--c-slate); }
.mockup-badge {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  padding: 3px 8px; border-radius: var(--r-sm);
}
.mockup-badge.ok { background: var(--c-success-bg); color: var(--c-primary-dark); }
.mockup-badge.wait { background: var(--c-warning-bg); color: #92400E; }
.mockup-badge.new { background: var(--c-info-bg); color: #1E3A8A; }

/* ============== Problems section ============== */
.problems { background: var(--c-snow); }
.problems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-10); }
@media (max-width: 768px) { .problems-grid { grid-template-columns: 1fr; } }
.problem-card {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5);
  background: var(--c-mist); border-radius: var(--r-lg);
  border-left: 3px solid var(--c-danger);
}
.problem-icon { flex: 0 0 auto; width: 32px; height: 32px; color: var(--c-danger); }
.problem-text { font-size: 15px; line-height: 1.5; color: var(--c-graphite); }
.problem-text b { color: var(--c-ink); }

/* ============== Section header ============== */
.section-head { max-width: 720px; margin: 0 auto var(--s-10); text-align: center; }
.section-eyebrow {
  display: inline-block; padding: 4px 12px;
  background: var(--c-success-bg); color: var(--c-primary-dark);
  border-radius: var(--r-full); font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p { color: var(--c-graphite); font-size: 18px; }

/* ============== Features ============== */
.features { background: var(--c-mist); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature {
  padding: var(--s-6); background: var(--c-snow);
  border: 1px solid var(--c-cloud); border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--c-primary-light); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--c-success-bg); color: var(--c-primary-dark);
  margin-bottom: var(--s-4);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: var(--s-2); }
.feature p { font-size: 14px; line-height: 1.5; color: var(--c-graphite); }

/* ============== Segments (для кого) ============== */
.segments { background: var(--c-snow); }
.segments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
@media (max-width: 960px) { .segments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .segments-grid { grid-template-columns: 1fr; } }
.segment {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); background: var(--c-mist);
  border-radius: var(--r-lg); font-weight: 600; font-size: 15px;
}
.segment svg { flex: 0 0 auto; width: 28px; height: 28px; color: var(--c-primary); }

/* ============== Founder ============== */
.founder {
  background: linear-gradient(135deg, #F4F6F8 0%, #E8F5DC 100%);
  position: relative; overflow: hidden;
}
.founder-inner { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-10); align-items: start; }
@media (max-width: 960px) { .founder-inner { grid-template-columns: 1fr; } }

.founder-photo {
  aspect-ratio: 4/5; max-width: 360px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  display: flex; align-items: flex-end; justify-content: flex-start;
  /* Сильнее уменьшаем низ — подпись «опускается ниже» */
  padding: var(--s-6) var(--s-5) var(--s-4);
  position: relative; overflow: hidden;
}
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-photo-caption {
  position: relative;
  display: inline-block;
  background: rgba(15, 20, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: var(--r-md);
  color: var(--c-snow);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
}
.founder-photo-caption .role {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.15;
}

.founder-text h2 { margin-bottom: var(--s-5); }
.founder-text p { font-size: 17px; line-height: 1.6; color: var(--c-graphite); margin-bottom: var(--s-4); }
.founder-text p strong { color: var(--c-ink); }
.founder-quote {
  border-left: 3px solid var(--c-primary);
  padding-left: var(--s-5); margin: var(--s-6) 0;
  font-size: 20px; line-height: 1.4; color: var(--c-ink); font-weight: 600;
}

/* ============== Big Feature List ============== */
.bigfeat { background: var(--c-snow); }
.bigfeat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (max-width: 768px) { .bigfeat-grid { grid-template-columns: 1fr; } }
.bigfeat-item {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5); background: var(--c-mist);
  border-radius: var(--r-lg);
  transition: background var(--t-fast);
}
.bigfeat-item:hover { background: var(--c-success-bg); }
.bigfeat-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--c-snow);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
}
.bigfeat-icon svg { width: 22px; height: 22px; }
.bigfeat-content h4 { font-size: 15px; margin-bottom: var(--s-1); }
.bigfeat-content p { font-size: 14px; line-height: 1.5; color: var(--c-graphite); }

/* ============== Preview (скриншоты) ============== */
.preview { background: var(--c-mist); }
.preview-shot {
  background: var(--c-snow); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden;
  border: 1px solid var(--c-cloud);
  margin-top: var(--s-10);
}

/* ============== Form / Waitlist ============== */
.waitlist { background: linear-gradient(135deg, #1A4600 0%, #2A7400 100%); color: var(--c-snow); }
.waitlist .section-head h2 { color: var(--c-snow); }
.waitlist .section-head p { color: rgba(255,255,255,0.85); }
.waitlist .section-eyebrow { background: rgba(168,224,99,0.25); color: var(--c-accent); }

.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card {
  background: var(--c-snow); color: var(--c-ink);
  padding: var(--s-8); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.form-label { font-size: 13px; font-weight: 600; color: var(--c-graphite); }
.form-label .req { color: var(--c-danger); }
.form-input, .form-select, .form-textarea {
  padding: 12px 14px; background: var(--c-snow);
  border: 1px solid var(--c-cloud); border-radius: var(--r-md);
  font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(42,116,0,0.15);
}
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-hint { font-size: 12px; color: var(--c-slate); margin-top: 2px; }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.offer-choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
@media (max-width: 500px) { .offer-choice { grid-template-columns: 1fr; } }
.offer-opt {
  padding: var(--s-4); background: var(--c-mist); border: 2px solid transparent;
  border-radius: var(--r-md); cursor: pointer; transition: all var(--t-fast);
}
.offer-opt input { position: absolute; opacity: 0; pointer-events: none; }
.offer-opt:hover { background: var(--c-success-bg); }
.offer-opt.active { background: var(--c-success-bg); border-color: var(--c-primary); }
.offer-opt b { display: block; font-size: 16px; margin-bottom: 2px; color: var(--c-ink); }
.offer-opt span { font-size: 13px; color: var(--c-graphite); }

.checkbox { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-3); cursor: pointer; }
.checkbox input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--c-primary); }
.checkbox span { font-size: 14px; line-height: 1.4; color: var(--c-graphite); }
.checkbox a { color: var(--c-primary); font-weight: 500; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--s-4);
  /* Крупный CTA — одинаково на десктопе и на мобиле */
  padding: 28px 24px;
  font-size: 20px;
  gap: var(--s-4);
  min-height: 88px;
}
.form-submit > svg { width: 32px; height: 32px; flex: 0 0 auto; }
@media (max-width: 600px) {
  .form-submit { padding: 24px 16px; font-size: 18px; min-height: 76px; }
  .form-submit > svg { width: 26px; height: 26px; }
}
.form-msg { display: none; margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-md); font-size: 14px; line-height: 1.5; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--c-success-bg); color: var(--c-primary-dark); }
.form-msg.err { background: var(--c-danger-bg); color: #991B1B; }

/* ============== FAQ ============== */
.faq { background: var(--c-snow); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--c-cloud); border-radius: var(--r-lg);
  margin-bottom: var(--s-3); overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--c-primary-light); }
.faq-q {
  padding: var(--s-4) var(--s-5); font-weight: 600; font-size: 16px;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-3); user-select: none;
}
.faq-q::after {
  content: ''; width: 12px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A7400' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") center/contain no-repeat;
  transition: transform var(--t-fast); flex: 0 0 auto;
}
.faq-item[open] .faq-q::after { transform: rotate(180deg); }
.faq-q::-webkit-details-marker { display: none; }
.faq-a { padding: 0 var(--s-5) var(--s-5); font-size: 15px; line-height: 1.6; color: var(--c-graphite); }

/* ============== Footer ============== */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,0.8); padding: var(--s-12) 0 var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-8); margin-bottom: var(--s-10); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about .site-logo svg { height: 32px; }
.footer-about p { margin-top: var(--s-4); font-size: 14px; line-height: 1.6; max-width: 360px; }
.footer-col h4 { color: var(--c-snow); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--s-2); }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: var(--c-snow); }
.footer-bottom { padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); }

/* ============== Animations ============== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
/* Fallback: если JS не отработал за 3 сек — показать принудительно */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ============== Cookie banner ============== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto;
  background: var(--c-ink); color: var(--c-snow);
  padding: 16px 20px; border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap;
  font-size: 14px; line-height: 1.5;
  animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* ============== Cookie banner ============== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 720px; margin: 0 auto;
  background: var(--c-ink); color: var(--c-snow);
  padding: 16px 20px; border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  gap: var(--s-4); align-items: center; flex-wrap: wrap;
  font-size: 14px; line-height: 1.5;
  /* По умолчанию — скрыт */
  display: none;
}
.cookie-banner.show {
  display: flex;
  animation: cookieSlideUp 0.4s ease;
}
@keyframes cookieSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner-text { flex: 1 1 280px; }
.cookie-banner-text a { color: var(--c-accent); text-decoration: underline; }
.cookie-icon {
  display: inline-block;
  vertical-align: -4px;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  color: var(--c-accent);
}
.cookie-banner-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.cookie-banner .btn-secondary { background: transparent; color: var(--c-snow); border-color: rgba(255,255,255,0.3); }
.cookie-banner .btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--c-snow); }

/* Тихая кнопка «Войти» — только для тех, у кого уже есть аккаунт */
.site-nav-login {
  font-size: 13px;
  color: var(--c-slate, #6B7785);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.site-nav-login:hover {
  color: var(--c-primary, #2A7400);
  border-color: var(--c-cloud, #E5E9EE);
  background: #fff;
}

/* ============== Mobile menu ============== */
.site-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--c-ink);
  transition: background var(--t-fast);
}
.site-burger:hover { background: var(--c-mist); }
.site-burger svg { width: 24px; height: 24px; }
.site-nav-cta { padding: 8px 16px !important; }
.site-nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15, 20, 25, 0.45); z-index: 49;
  animation: fadeIn .2s ease;
}
.site-nav-overlay.show { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  .site-burger { display: inline-flex; }
  .site-nav {
    position: fixed; top: 64px; right: 0; bottom: 0;
    width: min(320px, 85vw); background: var(--c-snow);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-4); box-shadow: var(--sh-xl);
    transform: translateX(100%); transition: transform .25s ease;
    z-index: 50; overflow-y: auto;
    display: flex;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a {
    padding: 14px 12px; border-radius: var(--r-md);
    font-size: 16px; border-bottom: 1px solid var(--c-cloud);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav-cta { margin-top: var(--s-3); justify-content: center; }
  .site-nav-login { margin-top: var(--s-2); text-align: center; }
  body.nav-open { overflow: hidden; }
}

/* ============== Anti-overflow ============== */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video { max-width: 100%; }

/* Preview-shot — адаптив для inline-стилизованной разметки */
.preview-shot { overflow: hidden; }
.preview-shot > div { min-width: 0; }
@media (max-width: 768px) {
  /* На мобиле sidebar превью прячем, KPI-плитки — в 2 колонки */
  .preview-shot > div[style*="grid-template-columns:220px"] {
    display: block !important;
    min-height: 0 !important;
  }
  .preview-shot aside { display: none !important; }
  .preview-shot [style*="repeat(4,1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Hero mockup — не растягивает страницу */
.mockup { min-width: 0; max-width: 100%; }
.mockup-row { min-width: 0; }
.mockup-row > div:first-child { min-width: 0; flex: 1 1 auto; }
.mockup-row-name, .mockup-row-meta { overflow-wrap: anywhere; }

/* Cookie-баннер на мобиле — на всю ширину минус отступы */
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; padding: 12px 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 0; justify-content: center; }
}

/* ============== Mobile header: fix fixed-positioning bug ============== */
/* backdrop-filter превращает header в containing block для position:fixed,
   из-за чего .site-nav (fixed внутри header) получает высоту хедера.
   На мобиле — отключаем backdrop-filter и ставим непрозрачный фон. */
@media (max-width: 768px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  /* Меню — на всю высоту окна, поверх всего, включая шапку */
  .site-nav {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    z-index: 60 !important;
    padding-top: 64px !important; /* отступ под бургер */
  }
  /* Overlay — на весь экран */
  .site-nav-overlay {
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh; height: 100dvh;
    z-index: 55 !important;
  }
  /* Бургер должен быть НАД открытым меню, чтобы по нему можно было закрыть */
  .site-burger { position: relative; z-index: 70; }
  /* Когда меню открыто — бургер белый "крестик-фон", сам остаётся виден */
  body.nav-open .site-burger { background: transparent; }
}

/* Жёсткая блокировка скролла фона при открытом мобильном меню */
body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}