/* Let's HYPE! — site stylesheet. Ported 1:1 from the Claude Design prototype
   (home.dc.html + the Let's HYPE! design-system tokens). Two type families:
   Golos Text for display/numerals, Montserrat for body, Caveat for hand marks.
   Google Fonts is loaded as a <link> in includes/page.php's <head>, not as an
   @import here — @import forces the browser to download and parse this whole
   file before it even discovers the fonts request, turning a parallel fetch
   into a serial one. */

:root {
  /* Base palette */
  --black-page: #060607;
  --black-surface: #101012;
  --black-elevated: #161619;
  --black-line: #1E1E22;
  --pure-black: #000000;
  --white: #FFFFFF;
  --gray-mid: #8E8E93;
  --gray-deep: #545458;
  --gray-dim: #48484A;

  --lime-500: #CCFF00;
  --lime-400: #D6FF33;
  --lime-glow: rgba(204,255,0,0.28);
  --lime-line: rgba(204,255,0,0.40);

  --volt-500: #8CE23D;
  --volt-400: #9CEE52;
  --volt-600: #7ACB2E;
  --volt-glow: rgba(140,226,61,0.32);

  --line-subtle: rgba(255,255,255,0.10);
  --line-hover: rgba(255,255,255,0.20);
  --line-card-glass: rgba(255,255,255,0.08);

  /* Semantic aliases */
  --bg-page: var(--black-page);
  --surface-card: var(--black-surface);
  --surface-inset: var(--pure-black);
  --text-primary: var(--white);
  --text-secondary: var(--gray-mid);
  --text-tertiary: var(--gray-dim);
  --text-on-accent: var(--pure-black);
  --accent: var(--lime-500);
  --accent-hover: var(--lime-400);
  --action: var(--volt-500);
  --action-hover: var(--volt-400);
  --border-subtle: var(--line-subtle);
  --border-card: var(--black-line);
  --border-hover: var(--line-hover);
  --border-accent: var(--lime-line);

  /* Type scale */
  --fs-display: 68px; --lh-display: 0.92; --ls-display: -2px;
  --fs-h2: 44px; --lh-h2: 1.05; --ls-h2: -1.2px;
  --fs-h2-reel: 42px;
  --fs-counter: 82px; --lh-counter: 0.9; --ls-counter: -3px;
  --fs-stat: 58px; --lh-stat: 1; --ls-stat: -1.5px;
  --fs-h3: 22px;
  --fs-card-title: 16px;
  --fs-body: 14px;
  --fs-body-sm: 13.5px;
  --fs-body-xs: 13px;
  --fs-meta: 12px;
  --fs-desc: 11.5px;
  --fs-label: 11px;
  --fs-micro: 11px;
  --fs-nano: 9px;
  --fw-bold: 700; --fw-extra: 800; --fw-black: 900; --fw-semi: 600;
  --ls-label: 1.2px; --ls-micro: 0.6px;
  --lh-tight: 1.2; --lh-snug: 1.3; --lh-body: 1.4;

  /* Radii */
  --radius-img: 8px;
  --radius-card: 12px;
  --radius-media: 16px;
  --radius-banner: 20px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Effects / motion */
  --shadow-glow-lime: 0 0 24px var(--lime-glow);
  --shadow-glow-volt: 0 0 24px var(--volt-glow);
  --transition-smooth: all 0.35s cubic-bezier(0.16,1,0.3,1);
  --lift-btn: -2px; --lift-card: -6px; --lift-card-sm: -4px;
  --scale-img-hover: 1.08;

  --font-display: 'Golos Text', sans-serif;
  --font-base: 'Montserrat', sans-serif;
  --font-hand: 'Caveat', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; font-size: 16px; background: var(--bg-page); }
html.lh-modal-lock, html.lh-modal-lock body { overflow: hidden; height: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: var(--lh-body);
}
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
.accent { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.lh-container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 28px; box-sizing: border-box; }
.lh-page-content { padding-top: 56px; min-height: 100vh; display: flex; flex-direction: column; }
/* Flex items default to min-width:auto, so a child with wide intrinsic
   content (an image, a horizontal-scroll track) can force itself — and the
   whole page — wider than the viewport. min-width:0 lets them shrink to
   the container instead, same fix `minmax(0,1fr)` is for grid tracks. */
.lh-page-content > * { min-width: 0; }
.lh-page-content > .lh-footer { margin-top: auto; }

/* ── Animations ─────────────────────────────────────────────────────── */
@keyframes lhPulseRec { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes lhPU { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
@keyframes lhPD { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }
@keyframes lhFloatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-25px) scale(1.08); } }
@keyframes lhFloatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-18px,16px) scale(0.94); } }
@keyframes lhPreloadBar { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes lhPreloadPulse { 0%,100% { opacity: .4; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ── Header ─────────────────────────────────────────────────────────── */
.lh-header {
  padding-block: 16px; border-bottom: 1px solid var(--border-subtle);
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  background: rgba(6,7,7,0.5); backdrop-filter: blur(12px);
}
.lh-header-row { display: flex; align-items: center; justify-content: space-between; gap: 2px; max-width: 1360px; margin-inline: auto; }
.lh-logo { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 20px; letter-spacing: -0.5px; flex-shrink: 0; white-space: nowrap; }
.lh-logo .lime { color: var(--accent); }
.lh-nav { display: flex; gap: 20px; font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; }
.lh-nav a:hover { color: var(--accent); }
.lh-header-actions { display: flex; align-items: center; gap: 62px; flex-shrink: 0; }
.lh-lang-wrap { position: relative; }
.lh-lang-btn {
  display: flex; align-items: center; gap: 6px; background: transparent;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 8px; white-space: nowrap;
  cursor: pointer; letter-spacing: 0.5px;
}
.lh-lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lh-lang-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 64px;
  background: var(--black-surface); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 4px; box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  z-index: 20; display: none; flex-direction: column; gap: 2px;
}
.lh-lang-menu.open { display: flex; }
.lh-lang-menu button, .lh-lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: transparent; border: none; font-size: 12px; font-weight: 700;
  padding: 6px 8px; border-radius: 5px; cursor: pointer; text-align: left; color: #fff;
}
.lh-lang-menu button:hover, .lh-lang-menu a:hover { background: rgba(204,255,0,0.08); color: var(--accent); }
.lh-lang-menu button.active, .lh-lang-menu a.active { color: var(--accent); }
.lh-burger {
  display: none; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: #fff; cursor: pointer;
}
.lh-mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg-page); padding: 24px;
  display: none; flex-direction: column;
}
.lh-mobile-menu.open { display: flex; }
.lh-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.lh-mobile-menu-close { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 18px; cursor: pointer; }
.lh-mobile-nav { display: flex; flex-direction: column; gap: 26px; font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.lh-mobile-menu-footer { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.lh-mobile-lang-row { display: flex; gap: 8px; }
.lh-mobile-lang-row button, .lh-mobile-lang-row a { flex: 1; padding: 10px; border-radius: 8px; background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #fff; font-weight: 700; cursor: pointer; }
.lh-mobile-lang-row button.active, .lh-mobile-lang-row a.active { color: var(--accent); }
.lh-lang-menu a, .lh-mobile-lang-row a { text-decoration: none; }
.lh-mobile-lang-row a { text-align: center; }

/* ── Design-system primitives ───────────────────────────────────────── */
.lh-arrow-circle {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-subtle);
  color: currentColor; display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition-smooth); flex-shrink: 0;
}
a:hover > .lh-arrow-circle, .lh-hover-parent:hover .lh-arrow-circle {
  border-color: var(--accent); color: var(--accent); transform: translateX(4px);
}
.lh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-pill); font-family: var(--font-base); font-weight: var(--fw-bold);
  cursor: pointer; border: none; transition: var(--transition-smooth); text-decoration: none;
  white-space: nowrap; padding: 13px 26px; font-size: var(--fs-body);
}
.lh-btn-primary { background: var(--action); color: var(--text-on-accent); }
.lh-btn-primary:hover { background: var(--action-hover); box-shadow: var(--shadow-glow-volt); transform: translateY(-2px); }
.lh-btn-outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 10px 18px 10px 24px; }
.lh-btn-outline:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.lh-btn-lg { padding: 18px 38px; font-size: 15px; }
.lh-link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-body); font-weight: var(--fw-semi); color: var(--text-primary); }
.lh-link-arrow:hover { color: var(--text-primary); }
.lh-section-label { display: flex; align-items: center; gap: 8px; }
.lh-section-label .label { font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-primary); }
.lh-section-label .sub { font-size: var(--fs-label); font-weight: var(--fw-semi); color: var(--text-secondary); letter-spacing: 0.5px; }
.lh-hand { font-family: var(--font-hand); color: var(--accent); line-height: 0.95; display: inline-block; user-select: none; pointer-events: none; }
.lh-counter { display: flex; align-items: center; gap: 16px; }
.lh-counter-num-wrap { position: relative; font-family: var(--font-display); display: flex; align-items: baseline; }
.lh-counter-prefix { position: absolute; top: -12px; left: 0; font-size: var(--fs-label); font-weight: var(--fw-bold); color: var(--text-secondary); }
.lh-counter-val { font-size: var(--fs-counter); font-weight: var(--fw-black); line-height: var(--lh-counter); letter-spacing: var(--ls-counter); }
.lh-counter-total { font-size: var(--fs-counter); font-weight: var(--fw-black); line-height: var(--lh-counter); letter-spacing: var(--ls-counter); color: transparent; -webkit-text-stroke: 1px var(--text-tertiary); margin-left: 2px; }
.lh-counter-caption { font-size: var(--fs-micro); font-weight: var(--fw-extra); line-height: 1.25; letter-spacing: 0.5px; }

/* ── Service card ───────────────────────────────────────────────────── */
.lh-service-card {
  background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-card);
  padding: 20px 16px; display: flex; flex-direction: column; transition: var(--transition-smooth);
}
.lh-service-card:hover { border-color: var(--border-accent); transform: translateY(var(--lift-card)); }
.lh-service-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.lh-service-card .num { font-size: 26px; font-weight: var(--fw-black); font-family: var(--font-display); color: var(--accent); }
.lh-service-card h3 { font-size: var(--fs-card-title); font-weight: var(--fw-extra); line-height: var(--lh-tight); margin: 0 0 8px; }
.lh-service-card p { font-size: var(--fs-desc); color: var(--text-secondary); line-height: var(--lh-body); margin: 0 0 20px; min-height: 32px; }
.lh-service-card .media { margin-top: auto; aspect-ratio: 4/3; border-radius: var(--radius-img); overflow: hidden; background: var(--surface-inset); }
.lh-service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.lh-service-card:hover .media img { transform: scale(1.06); }

/* ── Case card ──────────────────────────────────────────────────────── */
.lh-case-card { display: block; cursor: pointer; }
.lh-case-card .media { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-card); overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border-card); }
.lh-case-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.lh-case-card:hover .media img { transform: scale(var(--scale-img-hover)); }
.lh-case-card .crosshair { position: absolute; top: 10px; left: 10px; color: rgba(255,255,255,0.45); }
.lh-case-card .meta { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--text-secondary); margin-bottom: 6px; letter-spacing: var(--ls-micro); }
.lh-case-card .row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lh-case-card h3 { font-size: var(--fs-body-sm); font-weight: var(--fw-extra); line-height: var(--lh-snug); margin: 0; }

/* ── Stat item ──────────────────────────────────────────────────────── */
.lh-stat { border-right: 1px solid var(--border-subtle); padding-left: 24px; }
.lh-stat.no-divider { border-right: none; }
.lh-stat .value { font-family: var(--font-display); font-size: var(--fs-stat); font-weight: var(--fw-black); line-height: var(--lh-stat); letter-spacing: var(--ls-stat); margin-bottom: 10px; }
.lh-stat .value .accent { color: var(--accent); }
.lh-stat p { font-size: var(--fs-meta); color: var(--text-secondary); line-height: var(--lh-body); margin: 0; }

/* ── Ticker bar ─────────────────────────────────────────────────────── */
.lh-ticker { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding-block: 9px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--text-secondary); flex-wrap: wrap; gap: 12px; }
.lh-ticker .social { display: flex; gap: 20px; align-items: center; }
.lh-ticker .social span, .lh-ticker .social a { display: flex; align-items: center; gap: 6px; }
.lh-ticker .social a { color: inherit; transition: color 0.2s ease; }
.lh-ticker .social a:hover, .lh-ticker .social a:focus-visible { color: var(--accent); }
.lh-ticker .markets { display: flex; gap: 28px; font-weight: 800; letter-spacing: 1.2px; color: var(--gray-deep); }
.lh-ticker .words { display: flex; gap: 22px; color: #fff; }

/* ── Manifesto / section2 ───────────────────────────────────────────── */
.lh-manifesto { padding-block: 42px; display: grid; grid-template-columns: 1.35fr 1.05fr 0.8fr; gap: 40px; align-items: center; }
.lh-manifesto h2 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, var(--fs-h2)); font-weight: var(--fw-black); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); margin: 0; }
.lh-manifesto p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 18px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.lh-hero { position: relative; display: grid; grid-template-columns: 0.65fr 1.65fr; align-items: start; gap: 40px; padding-top: 40px; padding-bottom: 48px; overflow: visible; }
.lh-hero-blob-a, .lh-hero-blob-b { position: absolute; z-index: 0; pointer-events: none; }
.lh-hero-blob-a { bottom: -140px; left: -160px; width: 520px; height: 520px; }
.lh-hero-blob-b { top: -30px; left: 360px; width: 220px; height: 220px; }
.lh-hero-blob-a > div { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(204,255,0,0.35) 0%, rgba(204,255,0,0.12) 45%, rgba(204,255,0,0) 75%); filter: blur(20px); animation: lhFloatA 14s ease-in-out infinite; }
.lh-hero-blob-b > div { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(204,255,0,0.3) 0%, rgba(204,255,0,0.1) 45%, rgba(204,255,0,0) 75%); filter: blur(14px); animation: lhFloatB 9s ease-in-out infinite; }
.lh-hero-copy { position: relative; z-index: 1; margin-top: 100px; }
.lh-hero-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 18px; }
.lh-hero-title { font-family: var(--font-display); font-size: var(--fs-display); font-weight: var(--fw-black); line-height: var(--lh-display); letter-spacing: var(--ls-display); margin: 0 0 24px; }
.lh-hero-line { display: block; white-space: nowrap; }
.lh-hero-sub { font-size: 14px; color: var(--text-primary); margin: 0 0 34px; }
.lh-hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lh-hero-track-wrap { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; min-width: 0; width: 100%; height: 560px; }
.lh-hero-track-controls { position: absolute; top: -25px; right: 10px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lh-carousel-next { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); color: #fff; cursor: pointer; }
.lh-hero-track { position: relative; flex-shrink: 0; width: 744px; height: 560px; transform-origin: top right; opacity: 0; transition: transform 0.2s ease, opacity 0.25s ease; }
.lh-hero-track.is-ready { opacity: 1; }
.lh-hero-card {
  position: absolute; bottom: 0; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: left 0.55s cubic-bezier(.4,0,.2,1), width 0.55s cubic-bezier(.4,0,.2,1), height 0.55s cubic-bezier(.4,0,.2,1), opacity 0.4s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.lh-hero-card.entering { transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.lh-hero-card:hover { transform: translateY(-6px) scale(1.04) !important; border-color: var(--accent); box-shadow: 0 24px 46px rgba(0,0,0,0.45); }
.lh-hero-card img { width: 100%; height: 100%; object-fit: cover; filter: contrast(106%); }
/* Pinned to its own compositing layer so hovering a card (whose transform
   transition otherwise promotes/demotes this overlapping tag mid-animation)
   can't flip how it's rasterized. The padding/negative-margin pair grows the
   paint box without moving the text: Caveat's "d" ascender overhangs its
   advance width, and a layer sized to the bare text box clips that tail. */
.lh-hero-more-tag { position: absolute; bottom: 10px; left: -70px; z-index: 5; transform: rotate(-6deg); will-change: transform; }
.lh-hero-more-tag .lh-hand { padding: 0.25em 0.4em; margin: -0.25em -0.4em; }

/* ── Results / stats section ────────────────────────────────────────── */
.lh-results { padding-block: 21px; height: 460px; position: relative; display: flex; flex-direction: column; }
.lh-results canvas { position: absolute; top: 0; left: 0; z-index: 0; }
.lh-results-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.lh-stats-grid { position: relative; z-index: 1; flex: 0.5; margin: auto 0; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: rgba(6,7,7,0.2); backdrop-filter: blur(2px); border-radius: 8px; }

/* ── Cases ──────────────────────────────────────────────────────────── */
.lh-cases-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
/* «Частые вопросы» (audit step 28.5): <details> accordion. */
.lh-faq-head { margin-bottom: 24px; }
.lh-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
.lh-faq-item { border-radius: var(--radius-card); background: var(--surface-card); border: 1px solid var(--border-card); transition: border-color 0.3s ease; }
.lh-faq-item[open], .lh-faq-item:hover { border-color: var(--border-accent); }
.lh-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.lh-faq-item summary::-webkit-details-marker { display: none; }
.lh-faq-item summary svg, .lh-faq-item summary i { flex: none; color: var(--accent); transition: transform 0.3s ease; }
.lh-faq-item[open] summary svg, .lh-faq-item[open] summary i { transform: rotate(180deg); }
.lh-faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-card); }
.lh-faq-answer { padding: 0 24px 22px; }
.lh-faq-answer p { margin: 0; font-size: var(--fs-desc); color: var(--text-secondary); line-height: var(--lh-body); max-width: 760px; }
.lh-faq-answer .lh-link-arrow { margin-top: 14px; }
@media (max-width: 560px) {
  .lh-faq-item summary { padding: 16px 18px; font-size: 15px; }
  .lh-faq-answer { padding: 0 18px 18px; }
}
/* «Как мы работаем» on the home page (audit step 28.3): six stages from
   «Запуск брендов» in a 3×2 grid, a single column on phones. */
.lh-hprocess-head { margin-bottom: 28px; }
.lh-hprocess-title { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: -0.5px; margin: 14px 0 0; max-width: 760px; }
.lh-hprocess-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.lh-hprocess-step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius-card); background: var(--surface-card); border: 1px solid var(--border-card); transition: border-color 0.3s ease; }
.lh-hprocess-step:hover { border-color: var(--border-accent); }
.lh-hprocess-step .num { font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-black); color: var(--accent); margin-bottom: 10px; }
.lh-hprocess-step .stage { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.lh-hprocess-step h3 { font-size: var(--fs-card-title); font-weight: var(--fw-extra); line-height: var(--lh-tight); margin: 0; }
.lh-hprocess-step .dur { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.lh-hprocess-cta { margin-top: 24px; }
@media (max-width: 860px) { .lh-hprocess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .lh-hprocess-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lh-hprocess-step { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 18px; }
  .lh-hprocess-step .num { font-size: 20px; margin: 0; }
  .lh-hprocess-step h3 { flex-basis: 100%; }
}
.lh-services-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; margin-bottom: 28px; }
.lh-services-intro { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 6px 0 0; }
.lh-services-grid, .lh-cases-grid, .lh-blog-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Showreel ───────────────────────────────────────────────────────── */
.lh-showreel-box { position: relative; border-radius: 20px; overflow: hidden; padding: 60px 48px; display: flex; align-items: center; justify-content: space-between; min-height: 360px; }
.lh-showreel-bg { position: absolute; inset: 0; overflow: hidden; background: #0a0a0b; }
.lh-showreel-grid { position: absolute; inset: -35% -6%; display: flex; gap: 8px; transform: rotate3d(1,-0.5,0.15,24deg) scale(1.3); filter: brightness(0.65) contrast(1.05); transform-style: preserve-3d; }
.lh-showreel-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lh-showreel-col img { width: 100%; height: 320px; object-fit: cover; border-radius: 6px; }
.lh-showreel-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,7,0.6) 0%, rgba(6,6,7,0.21) 50%, rgba(6,6,7,0.6) 100%); }
.lh-rec-badge { position: absolute; top: 24px; right: 28px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: 0.5px; }
.lh-rec-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--lime-500); animation: lhPulseRec 1.5s infinite; }
.lh-showreel-left { position: relative; z-index: 2; }
.lh-showreel-left h2 { font-family: var(--font-display); font-size: var(--fs-h2-reel); font-weight: var(--fw-black); line-height: 1.05; margin: 0 0 24px; }
.lh-play-btn { display: flex; align-items: center; gap: 16px; }
.lh-play-btn button, .lh-play-btn a { width: 48px; height: 48px; border-radius: 50%; background: var(--action); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-on-accent); transition: var(--transition-smooth); }
.lh-play-btn button:hover, .lh-play-btn a:hover { transform: scale(1.1); box-shadow: var(--shadow-glow-volt); }
.lh-play-btn span { font-size: var(--fs-body-xs); font-weight: var(--fw-bold); }
.lh-showreel-right { position: relative; z-index: 2; text-align: right; }

/* ── Contacts ───────────────────────────────────────────────────────── */
.lh-contacts { padding-block: 42px; border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 0.85fr 0.85fr; align-items: center; gap: 40px; }
.lh-contacts h2 { font-family: var(--font-display); font-size: var(--fs-display); font-weight: var(--fw-black); line-height: var(--lh-display); letter-spacing: var(--ls-display); margin: 0; }
.lh-contacts-mid { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.lh-contacts-mid p { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0; }
.lh-contacts-tag { position: absolute; top: -155px; right: 10px; }
.lh-contacts-card-wrap { display: flex; justify-content: center; perspective: 1000px; }
.lh-tilt-card { position: relative; width: 280px; height: 360px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5); transform-style: preserve-3d; transition: transform 0.2s ease-out; cursor: pointer; }
.lh-tilt-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-tilt-card .scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent, rgba(0,0,0,0.8)); }
.lh-tilt-card .body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: #fff; }
.lh-tilt-card .top-row { display: flex; align-items: flex-start; justify-content: space-between; }
.lh-tilt-card .brand { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 20px; letter-spacing: -0.5px; }
.lh-tilt-card .tagline { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.lh-tilt-card .ig-badge { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); flex-shrink: 0; }
.lh-tilt-card .follow { display: block; text-align: center; padding: 13px; border-radius: 12px; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); font-weight: 700; font-size: 13px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.lh-footer { border-top: 1px solid var(--border-subtle); padding-block: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; gap: 24px; }
.lh-footer-copy { color: var(--gray-dim); margin: 6px 0 0; font-size: 11px; }
.lh-footer-nav { display: flex; gap: 24px; color: var(--text-secondary); font-weight: 600; }
.lh-footer-privacy { color: var(--gray-dim); }
.lh-footer { flex-wrap: wrap; }
.lh-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.lh-meta-note { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; color: var(--gray-dim); }

/* ── Modal ──────────────────────────────────────────────────────────── */
.lh-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(6,7,7,0.78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.lh-modal-overlay.open { display: flex; }
.lh-modal-card { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: var(--black-surface); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lh-modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); border: none; color: var(--text-secondary); cursor: pointer; font-size: 16px; line-height: 1; }
.lh-modal-close:hover { background: rgba(204,255,0,0.15); color: var(--accent); }
.lh-modal-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: var(--fw-black); line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 8px; padding-right: 30px; }
.lh-modal-card .sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 26px; }
/* Quiz pop-up on the home page (audit step 28.2): the regular quiz card
   inside the modal overlay; ✕ sits over the card's top-right corner. */
.lh-quiz-modal-box { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; border-radius: var(--radius-card); overscroll-behavior: contain; }
.lh-quiz-modal-box .lh-modal-close { z-index: 3; top: 20px; right: 20px; width: 36px; height: 36px; }
.lh-quiz-modal .svc-quiz-card { max-width: none; margin: 0; padding: 40px 28px 26px; background: var(--black-surface); border-color: rgba(255,255,255,0.1); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lh-quiz-modal .svc-quiz-step-num, .lh-quiz-modal .svc-quiz-question { padding-inline: 34px; }
.lh-quiz-modal .svc-quiz-question { font-size: 20px; margin-bottom: 18px; }
.lh-quiz-modal .svc-quiz-options { gap: 8px; }
@media (max-width: 560px) {
  .lh-quiz-modal { padding: 12px; }
  .lh-quiz-modal .svc-quiz-card { padding: 64px 18px 22px; }
  .lh-quiz-modal .svc-quiz-step-num, .lh-quiz-modal .svc-quiz-question { padding-inline: 0; }
  .lh-quiz-modal .svc-quiz-question { font-size: 18px; }
}
.lh-form-field { display: flex; flex-direction: column; gap: 14px; }
.lh-form-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 6px; }
.lh-form-field input, .lh-form-field textarea {
  width: 100%; background: #181819; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  padding: 12px 14px; color: #fff; font-size: 14px; font-family: inherit; outline: none;
}
.lh-form-field input:focus, .lh-form-field textarea:focus { border-color: var(--accent); }
.lh-form-field.error input { border-color: #FF5C5C; }

.lh-phone-field { position: relative; display: flex; align-items: stretch; background: #181819; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; }
.lh-phone-field:focus-within { border-color: var(--accent); }
.lh-form-field.error .lh-phone-field { border-color: #FF5C5C; }
.lh-phone-country {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 10px 0 14px;
  background: none; border: none; border-right: 1px solid rgba(255,255,255,0.12); color: #fff;
  font-size: 14px; font-family: inherit; cursor: pointer;
}
.lh-phone-country .flag { width: 20px; height: 14px; flex-shrink: 0; border-radius: 2px; overflow: hidden; display: inline-flex; }
.lh-phone-country .flag svg, .lh-phone-country-list .flag svg { display: block; width: 100%; height: 100%; }
.lh-phone-country i { color: var(--text-secondary); font-size: 10px !important; transition: transform 0.2s ease; }
.lh-phone-country[aria-expanded="true"] i { transform: rotate(180deg); }
.lh-phone-field input { flex: 1; min-width: 0; width: auto; background: none; border: none; border-radius: 0; padding: 12px 14px 12px 10px; }
.lh-phone-country-list {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 250px; max-height: 260px;
  overflow-y: auto; background: var(--black-surface); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.55); list-style: none; margin: 0;
}
.lh-phone-country-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #fff; }
.lh-phone-country-list li:hover { background: rgba(204,255,0,0.1); }
.lh-phone-country-list .flag { width: 20px; height: 14px; flex-shrink: 0; border-radius: 2px; overflow: hidden; display: inline-flex; }
.lh-phone-country-list .cname { flex: 1; }
.lh-phone-country-list .cdial { color: var(--text-secondary); font-size: 12px; flex-shrink: 0; }

.lh-consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 11.5px; line-height: 1.4; color: var(--text-secondary); cursor: pointer; margin-top: 4px; }
.lh-consent-row input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.lh-consent-row a { color: #fff; text-decoration: underline; }
.lh-consent-row a:hover { color: var(--accent); }
.lh-form-error { font-size: 12px; color: #FF5C5C; margin: 0; }
.lh-form-success { font-size: 13px; color: var(--accent); margin: 0; }

/* ── Cookie bar ─────────────────────────────────────────────────────── */
.lh-cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 28px; background: var(--black-surface); border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 -10px 30px rgba(0,0,0,0.4); }
.lh-cookie-bar[hidden] { display: none; }
/* Floating Telegram button (phones). Sits under the header, menu, modal and
   cookie bar layers, and rises above the cookie bar while it is shown
   (--lh-cookie-h is set by site.js). */
.lh-tg-float { display: none; }
@media (max-width: 768px) {
  .lh-tg-float {
    display: flex; position: fixed; right: 16px; z-index: 45;
    bottom: calc(16px + var(--lh-cookie-h, 0px) + env(safe-area-inset-bottom, 0px));
    width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center;
    background: #229ED9; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.35); transition: bottom 0.25s ease;
  }
}
.lh-cookie-bar p { margin: 0; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; max-width: 760px; }
.lh-cookie-bar a { color: #fff; text-decoration: underline; }
.lh-cookie-bar a:hover { color: var(--accent); }
.lh-cookie-decline { padding: 10px 16px; border-radius: var(--radius-pill); background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; }
.lh-cookie-decline:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

/* ── Preloader ──────────────────────────────────────────────────────── */
.lh-preloader { position: fixed; inset: 0; z-index: 999; background: var(--bg-page); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; transition: opacity 0.5s ease, visibility 0.5s ease; pointer-events: none; }
.lh-preloader .word { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 28px; letter-spacing: -0.5px; animation: lhPreloadPulse 1.6s ease-in-out infinite; }
.lh-preloader .track { width: 160px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.lh-preloader .bar { width: 60%; height: 100%; background: var(--accent); border-radius: 2px; animation: lhPreloadBar 1.3s ease-in-out infinite; }
.lh-preloader.hidden { opacity: 0; visibility: hidden; }

/* ── Responsive (breakpoints match the original prototype) ─────────── */
@media (max-width: 860px) {
  .lh-nav, .lh-lang-wrap { display: none !important; }
  .lh-burger { display: flex !important; }
  .lh-header-row { gap: 20px !important; }
  .lh-logo { margin-left: 6px !important; }
  .lh-header-actions { gap: 14px !important; }
  .lh-container { padding-inline: 18px !important; }
  /* Full-screen mobile hero: .lh-page-content's own 56px padding-top (fixed
     header clearance) sits above the hero, so the hero itself only needs
     100dvh minus that 56px for "hero + header padding" to add up to exactly
     one screen — otherwise the next section would start 56px into the
     following scroll instead of flush at the top of a fresh screen. */
  .lh-hero { grid-template-columns: 1fr !important; gap: 28px !important; padding-top: 16px !important; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); align-content: center; }
  .lh-hero-copy { margin-top: 0 !important; }
  .svc-hero { min-height: calc(100vh - 56px) !important; min-height: calc(100dvh - 56px) !important; }
  .svc-words-hero { min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); justify-content: center; padding-top: 32px; }
  .blog-hero { min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); display: flex; flex-direction: column; justify-content: center; }
  .lh-hero-title { font-size: 44px !important; }
  .lh-hero-track-wrap { height: 420px !important; }
  .lh-ticker { flex-wrap: wrap !important; gap: 10px !important; row-gap: 8px !important; }
  .lh-manifesto { grid-template-columns: 1fr !important; gap: 20px !important; text-align: left !important; }
  .lh-manifesto h2 { font-size: 30px !important; }
  .lh-services-grid { grid-template-columns: repeat(2,1fr) !important; }
  .lh-cases-head { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .lh-services-head { grid-template-columns: 1fr !important; gap: 12px !important; }
  .lh-cases-grid, .lh-blog-grid { grid-template-columns: repeat(2,1fr) !important; }
  .lh-stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .lh-showreel-box { flex-direction: column !important; padding: 36px 22px !important; text-align: center !important; gap: 24px !important; min-height: 0 !important; }
  .lh-showreel-right { text-align: center !important; }
  .lh-showreel-left h2 { font-size: 28px !important; }
  .lh-contacts { grid-template-columns: 1fr !important; gap: 36px !important; }
  .lh-contacts h2 { font-size: 40px !important; text-align: center !important; }
  /* Stacked layout: the heading now sits right above this column, so the
     floating tag would land on it — put it in the flow above the text. */
  .lh-contacts-tag { position: static; order: -1; margin: -8px 0 4px; }
  .lh-footer { flex-direction: column !important; gap: 16px !important; text-align: center !important; }
  .lh-footer-nav { flex-wrap: wrap !important; justify-content: center !important; gap: 4px 8px !important; }
  /* Finger-sized tap targets (≥ 40px tall) for the footer links on phones. */
  .lh-footer-nav a, .lh-footer-privacy { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 8px; }
  .lh-modal-card { padding: 24px !important; }
  .lh-cookie-bar { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
}
@media (max-width: 480px) {
  /* Узкие телефоны: у кнопки в шапке только иконка, чтобы бургер помещался */
  .lh-header-cta span { display: none; }
  .lh-header-cta { width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
  .lh-header-row { gap: 12px !important; }
  .lh-header-actions { gap: 10px !important; }
  .lh-services-grid, .lh-cases-grid, .lh-blog-grid { grid-template-columns: 1fr !important; }
  .lh-stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .lh-hero-title { font-size: 36px !important; }
  .lh-contacts h2 { font-size: 32px !important; }
}
@media (max-width: 560px) {
  /* Contact modal: a full-screen sheet, not a floating card — sized and
     spaced to fit every field on one screen without the card itself
     scrolling (falls back to its own scroll only on a very short phone). */
  .lh-modal-overlay { padding: 0; }
  .lh-modal-card {
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    border-radius: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 32px) 20px calc(env(safe-area-inset-bottom, 0px) + 28px);
    display: flex; flex-direction: column;
  }
  .lh-modal-card h3 { font-size: 22px; margin-bottom: 4px; }
  .lh-modal-card .sub { font-size: 12.5px; margin-bottom: 18px; }
  .lh-modal-close { top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; }
  #lhContactForm { gap: 12px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .lh-form-field { gap: 8px; }
  .lh-form-field label { margin-bottom: 0; font-size: 10.5px; }
  .lh-form-field input, .lh-form-field textarea, .lh-phone-field input { padding: 10px 12px; font-size: 13.5px; }
  .lh-phone-country { padding: 0 8px 0 12px; }
  #lhFieldMessage { min-height: 60px; max-height: 130px; resize: none; }
  .lh-consent-row { margin-top: auto; padding-top: 12px; }
}

/* ══════════════════════════════════════════════════════════════════
   Service pages (services-01 / services-02) — ported from the
   services-01.dc.html prototype.
   ══════════════════════════════════════════════════════════════════ */

.svc-label { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 18px; }
.svc-h2 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(30px,3.4vw,44px); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 24px; text-wrap: balance; }
.svc-h2--wide { max-width: 760px; margin-bottom: 40px; }
.svc-h2--sm { font-size: clamp(26px,3vw,38px); line-height: 1.08; letter-spacing: -1px; margin-bottom: 20px; }
.svc-h2--lg { font-size: clamp(30px,3.6vw,48px); line-height: 1.02; letter-spacing: -1.3px; margin-bottom: 18px; }
.svc-h3 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(28px,3vw,40px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 20px; }
.svc-h3--wide { max-width: 760px; }
.svc-body { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 14px; max-width: 460px; }
.svc-body--wide { max-width: 560px; margin-bottom: 40px; }
.accent-soft { color: #D4FA58; }

/* ── Hero ──────────────────────────────────────────────────────── */
.svc-hero { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 88px; }
.svc-hero-bg { position: absolute; top: 88px; left: 0; right: 0; bottom: 0; z-index: 0; overflow: hidden; }
.svc-hero--flush .svc-hero-bg { top: 0; }
.svc-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% top; filter: grayscale(7%) contrast(110%) brightness(0.925); }
.svc-hero-scrim-x { position: absolute; inset: 0; opacity: var(--hero-tint, 1); background: linear-gradient(90deg,rgba(6,7,7,0.5) 0%,rgba(6,7,7,0.5) 20%,rgba(6,7,7,0.375) 40%,rgba(6,7,7,0.125) 65%,rgba(6,7,7,0.025) 100%); }
.svc-hero-scrim-y { position: absolute; inset: 0; opacity: var(--hero-tint, 1); background: linear-gradient(0deg,rgba(6,7,7,0.5) 0%,rgba(6,7,7,0) 30%); }
.svc-hero-outline { position: absolute; top: 8%; left: -2%; font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(90px,16vw,240px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.08); letter-spacing: -4px; pointer-events: none; }
.svc-hero-blob { position: absolute; bottom: -160px; left: -140px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle,rgba(204,255,0,0.28) 0%,rgba(204,255,0,0.08) 45%,rgba(204,255,0,0) 75%); filter: blur(20px); animation: lhFloatA 14s ease-in-out infinite; }
.svc-hero-inner { position: relative; z-index: 1; width: 100%; }
.svc-hero-title { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(42px,6vw,84px); line-height: 0.96; letter-spacing: -2.5px; margin: 0 0 28px; max-width: 760px; text-wrap: balance; }
.svc-hero-sub { font-size: 15px; color: var(--text-primary); line-height: 1.6; max-width: 420px; margin: 0 0 36px; }
.svc-hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Marketplace logos under the hero buttons (svc_hero: showOzon / showWb /
   showYm). White chips keep every logo in its own brand colours. */
.svc-hero-markets { margin-top: 36px; }
.svc-hero-markets-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 12px; }
.svc-hero-markets ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-hero-markets li { height: 48px; padding: 0 18px; border-radius: 14px; background: #fff; display: flex; align-items: center; box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.svc-hero-markets img { display: block; height: 20px; width: auto; }
.svc-hero-markets .mk-wildberries img { height: 22px; }
.svc-hero-markets .mk-yandex-market img { height: 26px; }
@media (max-width: 640px) { .svc-hero-markets li { height: 42px; padding: 0 14px; } .svc-hero-markets img { height: 17px; } .svc-hero-markets .mk-wildberries img { height: 19px; } .svc-hero-markets .mk-yandex-market img { height: 22px; } }

/* Vertical video in a phone-like frame (case hero, «Видео в телефоне справа»
   in the admin): 320px wide on the right, top just under the fixed header,
   hanging over the hero's bottom edge into the next block. */
/* Hero with the quiz card on the right (svc_hero showQuiz): text left,
   card right; stacks under the buttons on tablets and phones. */
.svc-hero--quiz .svc-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: 32px; }
.svc-hero-quiz { position: relative; z-index: 2; perspective: 1200px; }
.svc-hero-quiz .svc-quiz-card {
  max-width: none; margin: 0; padding: 34px 28px 26px;
  background: rgba(17,18,18,0.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.svc-hero-quiz .svc-quiz-question { font-size: 20px; margin-bottom: 18px; }
.svc-hero-quiz .svc-quiz-options { gap: 8px; }
.svc-hero-quiz .svc-quiz-final-sub { margin-bottom: 18px; }
@media (max-width: 1024px) {
  .svc-hero--quiz .svc-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .svc-hero-quiz { max-width: 560px; }
}
@media (max-width: 560px) {
  .svc-hero-quiz .svc-quiz-card { padding: 52px 18px 22px; }
  .svc-hero-quiz .svc-quiz-question { font-size: 18px; }
}
.svc-hero--video { overflow: visible; }
.svc-hero-video-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.svc-hero-video { position: absolute; right: clamp(28px, 6vw, 110px); top: 112px; width: 320px; border-radius: 34px; overflow: hidden; background: #000; pointer-events: auto; box-shadow: 0 40px 90px rgba(0,0,0,0.65), 0 12px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08); }
.svc-hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1180px) {
  .svc-hero-video-wrap { position: relative; top: auto; bottom: auto; margin-top: 40px; }
  .svc-hero-video { position: relative; right: auto; top: auto; margin-inline: auto; width: min(320px, 86vw); border-radius: 30px; }
  .svc-hero--video { padding-bottom: 48px; }
}

/* ── Manifesto ─────────────────────────────────────────────────── */
.svc-manifesto { padding-block: 90px; border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.svc-navlist { display: flex; flex-direction: column; border-bottom: 1px solid var(--border-subtle); }
/* Without the list on the right the text takes one readable column. */
.svc-manifesto--solo { grid-template-columns: minmax(0, 820px); }
.svc-navlist-row { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; border-top: 1px solid var(--border-subtle); font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; letter-spacing: -0.3px; color: #fff; }
.svc-navlist-row:hover { color: var(--accent); }
.svc-navlist-row .n { color: var(--text-secondary); font-size: 14px; font-weight: 700; margin-right: 16px; }

/* ── Full-bleed image band ─────────────────────────────────────── */
.svc-band { position: relative; margin-inline: calc(50% - 50vw); width: 100vw; overflow: hidden; margin-bottom: 64px; }
.svc-band img { display: block; width: 100%; height: auto; }
.svc-band--tall { height: 80vh; min-height: 520px; margin-bottom: 0; }
.svc-band--tall img { height: 100%; object-fit: cover; object-position: center 15%; }
.svc-band-scrim { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(6,7,7,0) 55%,rgba(6,7,7,0.9) 100%); }

/* ── Directions rows ───────────────────────────────────────────── */
.svc-directions { padding-block: 0 90px; }
.svc-rows-end { border-top: 1px solid var(--border-subtle); }
.svc-row { display: grid; grid-template-columns: 100px 1fr 1.3fr; gap: 24px; align-items: start; padding-block: 34px; border-top: 1px solid var(--border-subtle); }
.svc-row-num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 15px; }
.svc-row-title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 22px; letter-spacing: -0.3px; }
.svc-row-title span { color: var(--text-secondary); font-weight: 600; font-size: 13px; letter-spacing: 0; }
.svc-row-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ── Process timeline ──────────────────────────────────────────── */
.svc-process { padding-block: 90px; border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 60px; scroll-margin-top: 90px; }
.svc-process-sticky { position: sticky; top: 110px; align-self: start; }
.svc-process-stats { display: flex; gap: 28px; }
.svc-process-stats .v { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 26px; }
.svc-process-stats .c { font-size: 11px; color: var(--text-secondary); font-weight: 700; letter-spacing: 0.5px; }
.svc-timeline { position: relative; padding-left: 36px; }
.svc-timeline-rail { position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,0.15); }
.svc-step { position: relative; padding-block: 28px; border-top: 1px solid var(--border-subtle); }
.svc-step-dot { position: absolute; left: -41px; top: 32px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.svc-step-dot--hollow { background: transparent; border: 1px solid var(--accent); }
.svc-step-num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 32px; color: rgba(255,255,255,0.15); margin-bottom: 8px; }
.svc-step-title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 19px; letter-spacing: -0.2px; margin-bottom: 8px; }
.svc-step-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; max-width: 460px; }
.svc-step--loop { padding-block: 20px; }
.svc-loop-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ── Deliverables lime band ────────────────────────────────────── */
.svc-deliverables { margin-inline: calc(50% - 50vw); width: 100vw; padding: 48px 0; background: var(--accent); }
.svc-deliverables-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.svc-deliverables .svc-label { color: #0d0d0f; opacity: 0.6; margin-bottom: 0; }
.svc-deliverables h2 { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(20px,2.2vw,28px); line-height: 1.05; letter-spacing: -0.6px; margin: 0; color: #0d0d0f; }
.svc-deliverables-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.svc-deliverable { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 10px; background: rgba(13,13,15,0.08); font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 13px; letter-spacing: -0.1px; color: #0d0d0f; }
.svc-deliverable:hover { background: #0d0d0f; color: var(--accent); }

/* ── Transformation ────────────────────────────────────────────── */
.svc-transformation { position: relative; overflow-x: clip; padding-block: 90px; border-top: 1px solid var(--border-subtle); background: #0d0d0f; padding-inline: 56px; }
.svc-transformation canvas { position: absolute; top: 0; left: 0; z-index: 0; }
.svc-transformation-inner { position: relative; z-index: 1; }
.svc-transformation-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; padding: 32px 28px; background: rgba(6,7,7,0.2); backdrop-filter: blur(2px); border-radius: 8px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.svc-transformation-arrow { width: 64px; height: 2px; background: var(--accent); justify-self: center; }
.svc-file-chip { display: inline-block; background: var(--bg-page); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 14px 18px; font-family: monospace; font-size: 13px; color: var(--text-secondary); }
.svc-file-chip span { color: #fff; }
.svc-outputs { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }

/* ── Process: pinned 3D card stack (services-01 "Наш процесс") ──── */
.svc-process-stack-pin { position: relative; height: 380vh; padding: 0; border-top: 1px solid var(--border-subtle); }
.svc-process-stack-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; padding-top: 88px; }
.svc-process-stack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.svc-process-stack-lead { color: var(--text-secondary); max-width: 52ch; font-size: 15px; line-height: 1.6; }
.svc-process-stack-gallery { display: grid; grid-template-columns: 1fr 1.34fr; gap: 40px; align-items: center; }

.svc-stepinfo .counter { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.svc-stepinfo .counter .now { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 44px; line-height: 1; color: var(--accent); letter-spacing: -1.5px; }
.svc-stepinfo .counter .rule { width: 28px; height: 1px; background: var(--border-subtle); align-self: center; }
.svc-stepinfo .counter .all { font-size: 14px; font-weight: 600; color: var(--text-tertiary); }
.svc-stepinfo .stage-name { display: block; font-size: 12px; font-weight: var(--fw-extra); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.svc-stepinfo h3 { margin-bottom: 12px; }
.svc-stepinfo p { color: var(--text-secondary); max-width: 44ch; min-height: 48px; font-size: 14px; line-height: 1.55; }
.svc-stepinfo .outs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; min-height: 76px; align-content: flex-start; }
.svc-stepinfo .outs span { font-size: 12.5px; font-weight: 600; color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 8px 14px; background: var(--surface-card); }
.svc-stepinfo .outs-label { font-size: 11px; font-weight: var(--fw-extra); letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-tertiary); margin-top: 24px; }
.svc-stepinfo .hint { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-tertiary); }
.hint-icon { display: inline-flex; }
.hint-icon--h { display: none; }
.svc-stepinfo .hint i { animation: svcNudge 1.6s ease-in-out infinite; }
.hint-icon--h i { animation-name: svcNudgeX; }
@keyframes svcNudge { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes svcNudgeX { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

.svc-stage-wrap { position: relative; }
.svc-stage { position: relative; height: clamp(320px,56vh,520px); perspective: 1200px; touch-action: pan-y; outline: none; overflow: hidden; }
.svc-stage:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.svc-pcard {
  position: absolute; left: 50%; top: 50%;
  width: clamp(280px,52vh,640px); aspect-ratio: 2/1;
  border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; background: var(--surface-card);
  transform-style: preserve-3d; cursor: grab;
  box-shadow: 0 26px 50px -20px rgba(0,0,0,0.85);
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.45s ease;
}
.svc-pcard.dragging { cursor: grabbing; transition: none; }
.svc-pcard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.svc-pcard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; background: linear-gradient(180deg,rgba(6,6,7,0) 0%,rgba(6,6,7,0.9) 70%); display: flex; align-items: baseline; gap: 10px; }
.svc-pcard .cap b { color: var(--accent); font-size: 12px; font-weight: var(--fw-extra); letter-spacing: 1px; }
.svc-pcard .cap span { font-size: 14px; font-weight: 700; }
.svc-pcard .cap .dur { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.svc-stage-dots { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 9px; z-index: 9; }
.svc-stage-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill); cursor: pointer; background: rgba(255,255,255,0.26); transition: height 0.3s ease, background 0.3s ease; }
.svc-stage-dots button[aria-current="true"] { height: 26px; background: var(--accent); }
.svc-stage-dots button:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ── Text + photo split (services-01 "Производство") ─────────────── */
.svc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 90px; border-top: 1px solid var(--border-subtle); }
.svc-split-marks { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-split-marks .mark { font-size: 13px; font-weight: 600; color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 9px 16px; }
.svc-split-cta { margin-top: 30px; }
.svc-split-photo { aspect-ratio: 4/3; }
.svc-split-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-media); border: 1px solid var(--border-card); }
/* Карта фабрик-партнёров: контуры стран из Natural Earth (includes/partials/map_eurasia.php),
   точки городов приходят из админки как широта/долгота. */
.svc-split-map { grid-column: 1 / -1; position: relative; margin-top: 20px; padding: 20px 18px; background: rgba(6,7,7,0.2); border-radius: 8px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.svc-split-map svg { display: block; width: 100%; height: auto; }
.svc-map-country { fill: rgba(255,255,255,0.035); stroke: rgba(255,255,255,0.16); stroke-width: 0.7; stroke-linejoin: round; }
.svc-map-country.is-active { fill: rgba(204,255,0,0.09); stroke: var(--accent); stroke-width: 1.3; }
.svc-map-point { cursor: pointer; outline: none; }
.svc-map-hit { fill: transparent; }
.svc-map-halo { fill: var(--accent); opacity: 0.18; animation: lhMapHalo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.svc-map-dot { fill: var(--accent); filter: drop-shadow(0 0 5px var(--lime-500)); transition: r 0.15s ease; }
.svc-map-point:hover .svc-map-dot, .svc-map-point:focus-visible .svc-map-dot, .svc-map-point.is-open .svc-map-dot { r: 9; }
.svc-map-point:hover .svc-map-halo, .svc-map-point:focus-visible .svc-map-halo, .svc-map-point.is-open .svc-map-halo { opacity: 0.4; animation: none; }
.svc-map-point:focus-visible .svc-map-dot { stroke: #fff; stroke-width: 2; }
@keyframes lhMapHalo { 0%, 100% { opacity: 0.1; transform: scale(0.7); } 50% { opacity: 0.3; transform: scale(1.15); } }
.svc-map-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--black-surface); border: 1px solid var(--accent); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
}
.svc-map-tip[hidden] { display: none; }

/* ── Floating cards with expand panel ─────────────────────────────── */
.svc-floating-cards { padding-block: 90px; border-top: 1px solid var(--border-subtle); }
.svc-fcg { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: start; perspective: 1000px; padding-block: 14px; }
.svc-fcard {
  position: relative; display: block; text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer;
  background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-media); overflow: hidden;
  animation: svcFloatCard 7s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.45s ease, opacity 0.3s ease;
}
.svc-fcard:nth-child(2) { animation-delay: -1.75s; }
.svc-fcard:nth-child(3) { animation-delay: -3.5s; }
.svc-fcard:nth-child(4) { animation-delay: -5.25s; }
@keyframes svcFloatCard { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
.svc-fcard:hover, .svc-fcard:focus-visible {
  animation-play-state: paused; transform: translateY(-12px) scale(1.02);
  border-color: var(--border-accent); box-shadow: 0 34px 60px -32px var(--lime-glow); outline: none;
}
.svc-fcard.is-active { animation-play-state: paused; transform: translateY(-12px); border-color: var(--accent); }
.svc-fcg.has-active .svc-fcard:not(.is-active) { opacity: 0.4; }
.svc-fcard .thumb { aspect-ratio: 4/3; overflow: hidden; }
.svc-fcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.svc-fcard:hover .thumb img { transform: scale(1.07); }
.svc-fcard .body { padding: 20px 18px 22px; }
.svc-fcard h3 { font-family: var(--font-base); font-weight: 700; font-size: 15px; text-transform: none; letter-spacing: 0; line-height: 1.3; margin: 0 0 8px; }
.svc-fcard p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; margin: 0; }
.svc-fcard .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11.5px; font-weight: var(--fw-extra); letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.svc-fcard.is-active .more i { transform: rotate(90deg); }
.svc-fcard .more i { transition: transform 0.3s ease; }
.svc-fcard-detail { border-top: 1px solid var(--border-subtle); margin: 16px 18px 0; padding: 16px 0 20px; }
.svc-fcard-detail[hidden] { display: none; }
.svc-fcard-detail p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.6; margin: 0; }
.svc-fcard-detail .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svc-fcard-detail .tags span { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 6px 11px; }

/* ── Transformation: rocket variant (middle stat + launch rocket) ─── */
.svc-tcol { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.svc-transformation-mid { border-inline: 1px solid var(--border-accent); padding-inline: 44px; }
.svc-transformation-grid.variant-rocket { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
.svc-big-num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(34px,3.4vw,48px); line-height: 1; letter-spacing: -1.6px; color: var(--accent); margin: 0 0 16px; }
.svc-transformation-mid p { color: var(--text-secondary); max-width: 34ch; font-size: 14px; line-height: 1.6; }
.svc-rocket-wrap { position: relative; flex: 0 0 auto; min-height: 67px; }
.svc-rocket { position: absolute; left: 170px; top: 0; width: 176px; height: 176px; transition: translate 1.15s cubic-bezier(0.4,0,0.2,1), rotate 1.15s ease, scale 1.15s ease, opacity 1s ease; }
.svc-rocket-svg { width: 100%; height: 100%; rotate: 45deg; animation: svcRockFloat 4.2s ease-in-out infinite; }
@keyframes svcRockFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -13px; } }
.svc-rocket .flame-outer { transform-origin: 60px 114px; transition: opacity 0.35s ease; animation: svcFlameOuter 0.7s ease-in-out infinite; }
.svc-rocket .flame-mid { transform-origin: 60px 123px; transition: opacity 0.35s ease; animation: svcFlameMid 0.5s ease-in-out infinite; animation-delay: -0.18s; }
.svc-rocket .flame-core { transform-origin: 60px 133px; transition: opacity 0.35s ease; animation: svcFlameCore 0.38s ease-in-out infinite; animation-delay: -0.07s; }
@keyframes svcFlameOuter {
  0%, 100% { scale: 1 1; rotate: -2deg; opacity: 0.82; }
  30% { scale: 1.1 0.92; rotate: 3deg; opacity: 1; }
  65% { scale: 0.91 1.07; rotate: -3deg; opacity: 0.75; }
}
@keyframes svcFlameMid {
  0%, 100% { scale: 1 1; rotate: 2deg; opacity: 0.9; }
  40% { scale: 1.14 0.88; rotate: -4deg; opacity: 1; }
  75% { scale: 0.88 1.12; rotate: 3deg; opacity: 0.82; }
}
@keyframes svcFlameCore {
  0%, 100% { scale: 1 1; opacity: 0.95; }
  50% { scale: 1.18 0.85; opacity: 1; }
}
.svc-trail {
  position: absolute; left: 266px; top: 80px; height: 2px; width: 0; opacity: 0;
  background: linear-gradient(90deg,rgba(204,255,0,0),var(--accent));
  rotate: -45deg; transform-origin: left center; transition: width 1.05s ease, opacity 0.7s ease;
}
.svc-rocket-wrap:hover .svc-rocket { translate: 85vw -95vh; rotate: 6deg; scale: 0.4; opacity: 0; }
.svc-rocket-wrap:hover .flame { scale: 1.25; }
.svc-rocket-wrap:hover .flame-outer, .svc-rocket-wrap:hover .flame-mid, .svc-rocket-wrap:hover .flame-core { animation: none; opacity: 1; }
.svc-rocket-wrap:hover .svc-trail { width: min(62vw,760px); opacity: 0.5; }

/* ── Category grid (services-01) ──────────────────────────────────── */
.svc-category-lead { color: var(--text-secondary); max-width: 76ch; margin: 0 0 34px; font-size: 16px; line-height: 1.6; }
.svc-catgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.svc-cat {
  position: relative; margin: 0; aspect-ratio: 1/1; overflow: hidden; display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-media); background: var(--surface-card);
  transition: border-color 0.4s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease;
}
.svc-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.svc-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(6,6,7,0) 42%,rgba(6,6,7,0.92) 100%); z-index: 1; }
.svc-cat::before { content: ""; position: absolute; left: 18px; bottom: 14px; height: 2px; width: 0; background: var(--accent); z-index: 3; transition: width 0.55s cubic-bezier(0.22,1,0.36,1); }
.svc-cat figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 20px; }
.svc-cat .t { font-size: 13px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), color 0.35s ease; }
.svc-cat .ar { color: var(--accent); font-size: 16px; opacity: 0; transform: translate(-10px,10px); transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1); }
.svc-cat:hover { border-color: var(--border-accent); transform: translateY(-6px); box-shadow: 0 30px 50px -30px var(--lime-glow); }
.svc-cat:hover img { transform: scale(1.09); }
.svc-cat:hover .t { transform: translateY(-9px); color: var(--accent); }
.svc-cat:hover .ar { opacity: 1; transform: translate(0,-9px); }
.svc-cat:hover::before { width: calc(100% - 36px); }

/* ── Case study ────────────────────────────────────────────────── */
.svc-case-head { padding-block: 90px 0; border-top: 1px solid var(--border-subtle); }
.svc-case-sub { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-secondary); margin: 0 0 40px; }
.svc-case-intro { padding-block: 80px; border-top: 1px solid var(--border-subtle); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.svc-case-intro .lead { font-size: 20px; font-weight: 600; line-height: 1.5; margin: 0; max-width: 480px; }
.svc-case-intro .body { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0; max-width: 480px; }
.svc-case-idea { padding-block: 0 90px; }
.svc-case-idea-grid { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 16px; overflow: hidden; }
.svc-case-idea-photo { width: 100%; height: 640px; object-fit: cover; }
.svc-case-idea-panel { background: #0d0d0f; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.svc-case-logo { height: 64px; width: auto; margin-bottom: 24px; object-fit: contain; align-self: flex-start; }
.svc-palette { display: flex; gap: 10px; }
.svc-palette > div { flex: 1; }
.svc-palette .swatch { height: 64px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); }
.svc-palette .swatch-label { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-secondary); margin-top: 8px; }
.svc-case-product { padding-block: 0 90px; }
.svc-case-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 360px 360px; gap: 12px; }
.svc-case-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.svc-case-gallery img.tall { grid-row: 1/3; }
.svc-case-gallery--row { grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: auto; }
.svc-case-gallery--row { align-items: start; }
.svc-case-gallery--row img { height: auto; }
.svc-case-results { position: relative; margin-inline: calc(50% - 50vw); width: 100vw; padding-block: 100px; background: #000; overflow: hidden; }
.svc-case-results .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; }
.svc-case-results .scrim { position: absolute; inset: 0; background: linear-gradient(180deg,#000 0%,rgba(0,0,0,0.85) 100%); }
.svc-case-results .lh-container { position: relative; }
.svc-results-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; border-radius: 14px; overflow: hidden; }
.svc-results-grid.primary { background: rgba(255,255,255,0.12); margin-bottom: 32px; }
.svc-results-grid.secondary { background: rgba(255,255,255,0.08); }
.svc-results-grid.primary > div { background: #0d0d0f; padding: 28px 22px; }
.svc-results-grid.primary .v { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(30px,3vw,42px); color: #D4FA58; letter-spacing: -1px; line-height: 1; margin-bottom: 12px; }
.svc-results-grid.primary .l { font-size: 12.5px; color: #C7C7CC; font-weight: 700; line-height: 1.45; }
.svc-results-grid.secondary > div { background: #0a0a0b; padding: 22px; }
.svc-results-grid.secondary .v { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(22px,2.2vw,30px); color: #fff; letter-spacing: -0.6px; line-height: 1; margin-bottom: 10px; }
.svc-results-grid.secondary .l { font-size: 11.5px; color: var(--text-secondary); font-weight: 700; line-height: 1.45; }

/* ── Why us ────────────────────────────────────────────────────── */
.svc-why { padding-block: 90px; border-top: 1px solid var(--border-subtle); }
.svc-why-sub { max-width: 520px; margin-bottom: 48px; }
.svc-why-grid { display: grid; grid-template-columns: repeat(var(--cols, 4),1fr); row-gap: 36px; }
.svc-why-col { padding-right: 24px; border-left: 1px solid var(--border-subtle); padding-left: 20px; }
.svc-why-tag { font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; }
.svc-why-col p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ── Packages ──────────────────────────────────────────────────── */
.svc-packages { padding-block: 90px; border-top: 1px solid var(--border-subtle); scroll-margin-top: 90px; }
.svc-packages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; align-items: stretch; }
.svc-package { display: flex; flex-direction: column; gap: 14px; background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-card); padding: 28px 24px; transition: var(--transition-smooth); }
.svc-package:hover { border-color: var(--border-accent); transform: translateY(var(--lift-card-sm)); }
.svc-package.is-rec { border-color: var(--border-accent); }
.svc-package-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svc-package-name { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 22px; letter-spacing: -0.5px; }
.svc-package-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: var(--accent); color: var(--text-on-accent); padding: 4px 9px; border-radius: 3px; }
.svc-package-for { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
.svc-package-includes { border-top: 1px solid var(--border-subtle); padding-top: 14px; margin-top: auto; }
.svc-package-includes .lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 8px; }
.svc-package-includes p { font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ── Service pages: responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  .svc-manifesto, .svc-process, .svc-case-intro { grid-template-columns: 1fr !important; gap: 32px !important; }
  .svc-process-sticky { position: static; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-row-desc { grid-column: 2; }
  .svc-deliverables-grid { grid-template-columns: repeat(2,1fr); }
  .svc-audience-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .svc-case-idea-grid { grid-template-columns: 1fr; }
  .svc-case-idea-photo { height: 380px; }
  .svc-case-idea-panel { padding: 32px 24px; }
  .svc-case-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 240px; }
  .svc-case-gallery img.tall { grid-row: 1/2; }
  .svc-case-gallery.svc-case-gallery--row { grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: auto; }
  .svc-results-grid { grid-template-columns: repeat(2,1fr); }
  .svc-why-grid { grid-template-columns: repeat(2,1fr); gap: 24px 0; }
  .svc-packages-grid { grid-template-columns: 1fr; }
  .svc-transformation { padding-inline: 24px; }
  .svc-transformation-grid { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px; }
  .svc-transformation-arrow { width: 2px; height: 48px; justify-self: start; }
  .svc-transformation-grid.variant-rocket { grid-template-columns: 1fr; min-height: 0; }
  .svc-tcol { gap: 20px; }
  .svc-transformation-mid { border-inline: 0; border-block: 1px solid var(--border-accent); padding-inline: 0; padding-block: 28px; }
  .svc-rocket-wrap { min-height: 100px; }
  .svc-rocket { left: 40px; }
  .svc-trail { left: 136px; }
  .svc-band--tall { height: 52vh; min-height: 340px; }
  .svc-fcg { grid-template-columns: repeat(2,1fr); }
  .svc-catgrid { grid-template-columns: 1fr 1fr; }
  .svc-split { grid-template-columns: 1fr; gap: 32px; }
  .svc-map-dot { r: 8; }
  .svc-map-halo { r: 15; }
  .svc-process-stack-pin { height: auto; }
  .svc-process-stack-sticky { position: static; height: auto; min-height: 0; padding-block: 80px; padding-top: 80px; }
  .svc-process-stack-gallery { grid-template-columns: 1fr; }
  .svc-stage { height: auto; aspect-ratio: 2/1; perspective: none; touch-action: pan-y; }
  .svc-pcard { width: min(82vw,420px); }
  .svc-stage-dots { position: static; flex-direction: row; justify-content: center; margin-top: 18px; }
  .svc-stage-dots button[aria-current="true"] { width: 26px; height: 8px; }
  .hint-icon--v { display: none; }
  .hint-icon--h { display: inline-flex; }
}
@media (max-width: 560px) {
  .svc-audience-grid { grid-template-columns: 1fr !important; }
  .svc-deliverables-grid { grid-template-columns: 1fr; }
  .svc-why-grid, .svc-results-grid { grid-template-columns: 1fr; }
  .svc-case-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(5,220px); }
  .svc-case-gallery.svc-case-gallery--row { grid-template-columns: 1fr; grid-template-rows: auto; }
  .svc-hero { padding-block: 120px 48px; }
  .svc-map-dot { r: 11; }
  .svc-map-halo { r: 20; }
  .svc-map-hit { r: 26; }
  .svc-split-map { padding: 14px 12px; }
  .svc-map-tip { font-size: 12px; padding: 6px 10px; }
  .svc-fcg { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-pcard { transition: none; }
  .svc-stepinfo .hint i, .svc-fcard, .svc-rocket-svg, .svc-rocket .flame-outer, .svc-rocket .flame-mid, .svc-rocket .flame-core { animation: none; }
  .svc-rocket { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════
   "Услуги" catalog page — hero with cycling word, process-with-icons,
   testimonial carousel, CTA banner.
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero: cycling word ───────────────────────────────────────────── */
/* Breathing room above the title on wide screens (it used to start ~17px
   under the fixed header); phones keep their full-screen centred layout. */
.svc-words-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(72px, 7vw, 112px); padding-bottom: 56px; overflow: visible; }
.svc-words-hero-blob { position: absolute; bottom: -140px; left: -160px; width: 460px; height: 460px; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(circle,rgba(204,255,0,0.3) 0%,rgba(204,255,0,0.1) 45%,rgba(204,255,0,0) 75%); filter: blur(20px); animation: lhFloatA 14s ease-in-out infinite; }
.svc-words-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.svc-words-hero-title { font-family: var(--font-display); font-size: 52px; font-weight: var(--fw-black); line-height: 1.15; letter-spacing: -0.3px; margin: 0 0 22px; }
.svc-word-cycle { position: relative; display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; margin-left: 14px; min-width: 480px; text-align: left; }
.svc-word-cycle .svc-word { position: absolute; left: 0; top: 0; color: var(--accent); white-space: nowrap; transition: transform 0.5s cubic-bezier(.4,1.3,.4,1), opacity 0.5s ease; transform: translateY(60px); opacity: 0; }
.svc-word-cycle .svc-word.is-active { transform: translateY(0); opacity: 1; }
.svc-word-cycle .svc-word.is-prev { transform: translateY(-60px); opacity: 0; }
.svc-words-hero-sub { font-size: 14px; color: var(--text-primary); line-height: 1.5; margin: 0 0 30px; max-width: 420px; }
.svc-words-hero-ctas { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ── Process with icons ──────────────────────────────────────────── */
.svc-process-icons { position: relative; padding-block: 42px; border-top: 1px solid var(--border-subtle); }
.svc-process-icons canvas { position: absolute; top: 0; left: 0; z-index: 0; }
.svc-process-icons-head { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; margin-bottom: 0; }
.svc-process-icons-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 14px; }
.svc-h2--proc { font-size: 34px; line-height: 1.08; letter-spacing: -1px; margin: 0; }
.svc-process-icons-intro { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 6px 0 0; }
.svc-process-icons-grid { position: relative; z-index: 1; margin-top: 42px; padding: 26px 22px; display: grid; grid-template-columns: repeat(6,1fr); gap: 0; align-items: start; background: rgba(6,7,7,0.2); backdrop-filter: blur(2px); border-radius: 8px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.svc-process-icon-step { display: flex; flex-direction: column; gap: 14px; padding-right: 14px; }
.svc-process-icon-step .row { display: flex; align-items: center; gap: 10px; }
.svc-process-icon-step .num { font-size: 12px; font-weight: 800; }
.svc-process-icon-step .rule { flex: 1; height: 1px; border-top: 1px dotted rgba(255,255,255,0.25); }
.svc-process-icon-step .icon-badge { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.svc-process-icon-step .title { font-size: 14px; font-weight: 800; margin: 0; }
.svc-process-icon-step .desc { font-size: 12px; color: var(--text-secondary); line-height: 1.45; margin: 0; }

/* ── Audience fit (icon cards, 3×2) ──────────────────────────────────── */
.svc-audience { padding-block: 42px; border-top: 1px solid var(--border-subtle); }
.svc-audience-head { margin-bottom: 32px; }
.svc-audience-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 14px; }
.svc-audience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.svc-audience-card {
  background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-card);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; transition: var(--transition-smooth);
}
.svc-audience-card:hover { border-color: var(--border-accent); transform: translateY(var(--lift-card)); }
.svc-audience-card .icon-badge { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.svc-audience-card h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 17px; line-height: 1.2; margin: 0; }
.svc-audience-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0; }
/* "Кому не подойдёт" — same card shape, alert treatment instead of the accent color. */
.svc-audience-card.is-warning { background: rgba(255,92,92,0.05); border-color: rgba(255,92,92,0.25); }
.svc-audience-card.is-warning:hover { border-color: rgba(255,92,92,0.5); }
.svc-audience-card.is-warning .icon-badge { background: rgba(255,92,92,0.12); border-color: rgba(255,92,92,0.35); color: #FF5C5C; }
.svc-audience-card.is-warning h3 { color: #FF5C5C; }

/* ── Step-by-step quiz ────────────────────────────────────────────── */
.svc-quiz { position: relative; padding-block: 42px; border-top: 1px solid var(--border-subtle); perspective: 1200px; }
.svc-quiz-head { position: relative; z-index: 1; margin-bottom: 32px; text-align: center; }
.svc-quiz-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 14px; }
.svc-quiz-bg {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: 0; pointer-events: none; overflow: hidden;
}
.svc-quiz-silk { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-quiz-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}
/* Static fallback (prefers-reduced-motion or no canvas support) — the silk
   canvas animation is skipped entirely rather than just frozen, so this
   stands in as the section's background on its own; see
   initQuizSilkBackground in site.js. Same base gradient stops as the
   original reference component. */
.svc-quiz-bg.is-static {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}
.svc-quiz-card {
  position: relative; z-index: 1; max-width: 560px; margin: 0 auto; background: var(--surface-card); border: 1px solid var(--border-card);
  border-radius: var(--radius-card); padding: 40px 36px 32px; overflow: hidden;
  transform-style: preserve-3d; transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.svc-quiz-card.is-tilting { transition: box-shadow 0.3s ease; box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 40px -12px var(--lime-glow); }
.svc-quiz-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.08); }
.svc-quiz-progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.35s ease; }
.svc-quiz-back {
  position: absolute; top: 20px; left: 20px; width: 36px; height: 36px; border-radius: 50%; z-index: 2;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-smooth);
}
.svc-quiz-back:hover { border-color: var(--border-accent); color: var(--accent); }
.svc-quiz-back[hidden] { display: none; }
.svc-quiz-steps { position: relative; }
.svc-quiz-step { display: none; }
.svc-quiz-step.is-active { display: block; animation: lhQuizFadeIn 0.35s ease; }
@keyframes lhQuizFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.svc-quiz-step-num { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.svc-quiz-question { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 22px; line-height: 1.25; margin: 0 0 24px; text-align: center; color: var(--accent); }
.svc-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.svc-quiz-option {
  width: 100%; text-align: left; padding: 15px 18px; border-radius: var(--radius-img); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-card); color: var(--text-primary); font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: var(--transition-smooth);
}
.svc-quiz-option:hover { border-color: var(--border-accent); background: rgba(204,255,0,0.05); }
.svc-quiz-option.is-selected { border-color: var(--accent); background: rgba(204,255,0,0.12); color: var(--accent); }
.svc-quiz-final-sub { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 24px; text-align: center; }
.svc-quiz-final-form .lh-form-field { margin-bottom: 14px; }
.svc-quiz-final-form .lh-consent-row { margin-bottom: 18px; }
.svc-quiz-success { position: relative; overflow: hidden; text-align: center; padding-block: 12px; }
.svc-quiz-success-icon {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: rgba(204,255,0,0.12);
  border: 1px solid rgba(204,255,0,0.3); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.svc-quiz-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.svc-quiz-confetti-piece {
  position: absolute; top: -14px; border-radius: 2px; opacity: 0.95;
  animation-name: lhQuizConfettiFall; animation-timing-function: cubic-bezier(0.35,0,0.65,1); animation-fill-mode: forwards;
}
@keyframes lhQuizConfettiFall {
  to { transform: translate(var(--drift, 0px), 220px) rotate(var(--rot, 360deg)); opacity: 0; }
}
@media (max-width: 560px) {
  .svc-quiz-card { padding: 56px 20px 28px; }
  .svc-quiz-question { font-size: 19px; }
}

/* ── Pricing (horizontal-scroll tariff cards) ────────────────────────── */
.svc-pricing { padding-block: 48px; border-top: 1px solid var(--border-subtle); }
.svc-pricing-head { margin-bottom: 32px; max-width: 640px; }
.svc-pricing-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 14px; }
.svc-pricing-subtitle { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 12px 0 0; }
.svc-pricing-track {
  /* overflow-x clips vertically too: the top padding leaves room for the
     badge (top: -12px) plus the hover lift (--lift-card: -6px). */
  /* align-items: flex-start — opening one card's breakdown grows only that
     card; collapsed cards keep their common height. */
  display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; padding: 22px 6px 22px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) var(--border-subtle);
}
.svc-pricing-track::-webkit-scrollbar { height: 5px; }
.svc-pricing-track::-webkit-scrollbar-track { background: var(--border-subtle); border-radius: 999px; }
.svc-pricing-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.svc-pricing-card {
  position: relative; scroll-snap-align: start; flex-shrink: 0; width: 340px;
  background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-card);
  padding: 28px 24px 24px; display: flex; flex-direction: column; transition: var(--transition-smooth);
}
.svc-pricing-card:hover { border-color: var(--border-accent); transform: translateY(var(--lift-card)); }
.svc-pricing-card.is-highlighted { border-color: var(--border-accent); background: rgba(204,255,0,0.04); }
.svc-pricing-badge {
  position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--text-on-accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 12px; border-radius: var(--radius-pill);
}
.svc-pricing-card-head { margin-bottom: 18px; }
.svc-pricing-name { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 19px; margin: 0 0 8px; }
.svc-pricing-price { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 26px; color: var(--accent); margin-bottom: 10px; }
.svc-pricing-audience { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0; min-height: 62px; }
.svc-pricing-count {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: var(--text-secondary); text-transform: uppercase;
  padding-top: 14px; border-top: 1px solid var(--border-subtle); margin-bottom: 10px;
}
/* Reserved for 5 lines so collapsed cards come out the same height (the
   track no longer stretches them — see .svc-pricing-track). */
.svc-pricing-summary { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 14px; min-height: 7.5em; }
.svc-pricing-toggle {
  display: block; background: none; border: none; padding: 0; margin: 0 0 22px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit;
}
.svc-pricing-toggle:hover { color: var(--accent-hover); }
.svc-pricing-artifacts {
  list-style: none; margin: 14px 0; padding: 0; column-count: 2; column-gap: 22px;
}
.svc-pricing-artifact {
  display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.35; color: var(--text-secondary);
  margin: 0 0 9px; break-inside: avoid;
}
.svc-pricing-artifact.is-full { color: var(--text-primary); }
.svc-pricing-artifact.is-full svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.svc-pricing-artifact.is-partial svg { color: var(--text-secondary); flex-shrink: 0; margin-top: 2px; }
.svc-pricing-artifact.is-none { opacity: 0.45; }
.svc-pricing-artifact-dash { width: 14px; flex-shrink: 0; text-align: center; color: var(--text-tertiary); margin-top: 1px; }
.svc-pricing-group-title {
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-tertiary); margin: 8px 0 5px; break-after: avoid-column; break-inside: avoid;
}
.svc-pricing-group-title:first-child { margin-top: 0; }
.svc-pricing-card .lh-btn { width: 100%; margin-top: auto; }
/* Pricing comparison table (svc_pricing_table): services down the left
   (sticky while the table scrolls sideways), tiers across the top, a lime
   dot with a check where a tier includes the service. */
.svc-ptable { padding-block: 48px; border-top: 1px solid var(--border-subtle); }
/* #prices: a direct link (other page → services-01.php#prices) lands below the fixed header. */
#prices { scroll-margin-top: 90px; }
.svc-ptable-scroll {
  overflow-x: auto; border: 1px solid var(--border-card); border-radius: var(--radius-card); background: var(--surface-card);
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--border-subtle);
  /* Without this the sticky columns leak the table's full width into the
     page on phones: the browser widens the layout viewport to ~830px and
     the whole page scrolls sideways. */
  contain: paint;
}
/* Compact on purpose (30+ rows): small type, tight cells, a wide service
   column so names stay on one line. */
.svc-ptable-table {
  width: 100%; min-width: calc(220px + var(--cols, 7) * 122px);
  border-collapse: separate; border-spacing: 0; font-size: 11.5px;
}
.svc-ptable-table [hidden] { display: none; }
/* Toolbar: segment chips (hide columns). */
.svc-ptable-toolbar { margin-bottom: 14px; }
.svc-ptable-toolbar .svc-pricing-filters { padding-bottom: 0; margin-bottom: 0; min-width: 0; }
/* Legend under the table: what each mark means. */
.svc-ptable-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 12px 0 0; padding: 0; font-size: 12px; color: var(--text-secondary); }
.svc-ptable-legend li { display: inline-flex; align-items: center; gap: 8px; }
.svc-ptable-table th, .svc-ptable-table td { padding: 4px 10px; border-bottom: 1px solid var(--border-subtle); }
.svc-ptable-table tbody tr:last-child > * { border-bottom: none; }
.svc-ptable-corner, .svc-ptable-service {
  position: sticky; left: 0; z-index: 1; background: var(--surface-card); text-align: left;
  width: 380px; min-width: 220px; border-right: 1px solid var(--border-subtle);
}
.svc-ptable-corner { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); vertical-align: bottom; padding-bottom: 8px; }
.svc-ptable-service { font-weight: 500; color: var(--text-primary); line-height: 1.25; }
.svc-ptable-tier { text-align: center; vertical-align: bottom; padding-top: 10px; padding-bottom: 8px; min-width: 96px; }
.svc-ptable-badge {
  display: inline-block; margin-bottom: 4px; background: var(--accent); color: var(--text-on-accent);
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; padding: 2px 6px; border-radius: var(--radius-pill); white-space: nowrap;
}
.svc-ptable-name { display: block; font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 12px; line-height: 1.2; margin-bottom: 3px; }
.svc-ptable-price { display: block; font-family: var(--font-display); font-weight: var(--fw-black); font-size: 13px; color: var(--accent); white-space: nowrap; }
.svc-ptable-group th {
  text-align: left; padding-top: 9px; padding-bottom: 3px; background: var(--surface-card);
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-tertiary);
}
/* The cell spans the whole (wider than the screen) row, so it can't stick
   itself — its label does, staying in view while the table scrolls. */
.svc-ptable-group th > span { position: sticky; left: 12px; }
.svc-ptable-cell { text-align: center; }
.svc-ptable-tier.is-highlighted, .svc-ptable-cell.is-highlighted { background: rgba(204,255,0,0.05); }
.svc-ptable-mark { display: inline-flex; align-items: center; justify-content: center; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; }
.svc-ptable-mark.is-full { background: var(--accent); color: var(--text-on-accent); }
.svc-ptable-mark.is-partial { border: 1px solid var(--accent); color: var(--accent); }
/* Optional extra: grey filled dot with a plus — available, not part of the plan. */
.svc-ptable-mark.is-optional { background: var(--text-tertiary); color: var(--surface-card); }
.svc-pricing-artifact-optional { width: 14px; height: 14px; flex-shrink: 0; margin: 1px 1px 0; }
.svc-pricing-artifact.is-optional { color: var(--text-secondary); }
/* A value instead of the check ("2 мес.", "12 мес.") — same lime as the mark. */
.svc-ptable-value { font-weight: 800; color: var(--accent); white-space: nowrap; }
.svc-pricing-artifact-value { font-weight: 700; color: var(--accent); white-space: nowrap; }
.svc-ptable-mark.is-none { width: auto; height: auto; border-radius: 0; color: var(--text-secondary); font-size: 12px; line-height: 1; }
.svc-ptable-table tbody tr:not(.svc-ptable-group):hover > * { background: rgba(255,255,255,0.03); }
.svc-ptable-table tbody tr:not(.svc-ptable-group):hover > .svc-ptable-service { background: var(--surface-card); color: var(--accent); }
.svc-ptable-cta { margin-top: 24px; }
/* Wide screens: the table fits, so the wrapper drops its scroll (which
   would trap sticky positioning) and the tier names stay pinned under the
   fixed site header (71px) while the 30+ rows scroll past. */
@media (min-width: 1200px) {
  .svc-ptable-scroll { overflow: visible; contain: none; }
  .svc-ptable-table thead th { position: sticky; top: 71px; z-index: 2; background: var(--surface-card); border-bottom-color: var(--border-card); }
  .svc-ptable-table thead th.is-highlighted { background: linear-gradient(rgba(204,255,0,0.05), rgba(204,255,0,0.05)), var(--surface-card); }
  .svc-ptable-corner { z-index: 3; border-top-left-radius: var(--radius-card); }
  .svc-ptable-table thead th:last-child { border-top-right-radius: var(--radius-card); }
}
@media (max-width: 560px) {
  .svc-ptable-corner, .svc-ptable-service { width: 160px; min-width: 160px; font-size: 11px; }
  .svc-ptable-table { min-width: calc(160px + var(--cols, 7) * 100px); }
}

/* "Who it's for" chips above the track (look borrowed from the blog's
   category chips); a hidden card is skipped by the flex track. */
.svc-pricing-filters { margin-bottom: 0; }
.svc-pricing-filter-count { opacity: 0.55; margin-left: 4px; font-weight: var(--fw-bold); }
.svc-pricing-card[hidden] { display: none; }
@media (max-width: 560px) {
  .svc-pricing-card { width: 290px; padding: 24px 20px 20px; }
  .svc-pricing-artifacts { column-count: 1; }
}

/* ── Testimonials ─────────────────────────────────────────────────── */
.svc-testimonials { padding-block: 56px; border-top: 1px solid var(--border-subtle); }
.svc-testimonials-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.svc-testimonials-stack { position: relative; height: 280px; perspective: 1000px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.svc-testimonials-stack.is-dragging { cursor: grabbing; }
.svc-testimonial-avatar { position: absolute; top: 50%; left: 50%; margin-top: -140px; margin-left: -95px; width: 190px; height: 280px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); transition: all 0.6s cubic-bezier(.4,2,.3,1); transform: scale(0.6); opacity: 0; z-index: 1; }
.svc-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.svc-testimonial-avatar.is-active { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; z-index: 3; filter: none; }
.svc-testimonial-avatar.is-left { transform: translateX(-70px) rotate(-8deg) scale(0.88); opacity: 0.85; z-index: 2; filter: blur(2px) brightness(0.6); }
.svc-testimonial-avatar.is-right { transform: translateX(70px) rotate(8deg) scale(0.88); opacity: 0.85; z-index: 2; filter: blur(2px) brightness(0.6); }
.svc-testimonial-quote { font-size: 19px; line-height: 1.55; font-weight: 600; margin: 0 0 26px; min-height: 110px; }
.svc-testimonial-name { font-size: 16px; font-weight: 800; margin: 0 0 2px; }
.svc-testimonial-role { font-size: 13px; color: var(--text-secondary); font-weight: 600; margin: 0 0 30px; }
.svc-testimonials-nav { display: flex; gap: 14px; }
.svc-testimonials-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; }
.svc-testimonials-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ── CTA banner ───────────────────────────────────────────────────── */
.svc-cta-banner-wrap { padding-block: 42px 56px; }
.svc-cta-banner { border-radius: 20px; background: var(--black-elevated); padding: 48px 56px; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: center; }
.svc-cta-banner h2 { font-family: var(--font-display); font-size: 30px; font-weight: var(--fw-black); line-height: 1.1; letter-spacing: -0.8px; margin: 0; }
.svc-cta-banner p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.svc-cta-banner-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.svc-cta-social { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.svc-cta-social .note { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.svc-cta-social .row { display: flex; gap: 10px; }
.svc-cta-social .row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; }
.svc-cta-social .row a:hover { border-color: var(--accent); color: var(--accent); }

/* ── О компании: четыре направления (interactive switcher) ─────────── */
.about-directions-grid { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 48px; align-items: stretch; }
.about-directions-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--border-subtle); }
.about-directions-item { text-align: left; background: none; border: none; border-top: 1px solid var(--border-subtle); padding: 22px 0; cursor: pointer; color: inherit; font-family: inherit; }
.about-directions-item .row { display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; letter-spacing: -0.3px; color: #fff; transition: var(--transition-smooth); }
.about-directions-item .row .title { flex: 1; }
.about-directions-item .num { font-size: 14px; font-weight: 700; }
.about-directions-item .desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; max-width: 420px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, margin-top 0.4s ease; }
.about-directions-item:hover .row, .about-directions-item.is-active .row { color: var(--accent); }
.about-directions-item.is-active .desc { max-height: 120px; opacity: 1; margin-top: 12px; }
.about-directions-media { position: relative; border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--border-card); min-height: 480px; }
.about-directions-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.about-directions-media img.is-active { opacity: 1; }

/* ── О компании: история роста компетенций ──────────────────────────── */
.about-story-text { max-width: 760px; margin-bottom: 44px; }
.about-story-checkpoints { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding-block: 28px; }

/* ── О компании: галерея внутренней кухни ────────────────────────────── */
.about-gallery-title { max-width: 560px; }

/* ── Кейс: «Что мы сделали» + изображение справа (напр. витрина магазина) ── */
.case-approach--aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 56px; align-items: start; }
.case-approach-aside { position: sticky; top: 100px; padding-top: 34px; }
.case-approach-aside img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .case-approach--aside { grid-template-columns: 1fr; gap: 28px; }
  .case-approach-aside { position: static; padding-top: 0; max-width: 420px; }
}

/* ── Кейс: отзывы покупателей с фото ─────────────────────────────────── */
.case-reviews { padding-block: 42px; }
.case-reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.case-reviews-title { max-width: 620px; }
.case-reviews-sub { max-width: 560px; margin-top: 12px; color: var(--text-secondary); line-height: 1.55; }
.case-reviews-nav { display: flex; gap: 14px; flex-shrink: 0; }
.case-reviews-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: var(--transition-smooth); }
.case-reviews-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.case-reviews-nav button:disabled { opacity: 0.3; cursor: default; }
.case-reviews.is-static .case-reviews-nav { display: none; }
.case-reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.case-reviews-track::-webkit-scrollbar { display: none; }
.case-review { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--black-surface); border: 1px solid var(--line-card-glass); }
.case-review-photo { aspect-ratio: 3 / 4; background: var(--black-elevated); }
.case-review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-review-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; flex: 1; }
.case-review-stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; line-height: 1; min-height: 14px; }
.case-review-stars span { color: var(--gray-dim); }
.case-review-text { font-size: 15px; line-height: 1.5; color: var(--text-primary); flex: 1; }
.case-review-who { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line-subtle); }
.case-review-who .name { font-weight: 600; font-size: 14px; }
.case-review-who .meta { font-size: 12px; color: var(--text-secondary); }
/* Marketplace review screenshots, shown whole: two per view on desktop. */
.case-reviews--screens .case-reviews-track { grid-auto-columns: calc((100% - 16px) / 2); align-items: start; }
.case-review-shot { scroll-snap-align: start; display: block; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; }
.case-review-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1180 / 612; object-fit: cover; object-position: left top; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.case-review-shot:hover img { transform: scale(1.02); }
/* Full-size viewer for review screenshots */
.lh-lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); backdrop-filter: blur(6px); padding: 64px 84px; }
.lh-lightbox[hidden] { display: none; }
.lh-lightbox-stage { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lh-lightbox-stage img { max-width: 100%; max-height: 100%; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lh-lightbox-close, .lh-lightbox-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; cursor: pointer; font-size: 18px; transition: var(--transition-smooth); z-index: 1; }
.lh-lightbox-close:hover, .lh-lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }
.lh-lightbox-close { top: 16px; right: 16px; }
.lh-lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lh-lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lh-lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--text-secondary); letter-spacing: 1px; }
@media (max-width: 640px) {
  .lh-lightbox { padding: 64px 8px; }
  .lh-lightbox-nav.prev, .lh-lightbox-nav.next { top: auto; bottom: 16px; transform: none; }
  .lh-lightbox-nav.prev { left: calc(50% - 108px); }
  .lh-lightbox-nav.next { right: calc(50% - 108px); }
  .lh-lightbox-count { bottom: 28px; }
}
@media (max-width: 1024px) { .case-reviews-track { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); } .case-reviews--screens .case-reviews-track { grid-auto-columns: 82%; } }
@media (max-width: 640px) {
  .case-reviews-head { align-items: flex-start; }
  .case-reviews-nav { display: none; }
  .case-reviews-track { grid-auto-columns: 78%; gap: 12px; }
  .case-reviews--screens .case-reviews-track { grid-auto-columns: 92%; }
}
/* Gallery as a swipeable strip ("Лента" in the admin): photos at their own
   proportions — e.g. marketplace product cards with baked-in rounded corners. */
.about-gallery--slider .about-gallery-track { grid-auto-columns: calc((100% - 3 * 16px) / 4); align-items: start; }
.about-gallery-track img { display: block; width: 100%; height: auto; scroll-snap-align: start; }
@media (max-width: 1024px) { .about-gallery--slider .about-gallery-track { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); } }
@media (max-width: 640px) { .about-gallery--slider .about-gallery-track { grid-auto-columns: 64%; } }

/* ── Контакты: Telegram + email по темам ─────────────────────────────── */
.contact-telegram-card {
  display: flex; align-items: center; gap: 22px; margin: 28px 0 8px; text-decoration: none; color: inherit;
  padding: 24px 28px; border-radius: var(--radius-media); border: 1px solid var(--border-card);
  background: var(--black-elevated); transition: var(--transition-smooth);
}
.contact-telegram-card:hover { border-color: var(--accent); }
.contact-telegram-card .icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; color: var(--accent);
  background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
}
.contact-telegram-card .copy { flex: 1; min-width: 0; }
.contact-telegram-card .title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 18px; margin-bottom: 4px; }
.contact-telegram-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.contact-telegram-card .cta { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; flex-shrink: 0; }

.contact-channel-list { margin-top: 36px; border-top: 1px solid var(--border-subtle); }
.contact-telegram-card .contact-meta { margin-top: 8px; color: var(--accent); font-weight: 600; }
.contact-tg-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--action); color: var(--text-on-accent); border-radius: 999px; padding: 11px 18px; font-weight: 700; white-space: nowrap; }
.contact-tg-handle { color: var(--text-secondary); font-weight: 600; }
.contact-main-email { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 22px 0; border-bottom: 1px solid var(--border-subtle); }
.contact-main-email .label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.contact-main-email .email { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 20px; margin-left: auto; transition: var(--transition-smooth); }
.contact-main-email:hover .email { color: var(--accent); }
.contact-more { margin-top: 18px; }
.contact-more summary { cursor: pointer; font-weight: 700; color: var(--text-secondary); padding: 10px 0; list-style: none; }
.contact-more summary::-webkit-details-marker { display: none; }
.contact-more summary::before { content: '▸ '; color: var(--accent); }
.contact-more[open] summary::before { content: '▾ '; }
.contact-more .contact-channel-list { margin-top: 12px; }
.contact-channel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 24px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: inherit;
}
.contact-channel-row .left { display: flex; align-items: flex-start; gap: 18px; }
.contact-channel-row .num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 16px; padding-top: 2px; flex-shrink: 0; }
.contact-channel-row .title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 19px; color: #fff; transition: var(--transition-smooth); }
.contact-channel-row .desc { font-size: 13px; color: var(--text-secondary); margin: 6px 0 0; max-width: 420px; }
.contact-channel-row .right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.contact-channel-row .email { font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: var(--transition-smooth); }
.contact-channel-row:hover .title, .contact-channel-row:hover .email { color: var(--accent); }

/* ── Nav active state (current page) ─────────────────────────────── */
.lh-nav a.is-current, .lh-footer-nav a.is-current { color: #fff; position: relative; }
.lh-nav a.is-current::after { content: ''; position: absolute; bottom: -18px; left: 0; right: 0; height: 2px; background: var(--accent); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .svc-process-icons-head, .svc-testimonials-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .svc-process-icons-grid { grid-template-columns: repeat(3,1fr); row-gap: 28px; }
  .svc-cta-banner { grid-template-columns: 1fr !important; text-align: center; }
  .svc-cta-banner-actions, .svc-cta-social { align-items: center !important; }
  .svc-word-cycle { min-width: 0; display: block; margin-left: 0; margin-top: 4px; text-align: center; }
  .svc-word-cycle .svc-word { left: 50%; transform: translate(-50%,60px); }
  .svc-word-cycle .svc-word.is-active { transform: translate(-50%,0); }
  .svc-word-cycle .svc-word.is-prev { transform: translate(-50%,-60px); }
  .svc-words-hero-title { font-size: 38px !important; }
  .about-directions-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .about-directions-media { min-height: 340px; order: -1; }
  .about-story-checkpoints { grid-template-columns: repeat(2,1fr) !important; row-gap: 24px; }
  .contact-channel-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-channel-row .right { align-self: flex-end; }
  .contact-telegram-card { flex-wrap: wrap; }
  .contact-telegram-card .cta { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .contact-main-email { flex-wrap: wrap; gap: 6px 16px; }
  .contact-main-email .email { margin-left: 0; font-size: 18px; }
}
@media (max-width: 560px) {
  .svc-process-icons-grid { grid-template-columns: repeat(2,1fr); padding: 20px 16px; }
  .svc-testimonials-stack { height: 220px; }
  .svc-testimonial-avatar { width: 150px; height: 220px; margin-top: -110px; margin-left: -75px; }
}

/* ══════════════════════════════════════════════════════════════════
   Fan-arranged case carousel (cases.php witrina) — GSAP-driven.
   ══════════════════════════════════════════════════════════════════ */
.svc-fan-section { padding-block: 20px 56px; }
.svc-fan { position: relative; }
.svc-fan-track {
  position: relative; height: 46rem; display: flex; align-items: center; justify-content: center;
  /* Vertical swipes scroll the page; horizontal ones drag the deck (case-fan.js). */
  touch-action: pan-y; overscroll-behavior-x: contain;
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  /* The cards stack with z-index up to 2000+; keep that inside the deck so
     they never cover the fixed header, the mobile menu, modals or the
     cookie bar. */
  isolation: isolate;
}
.fan-card {
  position: absolute; top: 50%; left: 50%; margin-top: -16rem; margin-left: -12rem;
  width: 24rem; height: 32rem; border-radius: var(--radius-media); overflow: hidden;
  border: 1px solid var(--line-card-glass); box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  cursor: pointer; will-change: transform, opacity; backface-visibility: hidden;
  -webkit-touch-callout: none;
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.svc-fan.is-dragging .fan-card { cursor: grabbing; }
.fan-card-caption {
  position: absolute; inset: auto 0 0 0; padding: 20px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0) 70%);
  display: flex; flex-direction: column; gap: 5px;
}
.fan-card-caption .cat { font-size: 12px; font-weight: 800; letter-spacing: 0.8px; color: var(--accent); }
.fan-card-caption .ttl { font-size: 17px; font-weight: 700; line-height: 1.25; }
.svc-fan-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.svc-fan-nav[hidden] { display: none; }
.svc-fan-arrow {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
/* Hover colours only where there is a real hover — on phones they'd stick after a tap. */
@media (hover: hover) { .svc-fan-arrow:hover { border-color: var(--accent); color: var(--accent); } }
.svc-fan-arrow:active { transform: scale(0.92); }
.svc-fan-dots { display: flex; }
/* The button is the tap target (18×32), the dot itself stays 7px. */
.svc-fan-dot {
  width: 18px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.svc-fan-dot::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.18);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.svc-fan-dot:hover::after { background: rgba(255,255,255,0.4); }
.svc-fan-dot.is-active::after { background: var(--accent); transform: scale(1.3); }
.svc-fan-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 6px; }

@media (max-width: 860px) {
  .fan-card { width: 17rem; height: 23rem; margin-top: -11.5rem; margin-left: -8.5rem; }
  .svc-fan-track { height: 28rem; }
  .fan-card-caption .ttl { font-size: 14px; }
}
@media (max-width: 480px) {
  /* Narrower than the screen, so the neighbouring cards peek in at both
     edges — the cue that the deck can be swiped. */
  .svc-fan { --fan-w: min(80vw, calc(min(62vh, 540px) * 0.74)); --fan-h: calc(var(--fan-w) / 0.74); }
  .svc-fan-nav { gap: 10px; }
  .svc-fan-arrow { width: 44px; height: 44px; }
  .fan-card { width: var(--fan-w); height: var(--fan-h); margin-top: calc(var(--fan-h) / -2); margin-left: calc(var(--fan-w) / -2); }
  .svc-fan-track { height: var(--fan-h); }
}

/* ── Case detail: pull-quote ──────────────────────────────────────── */
.svc-case-quote { padding-block: 56px; border-top: 1px solid var(--border-subtle); max-width: 760px; }
.svc-case-quote .mark { font-family: var(--font-display); font-size: 64px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.svc-case-quote .text { font-size: 22px; font-weight: 600; line-height: 1.4; margin: 0 0 24px; }
.svc-case-quote .who { display: flex; align-items: center; gap: 12px; }
.svc-case-quote .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.svc-case-quote .who .name { font-size: 14px; font-weight: 800; }
.svc-case-quote .who .role { font-size: 12.5px; color: var(--text-secondary); }

/* ── Legal pages (policy / rules) ─────────────────────────────────── */
.lh-legal { max-width: 760px; padding-block: 56px 96px; }
.lh-legal-head { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border-subtle); }
.lh-legal-head h1 { font-family: var(--font-display); font-size: 36px; font-weight: var(--fw-black); line-height: 1.08; letter-spacing: -0.8px; margin: 0 0 10px; }
.lh-legal-updated { font-size: var(--fs-body-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
.lh-legal-intro p { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 16px; }
.lh-legal-block { padding-block: 28px; border-top: 1px solid var(--border-subtle); }
.lh-legal-block h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-size: 19px; font-weight: var(--fw-black); margin: 0 0 14px; }
.lh-legal-block h2 .num { font-size: var(--fs-label); font-weight: var(--fw-bold); color: var(--accent); letter-spacing: 0.5px; }
.lh-legal-block p { font-size: var(--fs-body); line-height: 1.65; color: var(--text-secondary); margin: 0 0 14px; }
.lh-legal-block p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════
   Blog / HYPE! Journal
   ══════════════════════════════════════════════════════════════════ */

/* Progressive-enhancement scroll reveal: only takes an element out of its
   resting (fully visible) state once JS has confirmed it's ready to bring
   it back in — no JS, no observer support, or reduced-motion means content
   just stays visible, never stuck at opacity:0. */
html.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
html.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal { opacity: 1; transform: none; }
}

.blog-hero-eyebrow { font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-secondary); margin-bottom: 18px; }
.blog-hero { padding-block: 48px 8px; }
.blog-hero-title { font-family: var(--font-display); font-size: var(--fs-display); font-weight: var(--fw-black); line-height: var(--lh-display); letter-spacing: var(--ls-display); margin: 0 0 24px; max-width: 900px; text-wrap: balance; }
.blog-hero-sub { font-size: 18px; line-height: 1.5; color: var(--text-primary); max-width: 560px; margin: 0; }

.blog-featured { padding-block: 40px 64px; }
.blog-featured-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--border-card); position: relative; min-height: 460px; }
.blog-featured-card .media { position: relative; }
.blog-featured-card .media img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; transition: transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.blog-featured-card:hover .media img { transform: scale(var(--scale-img-hover)); }
.blog-featured-copy { background: var(--black-surface); padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.blog-featured-copy .meta { font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: var(--ls-label); color: var(--accent); }
.blog-featured-copy h2 { font-family: var(--font-display); font-size: 30px; font-weight: var(--fw-black); line-height: 1.12; letter-spacing: -0.6px; margin: 0; text-wrap: balance; }
.blog-featured-copy p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ── Article card (grid / picks / review / related) ──────────────── */
.blog-card { display: flex; flex-direction: column; }
.blog-card .media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-card); margin-bottom: 16px; }
.blog-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.blog-card:hover .media img { transform: scale(var(--scale-img-hover)); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .meta { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--accent); letter-spacing: var(--ls-micro); }
.blog-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: var(--fw-extra); line-height: 1.2; margin: 0; text-wrap: balance; }
.blog-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; flex: 1; }
.blog-card-read { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-meta); font-weight: var(--fw-semi); color: var(--text-secondary); margin-top: 4px; }
.blog-card:hover .blog-card-read { color: var(--text-primary); }
.blog-card:hover .blog-card-read .lh-arrow-circle { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.blog-card[hidden] { display: none; }

.lh-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lh-404-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }

/* ── Categories + search + editorial grid ─────────────────────────── */
.blog-grid-section { padding-block: 24px 72px; }
.blog-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.blog-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 10px 18px; color: var(--text-tertiary); min-width: 260px; }
.blog-search input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 13.5px; font-family: inherit; }
.blog-search input::placeholder { color: var(--text-tertiary); }
.blog-search:focus-within { border-color: var(--accent); color: var(--accent); }
.blog-categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 18px; margin-bottom: 4px; scrollbar-width: none; }
.blog-categories::-webkit-scrollbar { display: none; }
.blog-category {
  flex-shrink: 0; padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle);
  background: none; color: var(--text-secondary); font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: 0.4px;
  cursor: pointer; transition: var(--transition-smooth); white-space: nowrap;
}
.blog-category:hover { border-color: var(--text-primary); color: var(--text-primary); }
.blog-category.is-active { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }

.blog-editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; align-items: start; --masonry-gap: 64px; }
/* Mosaic (blog witrina + home teaser): once site.js measures the cards,
   rows become 4px tracks and each card spans as many as its own height,
   so shorter cards pull the next one up — columns of uneven height, no
   holes, reading order still left-to-right. Without JS it's a plain grid. */
.lh-masonry.is-masonry { grid-auto-rows: 4px; row-gap: 0; align-items: start; }
.lh-masonry.is-masonry > * { margin-bottom: var(--masonry-gap, 32px); }
.lh-blog-grid.lh-masonry { --masonry-gap: 28px; }
.blog-empty { text-align: center; padding-block: 48px; color: var(--text-tertiary); font-size: 14px; }

/* ── HYPE! Picks ────────────────────────────────────────────────────── */
.blog-picks { position: relative; min-height: 560px; display: flex; align-items: flex-end; margin-block: 8px; overflow: hidden; }
.blog-picks-media { position: absolute; inset: 0; }
.blog-picks-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-picks-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,7,7,0.95) 10%, rgba(6,7,7,0.35) 55%, rgba(6,7,7,0.55) 100%); }
.blog-picks-inner { position: relative; z-index: 1; padding-block: 56px; width: 100%; }
.blog-picks-copy { max-width: 640px; }
.blog-picks-title { font-family: var(--font-display); font-size: 46px; font-weight: var(--fw-black); line-height: 1.04; letter-spacing: -1.2px; margin: 0 0 16px; text-wrap: balance; }
.blog-picks-desc { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.82); margin: 0 0 26px; max-width: 520px; }

/* ── Case study integration ───────────────────────────────────────── */
.blog-case-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 72px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.blog-case-title { font-family: var(--font-display); font-size: 34px; font-weight: var(--fw-black); line-height: 1.08; letter-spacing: -0.8px; margin: 0 0 20px; text-wrap: balance; }
.blog-case-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: 0.6px; color: var(--text-tertiary); margin-bottom: 20px; }
.blog-case-chain .sep { display: inline-flex; color: var(--accent); }
.blog-case-desc { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 26px; max-width: 440px; }
.blog-case-media { display: block; aspect-ratio: 4/3; border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--border-card); }
.blog-case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.blog-case-media:hover img { transform: scale(var(--scale-img-hover)); }

/* ── Collections / Guides — horizontal ────────────────────────────── */
.blog-collections { padding-block: 56px; }
.blog-collections-track {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 18px; margin-top: 22px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--border-subtle);
}
.blog-collections-track::-webkit-scrollbar { height: 5px; }
.blog-collections-track::-webkit-scrollbar-track { background: var(--border-subtle); border-radius: 999px; }
.blog-collections-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.blog-collections-track::-webkit-scrollbar-thumb:hover { background: var(--text-primary); }
.blog-collections-item {
  scroll-snap-align: start; flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
  min-width: 280px; transition: var(--transition-smooth);
}
.blog-collections-item:hover { border-color: var(--text-primary); }
.blog-collections-item:hover .lh-arrow-circle { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.blog-collections-item .num { font-family: var(--font-display); font-size: 15px; font-weight: var(--fw-black); color: var(--accent); flex-shrink: 0; }
.blog-collections-item .title { flex: 1; font-size: 13.5px; font-weight: var(--fw-semi); line-height: 1.3; }

/* ── HYPE! Review ──────────────────────────────────────────────────── */
.blog-review { padding-block: 64px; }
.blog-review-head { margin-bottom: 32px; }
.blog-review-title { font-family: var(--font-display); font-size: 36px; font-weight: var(--fw-black); line-height: 1.06; letter-spacing: -0.8px; margin: 14px 0 0; text-wrap: balance; }
.blog-review-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-subtle); border-radius: var(--radius-media); overflow: hidden; }
.blog-review-item { display: grid; grid-template-columns: 90px 160px 1fr; align-items: center; gap: 24px; background: var(--bg-page); padding: 22px 26px; }
.blog-review-item .num { font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-black); color: var(--text-tertiary); }
.blog-review-item .media { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; }
.blog-review-item .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.blog-review-item:hover .media img { transform: scale(var(--scale-img-hover)); }
.blog-review-item:hover .num { color: var(--accent); }
.blog-review-copy h3 { font-family: var(--font-display); font-size: 18px; font-weight: var(--fw-extra); margin: 0 0 6px; }
.blog-review-copy p { font-size: 13px; color: var(--text-secondary); margin: 0 0 10px; }

/* ── HYPE! Insights ────────────────────────────────────────────────── */
.blog-insights { padding-block: 56px; }
.blog-insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.blog-insight-card {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-media); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px; transition: var(--transition-smooth); min-height: 180px; justify-content: center;
}
.blog-insight-card:hover { border-color: var(--accent); }
.blog-insight-card .num { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--ls-micro); color: var(--text-tertiary); }
.blog-insight-card .stat { font-family: var(--font-display); font-size: 48px; font-weight: var(--fw-black); color: var(--accent); line-height: 1; }
.blog-insight-card p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.blog-insight-card blockquote { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }

/* ── Newsletter ────────────────────────────────────────────────────── */
.blog-newsletter { padding-block: 72px 88px; }
.blog-newsletter-grid { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 48px; align-items: center; }
.blog-newsletter-copy { max-width: 560px; }
.blog-newsletter-form { width: 100%; }
.blog-newsletter-title { font-family: var(--font-display); font-size: 40px; font-weight: var(--fw-black); line-height: 1.05; letter-spacing: -1px; margin: 14px 0 16px; text-wrap: balance; }
.blog-newsletter-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.blog-newsletter-field { display: flex; gap: 10px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 6px 6px 6px 22px; transition: var(--transition-smooth); }
.blog-newsletter-field:focus-within { border-color: var(--accent); }
.blog-newsletter-field.is-invalid { border-color: #FF5C5C; }
.blog-newsletter-field input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-size: 14px; font-family: inherit; min-width: 0; }
.blog-newsletter-field input::placeholder { color: var(--text-tertiary); }
.blog-newsletter-field .lh-btn[disabled] { opacity: 0.6; cursor: default; }
.blog-newsletter-success { color: var(--accent); font-size: 13.5px; font-weight: 600; margin: 14px 0 0; }
.blog-newsletter-form.is-success .blog-newsletter-field { display: none; }

@media (max-width: 960px) {
  .blog-hero-title { font-size: 44px; }
  .blog-featured-card { grid-template-columns: 1fr; min-height: 0; }
  .blog-featured-card .media img { min-height: 260px; }
  .blog-editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; --masonry-gap: 48px; }
  .blog-picks-title { font-size: 32px; }
  .blog-case-cta { grid-template-columns: 1fr; padding-block: 48px; }
  .blog-review-item { grid-template-columns: 56px 100px 1fr; gap: 16px; padding: 16px; }
  .blog-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-newsletter-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .blog-hero-title { font-size: 34px; }
  .blog-editorial-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .blog-insights-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-newsletter-field { flex-direction: column; align-items: stretch; padding: 14px; border-radius: 18px; }
  .blog-newsletter-title { font-size: 30px; }
  .blog-review-item {
    grid-template-columns: 40px 1fr; grid-template-areas: "num media" "copy copy";
    align-items: center; row-gap: 14px; gap: 14px; padding: 18px;
  }
  .blog-review-item .num { grid-area: num; }
  .blog-review-item .media { grid-area: media; aspect-ratio: 16/9; }
  .blog-review-item .blog-review-copy { grid-area: copy; }
}

/* ── Article template ──────────────────────────────────────────────── */
.blog-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 55; background: transparent; }
.blog-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s linear; }

.blog-post { padding-block: 40px 0; }
.blog-post-head { max-width: 720px; margin-inline: auto; text-align: left; }
.blog-post-meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: 0.6px; color: var(--text-tertiary); margin-bottom: 18px; }
.blog-post-meta .cat { color: var(--accent); }
.blog-post-meta .dot { opacity: 0.5; }
.blog-post-title { font-family: var(--font-display); font-size: 48px; font-weight: var(--fw-black); line-height: 1.05; letter-spacing: -1.2px; margin: 0 0 20px; text-wrap: balance; }
.blog-post-lead { font-size: 19px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 20px; }
.blog-post-author { font-size: 13px; font-weight: 700; color: var(--text-primary); }

.blog-post-hero-media { margin: 36px 0; border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--border-card); aspect-ratio: 16/8; }
.blog-post-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.blog-post-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; max-width: 980px; margin-inline: auto; align-items: start; }
/* Explicit columns: JS (blog.js initTocPosition) switches .blog-toc-wrap to
   position:fixed while scrolling, which takes it out of grid flow. Without
   an explicit column, grid auto-placement then re-slots the one remaining
   in-flow child (.blog-post-body) into the now-empty first (narrow) track
   instead of the second — squeezing the article text under the fixed TOC. */
.blog-toc-wrap { grid-column: 1; position: sticky; top: 110px; }
.blog-toc-toggle { display: none; width: 100%; text-align: left; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border-subtle); background: none; color: var(--text-primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.blog-toc { display: flex; flex-direction: column; gap: 12px; }
.blog-toc a { font-size: 12.5px; line-height: 1.4; color: var(--text-tertiary); font-weight: 600; display: flex; gap: 8px; transition: var(--transition-smooth); }
.blog-toc a .num { color: var(--text-tertiary); flex-shrink: 0; }
.blog-toc a:hover { color: var(--text-primary); }
.blog-toc a.is-active { color: var(--accent); }
.blog-toc a.is-active .num { color: var(--accent); }

.blog-post-body { grid-column: 2; max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.blog-post-body p { margin: 0 0 22px; }
.blog-post-body h2 { font-family: var(--font-display); font-size: 27px; font-weight: var(--fw-black); color: var(--text-primary); line-height: 1.18; letter-spacing: -0.5px; margin: 48px 0 18px; scroll-margin-top: 100px; }
.blog-post-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-extra); color: var(--text-primary); margin: 32px 0 14px; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 22px; padding-left: 22px; }
.blog-post-body li { margin-bottom: 8px; }
.blog-post-body a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-body a:hover { color: var(--accent); }
.blog-post-quote { margin: 36px 0; padding-left: 24px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--text-primary); font-style: normal; max-width: 640px; }
.blog-post-stat { margin: 40px 0; padding: 28px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.blog-post-stat .value { font-family: var(--font-display); font-size: 56px; font-weight: var(--fw-black); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.blog-post-stat p { color: var(--text-secondary); margin: 0; max-width: 420px; }
.blog-post-image { margin: 36px -60px; }
.blog-post-image img { width: 100%; border-radius: var(--radius-media); }

.blog-post-cta { margin: 44px 0; padding: 28px 30px; border-radius: var(--radius-media); border: 1px solid var(--border-subtle); background: var(--black-surface); }
.blog-post-cta .label { font-size: var(--fs-label); font-weight: var(--fw-extra); letter-spacing: var(--ls-label); color: var(--text-tertiary); margin-bottom: 12px; }
.blog-post-cta h3 { font-family: var(--font-display); font-size: 20px; font-weight: var(--fw-extra); color: var(--text-primary); margin: 0 0 8px; }
.blog-post-cta p { font-size: 13.5px; margin: 0 0 16px; }

.blog-post-related-case { display: flex; align-items: center; gap: 20px; margin: 44px 0; padding: 16px; border-radius: var(--radius-media); border: 1px solid var(--border-subtle); transition: var(--transition-smooth); }
.blog-post-related-case:hover { border-color: var(--accent); }
.blog-post-related-case .media { width: 110px; height: 82px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.blog-post-related-case .media img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-related-case .copy .label { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--ls-micro); color: var(--text-tertiary); margin-bottom: 4px; }
.blog-post-related-case .copy h3 { font-family: var(--font-display); font-size: 17px; font-weight: var(--fw-extra); color: var(--text-primary); margin: 0 0 8px; }

.blog-related { max-width: 980px; margin: 64px auto 24px; padding-top: 48px; border-top: 1px solid var(--border-subtle); }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }

@media (max-width: 960px) {
  .blog-post-title { font-size: 34px; }
  .blog-post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blog-toc-wrap { grid-column: auto; position: static; margin-bottom: 24px; }
  .blog-post-body { grid-column: auto; }
  .blog-toc-toggle { display: block; }
  .blog-toc { display: none; padding: 14px 4px 4px; }
  .blog-toc-wrap.open .blog-toc, .blog-toc.open { display: flex; }
  .blog-post-image { margin-inline: 0; }
  .blog-related-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .blog-post-title { font-size: 28px; }
  .blog-post-lead { font-size: 16px; }
  .blog-post-hero-media { aspect-ratio: 4/3; }
}

/* ── Case stage (case_stage): context → numbered work cards → stage result ── */
.case-stage { padding-block: 80px; border-top: 1px solid var(--border-subtle); }
.case-stage-head { max-width: 860px; margin-bottom: 44px; }
.case-stage-title { margin-bottom: 18px; }
.case-stage-period { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-card-glass); font-size: 13px; color: var(--text-primary); }
.case-stage-period svg { color: var(--accent); }
.case-stage-sublabel { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.case-stage-sublabel--problem { margin-top: 28px; }
.case-stage-context { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; margin-bottom: 56px; }
.case-stage-context.has-image { grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); align-items: start; }
.case-stage-lead { font-size: 20px; font-weight: 600; line-height: 1.5; margin: 0 0 20px; max-width: 620px; }
.case-stage-note { font-size: 15px; line-height: 1.6; color: var(--text-primary); margin: 20px 0 0; max-width: 620px; padding-left: 16px; border-left: 2px solid var(--accent); }
.case-stage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; max-width: 760px; }
.case-stage-list li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.case-stage-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); box-sizing: border-box; }
.case-stage-list--problem li::before { border-color: #ff6b6b; }
.case-stage-image { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-card-glass); background: #fff; }
.case-stage-image img { display: block; width: 100%; height: auto; }
.case-stage-work { margin-bottom: 48px; }
.case-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-stage-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-stage-grid.cols-1 { grid-template-columns: minmax(0, 760px); }
.case-stage-card { padding: 26px 24px 28px; border-radius: 18px; background: var(--black-surface); border: 1px solid var(--line-card-glass); }
.case-stage-card .num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 28px; line-height: 1; margin-bottom: 18px; }
.case-stage-card h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 19px; line-height: 1.25; letter-spacing: -0.2px; margin: 0 0 14px; }
.case-stage-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.case-stage-card li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.case-stage-card li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.case-stage-result, .case-table-note { padding: 30px 32px; border-radius: 20px; background: rgba(204,255,0,0.06); border: 1px solid rgba(204,255,0,0.22); }
.case-stage-result ul, .case-table-note ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.case-stage-result li, .case-table-note li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.case-stage-result li svg, .case-table-note li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
@media (max-width: 1024px) {
  .case-stage-context.has-image { grid-template-columns: 1fr; gap: 32px; }
  .case-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .case-stage { padding-block: 56px; }
  .case-stage-lead { font-size: 17px; }
  .case-stage-list, .case-stage-result ul, .case-table-note ul { grid-template-columns: 1fr; }
  .case-stage-grid, .case-stage-grid.cols-2 { grid-template-columns: 1fr; }
  .case-stage-result, .case-table-note { padding: 22px 20px; }
}

/* ── Case table (case_table): 2–3 columns; rows turn into cards on phones ── */
.case-table { padding-block: 80px; border-top: 1px solid var(--border-subtle); }
.case-table-intro { font-size: 16px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; margin: -8px 0 32px; }
.case-table-grid { border-radius: 20px; overflow: hidden; border: 1px solid var(--line-card-glass); margin-bottom: 28px; }
.case-table-row { display: grid; grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.4fr); }
.cols-2 .case-table-row { grid-template-columns: minmax(160px, 0.8fr) minmax(0, 2.2fr); }
.case-table-row + .case-table-row { border-top: 1px solid var(--line-card-glass); }
.case-table-row > div { padding: 22px 24px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.case-table-row > div + div { border-left: 1px solid var(--line-card-glass); }
.case-table-row > .c1 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 17px; color: var(--text-primary); }
.case-table-row--head { background: rgba(255,255,255,0.04); }
.case-table-row--head > div { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); padding-block: 16px; }
.case-table-note p { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 760px; }
.case-table-note ul + p { margin-top: 22px; }
@media (max-width: 760px) {
  .case-table { padding-block: 56px; }
  .case-table-grid { border: 0; border-radius: 0; overflow: visible; display: grid; gap: 12px; }
  .case-table-row--head { display: none; }
  .case-table-row { grid-template-columns: 1fr; border-radius: 16px; border: 1px solid var(--line-card-glass) !important; background: var(--black-surface); }
  .case-table-row > div { padding: 14px 18px; }
  .case-table-row > div + div { border-left: 0; border-top: 1px solid var(--line-card-glass); }
  .case-table-row > div[data-col]:not(.c1)::before { content: attr(data-col); display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
}

/* ── Case pages: previous / next case (includes/partials/case_nav.php) ── */
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-block: 40px; border-top: 1px solid var(--border-subtle); }
.case-nav-link {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; min-width: 0;
  background: var(--surface-card); border: 1px solid var(--border-card); border-radius: var(--radius-card);
  color: var(--text-primary); text-decoration: none; transition: var(--transition-smooth);
}
.case-nav-link.is-next { flex-direction: row-reverse; text-align: right; }
.case-nav-link:hover { border-color: var(--border-accent); transform: translateY(var(--lift-card-sm)); }
.case-nav-arrow {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border-subtle); color: var(--accent); transition: var(--transition-smooth);
}
.case-nav-link:hover .case-nav-arrow { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent); }
.case-nav-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case-nav-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); }
.case-nav-name { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 22px; line-height: 1.15; }
.case-nav-title { font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
@media (max-width: 720px) {
  .case-nav { grid-template-columns: 1fr; gap: 12px; padding-block: 28px; }
  .case-nav-link { padding: 18px; gap: 14px; }
  .case-nav-name { font-size: 19px; }
}
