
html {
  scroll-behavior: smooth;
}
:root {
  --orange: #F36C16;
  --orange-hover: #D85808;
  --orange-soft: #FFF1E5;
  --orange-tint: #FFE0C2;
  --warm-bg: #FFF7EE;
  --dark: #1a1b2e;
  --cream: #FBF6EC;
  --light: #F4F4F2;
  --white: #ffffff;
  --border: #ECE9E2;
  --border-2: #DEDAD0;
  --text-1: #1B1D22;
  --text-2: #4A4D54;
  --text-3: #8B8F98;
  --ozon: #0069FF;
  --wb: #CB11AB;
  --ym: #FFCC00;
  --success: #2E9659;
  --danger: #D04545;
  --warn: #D49323;
  --shadow-warm: 0 6px 16px rgba(74, 50, 30, 0.05);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(74, 50, 30, 0.05);
  --shadow-deep: 0 24px 48px rgba(20, 10, 0, 0.12);
  --shadow-float: 0 12px 32px rgba(20, 10, 0, 0.08);
  --r-card: 16px;
  --r-btn: 12px;
  --r-banner: 24px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Manrope', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

.bk * { box-sizing: border-box; }
.bk { font-family: var(--font-sans); color: var(--text-1); -webkit-font-smoothing: antialiased; line-height: 1.45; }
.bk h1, .bk h2, .bk h3, .bk h4, .bk h5, .bk p { margin: 0; }
.bk a { color: inherit; text-decoration: none; }
.bk button { font-family: inherit; cursor: pointer; border: none; background: none; }
.bk img { max-width: 100%; display: block; }

.site-d { width: 1440px; background: var(--warm-bg); }
.site-m { width: 375px; background: var(--warm-bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; border-radius: var(--r-btn); transition: all .15s ease;
  white-space: nowrap; gap: 8px; line-height: 1;
}
.bk button.btn-primary { background: var(--orange); color: #fff; padding: 14px 22px; font-size: 15px; box-shadow: 0 6px 18px rgba(243, 108, 22, 0.32); }
.bk button.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 8px 22px rgba(243, 108, 22, 0.45); }
.bk button.btn-primary.lg { padding: 18px 28px; font-size: 16px; }
.bk button.btn-outline-dark { border: 1.5px solid rgba(255,255,255,0.3); color: #fff; padding: 14px 22px; font-size: 15px; background: transparent; }
.bk button.btn-outline-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.bk button.btn-outline-dark.lg { padding: 18px 28px; font-size: 16px; }
.bk button.btn-outline-light { border: 1.5px solid var(--orange); color: var(--orange-hover); padding: 14px 22px; font-size: 15px; background: #fff; }
.bk button.btn-outline-light:hover { background: var(--orange-soft); }
.bk button.btn-outline-light.lg { padding: 18px 28px; font-size: 16px; }
.bk button.btn-ghost { padding: 12px 18px; color: var(--text-1); font-size: 14px; font-weight: 600; background: transparent; }
.bk button.btn-ghost:hover { background: rgba(0,0,0,0.04); }
.btn-white { background: #fff; color: var(--text-1); padding: 14px 22px; font-size: 15px; border: 1px solid var(--border); }
.btn-white.lg { padding: 18px 28px; font-size: 16px; }

.bk-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,247,238,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.bk-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 56px; max-width: 1440px; margin: 0 auto; }
.bk-logo { display: flex; align-items: center; }
.bk-logo img { display: block; }
.bk-nav { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--text-2); border-radius: 8px; transition: background .12s; cursor: pointer; }
.nav-link:hover { background: rgba(0,0,0,0.04); color: var(--text-1); }
.bk-header-cta { display: flex; align-items: center; gap: 10px; }

.bk-header-m { padding: 12px 16px; }
.bk-burger { width: 36px; height: 36px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: var(--text-1); }
.bk-burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.bk-footer { background: #14152a; color: rgba(255,255,255,0.65); padding: 64px 56px 32px; }
.bk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); max-width: 1440px; margin: 0 auto; }
.bk-footer h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.bk-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bk-footer ul a { font-size: 14px; transition: color .12s; cursor: pointer; }
.bk-footer ul a:hover { color: #fff; }
.bk-footer-brand { max-width: 280px; }
.bk-footer-brand .logo { color: #fff; font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; letter-spacing: -0.02em; }
.bk-footer-brand p { font-size: 13px; line-height: 1.55; margin-bottom: 18px; }
.bk-footer-socials { display: flex; gap: 8px; }
.bk-footer-socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background .12s; cursor: pointer; }
.bk-footer-socials a:hover { background: rgba(255,255,255,0.12); }
.bk-footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.4); max-width: 1440px; margin: 0 auto; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.tag-warm { background: var(--orange-soft); color: var(--orange-hover); }
.tag-success { background: rgba(46,150,89,0.12); color: var(--success); }
.tag-danger { background: rgba(208,69,69,0.10); color: var(--danger); }
.tag-popular { background: var(--orange); color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--orange-soft); color: var(--orange-hover); font-size: 13px; font-weight: 600; border-radius: 100px; }

.t-mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.muted { color: var(--text-3); }

.section { padding: 80px 56px; }
.section.tight { padding: 56px 56px; }
.section.cream { background: var(--cream); }
.container { max-width: 1280px; margin: 0 auto; }

.h1-display { font-size: 78px; line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.h1-display .accent { color: var(--orange); }
.h2-display { font-size: 48px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
.h3-display { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }

.site-m .h1-display { font-size: 44px; }
.site-m .h2-display { font-size: 30px; }
.site-m .h3-display { font-size: 24px; }
.site-m .section { padding: 48px 16px; }
.site-m .section.tight { padding: 36px 16px; }
.site-m .bk-footer { padding: 48px 20px 24px; }
.site-m .bk-footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; transition: transform .2s, box-shadow .2s; }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.handnote { font-family: 'Caveat', 'Comic Sans MS', cursive; color: var(--orange); }

@media (max-width: 768px) {
  
  .site-d, #root { width: 100%; max-width: 100%; }
  body, html { overflow-x: hidden; }

  
  .site-d .h1-display { font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
  .site-d .h2-display { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
  .site-d .h3-display { font-size: 20px; line-height: 1.2; }

  
  .site-d h1[style*="font-size: 60"] { font-size: 30px !important; line-height: 1.05 !important; letter-spacing: -0.02em !important; }
  .site-d h2[style*="font-size: 56"] { font-size: 26px !important; line-height: 1.1 !important; }
  .site-d h3[style*="font-size: 30"] { font-size: 22px !important; line-height: 1.15 !important; }
  .site-d h3[style*="font-size: 26"] { font-size: 20px !important; line-height: 1.2 !important; }
  .site-d h3[style*="font-size: 22"] { font-size: 18px !important; }
  .site-d div[style*="font-size: 36"] { font-size: 28px !important; }
  .site-d div[style*="font-size: 38"] { font-size: 26px !important; }
  .site-d div[style*="font-size: 30"] { font-size: 22px !important; }

  
  .bk-header-inner { padding: 10px 16px !important; }
  .bk-nav { display: none !important; }
  .bk-header-cta .btn-ghost { display: none !important; }
  .bk-header-cta .btn-primary { padding: 9px 14px !important; font-size: 13px !important; }
  .bk-logo img:first-child { height: 36px !important; }
  .bk-logo img:last-child { height: 18px !important; }

  
  .site-d section { padding: 36px 14px !important; }

  
  .site-d section > div[style*="padding: 48px 56px"] { padding: 24px 16px !important; }
  
  .site-d section > div > div[style*="padding: 64px 56px"],
  .site-d section div[style*="padding: 64px 56px"] { padding: 28px 18px !important; }
  
  .site-d div[style*="padding: 44px 48px"] { padding: 24px 16px !important; }
  
  .site-d div[style*="padding: 28px 26px"] { padding: 22px 18px !important; }

  
  
  .site-d section *[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .site-d section > div[style*="grid"],
  .site-d section > div > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  
  .site-d section div[style*="sticky"] { position: static !important; top: auto !important; }

  
  
  .site-d section div[style*="min-height: 480"] { display: none !important; }
  
  .site-d section div[style*="left: -110"] { display: none !important; }
  

  
  .site-d div[style*="border-right"][style*="padding-right: 24"] {
    border-right: none !important;
    padding-right: 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
  }

  
  .site-d section div[style*="justify-content: space-between"][style*="align-items: flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  
  .site-d button.lg, .site-d button.btn.lg,
  .site-d a.btn.lg { padding: 12px 18px !important; font-size: 14px !important; }
  
  .site-d div[style*="display: flex"][style*="gap: 12"]:has(> a.btn),
  .site-d div[style*="display: flex"][style*="gap: 16"]:has(> a.btn) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .site-d div[style*="gap: 12"] > a.btn,
  .site-d div[style*="gap: 16"] > a.btn { width: 100%; text-align: center; justify-content: center; }
  .site-d div[style*="gap: 12"] > button.btn,
  .site-d div[style*="gap: 16"] > button.btn { width: 100%; }

  
  .site-d div[style*="display: flex"][style*="align-items: center"][style*="gap: 18"] {
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
  }
  
  .site-d div[style*="gap: 24"][style*="margin-top: 28"] {
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
  }

  
  .site-d picture:has(img[style*="width: 300px"]),
  .site-d picture:has(img[style*="width: 200px"]),
  .site-d picture:has(img[style*="width: 170px"]) {
    display: none !important;
  }
  
  .site-d picture img[style*="width: 300px"],
  .site-d picture img[style*="width: 200px"],
  .site-d picture img[style*="width: 170px"] {
    width: 140px !important;
  }
  
  .site-d div[style*="grid-template-columns: 1.4fr 1fr"] > div:last-child { display: none !important; }
  
  .site-d span.handnote { display: none !important; }
  .site-d div[style*="transform: rotate(8deg)"] { display: none !important; }

  
  .site-d div[style*="min-height: 360"] { min-height: auto !important; }
  .site-d div[style*="min-height: 320"] { min-height: auto !important; }
  .site-d div[style*="min-height: 290"] { min-height: auto !important; }

  
  .site-d img { max-width: 100%; height: auto; }

  
  .site-d section > div[style*="border-radius: 32"] { border-radius: 20px !important; }
  .site-d div[style*="border-radius: 28"] { border-radius: 18px !important; }
  .site-d div[style*="border-radius: 22"] { border-radius: 16px !important; }

  
  .bk-footer { padding: 40px 20px 24px !important; }
  .bk-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; padding-bottom: 24px !important; }
  .bk-footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; text-align: left !important; }
  .bk-footer-bottom .req { font-size: 11px !important; line-height: 1.5 !important; }

  
  button[aria-label="Наверх"] { width: 44px !important; height: 44px !important; bottom: 16px !important; right: 16px !important; }
}

@media (max-width: 380px) {
  .site-d .h1-display { font-size: 28px; }
  .site-d .h2-display { font-size: 22px; }
  .site-d h1[style*="font-size: 60"] { font-size: 26px !important; }
  .site-d h2[style*="font-size: 56"] { font-size: 22px !important; }
  .site-d section { padding: 28px 12px !important; }
  .site-d section > div[style*="padding: 48px 56px"] { padding: 20px 14px !important; }
}

/* ── Promo banner & API sync banner — mobile ───────────────────── */
@media (max-width: 768px) {
  .promo-banner-wrap { padding: 0 !important; }
  .promo-banner-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }
  .promo-banner-inner > div:first-child {
    align-self: flex-start;
  }
  .promo-banner-inner > a.btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  /* API-sync banner (нет класса, матчим по div+child icon) */
  .site-d div[style*="linear-gradient(135deg, #e8f0ff"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }
  .site-d div[style*="linear-gradient(135deg, #e8f0ff"] > a.btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ── Audio Pill (inline-плеер гимна в hero) ────────────────────── */
.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--border, #E5DCC9);
  background: #fff;
  color: var(--text-1, #0E1116);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.audio-pill:hover {
  border-color: var(--orange, #FF6B1A);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(243, 108, 22, 0.15);
}
.audio-pill:focus-visible {
  outline: 3px solid rgba(255, 107, 26, 0.35);
  outline-offset: 2px;
}
.audio-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange, #FF6B1A);
  color: #fff;
  flex-shrink: 0;
}
@media (max-width: 980px) {
  .bk-header-cta .audio-pill .audio-pill__text { display: none; }
  .bk-header-cta .audio-pill { padding: 6px; }
}
.audio-pill.is-playing {
  border-color: var(--orange, #FF6B1A);
  background: #FFF4E8;
}
.audio-pill.is-playing .audio-pill__icon {
  animation: audio-pill-pulse 1.8s ease-in-out infinite;
}
@keyframes audio-pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 108, 22, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(243, 108, 22, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .audio-pill.is-playing .audio-pill__icon { animation: none; }
}
