/* Шрифты подключены ссылкой в <head> каждой страницы (/assets/fonts.css).
   @import отсюда убран 20.08.2026: он дублировал те же 48 @font-face и,
   в отличие от <link>, грузится ПОСЛЕ разбора brand.css — то есть позже. */

/* ============================================================
   LetsBuh — Design System  brand.css  (D3 · serif editorial)
   Tokens → Base → Layout → Nav → Buttons → Eyebrow → Sections
   → H2/Lead → Bento/Cards → Tariffs → Calc → FAQ → Trust
   → Stats → Promise → Footer → Reveal → A11y → Reduced-motion
   → Mobile
   ============================================================ */

/* ── 1. D3 TOKENS ────────────────────────────────────────── */
:root {
  /* Palette */
  --ivory:        #F6F1E8;
  --ivory-light:  #FBF8F2;
  --ivory-dark:   #EDE6D6;
  --ink:          #1C1812;
  --ink-mid:      #3D3628;
  --ink-light:    #6B6255;
  --teal:         #14403A;
  --teal-mid:     #1E5C54;
  --teal-light:   #2A7A6F;
  --teal-pale:    #E8F0EF;
  --teal-faint:   #F0F5F4;
  --rule:         #D8CDB8;
  --rule-light:   #EAE3D4;

  /* Typography */
  --serif: 'Spectral', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
}

/* ── 2. BASE RESET ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── 3. LAYOUT ───────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

/* ── 4. NAV ──────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-light);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--teal);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img,
.logo svg {
  height: 32px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-mid);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal);
}

/* Nav right group */
.nav-r {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.phone {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── 5. BUTTONS ──────────────────────────────────────────── */
.btn {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — solid teal, ivory text */
.btn-pri {
  background: var(--teal);
  color: var(--ivory);
  box-shadow: 0 4px 16px rgba(20, 64, 58, 0.18);
}

.btn-pri:hover {
  background: var(--teal-mid);
  box-shadow: 0 6px 20px rgba(20, 64, 58, 0.26);
}

/* Ghost — outline ink/teal */
.btn-gh {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-gh:hover {
  background: var(--teal-faint);
  border-color: var(--teal-mid);
}

/* Focus-visible */
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── 6. EYEBROW ──────────────────────────────────────────── */
/* Editorial label: rule + small caps text */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── 7. SECTIONS ─────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--ivory);
}

.section--ivory-light {
  background: var(--ivory-light);
}

/* Raised area with subtle border */
.section--paper {
  background: var(--ivory-light);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

/* Dark teal band — high contrast, ivory text */
.section--teal {
  background: var(--teal);
  color: var(--ivory);
}

.section--teal .eyebrow {
  color: rgba(246, 241, 232, 0.6);
}

.section--teal .eyebrow::before {
  background: rgba(246, 241, 232, 0.4);
}

.section--teal .h2 {
  color: var(--ivory);
}

.section--teal .lead {
  color: rgba(246, 241, 232, 0.8);
}

/* ── 8. H2 + LEAD ────────────────────────────────────────── */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.h2 em {
  font-style: italic;
  color: var(--teal);
  font-weight: 300;
}

.lead {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: 36px;
}

/* ── 9. BENTO / CARDS ────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--ivory-light);
  border: 1px solid var(--rule-light);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(28, 24, 18, 0.08);
}

/* ── 10. TARIFF CARDS ────────────────────────────────────── */
.tcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.tcard {
  background: var(--ivory-light);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(28, 24, 18, 0.09);
}

/* Highlighted popular tariff */
.tcard--pop {
  border-color: var(--teal);
  box-shadow: 0 0 0 1.5px var(--teal);
}

.tcard--pop::before {
  content: "Популярный";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.tcard .tcard-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.price {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-bottom: 16px;
  line-height: 1.4;
}

.price b {
  font-family: var(--serif);
  color: var(--teal);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}

.tcard ul {
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-mid);
  margin-bottom: 20px;
}

.tcard ul li {
  padding: 3px 0;
}

.tcard ul li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}

/* ── 11. CALCULATOR ──────────────────────────────────────── */
.calc {
  background: var(--ivory-light);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 0.9375rem;
}

.calc-row:last-of-type {
  border-bottom: none;
}

.calc-row label {
  color: var(--ink-mid);
  flex: 1;
  cursor: pointer;
  font-size: 0.9375rem;
}

.calc-row input[type="range"] {
  flex: 1;
  accent-color: var(--teal);
  cursor: pointer;
}

.calc-row select {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-family: var(--sans);
  font-size: 0.875rem;
  cursor: pointer;
}

.calc-out {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  color: var(--teal);
  letter-spacing: -0.03em;
  margin-top: 24px;
}

/* ── 12. FAQ ─────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq details {
  border-bottom: 1px solid var(--rule-light);
}

.faq details:first-child {
  border-top: 1px solid var(--rule-light);
}

.faq details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--ink);
  user-select: none;
  transition: color 0.18s;
}

.faq details summary::-webkit-details-marker {
  display: none;
}

.faq details summary::after {
  content: "+";
  font-size: 1.375rem;
  color: var(--teal);
  font-weight: 300;
  font-family: var(--sans);
  transition: transform 0.25s;
  flex-shrink: 0;
  line-height: 1;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details summary:hover {
  color: var(--teal);
}

.faq details .faq-body {
  padding: 0 0 20px;
  color: var(--ink-mid);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── 13. TRUST ROW ───────────────────────────────────────── */
.trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.875rem;
  color: var(--ink-mid);
}

.trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust i {
  color: var(--teal);
  font-style: normal;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── 14. STATS — editorial grid ──────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat {
  background: var(--ivory-light);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Big Spectral numbers — supports [data-count] */
.stat [data-count],
.stat .stat-n {
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat .stat-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: var(--ink-light);
  line-height: 1.35;
}

/* ── 15. PROMISE CARD — D3 signature ─────────────────────── */
/* Dark teal card, italic Spectral pull-quote, shield badge */
.promise {
  background: var(--teal);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 48px);
  position: relative;
  overflow: hidden;
  color: var(--ivory);
}

/* Subtle circle decorations */
.promise::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.promise::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.promise .promise-label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Italic Spectral pull-quote */
.promise .promise-q {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(246, 241, 232, 0.95);
  line-height: 1.25;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

/* Divider rule */
.promise .promise-rule {
  width: 40px;
  height: 1px;
  background: rgba(246, 241, 232, 0.25);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* Body text */
.promise .promise-body {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: rgba(246, 241, 232, 0.75);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  max-width: 40ch;
}

/* Shield / badge accent inside promise */
.promise .promise-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.promise .promise-badge-icon {
  width: 32px;
  height: 32px;
  background: rgba(246, 241, 232, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.promise .promise-badge-text {
  font-size: 0.8125rem;
  color: rgba(246, 241, 232, 0.75);
  line-height: 1.55;
}

.promise .promise-badge-text strong {
  display: block;
  font-weight: 600;
  color: rgba(246, 241, 232, 0.95);
  font-size: 0.875rem;
  margin-bottom: 2px;
}

/* ── 16. FOOTER ──────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ivory-dark);
  border-top: 1px solid var(--rule);
  padding: 56px 0 36px;
  font-size: 0.875rem;
  color: var(--ink-mid);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer .footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 280px;
}

.site-footer h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer ul a {
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.18s;
}

.site-footer ul a:hover {
  color: var(--teal);
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  font-size: 0.8125rem;
  color: var(--ink-light);
}

/* ── 17. SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── 18. SKIP LINK (a11y) ────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 9999;
  background: var(--teal);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  outline: 2px solid var(--ivory);
  outline-offset: 2px;
}

/* ── 19. COUNTERS ────────────────────────────────────────── */
[data-count] {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── 20. FOCUS VISIBLE ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ── 21. REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── 22. MOBILE (≤900px) ─────────────────────────────────── */
@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }

  /* Show burger */
  .burger {
    display: flex;
  }

  /* Collapse nav-links */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(246, 241, 232, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 20px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links li {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule-light);
    font-size: 1rem;
    color: var(--ink);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .phone {
    display: none;
  }

  /* Grids → 1 col */
  .bento {
    grid-template-columns: 1fr;
  }

  .tcards {
    grid-template-columns: 1fr;
  }

  .calc {
    padding: 20px;
  }

  .calc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust {
    gap: 12px;
  }
}

/* ── 23. COOKIE CONSENT ──────────────────────────────────── */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 44px rgba(28, 24, 18, 0.28);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.55;
  transform: translateY(160%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-bar--in {
  transform: none;
  opacity: 1;
}

.cookie-bar__text {
  margin: 0;
  flex: 1 1 340px;
}

.cookie-bar__text a {
  color: var(--teal-pale);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__btn {
  flex: 0 0 auto;
  cursor: pointer;
  border: 0;
  background: var(--teal-light);
  color: var(--ivory);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 28px;
  border-radius: var(--r-md);
  transition: background 0.2s ease;
}

.cookie-bar__btn:hover {
  background: var(--teal-mid);
}

@media (max-width: 560px) {
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-bar__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-bar {
    transition: none;
  }
}

/* ── 24. LEAD MODAL (tariff choice → email) ──────────────── */
.lb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 24, 18, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.lb-modal.lb-modal--open {
  display: flex;
}

.lb-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--ivory-light);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  box-shadow: 0 24px 70px rgba(28, 24, 18, 0.35);
}

.lb-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink-light);
  font-size: 1.6rem;
  line-height: 1;
  border-radius: var(--r-md);
}

.lb-modal__close:hover {
  background: var(--ivory-dark);
  color: var(--ink);
}

.lb-modal__eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 8px;
}

.lb-modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 6px;
}

.lb-modal__pick {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin: 0 0 20px;
}

.lb-modal__pick b {
  color: var(--teal);
  font-weight: 600;
}

/* ============================================================
   HERO FIGURE — editorial illustration plate (дизайн-развод услуг)
   Один общий каркас + per-page акценты (ribbon/chip/console/cap/tag)
   ============================================================ */
.hero-figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ivory-light);
  box-shadow: 0 24px 50px -30px rgba(20, 64, 58, .45);
  margin-bottom: 4px;
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* tag — плавающая метка (главная) */
.hero-figure .fig-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(20, 64, 58, .92);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: .625rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* ribbon — нижняя бирюзовая полоса со стат-строкой (ООО) */
.hero-figure .fig-ribbon {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(20, 64, 58, .94), rgba(20, 64, 58, 0));
  padding: 44px 20px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: .8125rem; color: var(--ivory);
}
.hero-figure .fig-ribbon strong { font-weight: 600; }
.hero-figure .fig-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal-light); flex-shrink: 0;
}

/* chip — плавающий ценник (ИП) */
.hero-figure .fig-chip {
  position: absolute; top: 14px; right: 14px;
  background: var(--ivory); border: 1px solid var(--rule);
  border-radius: 999px; padding: 7px 15px;
  font-family: var(--sans); font-size: .8125rem;
  font-weight: 600; color: var(--teal);
  box-shadow: 0 8px 20px -10px rgba(20, 64, 58, .45);
}

/* console — верхняя «консольная» планка (IT) */
.hero-figure .fig-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 15px;
  background: var(--teal);
}
.hero-figure .fig-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(246, 241, 232, .5); display: block;
}
.hero-figure .fig-bar span {
  margin-left: 6px;
  font-family: var(--sans); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(246, 241, 232, .82);
}

/* caption — serif-подпись под иллюстрацией (юр) */
.hero-figure .fig-cap {
  padding: 14px 18px 16px;
  background: var(--ivory-light);
  border-top: 1px solid var(--rule);
}
.hero-figure .fig-cap .fig-cap-rule {
  width: 34px; height: 2px; background: var(--teal);
  margin-bottom: 9px;
}
.hero-figure .fig-cap p {
  font-family: var(--serif);
  font-style: italic; font-size: .95rem;
  line-height: 1.45; color: var(--ink-mid);
}

@media (max-width: 880px) {
  .hero-figure { max-width: 440px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   NAV — Услуги dropdown + Статьи (desktop hover / mobile inline)
   ============================================================ */
.nav-links li.has-sub { position: relative; }
.nav-links .sub-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-links .sub-caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s;
}
.nav-links li.has-sub:hover .sub-caret,
.nav-links li.has-sub:focus-within .sub-caret { transform: rotate(-135deg) translateY(2px); }

/* hover bridge over the 10px gap so the menu doesn't flicker shut */
.nav-links li.has-sub::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.nav-links .submenu {
  position: absolute; top: calc(100% + 10px); left: -14px;
  min-width: 232px; list-style: none;
  background: var(--ivory-light);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 44px -24px rgba(20, 64, 58, .42);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 120;
}
.nav-links li.has-sub:hover .submenu,
.nav-links li.has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-links .submenu li { width: auto; }
.nav-links .submenu a {
  display: block; padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: .9rem; color: var(--ink-mid); white-space: nowrap;
}
.nav-links .submenu a:hover { background: var(--teal-faint); color: var(--teal); }

@media (max-width: 880px) {
  /* mobile: submenu becomes a static indented list inside the open burger menu */
  .nav-links li.has-sub::after { display: none; }
  .nav-links .sub-caret { display: none; }
  .nav-links .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 0 14px; min-width: 0;
  }
  .nav-links .submenu a {
    padding: 11px 0; font-size: .95rem;
    border-bottom: 1px solid var(--rule-light); color: var(--ink-mid);
  }
}

/* ── 21. COST-CONTRAST (штат vs аутсорс · anchoring) ──────── */
.ccx {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 940px;
  align-items: stretch;
}
.ccx-col {
  background: var(--ivory-light);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.ccx-col--win {
  border-color: var(--teal);
  box-shadow: 0 0 0 1.5px var(--teal);
  background: var(--teal-faint);
}
.ccx-h { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.ccx-col--win .ccx-h { color: var(--teal); }
.ccx-sub { font-size: 0.82rem; color: var(--ink-light); margin: 4px 0 18px; }
.ccx-rows { list-style: none; margin: 0 0 4px; padding: 0; flex: 1; }
.ccx-rows li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--rule-light);
  font-size: 0.92rem; color: var(--ink-mid);
}
.ccx-rows li b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ccx-col--win .ccx-rows li { color: var(--teal-mid); }
.ccx-col--win .ccx-rows li b { color: var(--teal); }
.ccx-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px; border-top: 2px solid var(--rule); margin-top: 14px;
}
.ccx-total span { font-size: 0.9rem; color: var(--ink-light); }
.ccx-total b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.ccx-col--win .ccx-total { border-top-color: var(--teal); }
.ccx-col--win .ccx-total b { color: var(--teal); }
.ccx-verdict {
  margin: 22px auto 0; max-width: 940px;
  background: var(--teal); color: var(--ivory);
  border-radius: var(--r-lg); padding: 18px 26px; text-align: center;
  font-size: 1.05rem; line-height: 1.5;
}
.ccx-verdict b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ivory); }
.ccx-note {
  margin: 12px auto 0; max-width: 940px;
  font-size: 0.78rem; color: var(--ink-light); text-align: center; line-height: 1.6;
}
@media (max-width: 720px) { .ccx { grid-template-columns: 1fr; } }

/* ── 22. QUIZ (foot-in-the-door · подбор тарифа) ─────────── */
.lbq {
  max-width: 720px;
  background: var(--ivory-light);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
}
.lbq-q { margin-bottom: 22px; }
.lbq-q-t { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 12px; }
.lbq-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.lbq-opt { position: relative; }
.lbq-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.lbq-opt label {
  display: inline-block; padding: 10px 18px;
  border: 1.5px solid var(--rule); border-radius: 100px;
  font-size: 0.92rem; color: var(--ink-mid); cursor: pointer;
  background: var(--ivory); transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lbq-opt label:hover { border-color: var(--teal-light); }
.lbq-opt input:checked + label { background: var(--teal); border-color: var(--teal); color: var(--ivory); }
.lbq-opt input:focus-visible + label { outline: 2px solid var(--teal-light); outline-offset: 2px; }
.lbq-cta {
  width: 100%; justify-content: center; font-size: 1rem; padding: 14px;
  margin-top: 4px; opacity: 0.5; pointer-events: none; transition: opacity 0.2s;
}
.lbq-cta.ready { opacity: 1; pointer-events: auto; }
.lbq-hint { font-size: 0.82rem; color: var(--ink-light); margin-top: 12px; text-align: center; }
