/* ==========================================================================
   SELEQT — design tokens & base

   CSS IS FROZEN DURING BLOG BATCH ASSEMBLY (see .claude/agents/publisher.md,
   output/article-format.md). Do not add or edit rules here while building a
   batch of articles — if the format doesn't cover something, stop and ask
   the owner instead of extending this file inline. Reference copy of the
   version this rule applies to: ./reference/style.css.
   ========================================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F5F5F7;
  --color-footer: #E8E8ED;
  --color-text: #1D1D1F;
  --color-accent: #424245;
  --color-border: #D2D2D7;
  --color-muted: #6E6E73;
  --color-cta: #0071E3;
  --color-cta-hover: #0077ED;

  /* SF Pro is Apple's system font — served by the OS on Mac/iOS/iPadOS, so we
     reference it via the system-font stack rather than hosting the (licensed,
     non-redistributable) font files ourselves. Falls back to Segoe UI/Roboto
     on non-Apple platforms. */
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif;

  --text-h1-h2: clamp(32px, 4.5vw, 56px);
  --text-h3: clamp(20px, 2.5vw, 28px);
  --text-card-name: 19px;
  --text-body: 17px;
  --lh-heading: 1.07;
  --lh-body: 1.47;

  --ease-out: cubic-bezier(0.28, 0.1, 0.25, 1);

  /* Spacing scale — every vertical gap in the page should be one of these,
     so the rhythm reads as intentional instead of ad-hoc. */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Article vertical rhythm — one unit, everything else is a named multiple
     of it. See .article-body rules below: every gap between blocks inside
     an article is --flow or one of these multiples, nothing else. */
  --flow: var(--space-sm);          /* 16px — paragraph-to-paragraph, the base unit */
  --flow-before-h2: var(--space-xl);   /* 64px = 4×flow */
  --flow-before-h3: var(--space-lg);   /* 40px = 2.5×flow */
  --flow-after-h3: var(--space-xs);    /* 8px = 0.5×flow — heading hugs its own paragraph */
  --flow-before-block: var(--space-md); /* 24px = 1.5×flow — table/plaque/figure/details */

  --radius-pill: 980px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-blur: saturate(180%) blur(20px);

  /* Confirmed against apple.com content cards: solid white, no border,
     a soft offset shadow — not glass. Glass/blur is reserved for the
     sticky nav bar only. */
  --card-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);

  --container-max: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

/* All animation disabled site-wide, on request — scroll-reveal fades,
   hover/dropdown transitions, keyframe animations, smooth scroll. Elements
   that relied on a transition to reach their final state (e.g. .reveal)
   still reach it, just instantly instead of animated. */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body {
  /* apple.com/mac reference: sections alternate flat #FFFFFF / #F5F5F7,
     cards inside flip to the opposite flat color, zero shadow, zero
     border — contrast comes only from the flat fill, nothing else. */
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: -0.015em;
}

h1, h2 {
  font-size: var(--text-h1-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

p {
  font-weight: 400;
  line-height: var(--lh-body);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* UI text: buttons, nav, labels — Apple uses plain sentence case, no tracking */
.ui-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-muted);
}

.btn,
.nav__links a,
.nav__dropdown-toggle,
.nav__logo {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
}

.nav__logo {
  font-weight: 590;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(var(--space-xl), 8vw, var(--space-2xl)) var(--gutter);
}

.section__head {
  max-width: min(92vw, 720px);
  margin: 0 0 var(--space-xl);
  text-align: left;
}

.section__head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section__head--wide {
  max-width: min(94vw, 900px);
}

/* Two-tone inline headline: "Statement. Continuation." on one line,
   same size/weight, second clause in muted gray — confirmed against
   apple.com/shop/buy-mac ("Shopping guides." + "Can't decide? Start here.") */
.heading-muted {
  color: var(--color-muted);
}

.section__head--left {
  text-align: left;
  margin: 0 0 var(--space-lg);
  max-width: min(92vw, 760px);
}

.section__sub {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.section__sub a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

.section__sub a:hover {
  color: var(--color-cta-hover);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), opacity 200ms var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-cta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-cta-hover);
}

.btn--secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  border-color: transparent;
}

.btn--secondary:hover {
  background: rgba(0, 0, 0, 0.09);
}

.btn--nav {
  padding: 8px 16px;
  background: var(--color-cta);
  color: #fff;
  font-size: 13px;
}

.btn--nav:hover {
  background: var(--color-cta-hover);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Scroll reveal (JS toggles .is-visible)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  filter: blur(6px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 1ms;
    filter: none;
  }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Nav always sits on its own glass surface now (never transparent over the
   hero), so logo/links/icons stay a single dark palette regardless of
   scroll position — no more separate "light text over hero" state. */
.nav__logo,
.nav__cart {
  color: var(--color-text);
}

.nav__burger span {
  background: var(--color-text);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  font-size: 15px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav__links a,
.nav__dropdown-toggle {
  font-size: 11px;
  color: var(--color-muted);
  transition: color 150ms var(--ease-out);
}

.nav__links a:hover,
.nav__dropdown-toggle:hover {
  color: var(--color-text);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.nav__dropdown-toggle svg {
  width: 9px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 150ms var(--ease-out);
}

.nav__dropdown.is-open .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  padding: 8px;
}

.nav__dropdown.is-open .nav__dropdown-menu {
  display: flex;
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text);
  text-shadow: none;
  white-space: nowrap;
  transition: background 120ms var(--ease-out), color 120ms var(--ease-out);
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus-visible {
  background: var(--color-surface);
  color: var(--color-cta);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.nav__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.nav__cart:hover {
  color: var(--color-accent);
}

.nav__cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.nav__cart-title {
  color: var(--color-muted);
  margin-bottom: 14px;
}

.nav__cart-empty {
  font-size: 14px;
  color: var(--color-muted);
  padding: 8px 0;
}

.nav__cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -10px -10px -10px 0;
}

.nav__burger span {
  width: 22px;
  height: 1px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 140px var(--gutter) 40px;
  background: #0a0a0a;
  isolation: isolate;
}

.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.6) 100%),
    rgba(0, 0, 0, 0.28);
}

.hero__layer--wordmark {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 2%;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(140px, 22vw, 380px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  opacity: 0.13;
  transform: translate(4%, 0);
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: min(58vw, 660px);
  width: 100%;
}

.hero__line {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.hero__line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

h1.hero__line {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--text-h1-h2);
  line-height: var(--lh-heading);
  margin-bottom: 28px;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

p.hero__line {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 6px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

p.hero__line.hero__kicker {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 20px;
  text-shadow: none;
}

p.hero__line--accent {
  color: #fff;
  font-weight: 600;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.hero__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__bottom-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero__credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.hero__credit span:first-child {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #fff;
}

.hero__credit span:last-child {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.hero-bottom-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-bottom-actions .hero__cta,
.hero-bottom-actions .page-hero__cta {
  margin-top: 0;
}

.hero__scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__scroll-cue span:first-child {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollCueDrip 1.8s var(--ease-out) infinite;
}

@keyframes scrollCueDrip {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 900px) {
  .hero {
    text-align: left;
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100svh;
  }

  .hero__inner {
    max-width: 100%;
  }

  .hero__layer--wordmark {
    font-size: 30vw;
    justify-content: center;
    transform: translate(0, 30%);
  }

  .hero__scroll-cue {
    display: none;
  }

  .hero__credit {
    display: none;
  }
}

/* ==========================================================================
   Catalog
   ========================================================================== */

.catalog {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--color-border);
}

.catalog__group {
  margin-bottom: var(--space-xl);
}

.catalog__group:last-child {
  margin-bottom: 0;
}

.catalog__group-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow 250ms var(--ease-out), transform 250ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__cta {
  white-space: normal;
}

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

.product-card__category {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-accent);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-card-name);
  line-height: var(--lh-heading);
  font-weight: 600;
}

.product-card__actives {
  color: var(--color-muted);
  font-size: 14px;
  flex-grow: 1;
}

.product-card__cta {
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 22px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Configurator — Formula Builder
   ========================================================================== */

.configurator {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.builder {
  max-width: 860px;
  margin-top: var(--space-lg);
}

.builder__steps {
  min-height: 380px;
}

@media (max-width: 640px) {
  .builder__steps {
    min-height: 0;
  }
}

.builder__order-toggle {
  display: inline-flex;
  gap: 2px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
  background: #E8E8ED;
  padding: 4px;
}

.builder__order-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-muted);
  transition: background 250ms var(--ease-out), color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

.builder__order-btn.is-active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.builder__price-ticker {
  margin: var(--space-lg) 0;
  padding: var(--space-md) 20px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  box-shadow: var(--card-shadow);
}

.builder__price-ticker-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.builder__price-ticker-row + .builder__price-ticker-row {
  border-top: 1px solid var(--color-border);
}

.builder__price-ticker-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}

.builder__price-ticker-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.builder__skip {
  margin-top: -14px;
  margin-bottom: 32px;
}

.builder__skip button {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

.builder__skip button:hover {
  color: var(--color-text);
}

.builder__progress-meta {
  margin-bottom: 12px;
  color: var(--color-muted);
}

.builder__progress-track {
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.builder__progress-fill {
  height: 100%;
  background: var(--color-accent);
  transition: width 400ms var(--ease-out);
}

.builder__dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.builder__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-muted);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out), background 200ms var(--ease-out);
}

.builder__dot.is-active {
  border-color: var(--color-text);
  color: var(--color-text);
}

.builder__dot.is-done {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.builder__step {
  margin-top: 40px;
}

.builder__step-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--lh-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.builder__product-group {
  margin-bottom: 28px;
}

.builder__product-group-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.builder__product-grid,
.builder__radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-pill {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 400;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.option-pill:hover {
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.03);
}

.option-pill.is-selected {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
}

.option-pill--radio {
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 400;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.option-card {
  position: relative;
  text-align: left;
  border: 2px solid transparent;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.option-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.option-card.is-selected {
  border-color: var(--color-cta);
  box-shadow: var(--card-shadow);
}

.option-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-card-name);
  line-height: var(--lh-heading);
}

.option-card__desc,
.option-card__notes {
  font-size: 13px;
  color: var(--color-muted);
}

.option-card__range {
  font-size: 12px;
  color: var(--color-accent);
  margin-top: 4px;
}

.option-card__toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.option-card__check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}

.option-card.is-selected .option-card__check {
  background: var(--color-cta);
  border-color: var(--color-cta);
}

.option-card.is-selected .option-card__check::after {
  content: '✓';
  color: #fff;
  font-size: 10px;
}

.builder__slider {
  margin-bottom: 32px;
}

.builder__slider--inline {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.builder__slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.builder__slider-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  display: inline-block;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.builder__slider-value.is-rolling {
  animation: rollUp 250ms var(--ease-out);
}

@keyframes rollUp {
  0% { transform: translateY(-8px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

.builder__slider input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
  height: 4px;
}

.builder__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* Summary card */

.builder__summary {
  margin-top: 48px;
}

.summary-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: clamp(28px, 4vw, 44px);
}

.summary-card__eyebrow {
  color: var(--color-accent);
  margin-bottom: 12px;
}

.summary-card__formula {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 28px;
  line-height: 1.35;
}

.summary-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.summary-card__meta .ui-label {
  display: block;
  color: var(--color-muted);
  font-size: 10px;
  margin-bottom: 6px;
}

.summary-card__meta strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.summary-card__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
}

.qty-stepper button {
  font-size: 18px;
  width: 24px;
  height: 24px;
  transition: color 150ms var(--ease-out);
}

.qty-stepper button:hover {
  color: var(--color-accent);
}

.qty-stepper span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  min-width: 24px;
  text-align: center;
}

.summary-card__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

.summary-card__total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 36px);
}

.summary-card__pay {
  width: 100%;
}

/* Cart panel (shown while building, lists finished products) */

.builder__cart {
  margin-bottom: 32px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 20px 24px;
}

.builder__cart-title {
  margin-bottom: 14px;
  color: var(--color-muted);
}

.builder__cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder__cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.builder__cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.builder__cart-item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.builder__cart-item-config {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-muted);
}

.builder__cart-remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-muted);
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.builder__cart-remove:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* Product-ready screen */

.summary-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-card__decl-note {
  margin-top: -12px;
  margin-bottom: var(--space-md);
  font-size: 13px;
  color: var(--color-muted);
}

.summary-card__disclaimer {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

.summary-card__disclaimer p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
}

.summary-card__ack {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.summary-card__ack input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-cta);
}

.summary-card__actions .btn {
  width: 100%;
}

/* Checkout (cart review) */

.checkout-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-item__formula {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  max-width: 440px;
}

.checkout-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-card__back {
  width: 100%;
  margin-bottom: 12px;
}

/* Checkout contact form */

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.checkout-form__field label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

.checkout-form__field input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out);
}

.checkout-form__field input:focus {
  outline: none;
  background: var(--color-bg);
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Checkout: ошибки, флажки, выбор города и пункта выдачи СДЭК */

.checkout-form__field.has-error input:not([type="checkbox"]) {
  border-color: #d70015;
  background: var(--color-bg);
}

.checkout-form__error {
  margin-top: 6px;
  color: #d70015;
  font-size: 13px;
  line-height: 1.35;
}

.checkout-form__error[hidden] {
  display: none;
}

.checkout-form__error--form {
  margin: 0 0 var(--space-sm);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(215, 0, 21, 0.06);
  font-size: 14px;
}

.checkout-form__field .checkout-form__check,
.checkout-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.checkout-form__check input[type="checkbox"],
.checkout-form__field .checkout-form__check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--color-cta);
}

.checkout-form__check a {
  color: var(--color-cta);
  text-decoration: underline;
}

.checkout-form__recipient {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-form__recipient[hidden],
.pvz-block[hidden],
.pvz-selected[hidden] {
  display: none;
}

.checkout-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pvz-city {
  position: relative;
}

.pvz-suggest {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.pvz-suggest[hidden] {
  display: none;
}

.pvz-suggest__item,
.pvz-suggest__msg {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  line-height: 1.35;
}

.pvz-suggest__item {
  cursor: pointer;
}

.pvz-suggest__item:hover,
.pvz-suggest__item.is-active {
  background: var(--color-surface);
}

.pvz-suggest__msg {
  color: var(--color-muted);
}

.pvz-block label[for="cfPvzFilter"] {
  display: block;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

.pvz-block > input[type="search"] {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 16px;
}

.pvz-block > input[type="search"]:focus {
  outline: none;
  background: var(--color-bg);
  border-color: var(--color-cta);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.pvz-count {
  margin: 8px 0;
  color: var(--color-muted);
  font-size: 13px;
}

.pvz-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.pvz-list:empty {
  display: none;
}

.pvz-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}

.pvz-item:last-child {
  border-bottom: 0;
}

.pvz-item:hover {
  background: var(--color-surface);
}

.pvz-item input[type="radio"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--color-cta);
}

.pvz-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pvz-item__address {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.pvz-item__meta {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.35;
}

.pvz-selected {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(52, 199, 89, 0.12);
  color: #1a7d3a;
  font-size: 14px;
  font-weight: 500;
}

.pvz-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-cta);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.pvz-more:hover {
  background: var(--color-surface);
}

.pvz-more[hidden] {
  display: none;
}

.pvz-retry {
  display: block;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  color: var(--color-cta);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.cart-success {
  padding: var(--space-md) 0 var(--space-lg);
}

.cart-success__title {
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cart-success__text {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  font-size: 16px;
  line-height: 1.5;
}

.cart-success__pay {
  display: block;
  width: 100%;
  margin-top: var(--space-md);
  padding: 18px 24px;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
}

.cart-success__close {
  margin-top: var(--space-md);
}

.summary-card__lk-login {
  margin-top: var(--space-sm);
  color: var(--color-muted);
  font-size: 14px;
}

.summary-card__lk-login a {
  color: var(--color-cta);
}

.checkout-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

.checkout-price-row__value {
  font-family: var(--font-display);
  font-weight: 600;
}

@media (max-width: 640px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
  .summary-card__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.letter {
  opacity: 0;
  transition: opacity 60ms linear;
}

.letter.is-visible {
  opacity: 1;
}

/* ==========================================================================
   SEO note (was the Truth/bottle block) — long-form keyword copy kept for
   search relevance, demoted from a prominent two-column card to a quiet
   closing note near the footer. Deliberately understated: smaller heading,
   muted body text, no reveal-on-scroll flourish — this section's job is to
   be read by crawlers and skimmed by people, not to draw the eye.
   ========================================================================== */

.seo-note {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.seo-note .section__inner {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.seo-note h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--color-accent);
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.seo-note__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}

.seo-note__text p {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.seo-note__text a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

/* Shared responsive hook for the handful of one-off "text + fixed-width
   photo" grids built with an inline style="grid-template-columns:1fr NNpx"
   (homepage's "18 рецептур" block, /formuly/, /o-kompanii/). The fixed px
   column never collapsed below its own width, so on any viewport narrower
   than that column + its minimum text width, the row forced the whole page
   wider than the screen (the reported horizontal-scroll/white-strip bug).
   !important is necessary here specifically to win over the inline style. */
@media (max-width: 900px) {
  .media-split {
    grid-template-columns: 1fr !important;
  }
}

.seo-note__text a:hover {
  color: var(--color-cta-hover);
}

/* ==========================================================================
   Block 5 — Trust numbers
   ========================================================================== */

.trust-stats {
  border-top: 1px solid var(--color-border);
}

/* Stats-row — each figure sits in its own flat square, matching the
   info-card language used everywhere else on the site. Same contextual
   contrast rule: gray by default, flips to white inside a gray section. */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.stats-row__item {
  padding: 22px 10px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.page-section--surface .stats-row__item {
  background: var(--color-bg);
}

.stats-row__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 23px);
  letter-spacing: -0.01em;
  color: var(--color-cta);
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.stats-row__label {
  font-size: 11.5px;
  color: var(--color-muted);
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    row-gap: 10px;
  }
}

@media (max-width: 560px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    row-gap: 8px;
  }

  .stats-row__value {
    font-size: 18px;
  }

  .stats-row__label {
    white-space: normal;
  }
}

/* When an info-grid opens a section directly (no heading above it), its
   own margin-top would stack on top of the section's padding and make the
   gap above the cards visibly bigger than the gap below them. */
.section__inner > .info-grid:first-child,
.page-section__inner > .info-grid:first-child {
  margin-top: 0;
}

.trust {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  background: #0a0a0a;
  isolation: isolate;
}

.trust__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.trust__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trust__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.6) 100%),
    rgba(0, 0, 0, 0.28);
}

.trust__wordmark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(90px, 14vw, 260px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  opacity: 0.13;
  transform: translate(4%, 0);
}

.trust .section__inner {
  position: relative;
  z-index: 2;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust__number {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.trust__label {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

/* ==========================================================================
   Block — Launch timeline (roadmap)
   A plain vertical stepper: a connecting line with a dot per step, full
   text always visible. No coding scheme, no collapsed content — reading
   top to bottom top-to-bottom is the whole interface.
   ========================================================================== */

.timeline {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.timeline__rail {
  position: relative;
  margin-top: var(--space-xl);
}

/* the connecting line + dots are drawn as one SVG overlay by timeline.js,
   sized to cover the whole rail and inserted as its first child so it
   paints behind the item cards. */
.timeline__connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* single-column stepper */
.timeline__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Shares the exact box (width + centering) as .timeline__columns below,
   so its dot column lines up with column A's — the connector line stays
   a single straight spine through prep -> column A -> after, with only
   column B forking away from it. Text itself stays narrow and left-
   aligned for readability, without centering the whole block. */
.timeline__list--capped {
  max-width: 960px;
}

.timeline__list--capped .timeline__item {
  max-width: 640px;
}

.timeline__item {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline__item-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.timeline__item--we .timeline__item-tag { background: var(--color-cta); color: #fff; }

.timeline__item--client .timeline__item-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.timeline__item--both .timeline__item-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-cta);
  color: var(--color-cta);
}

.timeline__item-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.timeline__item-desc {
  font-size: 14.5px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.timeline__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 960px;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.timeline__column-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.timeline__plaque {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  border-left: 2px solid var(--color-cta);
  background: var(--color-bg);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
  max-width: 720px;
}

.timeline__plaque strong { color: var(--color-text); font-weight: 600; }

@media (max-width: 720px) {
  .timeline__columns {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ==========================================================================
   Block — Давальческие материалы
   Own composition (two-column split with a divider), not a reuse of the
   Fulfillment icon-card grid or the timeline stepper — same tokens, its
   own shape, per the standing "no visual departures, but no copy-pasted
   layout either" instruction.
   ========================================================================== */

.daval {
  border-top: 1px solid var(--color-border);
}

.daval__split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.daval__divider {
  background: var(--color-border);
}

.daval__col-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
}

.daval__marker {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.daval__marker--filled {
  background: var(--color-cta);
}

.daval__marker--outline {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
}

.daval__col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.daval__col-who {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-muted);
}

.daval__col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.daval__col li {
  font-size: 14.5px;
  line-height: var(--lh-body);
  color: var(--color-muted);
  padding-left: 18px;
  position: relative;
}

.daval__col li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.daval__theses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.daval__thesis-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.daval__thesis-text {
  font-size: 13.5px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.daval__note {
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--color-muted);
  font-style: italic;
}

.daval__plaque {
  margin-top: var(--space-md);
  max-width: 720px;
  padding: var(--space-md);
  border-left: 2px solid var(--color-cta);
  background: var(--color-surface);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.daval__plaque-tag {
  flex-shrink: 0;
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-cta);
}

.daval__plaque-text {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .daval__split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .daval__divider {
    display: none;
  }

  .daval__theses {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .daval__plaque {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* ==========================================================================
   Block — Fulfillment
   Explainer/pitch block, not a process diagram: what fulfillment is, why
   requirements differ per platform, that we own the expertise, and that
   it's optional. Built entirely from the site's existing tokens (same
   card/shadow/radius/icon language as the rest of the page) rather than a
   one-off style, per the standing "no departures from the site design
   system" rule.
   ========================================================================== */

.fulfillment {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.fulfillment__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.fulfillment__action {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
}

.fulfillment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
}

.fulfillment__icon svg {
  width: 22px;
  height: 22px;
}

.fulfillment__action-label {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}

.fulfillment__footnote {
  margin-top: var(--space-sm);
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: var(--lh-body);
}

/* Same treatment as .timeline__plaque — a bordered callout, not a plain
   footnote — since this line now carries an actual call to action
   (talk to a manager) rather than just a caveat. */
.fulfillment__plaque {
  margin-top: var(--space-sm);
  max-width: 720px;
  padding: var(--space-md);
  border-left: 2px solid var(--color-cta);
  background: var(--color-bg);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.fulfillment__row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.fulfillment__row--bottom {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: stretch;
}

.fulfillment__panel {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.fulfillment__panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: var(--space-md);
}

.fulfillment__panel--full {
  margin-top: var(--space-md);
}

.fulfillment__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fulfillment__checklist--row {
  flex-direction: row;
  gap: var(--space-lg);
}

.fulfillment__checklist--row li {
  flex: 1;
}

.fulfillment__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text);
}

.fulfillment__tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.fulfillment__tick svg {
  width: 11px;
  height: 11px;
}

.fulfillment__fork {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-sm);
}

.fulfillment__fork-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.fulfillment__fork-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.fulfillment__fork-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.fulfillment__fork-dot--on {
  background: var(--color-cta);
}

.fulfillment__fork-desc {
  font-size: 13.5px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.fulfillment__fork-or {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--color-muted);
}

.fulfillment__price {
  border: 1px solid var(--color-cta);
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.06);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.fulfillment__price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-cta);
}

.fulfillment__price-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .fulfillment__row,
  .fulfillment__row--bottom {
    grid-template-columns: 1fr;
  }
}

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

  .fulfillment__checklist--row {
    flex-direction: column;
    gap: var(--space-sm);
  }

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

  .fulfillment__fork-or {
    padding: 2px 0;
  }
}

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

/* ==========================================================================
   Block 8 — FAQ
   ========================================================================== */

.faq {
  border-top: 1px solid var(--color-border);
}

.faq__list {
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 2vw, 19px);
}

.faq-item__icon {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 250ms var(--ease-out);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms var(--ease-out);
}

.faq-item__answer {
  padding-bottom: 24px;
  color: var(--color-muted);
  font-size: 15px;
  max-width: 640px;
}

/* ==========================================================================
   Block 9 — Final CTA
   ========================================================================== */

.final-cta {
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-surface);
}


.final-cta__buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .final-cta__buttons {
    flex-direction: column;
  }
}

/* ==========================================================================
   Cart modal
   ========================================================================== */

.cart-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}

.cart-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-modal {
  width: 75vw;
  max-width: 860px;
  height: 80vh;
  max-height: 820px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(12px);
  transition: transform 250ms var(--ease-out);
}

.cart-modal-overlay.is-open .cart-modal {
  transform: scale(1) translateY(0);
}

.cart-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  flex-shrink: 0;
}

.cart-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}

.cart-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.cart-modal__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--space-lg) var(--space-lg);
}

.cart-modal__section {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.cart-modal__section:first-child {
  padding-top: 0;
  border-top: none;
}

.cart-modal__section + .cart-modal__section {
  margin-top: var(--space-lg);
}

.cart-modal__section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--space-md);
}

.cart-modal__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cart-modal__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.cart-modal__item > div:first-child {
  min-width: 0;
  flex: 1 1 180px;
}

.cart-modal__item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-top: 4px;
}

.cart-modal__item-config {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-muted);
  max-width: 420px;
}

.cart-modal__item-price {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

.cart-modal__delivery {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.cart-modal__delivery-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #1a7d3a;
  background: rgba(52, 199, 89, 0.15);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: var(--space-sm);
}

.cart-modal__delivery-note {
  font-size: 13px;
  color: var(--color-muted);
}

.cart-modal__min-note {
  font-size: 13px;
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
  text-align: right;
}

.cart-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.cart-modal__total-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
}

.cart-modal__submit {
  width: 100%;
}

@media (max-width: 768px) {
  .cart-modal {
    width: 100%;
    height: 90vh;
  }

  .cart-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .cart-modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .cart-modal__header {
    padding: var(--space-md) var(--space-md) var(--space-sm);
  }

  .cart-modal__content {
    padding: 0 var(--space-md) var(--space-md);
  }

  .cart-modal__item {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-footer);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--gutter) var(--space-lg);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.footer__col a {
  font-size: 14px;
  color: var(--color-muted);
  transition: color 150ms var(--ease-out);
}

.footer__col a:hover {
  color: var(--color-text);
}

.footer__logo {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 14px;
}

.footer__tagline {
  font-size: 13px;
  line-height: var(--lh-body);
  color: var(--color-muted);
  max-width: 220px;
}

.footer__tg {
  color: var(--color-muted);
  font-size: 14px;
  transition: color 150ms var(--ease-out);
}

.footer__tg:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  color: var(--color-muted);
  font-size: 13px;
}

.footer__meta {
  color: var(--color-muted);
  font-size: 13px;
  margin-left: auto;
}

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

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

  .footer__meta {
    margin-left: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Responsive base
   ========================================================================== */

/* On desktop .nav__mobile-panel just needs to disappear structurally so
   .nav__links behaves exactly like a normal flex child of .nav__inner. */
.nav__mobile-panel {
  display: contents;
}

.nav__mobile-cta {
  display: none;
}

/* Covers phones, portrait tablets, and now also small/medium laptop
   windows: the nav grew from 4 links to 7 (some multi-word — "Давальческие
   материалы", "Пошаговый запуск"), so the row needs meaningfully more
   width than it used to before it collapses cleanly into the burger menu. */
@media (max-width: 1200px) {
  .nav__links {
    display: none;
  }

  .btn--nav {
    display: none;
  }

  .nav__burger {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .nav.menu-open {
    background: var(--color-bg);
  }

  .nav.menu-open .nav__inner {
    opacity: 1;
  }

  .nav.menu-open .nav__burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav.menu-open .nav__burger span:nth-child(2) {
    opacity: 0;
  }

  .nav.menu-open .nav__burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav__burger span {
    transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
  }

  /* Previously the link list and the CTA pill were two INDEPENDENTLY
     fixed-position elements with hand-tuned padding/offsets meant to keep
     them from overlapping. That kept breaking (button covering the last
     link, or a link going missing) because the numbers only worked for one
     specific viewport height. Making .nav__mobile-panel itself the single
     fixed full-screen flex column — with the link list as a flex:1
     scrollable area and the CTA as a normal, non-fixed flow child after it
     — makes overlap structurally impossible: the CTA is wherever the list
     ends, full stop, regardless of viewport height, item count or text size. */
  .nav.menu-open .nav__mobile-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Explicit height rather than relying on top:0/bottom:0 to infer it —
       on a page opened already scrolled, some engines resolve the
       top/bottom auto-height against a stale scroll-relative box instead
       of the viewport, collapsing the panel to a sliver. 100dvh (with a
       100vh fallback for browsers that don't support it) sidesteps that
       by sizing the panel directly off the viewport, independent of
       scroll position. */
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg);
    padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
    z-index: 99;
  }

  .nav.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .nav.menu-open .nav__links a,
  .nav.menu-open .nav__dropdown-toggle {
    font-size: 17px;
    display: block;
  }

  .nav.menu-open .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  /* The floating flyout card only makes sense on a desktop-width row; inside
     the full-screen mobile panel "Категории" becomes an inline accordion
     group instead — same is-open toggle, just laid out as indented list
     items rather than an absolutely-positioned card. */
  .nav__dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 4px 0 0 16px;
  }

  .nav__dropdown-menu a {
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-muted);
  }

  .nav__dropdown-menu a:hover,
  .nav__dropdown-menu a:focus-visible {
    background: none;
    color: var(--color-text);
  }

  /* A normal-sized pill, not stretched edge-to-edge — matches the desktop
     CTA's own proportions instead of being blown up to fill the screen. */
  .nav.menu-open .nav__mobile-cta {
    display: inline-flex;
    align-self: center;
    flex-shrink: 0;
    margin-top: 24px;
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* ==========================================================================
   Inner pages — shared shell (breadcrumbs, page hero, prose, info cards,
   FAQ accordion). Built entirely from existing tokens/components (card
   shadow, section__inner grid, daval/fulfillment plaque style) so every
   new route reads as part of the same site as the homepage.
   ========================================================================== */

.breadcrumbs {
  max-width: var(--container-max);
  margin: 0 auto;
  /* Inner pages have no full-bleed hero to sit the fixed, initially-
     transparent nav on top of, so the breadcrumb strip needs its own
     clearance — 96px matches the nav-clearance constant already used for
     the mobile menu panel elsewhere in this file. */
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumbs a {
  color: var(--color-muted);
  transition: color 150ms var(--ease-out);
}

.breadcrumbs a:hover {
  color: var(--color-text);
}

.breadcrumbs__sep {
  color: var(--color-border);
}

.breadcrumbs__current {
  color: var(--color-text);
}

.page-hero {
  /* The fixed nav is transparent until scrolled, so content starting right
     at the top of the page renders visually behind/under the nav's own
     logo and links instead of just being "close" to them. This needs to
     clear the nav's height, not just add a little breathing room. */
  padding-top: calc(56px + var(--space-lg));
}

.page-hero .section__inner {
  padding-top: var(--space-md);
  padding-bottom: var(--space-lg);
}

/* Every article hero photo/diagram uses this same top gap — aspect-ratio
   and max-width stay inline because they genuinely vary per image, but the
   spacing doesn't, so it belongs here instead of copy-pasted 28 times. */
.page-hero .photo-slot {
  margin-top: var(--space-md);
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: calc(40px + var(--space-lg));
  }
}

/* Blog articles: breadcrumbs already clear the fixed nav, so page-hero's own
   nav-clearance padding is redundant here and was the source of a huge
   crumbs->kicker gap. Legal pages (privacy/oferta/soglasie-pdn) use
   .page-hero without breadcrumbs and still need that clearance — untouched. */
.breadcrumbs + .page-hero {
  padding-top: 0;
}

@media (max-width: 640px) {
  .breadcrumbs + .page-hero {
    padding-top: 0;
  }
}

.breadcrumbs + .page-hero .section__inner {
  padding-top: var(--flow);   /* crumbs -> kicker, 1x — matches the rest of the page's rhythm */
  padding-bottom: var(--flow-before-block); /* meta row -> divider, 1.5x */
}

.page-hero__kicker {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 820px;
}

.page-hero__lead {
  margin-top: var(--space-md);
  max-width: 640px;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.page-hero__lead a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

.page-hero__lead a:hover {
  color: var(--color-cta-hover);
}

.breadcrumbs + .page-hero .page-hero__kicker {
  margin-bottom: var(--flow); /* kicker -> H1, 1x */
}

.breadcrumbs + .page-hero .page-hero__lead {
  margin-top: var(--flow-before-block); /* H1 -> lead, 1.5x */
}

.breadcrumbs + .page-hero .article-meta {
  margin-top: var(--flow); /* lead -> meta row, 1x */
}

.page-hero__cta {
  margin-top: var(--space-lg);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-section {
  border-top: 1px solid var(--color-border);
}

/* Section backgrounds are intentionally NOT alternated site-wide — the
   same component landed on white on one page and gray on another purely
   because of how many sections came before it. Every section now shares
   one background; rhythm comes from the border-top hairline + the glass
   treatment on cards, not from flipping the page color. */
.page-section--surface {
  background: var(--color-surface);
}

.page-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--gutter);
}

.page-section h2 {
  font-size: clamp(24px, 3vw, 34px);
  max-width: 720px;
}

.page-section h1 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 820px;
}

.blog-intro .page-section__inner {
  padding-top: calc(var(--space-xl) + 56px);
}

@media (max-width: 640px) {
  .blog-intro .page-section__inner {
    padding-top: calc(var(--space-lg) + 56px);
  }
}

.page-section__sub {
  margin-top: 12px;
  max-width: 640px;
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.prose {
  max-width: 720px;
}

.prose p {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: var(--space-xl) 0 var(--space-sm);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: var(--space-lg) 0 8px;
}

.prose a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

.prose a:hover {
  color: var(--color-cta-hover);
}

.prose ul {
  margin: var(--space-sm) 0 var(--space-md);
}

.prose li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: var(--lh-body);
  color: var(--color-muted);
  margin-bottom: 8px;
}

.prose li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-lg);
}

.info-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.page-section--surface .info-card {
  background: var(--color-bg);
}


.info-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.info-card__text {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.child-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-lg);
}

.child-links a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 14px;
  transition: background 150ms var(--ease-out);
}

.page-section--surface .child-links a {
  background: var(--color-bg);
}

.child-links a:hover {
  background: rgba(0, 0, 0, 0.08);
}

.plaque {
  margin-top: var(--space-md);
  max-width: 720px;
  padding: var(--space-md);
  border-left: 2px solid var(--color-cta);
  background: var(--color-surface);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.page-section--surface .plaque,
.timeline .plaque {
  background: var(--color-bg);
}


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

details.faq-static summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 2vw, 17px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

details.faq-static summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 20px;
}

details.faq-static[open] summary::after {
  content: '\2212';
}

details.faq-static p {
  padding-bottom: 20px;
  max-width: 640px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: var(--lh-body);
}

/* ==========================================================================
   Contact showcase — /kontakty/ flagship block (no hero on this page,
   this section carries the H1 and doubles as the landing "face" of the site)
   ========================================================================== */

.contact-showcase .page-section__inner {
  padding-top: calc(var(--space-xl) + 56px);
}

.contact-showcase__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cta);
  background: rgba(0, 113, 227, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.contact-showcase__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-showcase__lead {
  font-size: 18px;
  line-height: var(--lh-body);
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.contact-showcase__primary {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px var(--space-lg);
  margin-bottom: var(--space-lg);
}

.contact-showcase__primary-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-showcase__primary-icon svg {
  width: 26px;
  height: 26px;
}

.contact-showcase__primary-body {
  flex: 1 1 220px;
}

.contact-showcase__primary-label {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.contact-showcase__primary-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--color-text);
  transition: color 150ms var(--ease-out);
}

.contact-showcase__primary-value:hover {
  color: var(--color-cta);
}

.contact-showcase__primary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-showcase__tile {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 28px var(--space-md);
}

/* The Yandex widget markup ships with fixed width/height attributes on the
   iframe (built for copy-pasting into arbitrary page widths) — those are
   overridden here so the map fills its own responsive container instead of
   forcing a fixed 560px box that would overflow on narrow viewports. */
.contact-showcase__map {
  position: relative;
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* The constructor widget injects its own iframe at a fixed pixel size (its
   width/height query params) once the script loads — position:absolute +
   !important pins it to fill this container regardless of what size it
   was told to render at, so it can't force the container (or the page)
   wider than the viewport on mobile. */
.contact-showcase__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.contact-showcase__tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-bg);
  color: var(--color-cta);
  margin-bottom: 16px;
}

.contact-showcase__tile-icon svg {
  width: 19px;
  height: 19px;
}

.contact-showcase__tile-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.contact-showcase__tile-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.contact-showcase__tile-value a {
  color: inherit;
  transition: color 150ms var(--ease-out);
}

.contact-showcase__tile-value a:hover {
  color: var(--color-cta);
}

@media (max-width: 900px) {
  .contact-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .contact-showcase .page-section__inner {
    padding-top: calc(var(--space-lg) + 56px);
  }

  .contact-showcase__grid {
    grid-template-columns: 1fr;
  }

  .contact-showcase__primary {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-showcase__primary-actions {
    width: 100%;
  }

  .contact-showcase__primary-actions .btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .info-grid,
  .info-grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Segment cards (audience grid with icon) — /svoy-brend/ Block 1
   ========================================================================== */

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--color-bg);
  color: var(--color-accent);
  margin-bottom: 14px;
}

.page-section--surface .info-card__icon {
  background: var(--color-surface);
}

.page-section--surface .info-card__icon {
  background: rgba(0, 0, 0, 0.04);
}

.info-card__icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.info-grid--audience .info-card {
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.info-grid--audience .info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover, 0 12px 28px rgba(0, 0, 0, 0.1));
}

.info-grid--audience .info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.1);
}

.info-grid--audience .info-card__icon svg {
  width: 20px;
  height: 20px;
}

.info-card__text a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-card__text a:hover {
  color: var(--color-cta-hover);
}

.info-card__checklist {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.info-card__checklist-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.info-card__checklist li {
  font-size: 13px;
}

.info-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
  .info-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .info-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Path comparison block — /svoy-brend/ Block 2 ("Три пути запуска бренда")
   ========================================================================== */

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-lg);
}

.path-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.page-section--surface .path-card {
  background: var(--color-bg);
}

.path-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-cta);
  line-height: 1;
}

.path-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.path-card__text {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
  flex-grow: 1;
}

.path-card__meters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.path-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.path-meter__label {
  flex-shrink: 0;
  width: 68px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.path-meter__track {
  flex-grow: 1;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  overflow: hidden;
}

.page-section--surface .path-meter__track {
  background: rgba(0, 0, 0, 0.06);
}

.path-meter__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
}

.path-conclusion {
  margin-top: var(--space-lg);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-muted);
}

.path-conclusion a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Same 3-column grid as .path-grid below it, so the photo (in column 3)
   lines up exactly with card 03 "Самобытный продукт" — sharing one grid
   definition guarantees matching widths instead of eyeballing a pixel value. */
.path-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.path-intro-grid__text {
  grid-column: 1 / 3;
  margin: 0;
}

.path-intro-grid__media {
  grid-column: 3;
}

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

  .path-intro-grid {
    grid-template-columns: 1fr;
  }

  .path-intro-grid__text {
    grid-column: 1;
  }

  .path-intro-grid__media {
    grid-column: 1;
  }
}

/* ==========================================================================
   Footer — Документы + Реквизиты
   ========================================================================== */

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--color-muted);
  transition: color 150ms var(--ease-out);
}

.footer__legal a:hover {
  color: var(--color-text);
}

.footer__requisites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

.footer__requisites a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms var(--ease-out);
}

.footer__requisites a:hover {
  color: var(--color-text);
}

.footer__pay {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: var(--space-lg);
}

.footer__pay span {
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Mini step infographic — compact numbered chips + arrows, used for short
   process summaries (e.g. "Как это работает" on inner pages)
   ========================================================================== */

.mini-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-lg);
}

.mini-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 8px 18px 8px 8px;
  box-shadow: var(--card-shadow);
}

.mini-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-cta);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.mini-step__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.mini-steps__arrow {
  color: var(--color-border);
  font-size: 16px;
}

@media (max-width: 640px) {
  .mini-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-steps__arrow {
    display: none;
  }
}

/* ==========================================================================
   Origin list — "which starting logic" block, /kak-sozdat-brend-kosmetiki/
   A stacked editorial list (big outline letter + text), deliberately not a
   card grid — keeps this page visually distinct from the path-grid
   comparison block on /svoy-brend/ while reusing the same tokens.
   ========================================================================== */

.origin-cards {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.origin-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-section--surface .origin-card {
  background: var(--color-bg);
}

.origin-card__media {
  aspect-ratio: 4 / 3;
  position: relative;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
}

.origin-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  z-index: 1;
}

.origin-card__body {
  padding: 22px 24px 26px;
}

.origin-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.origin-card__text {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

@media (max-width: 860px) {
  .origin-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Photo placeholder — marks a spot where a real photo belongs. Site-wide
   reusable component; swap the wrapping <img> in when photos are supplied.
   ========================================================================== */

.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-section--surface .photo-slot {
  background: var(--color-bg);
}

.photo-slot::before {
  content: '';
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-color: var(--color-border);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'><rect x='3' y='7' width='18' height='13' rx='2'/><path d='M8 7l1.5-2.5a1 1 0 0 1 .87-.5h3.26a1 1 0 0 1 .87.5L16 7'/><circle cx='12' cy='13.5' r='3.5'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'><rect x='3' y='7' width='18' height='13' rx='2'/><path d='M8 7l1.5-2.5a1 1 0 0 1 .87-.5h3.26a1 1 0 0 1 .87.5L16 7'/><circle cx='12' cy='13.5' r='3.5'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.photo-slot__label {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 240px;
}

/* A real photo dropped into a former placeholder — same sizing/position as
   .photo-slot (or a variant like .screen-hero__media / .formula-hero__media),
   just with the dashed-border placeholder look switched off. */
.photo-slot--filled {
  padding: 0;
  border: none;
  background: none;
  gap: 0;
}

.photo-slot--filled::before {
  display: none;
}

.photo-slot--filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ==========================================================================
   LK gallery — screenshot showcase, uniform grid + lightbox, /lichnyy-kabinet/
   ========================================================================== */

.lk-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.lk-gallery__item {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.lk-gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.lk-gallery__frame {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.lk-gallery__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.lk-gallery__zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.lk-gallery__item:hover .lk-gallery__zoom {
  opacity: 1;
  transform: scale(1);
}

.lk-gallery__caption {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 20px 20px;
}

.lk-gallery__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.lk-gallery__text {
  display: block;
  font-size: 13px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .lk-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .lk-gallery {
    grid-template-columns: 1fr;
  }
}

/* Lightbox — built by js/lk-gallery.js, shared across the gallery */

.lk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.92);
  padding: 24px;
}

.lk-lightbox.is-open {
  display: flex;
}

.lk-lightbox__figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lk-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lk-lightbox__caption {
  margin-top: 16px;
  text-align: center;
  color: #fff;
}

.lk-lightbox__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.lk-lightbox__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.lk-lightbox__counter {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.lk-lightbox__close,
.lk-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 150ms var(--ease-out);
}

.lk-lightbox__close:hover,
.lk-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lk-lightbox__close {
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
}

.lk-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lk-lightbox__nav--prev {
  left: -64px;
}

.lk-lightbox__nav--next {
  right: -64px;
}

@media (max-width: 760px) {
  .lk-lightbox__nav--prev { left: 4px; }
  .lk-lightbox__nav--next { right: 4px; }
  .lk-lightbox__close { top: 4px; right: 4px; background: rgba(0,0,0,0.4); }
}


/* ==========================================================================
   Launch rows — compact linear process strip, /kak-sozdat-brend-kosmetiki/.
   One idea per row: short headline + one line of text + a photo, sides
   alternating. No stage numbers, no internal process jargon in the
   markup — a plain, readable sequence. Photos are toned via a shared
   filter so a mixed-source set reads as one consistent series.
   ========================================================================== */

/* Uniform numbered card grid — replaces an earlier alternating left/right
   row layout the client found hard to scan ("глаза разбегаются"). Every
   card shares the exact same internal structure (number, photo, title,
   text), so the sequence reads left-to-right/top-to-bottom like a normal
   grid instead of zigzagging down the page. */
.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px var(--space-md);
  margin-top: var(--space-lg);
}

.launch-card {
  display: flex;
  flex-direction: column;
}

.launch-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-cta);
  margin-bottom: 12px;
}

.launch-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  margin-bottom: 16px;
}

.launch-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launch-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.launch-card__text {
  font-size: 13.5px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

@media (max-width: 960px) {
  .launch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Step list — compact numbered rows, /kak-zakazat/. One line per step:
   number, small square thumbnail, title + text — no alternating sides,
   no full-width photos. Reads as a tidy reference list, not a long scroll.
   ========================================================================== */

.step-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-lg);
}

.step-list__item {
  display: grid;
  grid-template-columns: 32px 64px 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}

.step-list__item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.step-list__number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-border);
}

.step-list__media {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  flex-shrink: 0;
}

.page-section--surface .step-list__media {
  background: var(--color-bg);
}

.step-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-list__media.photo-slot {
  padding: 8px;
  gap: 4px;
}

.step-list__media.photo-slot::before {
  width: 16px;
  height: 16px;
}

.step-list__media .photo-slot__label {
  display: none;
}

.step-list__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-cta);
}

.page-section--surface .step-list__icon {
  background: var(--color-bg);
}

.step-list__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.step-list__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.step-list__text {
  font-size: 14px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .step-list__item {
    grid-template-columns: 24px 48px 1fr;
    gap: 14px;
  }

  .step-list__media {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   Delivery page infographics — /dostavka/
   ========================================================================== */

.carrier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-lg);
}

.carrier-chip {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-md);
}

.badge-row span {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  background: rgba(0, 113, 227, 0.08);
  color: var(--color-cta);
  font-size: 13px;
  font-weight: 600;
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: var(--space-lg);
}

.split-cards .info-card {
  background: var(--color-surface);
}

.page-section--surface .split-cards .info-card {
  background: var(--color-bg);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: var(--space-lg);
  max-width: 620px;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.flow-row__from,
.flow-row__to {
  font-size: 14px;
  font-weight: 500;
}

.flow-row__to {
  text-align: right;
}

.flow-row__arrow {
  color: var(--color-cta);
  font-size: 18px;
}

.flow-row__who {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
}

.china-note {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  max-width: 620px;
}

.china-note p {
  font-size: 13.5px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .split-cards {
    grid-template-columns: 1fr;
  }

  .flow-row {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 4px;
  }

  .flow-row__to {
    text-align: left;
  }

  .flow-row__arrow {
    display: block;
    font-size: 13px;
  }
}

/* ==========================================================================
   Formula product page template — /formuly/[slug]/
   ========================================================================== */

.formula-hero {
  padding-top: 100px;
}

.formula-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(32px, 6vw, 80px);
}

.formula-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.formula-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.formula-hero__tagline {
  margin-top: var(--space-md);
  max-width: 480px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--color-muted);
}

.formula-hero__cta {
  margin-top: var(--space-lg);
}

.formula-hero__media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--formula-tint, var(--color-surface));
}

.formula-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.1));
}

/* ---------- Composition funnel (block 2) ---------- */

.comp-scheme {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.comp-tier {
  width: 100%;
}

.comp-tier--base {
  max-width: 760px;
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 26px 32px;
}

.comp-tier--base .comp-tier__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.comp-tier--base .comp-tier__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}

.comp-tier--base .comp-tier__desc {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 520px;
}

.comp-tier--actives {
  max-width: 660px;
}

.comp-tier__group-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 10px;
}

.comp-actives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.comp-active-card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  text-align: center;
}

.page-section--surface .comp-active-card {
  background: var(--color-bg);
}

.comp-active-card.is-highlighted {
  box-shadow: 0 0 0 2px var(--color-cta), var(--card-shadow);
}

.comp-active-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.comp-active-card__desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-muted);
}

.comp-tier--aux {
  max-width: 460px;
}

.comp-aux-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.comp-aux-row span {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-accent);
}

/* ---------- Why-no-custom persuasive block (block 3) ---------- */

.why-block {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.why-block > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 7vw, 92px);
  line-height: 1;
  color: var(--color-cta);
}

.why-stat-label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 160px;
}

.why-block__text p {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.why-block__text p:last-child {
  margin-bottom: 0;
}

.why-block__text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Positioning branch diagram (block 5) ---------- */

.branch-scheme {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 28px;
}

.branch-base {
  flex: 0 0 200px;
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
}

.branch-base__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.branch-base__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.branch-arrow {
  flex: 0 0 auto;
  color: var(--color-border);
  font-size: 22px;
}

.branch-variants {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.branch-variant {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.branch-variant__active {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-cta);
}

.branch-variant__result {
  font-size: 14px;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .formula-hero__inner {
    grid-template-columns: 1fr;
  }

  .formula-hero__media {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .comp-actives-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-block {
    grid-template-columns: 1fr;
  }

  .why-stat-label {
    max-width: none;
  }

  .branch-scheme {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .branch-base {
    flex: none;
  }

  .branch-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .branch-variant {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ==========================================================================
   Bar comparison — spec-style infographic (e.g. active-ingredient %)
   ========================================================================== */

.bar-compare {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: var(--space-lg);
  max-width: 560px;
}

.bar-compare__row__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 8px;
}

.bar-compare__row__name {
  font-weight: 600;
  color: var(--color-text);
}

.bar-compare__row__value {
  color: var(--color-muted);
  font-size: 13px;
}

.bar-compare__track {
  height: 10px;
  border-radius: 6px;
  background: var(--color-surface);
  overflow: hidden;
}

.bar-compare__fill {
  height: 100%;
  border-radius: 6px;
  background: var(--color-cta);
}

.bar-compare__fill--muted {
  background: var(--color-border);
}

/* ==========================================================================
   Step flow — horizontal function cycle (e.g. care routine steps)
   ========================================================================== */

/* Care-pipeline — full-width functional sequence (Очищение → ... → Защита).
   A continuous rail runs through the center of every icon so the row reads
   as one connected process rather than five separate tiles; the grid
   stretches to the full container width instead of stopping halfway. The
   last stage is filled solid as the "destination" of the sequence. */
.care-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: var(--space-lg);
}

.care-pipeline__rail {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 32px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.care-pipeline__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 8px;
}

.care-pipeline__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.care-pipeline__step:last-child .care-pipeline__icon {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
}

.care-pipeline__icon svg {
  width: 26px;
  height: 26px;
}

.care-pipeline__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.care-pipeline__example {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.3;
}

@media (max-width: 700px) {
  .care-pipeline {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 32px;
  }

  .care-pipeline__rail {
    left: 15px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .care-pipeline__step {
    flex-direction: row;
    text-align: left;
    padding: 0;
    margin-left: -32px;
  }

  .care-pipeline__icon {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }

  .care-pipeline__icon svg {
    width: 16px;
    height: 16px;
  }

  .care-pipeline__step > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }
}

/* ==========================================================================
   Cost equation — reads like an actual sum being built up: item + item +
   item = result, instead of a paragraph of prose or another info-card grid.
   ========================================================================== */

.cost-equation {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: var(--space-lg);
}

.cost-equation__item {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

.page-section--surface .cost-equation__item {
  background: var(--color-bg);
}

.cost-equation__item--result,
.page-section--surface .cost-equation__item--result {
  background: var(--color-cta);
  color: #fff;
}

.cost-equation__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.cost-equation__label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-muted);
}

.cost-equation__item--result .cost-equation__label {
  color: rgba(255, 255, 255, 0.8);
}

.cost-equation__op {
  flex: 0 0 auto;
  align-self: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-border);
}

.cost-equation__op--eq {
  color: var(--color-cta);
}

@media (max-width: 700px) {
  .cost-equation {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cost-equation__op {
    align-self: center;
  }
}

/* ==========================================================================
   Journey steps — a real sequence told through oversized ghost numerals
   instead of icon-topped cards; no borders, no boxes, just a top rule that
   lights up blue at the destination step.
   ========================================================================== */

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: var(--space-xl);
}

.journey-step {
  border-top: 2px solid var(--color-border);
  padding-top: 20px;
}

.journey-step:last-child {
  border-top-color: var(--color-cta);
}

.journey-step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--color-border);
  margin-bottom: 16px;
}

.journey-step:last-child .journey-step__num {
  color: var(--color-cta);
}

.journey-step__title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.journey-step__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted);
}

.journey-steps--5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .journey-steps--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .journey-steps,
  .journey-steps--5 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   Comparison table — "Менеджер vs Личный кабинет" style pages
   ========================================================================== */

.compare-table-wrap {
  margin-top: var(--space-lg);
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: break-word;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 22%;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  background: var(--color-surface);
}

.compare-table tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
}

.compare-table tbody td {
  color: var(--color-muted);
  line-height: var(--lh-body);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .compare-table__highlight {
  background: rgba(0, 113, 227, 0.05);
  color: var(--color-text);
  font-weight: 500;
}

.compare-table thead .compare-table__highlight {
  color: var(--color-cta);
  background: rgba(0, 113, 227, 0.08);
}

/* ==========================================================================
   Screen hero — true full-viewport photo hero with text overlaid, same
   visual language as the homepage .hero (dark scrim, white text bottom-
   left) but static (no video/JS). Used on every page except the blog,
   legal documents, product-category pages and individual formula pages.
   ========================================================================== */

.screen-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 140px var(--gutter) 40px;
  background: #0a0a0a;
  isolation: isolate;
}

.screen-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
}

.screen-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.62) 100%),
    rgba(0, 0, 0, 0.22);
}

.screen-hero .breadcrumbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: none;
  color: rgba(255, 255, 255, 0.6);
}

.screen-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
}

.screen-hero .breadcrumbs a:hover {
  color: #fff;
}

.screen-hero .breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.35);
}

.screen-hero .breadcrumbs__current {
  color: #fff;
}

.screen-hero__inner {
  position: relative;
  z-index: 2;
  max-width: min(58vw, 660px);
  width: 100%;
  animation: screenHeroUp 800ms var(--ease-out) both;
}

@keyframes screenHeroUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-hero .page-hero__kicker {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 20px;
}

.screen-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  max-width: 720px;
}

.screen-hero .page-hero__lead {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  max-width: 640px;
}

.screen-hero .page-hero__lead a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.screen-hero .page-hero__lead a:hover {
  text-decoration-color: #fff;
}

.screen-hero .btn--secondary,
.hero .btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.screen-hero .btn--secondary:hover,
.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.screen-hero .photo-slot__label {
  color: rgba(255, 255, 255, 0.4);
}

.screen-hero .photo-slot::before {
  background-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .screen-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100svh;
  }

  .screen-hero__inner {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-hero__inner {
    animation: none;
  }
}

/* ==========================================================================
   Lead modal — "Оставить заявку" (name + phone), replaces bare Telegram
   CTAs site-wide. Built and injected by js/lead-form.js; markup lives only
   in the DOM at runtime, not duplicated across every page's HTML.
   ========================================================================== */

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}

.lead-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  max-height: calc(100vh - 2 * var(--space-md));
  max-height: calc(100dvh - 2 * var(--space-md));
  overflow-y: auto;
  transform: scale(0.96) translateY(12px);
  transition: transform 250ms var(--ease-out);
}

.lead-modal-overlay.is-open .lead-modal {
  transform: scale(1) translateY(0);
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}

.lead-modal__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.lead-modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.lead-modal__sub {
  font-size: 14px;
  color: var(--color-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-lg);
}

.lead-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}

.lead-modal__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.lead-modal__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 150ms var(--ease-out);
}

.lead-modal__input:focus {
  outline: none;
  border-color: var(--color-cta);
}

.lead-modal__error {
  font-size: 13px;
  color: #d92d20;
  margin: -4px 0 var(--space-md);
}

.lead-modal__optional {
  color: var(--color-muted);
  font-weight: 400;
}

.lead-modal__hint {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.35;
}

.lead-modal__field-error {
  margin-top: 6px;
  color: #d70015;
  font-size: 13px;
  line-height: 1.35;
}

.lead-modal__field-error[hidden] {
  display: none;
}

.lead-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.lead-modal__check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--color-cta);
}

.lead-modal__check a {
  color: var(--color-cta);
  text-decoration: underline;
}

.lead-modal__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-modal__submit {
  width: 100%;
  margin-top: 4px;
}

.lead-modal__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.lead-link-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

.lead-link-trigger:hover {
  color: var(--color-cta-hover);
}

/* ==========================================================================
   Blog articles — long-form reading layout shared by every /blog/<slug>/
   page. Breadcrumbs, page-hero and .plaque already exist site-wide; this
   adds the prose column, table of contents, source list and cluster nav
   that only long-form articles need.
   ========================================================================== */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: var(--space-sm);
  font-size: 13px;
  color: var(--color-muted);
}

.article-meta__dot {
  color: var(--color-border);
}

.article-toc {
  max-width: 720px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-md) var(--space-md) 28px;
  margin: 0;
}

/* Divider (page-section's own border-top) -> first block (the TOC), 1.5x flow
   — same as meta row -> divider above, so the line sits with equal space on
   both sides instead of looking off-center. Scoped to the article shell so
   the site-wide page-section top padding used everywhere else is untouched. */
.breadcrumbs + .page-hero + .page-section > .page-section__inner {
  padding-top: var(--flow-before-block);
}

/* A few articles open with a regulatory-disclaimer .plaque before the TOC
   instead of going straight into it. .plaque's own margin-top (var(--space-md),
   used elsewhere mid-page) would double up with the padding-top above —
   scoped to plaque-as-first-child so every other .plaque usage on the site
   (mid-page, inside info-grids, etc.) is untouched. */
.page-section__inner > .plaque:first-child {
  margin-top: 0;
}

.article-toc__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin: 0 0 12px -8px;
}

.article-toc ol {
  list-style: decimal;
  margin: 0;
  padding-left: 18px;
}

.article-toc li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.article-toc a {
  color: var(--color-text);
}

.article-toc a:hover {
  color: var(--color-cta);
}

.article-body {
  max-width: 720px;
}

/* Single vertical-rhythm rule for the whole article: every direct child
   gets margin-top:flow and margin-bottom:0, so the gap before any block is
   entirely decided by that block's own rule — never by adding a previous
   element's bottom margin to a next element's top margin. Exceptions below
   are named multiples of --flow, not one-off pixel values. */
.article-body > * {
  margin-bottom: 0;
}

.article-body > * + * {
  margin-top: var(--flow);
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
}

/* !important here is deliberate: an H2 always opens a new section with the
   same gap above it, regardless of what precedes it — including a table,
   whose own "text resumes immediately after" reset (below) would otherwise
   win on specificity and flatten the heading gap to 0. */
.article-body > h2 {
  margin-top: var(--flow-before-h2) !important;
}

.article-body > h2:first-child {
  margin-top: 0 !important;
}

.article-body h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin: 0;
}

.article-body > h3 {
  margin-top: var(--flow-before-h3) !important;
}

.article-body > h3:first-child {
  margin-top: 0 !important;
}

.article-body > h3 + * {
  margin-top: var(--flow-after-h3);
}

/* Table, callout, figure and a lead FAQ block get more room before them
   than a plain paragraph — but not the old mismatched values (plaque had
   1.5×flow, tables had 2.5×flow for the same visual role). Both now share
   one multiple, scoped to the article body only so pages that use these
   components outside an article keep their existing spacing. */
.article-body > .compare-table-wrap,
.article-body > .plaque,
.article-body > figure,
.article-body > details.faq-static:first-of-type {
  margin-top: var(--flow-before-block);
}

.article-body > .compare-table-wrap:first-child,
.article-body > .plaque:first-child,
.article-body > figure:first-child {
  margin-top: 0;
}

/* Text right after a table resumes immediately — the table's own border
   already reads as the separator. Deliberate, kept from the existing
   design rather than forced to the default flow. */
.article-body > .compare-table-wrap + * {
  margin-top: 0;
}

/* FAQ accordion items touch — no gap between consecutive questions. */
.article-body > details.faq-static + details.faq-static {
  margin-top: 0;
}

.article-body p {
  font-size: var(--text-body);
  color: var(--color-text);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 8px;
  line-height: var(--lh-body);
}

.article-body a {
  color: var(--color-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms var(--ease-out);
}

.article-body a:hover {
  color: var(--color-cta-hover);
}

.article-body strong { font-weight: 600; }

.article-body figure {
  margin: 0;
}

.article-body figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

.article-sources {
  max-width: 720px;
  margin-top: var(--space-sm);
  padding-left: 20px;
  border-left: 2px solid var(--color-border);
}

.article-sources li {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-sources a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-sources a:hover { color: var(--color-cta); }

.article-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .article-cluster { grid-template-columns: 1fr; }
}

.article-cluster a {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition: transform 150ms var(--ease-out);
}

.article-cluster a:hover { transform: translateY(-2px); }

.article-cluster__tag {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.article-cluster__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.info-card--placeholder {
  opacity: 0.6;
}

/* ==========================================================================
   Article visual blocks — reusable component library (2.6 pilot on статья 01)

   Every visual is built from the article's own data — no stock photos, no
   images from other pages. Icons and diagrams are inline SVG using the same
   color/font/radius tokens as the rest of the site. Every block is a direct
   child of .article-body and takes the same "before a table" spacing
   (--flow-before-block) as .compare-table-wrap/.plaque/figure — a visual is
   not a special case in the vertical rhythm, it is a table by another name.
   ========================================================================== */

.article-body > .vblock {
  margin-top: var(--flow-before-block) !important;
}

.article-body > .vblock:first-child {
  margin-top: 0 !important;
}

/* Exception: when the TOC (also a grey box) sits directly above the first
   vblock, 0 makes two same-colored blocks touch and read as one merged
   block. Give it back the normal before-block spacing in that one case. */
.article-toc + .article-body > .vblock:first-child {
  margin-top: var(--flow-before-block) !important;
}

/* --- 1. Key fact — one big statement for the first screen ---------------- */

.vblock-fact {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.article-body .vblock-fact__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 3.6vw, 30px);
  line-height: 1.2;
  color: var(--color-text);
}

.vblock-fact__value strong {
  color: var(--color-cta);
}

.article-body .vblock-fact__caption {
  margin-top: var(--space-xs);
  font-size: 14px;
  color: var(--color-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- 2. Steps / process — equal-size numbered nodes. A CSS grid with
   auto-fit/minmax, not flex with equal distribution: every node keeps a
   sane minimum width (enough for a 2-4 word title on one or two lines),
   and if the row can't fit them all it wraps to a new row instead of
   squeezing every node into a single-word-per-line sliver. On mobile it's
   a column with vertical connector arrows, not bare unconnected cards. */

.vblock-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.vblock-steps__arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  padding: 2px 0;
}

.vblock-steps__arrow svg {
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
}

/* Above 760px the row has room for a real grid, so the sequence reads
   left-to-right/top-to-bottom via the numbered badges instead of arrows —
   connector arrows only make sense for a strictly linear single column. */
@media (min-width: 760px) {
  .vblock-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-sm);
  }

  .vblock-steps__arrow {
    display: none;
  }
}

.vblock-steps__step {
  min-width: 0; /* let content wrap instead of overflowing the grid/flex track */
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.vblock-steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-cta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}

.article-body .vblock-steps__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.article-body .vblock-steps__desc {
  font-size: 13px;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

/* --- 3. Compare — two or three columns, same rows ------------------------ */

.vblock-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 640px) {
  .vblock-compare { grid-template-columns: 1fr; }
}

.vblock-compare__col {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.article-body .vblock-compare__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.vblock-compare__row {
  padding: var(--space-xs) 0;
}

.vblock-compare__row + .vblock-compare__row {
  border-top: 1px solid var(--color-border);
}

.article-body .vblock-compare__row-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.article-body .vblock-compare__row-value {
  font-size: 14px;
  color: var(--color-text);
}

/* --- 4. Split — share-of-whole bars --------------------------------------- */

.vblock-split {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.vblock-split__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.vblock-split__label {
  font-size: 13px;
  width: 150px;
  flex-shrink: 0;
}

.vblock-split__bar-wrap {
  flex: 1;
  height: 10px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.vblock-split__bar {
  height: 100%;
  background: var(--color-cta);
  border-radius: var(--radius-pill);
}

.vblock-split__value {
  font-size: 13px;
  color: var(--color-muted);
  width: 64px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* --- 5. Timeline — dates on an axis --------------------------------------- */

.vblock-timeline {
  margin-top: var(--space-lg); /* default spacing when used outside .article-body
    (e.g. a commercial page's own page-section rhythm) — overridden with
    !important by .article-body > .vblock inside articles */
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
}

.vblock-timeline__item {
  position: relative;
  padding-bottom: var(--space-md);
}

.vblock-timeline__item:last-child { padding-bottom: 0; }

.vblock-timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 5px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cta);
}

.article-body .vblock-timeline__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

.article-body .vblock-timeline__desc {
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-muted);
}

/* --- 6. Checklist — marked items ------------------------------------------ */

.vblock-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.vblock-checklist li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 14px;
  line-height: var(--lh-body);
}

.vblock-checklist li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--color-cta);
}

/* --- 7. Practice block — "На производстве SELEQT" ------------------------- */

.vblock-practice {
  margin-top: var(--space-lg); /* default spacing when used outside .article-body
    (e.g. a commercial page's own page-section rhythm) — overridden with
    !important by .article-body > .vblock inside articles */
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: var(--space-md);
}

.vblock-practice__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.vblock-practice p {
  margin: 0;
}

.vblock-practice > * + * {
  margin-top: var(--flow);
}

.vblock-practice .vblock-steps__step {
  background: var(--color-bg);
}

/* --- 9. Term — short inline definition ------------------------------------ */

.vblock-term {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  line-height: var(--lh-body);
}

.vblock-term__label {
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 6px;
}

/* --- 10. Bridge — closing link to a SELEQT page --------------------------- */

.vblock-bridge {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
}

.vblock-bridge__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.vblock-bridge p { margin: 0; }

.vblock-bridge a {
  font-weight: 600;
}
