/* ==========================================================================
   ShlifPol.by — улучшенный клон
   Design system: light-first, orange CTA, industrial concrete aesthetic
   ========================================================================== */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
body { min-height: 100vh; text-rendering: optimizeSpeed; line-height: 1.55; overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a:not([class]) { text-decoration-skip-ink: auto; }
img, picture, svg, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
[hidden] { display: none !important; }

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
  /* Brand */
  --accent: #ff6b1a;
  --accent-hover: #e85d0e;
  --accent-dark: #c24a05;
  --accent-soft: #fff3eb;
  --accent-soft-2: #ffe3d1;
  --accent-contrast: #ffffff;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #faf9f6;
  --bg-tint: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --surface-3: #f0ede6;
  --line: #e8e6de;
  --line-strong: #d8d5cb;
  --line-contrast: #c6c3b7;

  --text: #0f1115;
  --text-2: #2a2f3a;
  --text-muted: #616672;
  --text-dim: #8a8f9a;
  --text-on-dark: #f4f2ed;
  --text-on-accent: #1a0f05;

  /* Dark section (hero, CTA blocks) — stays dark regardless of theme */
  --dark-bg: #0e1116;
  --dark-bg-2: #161a21;
  --dark-surface: #1c2029;
  --dark-line: rgba(255, 255, 255, .09);
  --dark-line-strong: rgba(255, 255, 255, .16);
  --dark-text: #eef0f3;
  --dark-text-muted: #9aa0ab;

  /* Semantic */
  --success: #16a34a;
  --success-soft: #ecfdf5;
  --warning: #e65100;
  --warning-soft: #fff7ed;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --info: #2563eb;
  --info-soft: #eff6ff;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Shadows — soft on light */
  --sh-xs: 0 1px 2px rgba(15, 17, 21, .06);
  --sh-sm: 0 2px 8px rgba(15, 17, 21, .06), 0 1px 2px rgba(15, 17, 21, .04);
  --sh-md: 0 10px 30px -12px rgba(15, 17, 21, .12), 0 2px 6px rgba(15, 17, 21, .05);
  --sh-lg: 0 30px 60px -20px rgba(15, 17, 21, .18), 0 8px 16px rgba(15, 17, 21, .06);
  --sh-accent: 0 10px 24px -8px rgba(255, 107, 26, .45);
  --sh-accent-lg: 0 20px 40px -10px rgba(255, 107, 26, .5);

  /* Layout */
  --container: 1240px;
  --container-narrow: 960px;
  --gutter: clamp(20px, 4.5vw, 40px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: .18s;
  --dur: .28s;
  --dur-slow: .5s;

  /* Z-index */
  --z-sticky: 50;
  --z-overlay: 80;
  --z-modal: 90;
  --z-toast: 100;

  /* Typography */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Dark theme override */
[data-theme='dark'] {
  --bg: #0c0e12;
  --bg-alt: #11141a;
  --bg-tint: #141821;
  --surface: #161a21;
  --surface-2: #1b1f27;
  --surface-3: #22272f;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --line-contrast: rgba(255, 255, 255, .22);

  --text: #eef0f3;
  --text-2: #d4d7dc;
  --text-muted: #9aa0ab;
  --text-dim: #6e7480;

  --accent-soft: rgba(255, 107, 26, .12);
  --accent-soft-2: rgba(255, 107, 26, .2);

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --sh-md: 0 10px 30px -12px rgba(0, 0, 0, .5);
  --sh-lg: 0 30px 60px -20px rgba(0, 0, 0, .6);

  --success-soft: rgba(22, 163, 74, .12);
  --warning-soft: rgba(230, 81, 0, .12);
  --danger-soft: rgba(220, 38, 38, .12);
  --info-soft: rgba(37, 99, 235, .12);
}

/* ==========================================================================
   Base typography
   ========================================================================== */
body {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--accent-hover); }
a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent); color: var(--accent-contrast); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(60px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--tint { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--dark-bg); color: var(--dark-text); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--dark-text); }
.section--dark p { color: var(--dark-text-muted); }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--pill {
  padding: 7px 14px; border-radius: var(--r-full);
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
  text-transform: none; letter-spacing: -.01em; font-size: 13.5px;
  color: var(--accent-dark);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 14px;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--accent), #ff9340);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead { color: var(--text-muted); font-size: clamp(15px, 1.2vw, 17px); max-width: 620px; margin-inline: auto; }
.section-head--left .section-lead { margin-inline: 0; }

/* Grid helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Stack */
.stack > * + * { margin-top: var(--stack-gap, 16px); }
.stack-lg > * + * { margin-top: 32px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast), color var(--dur-fast),
              border-color var(--dur-fast);
  position: relative;
  user-select: none;
  text-decoration: none;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: .05s; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8740);
  color: var(--accent-contrast);
  box-shadow: var(--sh-accent), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { box-shadow: var(--sh-accent-lg), inset 0 1px 0 rgba(255, 255, 255, .25); color: var(--accent-contrast); }

.btn-secondary {
  background: var(--text);
  color: var(--bg);
}
.btn-secondary:hover { background: var(--text-2); color: var(--bg); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--surface-2); color: var(--text); }

.btn-on-dark {
  background: rgba(255, 255, 255, .08);
  color: var(--dark-text);
  border-color: var(--dark-line-strong);
  backdrop-filter: blur(12px);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, .14); color: var(--dark-text); border-color: rgba(255, 255, 255, .25); }

.btn-link {
  padding: 6px 0; background: transparent;
  color: var(--accent); border: 0;
}
.btn-link:hover { color: var(--accent-hover); transform: none; }

.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--r-md); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn-icon { padding: 12px; width: 44px; height: 44px; border-radius: var(--r-sm); }

.btn-block { width: 100%; }

.btn-arrow {
  width: 16px; height: 16px;
  transition: transform var(--dur-fast);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur);
}
[data-theme='dark'] .site-header { background: rgba(12, 14, 18, .78); }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
[data-theme='dark'] .site-header.scrolled { background: rgba(12, 14, 18, .92); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  display: grid; place-items: center;
  color: #fff; font-size: 18px; font-weight: 900;
  box-shadow: var(--sh-accent);
}
.logo-domain { color: var(--text-dim); font-weight: 500; }

.nav {
  display: flex; align-items: center; gap: 2px;
  min-width: 0;
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav a.nav-booking { color: var(--accent); }
.nav a.nav-booking svg { flex-shrink: 0; opacity: .85; }

.mobile-menu-body .mm-booking {
  color: var(--accent) !important;
  display: inline-flex; align-items: center; gap: 8px;
}
.mobile-menu-body .mm-booking svg { flex-shrink: 0; }

/* Dropdown for Services */
.nav-item { position: relative; }
.nav-item > a .chev { width: 12px; height: 12px; opacity: .6; transition: transform var(--dur-fast); }
.nav-item:hover > a .chev, .nav-item.open > a .chev { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
/* Невидимый мостик закрывает 8px зазор между ссылкой и выпадайкой —
   иначе при движении мышью вниз hover пропадает и меню схлопывается. */
.nav-dropdown::before {
  content: ''; position: absolute;
  left: 0; right: 0; top: -10px; height: 10px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown { opacity: 1; pointer-events: auto; transform: none; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--text); font-size: 14.5px; font-weight: 500;
}
.nav-dropdown a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-dd-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--accent); flex: none;
}
.nav-dd-text { display: flex; flex-direction: column; line-height: 1.3; }
.nav-dd-text small { color: var(--text-dim); font-size: 12.5px; font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .btn { white-space: nowrap; flex: none; }
.header-phone {
  display: flex; flex-direction: column; line-height: 1.1;
  font-weight: 700; font-size: 15px; color: var(--text);
  text-decoration: none;
}
.header-phone small {
  color: var(--text-dim); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
  margin-bottom: 3px;
}
.header-phone:hover { color: var(--accent); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all var(--dur-fast);
  flex: none;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.theme-toggle .sun { display: none; }
[data-theme='dark'] .theme-toggle .sun { display: block; }
[data-theme='dark'] .theme-toggle .moon { display: none; }

.burger {
  display: none; width: 42px; height: 42px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.burger span { width: 18px; height: 2px; background: var(--text); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
  transition: transform var(--dur-fast);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* На больших мониторах (≥1500px) расширяем контейнер — иначе 8 пунктов nav
   + phone + button не помещаются в 1240px и налезают друг на друга. */
@media (min-width: 1500px) {
  :root { --container: 1480px; }
}

/* На ноутбуках (≤1500px) переключаем меню на бургер — даже компактные
   пункты nav не помещаются с phone+button. Phone и кнопку скрываем только
   на мобильниках (≤1100px). */
@media (max-width: 1500px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 1100px) {
  .header-actions .btn-primary.hide-mobile { display: none; }
}
/* Мобильная шапка: бургер слева, телефон справа, всегда сверху при скролле */
@media (max-width: 640px) {
  .site-header { position: fixed; left: 0; right: 0; top: 0; }
  body { padding-top: 64px; }
  .header-phone {
    flex-direction: row; align-items: center; gap: 6px;
    font-size: 14px;
  }
  .header-phone small { display: none; }
  /* display: contents — поднимает детей .header-actions на уровень .header-inner
     чтобы можно было управлять порядком бургера/телефона относительно лого */
  .header-actions { display: contents; }
  .burger { order: -2; }
  .logo { order: -1; }
  .logo > span:not(.logo-mark) { display: none; }
  .header-phone { order: 99; margin-left: auto; }
  .theme-toggle { display: none; }
  .header-inner { gap: 8px; }
  /* На мобиле основная шапка fixed уже показывает телефон — sticky-action не нужна */
  .sticky-action { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-modal) + 1);
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-menu-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.mobile-menu-body { padding: var(--gutter); flex: 1; }
.mobile-menu-body a {
  display: block; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 600; color: var(--text);
  text-decoration: none;
}
.mobile-menu-body a.mm-sub { padding-left: 22px; font-weight: 500; font-size: 15.5px; color: var(--text-2); }
.mobile-menu-footer { padding: 20px var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13.5px; color: var(--text-muted);
  padding: 16px 0 0;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--text-dim); }
.breadcrumbs [aria-current='page'] { color: var(--text); }

/* ==========================================================================
   HERO — premium laser scan scene
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0a0c12; color: var(--dark-text);
}

/* Layered background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 107, 26, .28), transparent 55%),
    radial-gradient(900px 600px at -10% 30%, rgba(60, 90, 150, .10), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(255, 107, 26, .08), transparent 60%),
    linear-gradient(180deg, #0a0c12 0%, #0e1219 50%, #0a0c12 100%);
}
.hero-bg::before {
  /* Blueprint-like grid overlay */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 85%);
  opacity: .55;
}
.hero-bg::after {
  /* Dust particles — tiny dots floating */
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 30%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 20% 65%, rgba(255,180,120,.5), transparent 60%),
    radial-gradient(2px 2px at 35% 20%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(1px 1px at 48% 80%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 40%, rgba(255,180,120,.4), transparent 60%),
    radial-gradient(1px 1px at 78% 72%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 28%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(1px 1px at 92% 90%, rgba(255,180,120,.4), transparent 60%);
  animation: particlesFloat 18s linear infinite;
  opacity: .85;
}
@keyframes particlesFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

.hero-inner {
  position: relative; z-index: 2;
  /* Горизонтальный gutter обязательно — иначе контент прижимается к краю экрана */
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(64px, 10vw, 120px);
}
.hero h1 { color: var(--dark-text); }
.hero p { color: var(--dark-text-muted); }

.hero-title {
  font-size: clamp(32px, 6.5vw, 74px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 18px 0 22px;
}
.hero-title .accent {
  position: relative;
  background: linear-gradient(135deg, #ff9455 0%, var(--accent) 40%, #ffb380 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-lead {
  font-size: clamp(15px, 1.3vw, 19px);
  max-width: 560px;
  color: var(--dark-text-muted);
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-text > * + * { margin-top: 0; }

/* ===== SCAN SCENE (right side, visual) ===== */
.hero-scan {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, transparent 100%),
    linear-gradient(135deg, #151a24 0%, #0c0f16 60%, #13171f 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,.65),
    0 2px 0 rgba(255,255,255,.04) inset,
    0 -30px 60px -30px rgba(255, 107, 26, .15) inset;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
}

/* Scan frame decorations — corner brackets + ruler marks */
.scan-frame {
  position: absolute; inset: 14px;
  pointer-events: none; z-index: 1;
}
.scan-corner {
  position: absolute; width: 22px; height: 22px;
  border: 2px solid rgba(255, 107, 26, .7);
  box-shadow: 0 0 12px rgba(255,107,26,.4);
}
.scan-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.scan-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.scan-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.scan-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.scan-ruler {
  position: absolute; left: 4px; top: 20px; bottom: 20px;
  width: 8px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.scan-ruler::before {
  content: ''; position: absolute; left: 3px; top: 0; bottom: 0;
  width: 1px; background: rgba(255,255,255,.15);
}
.scan-ruler span {
  display: block; height: 1px; width: 6px; background: rgba(255,255,255,.35);
}
.scan-ruler span:nth-child(odd) { width: 8px; }

/* The laser itself */
.scan-laser {
  position: absolute; left: 8%; right: 8%; top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 107, 26, .3) 10%,
    #ffb075 50%,
    rgba(255, 107, 26, .3) 90%,
    transparent 100%);
  box-shadow:
    0 0 14px rgba(255, 107, 26, .9),
    0 0 32px rgba(255, 107, 26, .6),
    0 0 60px rgba(255, 107, 26, .25);
  animation: scanSweep 5.5s cubic-bezier(.6,0,.4,1) infinite;
  z-index: 2;
  pointer-events: none;
}
.scan-laser::before {
  /* Bright pulse head */
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffb075 40%, transparent 70%);
  filter: blur(.5px);
}
.scan-laser::after {
  /* Trail gradient */
  content: ''; position: absolute; left: 0; right: 0; top: 2px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,107,26,.12), transparent);
  pointer-events: none;
}
@keyframes scanSweep {
  0% { top: 4%; opacity: 0; }
  8% { opacity: 1; }
  50% { top: 96%; opacity: 1; }
  58% { opacity: 0; }
  100% { top: 4%; opacity: 0; }
}

/* Live status strip above advantage cards */
.scan-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; margin-bottom: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: rgba(255, 180, 120, .9);
  position: relative; z-index: 3;
}
.scan-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16d27f;
  box-shadow: 0 0 10px #16d27f;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.scan-status-time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,.75);
  letter-spacing: 0;
}

/* Advantage cards grid — 2x2 on desktop, 2-col tight on small screens */
.hero-advs {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.adv-card {
  position: relative;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
  overflow: hidden;
}
.adv-card::before {
  /* Subtle gradient border highlight on hover */
  content: ''; position: absolute; inset: 0; border-radius: var(--r-md); padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,26,.35), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.adv-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(255,107,26,.3);
}
.adv-card:hover::before { opacity: 1; }
.adv-card-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #ff6b1a, #ff9340);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(255,107,26,.5), inset 0 1px 0 rgba(255,255,255,.3);
  margin-bottom: 10px;
}
.adv-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  color: var(--dark-text);
  margin-bottom: 3px;
}
.adv-card small {
  color: rgba(255,255,255,.5);
  font-size: 11.5px; line-height: 1.35; display: block;
}

/* Live-looking number styling */
.adv-val {
  display: inline-flex; align-items: baseline; gap: 0;
  background: linear-gradient(180deg, #ffffff 0%, #d8dce3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.adv-val .adv-suffix {
  font-weight: 700; font-size: .62em; letter-spacing: -.01em;
  color: rgba(255, 180, 120, .95);
  -webkit-text-fill-color: rgba(255, 180, 120, .95);
  margin-left: 2px;
  white-space: nowrap;
}
.adv-val .adv-range {
  display: inline-flex; align-items: baseline; gap: 2px;
  letter-spacing: -.03em;
}
.adv-val .adv-range > span[data-count] {
  min-width: 0;
}

/* Last-digit flicker when ticking — triggered by JS class */
.adv-val.ticking span[data-count] {
  animation: digitFlicker .6s ease-out;
}
@keyframes digitFlicker {
  0% { filter: brightness(1.6); }
  50% { filter: brightness(1.3); }
  100% { filter: brightness(1); }
}

/* LIVE dot on specific cards */
.adv-live {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 6px 2px 8px; border-radius: 999px;
  background: rgba(22, 210, 127, .14);
  border: 1px solid rgba(22, 210, 127, .35);
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  color: #5ee3a8;
  text-transform: uppercase;
}
.adv-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #16d27f;
  box-shadow: 0 0 6px #16d27f;
  animation: blink 1.8s ease-in-out infinite;
}
.adv-live::after { content: 'live'; }

/* 6 cards in tighter grid */
.hero-advs { grid-template-columns: 1fr 1fr; gap: 8px; }
.adv-card { padding: 12px 12px 11px; }
.adv-card-icon { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 8px; }
.adv-card-icon svg { width: 15px; height: 15px; }

/* When laser crosses a card, it glows */
@keyframes cardPulse {
  0%,100% { box-shadow: 0 0 0 rgba(255,107,26,0); }
  50% { box-shadow: 0 0 24px rgba(255,107,26,.25); }
}
.adv-card:nth-child(1) { animation: cardPulse 5.5s ease-in-out infinite; animation-delay: .7s; }
.adv-card:nth-child(2) { animation: cardPulse 5.5s ease-in-out infinite; animation-delay: 1.4s; }
.adv-card:nth-child(3) { animation: cardPulse 5.5s ease-in-out infinite; animation-delay: 2.1s; }
.adv-card:nth-child(4) { animation: cardPulse 5.5s ease-in-out infinite; animation-delay: 2.8s; }

/* Mobile hero: stack, compact */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-scan { max-width: 100%; padding: 18px; }
  .hero-inner { padding: clamp(40px, 7vw, 64px) var(--gutter) clamp(48px, 9vw, 80px); }
}
@media (max-width: 520px) {
  .hero-advs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .adv-card { padding: 12px; }
  .adv-card b { font-size: 14.5px; }
  .adv-card small { font-size: 11.5px; }
  .adv-card-icon { width: 30px; height: 30px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ===== Page hero (subpages) ===== */
.page-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 50px);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 52px); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 680px; font-size: clamp(15px, 1.2vw, 18px); }
.page-hero .breadcrumbs { margin-bottom: 18px; padding: 0; }

/* Page hero (not home) — shorter, lighter */
.page-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 50px);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 680px; font-size: clamp(15px, 1.2vw, 18px); }
.page-hero .breadcrumbs { margin-bottom: 18px; padding: 0; }

/* ==========================================================================
   Stats bar — premium cards
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat {
  position: relative;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.stat::before {
  /* subtle gradient fade on top */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft-2);
  box-shadow: var(--sh-md);
}
.stat:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900; letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-num .unit {
  color: var(--text-muted);
  font-size: .55em;
  font-weight: 700;
  margin-left: 4px;
  -webkit-text-fill-color: var(--text-muted);
}
.stat-label { color: var(--text-muted); font-size: 13.5px; font-weight: 500; }

[data-theme='dark'] .stat-num {
  background: linear-gradient(180deg, #ffffff 0%, #b6bac0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 22px 16px; }
}
@media (max-width: 380px) {
  .stat { padding: 18px 14px; }
  .stat-num { font-size: 26px; }
}

/* ==========================================================================
   Cards (services, projects, reviews)
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur-fast);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--sh-lg); }

.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }

/* Service card */
.service-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 24px;
  min-height: 100%;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(260px 180px at var(--mx, 50%) var(--my, 0%), rgba(255, 107, 26, .08), transparent 60%);
  opacity: 0; transition: opacity var(--dur);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255, 107, 26, .16) 100%);
  color: var(--accent);
  display: grid; place-items: center;
  border: 1px solid rgba(255, 107, 26, .2);
  box-shadow:
    0 8px 20px -8px rgba(255, 107, 26, .25),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
[data-theme='dark'] .service-icon {
  box-shadow:
    0 8px 20px -8px rgba(255, 107, 26, .3),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
.service-card:hover .service-icon {
  transform: scale(1.05);
  box-shadow:
    0 12px 28px -8px rgba(255, 107, 26, .4),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}
.service-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--text);
}
.service-desc { color: var(--text-muted); font-size: 14.5px; min-height: 44px; }
.service-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}
.service-price {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 800; color: var(--text); letter-spacing: -.02em;
}
.service-price small { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.service-time {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.service-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
}

/* Project / case card */
.project-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.project-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--surface-3);
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(15, 17, 21, .35) 100%),
    radial-gradient(ellipse at 30% 30%, rgba(255, 107, 26, .25), transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(80, 120, 180, .15), transparent 55%),
    repeating-linear-gradient(45deg, #8a847a 0 10px, #948e84 10px 20px);
}
.project-placeholder::after {
  content: ''; position: absolute; left: 8%; right: 8%; top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
}
.project-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: rgba(15, 17, 21, .85); color: #fff;
  font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(10px);
}
.project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.project-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 14px;
}
.project-meta span { display: inline-flex; gap: 5px; align-items: center; }
.project-improve {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.project-improve b { color: var(--success); font-size: 14px; font-weight: 700; }
.project-improve span { color: var(--text-dim); font-size: 12.5px; }

/* Review card */
.review-card { display: flex; flex-direction: column; gap: 14px; }
.stars { color: #ffb400; letter-spacing: 2px; font-size: 16px; }
.review-text { color: var(--text); font-size: 15px; line-height: 1.65; flex: 1; }
.review-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  color: #fff; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; flex: none;
}
.review-author b { display: block; font-size: 14.5px; color: var(--text); }
.review-author small { color: var(--text-dim); font-size: 12.5px; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-step {
  position: relative;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.process-step:hover { border-color: var(--accent-soft-2); box-shadow: var(--sh-sm); }
.process-num {
  font-family: var(--font-display);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 14px;
  border: 1px solid var(--accent-soft-2);
  margin-bottom: 16px;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: -.015em;
  font-weight: 700; margin-bottom: 8px;
}
.process-step p { color: var(--text-muted); font-size: 14.5px; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px; color: var(--text-muted);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.input, .textarea, .select {
  width: 100%; padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .15);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.textarea { resize: vertical; min-height: 90px; }
.field-error { color: var(--danger); font-size: 13px; display: none; }
.field.invalid .input, .field.invalid .textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }

.form-note {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.5;
}
.form-note a { color: var(--text-muted); text-decoration: underline; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast);
  user-select: none;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed='true'], .chip.active {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-dark);
}

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-xl);
}
.calc-form { display: flex; flex-direction: column; gap: 22px; }
.calc-result {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--sh-md);
}
.calc-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
}
.calc-price {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 4px 0;
}
.calc-price small { font-size: .4em; color: var(--text); -webkit-text-fill-color: var(--text); font-weight: 700; margin-left: 6px; }
.calc-hint { font-size: 13px; color: var(--text-dim); }
.calc-breakdown {
  display: grid; gap: 8px;
  font-size: 14px; color: var(--text-muted);
  padding-top: 16px; border-top: 1px solid var(--line);
}
.calc-breakdown > div { display: flex; justify-content: space-between; gap: 12px; }
.calc-breakdown b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.faq-item summary {
  list-style: none;
  padding: 18px 56px 18px 22px;
  cursor: pointer;
  font-weight: 600; font-size: 15.5px;
  position: relative;
  transition: background var(--dur-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary::after {
  content: ''; position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur);
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--accent);
}
.faq-answer { padding: 0 22px 22px; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.faq-answer a { color: var(--accent); }

/* ==========================================================================
   Warning / info blocks
   ========================================================================== */
.callout {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--warning-soft);
  border: 1px solid rgba(230, 81, 0, .2);
}
.callout-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: rgba(230, 81, 0, .14); color: var(--warning);
  display: grid; place-items: center;
  border: 1px solid rgba(230, 81, 0, .25);
}
.callout h4 {
  font-family: var(--font-display); font-size: 17px;
  margin-bottom: 8px; letter-spacing: -.015em; color: var(--text);
}
.callout p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.callout--info { background: var(--info-soft); border-color: rgba(37, 99, 235, .2); }
.callout--info .callout-icon { background: rgba(37, 99, 235, .14); color: var(--info); border-color: rgba(37, 99, 235, .25); }
.callout--success { background: var(--success-soft); border-color: rgba(22, 163, 74, .2); }
.callout--success .callout-icon { background: rgba(22, 163, 74, .14); color: var(--success); border-color: rgba(22, 163, 74, .25); }
@media (max-width: 560px) {
  .callout { grid-template-columns: 1fr; }
  .callout-icon { width: 48px; height: 48px; }
}

/* ==========================================================================
   CTA section
   ========================================================================== */
.cta-block {
  position: relative; overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.cta-block::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(255, 107, 26, .3), transparent 70%);
  filter: blur(80px);
}
.cta-block h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  color: var(--dark-text);
  letter-spacing: -.025em;
  margin-bottom: 14px;
  position: relative;
}
.cta-block p { color: var(--dark-text-muted); font-size: 16px; margin-bottom: 20px; position: relative; }
.cta-features { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--dark-text-muted); }
.cta-features li { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.cta-features li::before { content: '✓'; color: var(--accent); font-weight: 800; }

.cta-form-wrap {
  position: relative;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--dark-line-strong);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(16px);
}
.cta-form-wrap .input,
.cta-form-wrap .textarea {
  background: rgba(255, 255, 255, .04);
  color: var(--dark-text);
  border-color: var(--dark-line-strong);
}
.cta-form-wrap .input:focus,
.cta-form-wrap .textarea:focus {
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .2);
}
.cta-form-wrap .input::placeholder,
.cta-form-wrap .textarea::placeholder { color: rgba(255, 255, 255, .35); }
.cta-form-wrap .field label { color: var(--dark-text-muted); }
.cta-form-wrap .form-note { color: rgba(255, 255, 255, .4); }
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  padding: 60px 0 32px;
  border-top: 1px solid var(--dark-line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h5 {
  font-family: var(--font-display);
  color: var(--dark-text);
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .08em;
}
.footer-grid a {
  display: block; padding: 5px 0;
  color: var(--dark-text-muted);
  font-size: 14.5px; font-weight: 400;
  transition: color var(--dur-fast);
}
.footer-grid a:hover { color: var(--dark-text); }
.footer-grid p { color: var(--dark-text-muted); font-size: 14.5px; margin-bottom: 8px; line-height: 1.6; }
.footer-grid .logo { color: var(--dark-text); margin-bottom: 14px; }
.footer-grid .logo:hover { color: var(--dark-text); }
.social {
  display: flex; gap: 10px; margin-top: 10px;
}
.social a {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--dark-line-strong);
  display: grid; place-items: center;
  color: var(--dark-text-muted);
  padding: 0; margin: 0;
  transition: all var(--dur-fast);
}
.social a:hover { color: var(--accent); border-color: rgba(255, 107, 26, .4); transform: translateY(-2px); background: rgba(255, 107, 26, .08); }

.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255, 255, 255, .4);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); padding: 0; }
.footer-bottom a:hover { color: var(--dark-text); }

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

/* ==========================================================================
   FAB (floating action buttons)
   ========================================================================== */
.fab {
  position: fixed; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  z-index: var(--z-sticky);
}
.fab-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  box-shadow: var(--sh-accent-lg);
  transition: transform var(--dur) var(--ease);
  position: relative;
  text-decoration: none;
}
.fab-btn:hover { transform: translateY(-3px) scale(1.06); color: #fff; }
.fab-btn::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ripple 2.2s infinite;
  pointer-events: none;
}
@keyframes ripple { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* Scroll-to-top button (bottom-left) */
.scroll-top {
  position: fixed; left: 18px; bottom: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(14, 17, 22, .85);
  color: #fff; border: 1px solid rgba(255, 107, 26, .3);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background var(--dur-fast);
  z-index: var(--z-sticky);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--accent); }
@media (max-width: 640px) {
  .scroll-top { left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

.fab-btn.tg { background: #2aabee; box-shadow: 0 14px 30px -10px rgba(42, 171, 238, .5); }
.fab-btn.tg::before { border-color: #2aabee; }
.fab-btn.wa { background: #25d366; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .5); }
.fab-btn.wa::before { border-color: #25d366; }
.fab-btn.viber { background: #7360f2; box-shadow: 0 14px 30px -10px rgba(115, 96, 242, .5); }
.fab-btn.viber::before { border-color: #7360f2; }

.fab-toggle {
  background: var(--text);
  color: var(--bg);
}
.fab-toggle::before { border-color: var(--text); }

.fab-items { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all var(--dur); }
.fab.open .fab-items { opacity: 1; transform: none; pointer-events: auto; }
.fab.open .fab-toggle { transform: rotate(45deg); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-root {
  position: fixed; inset: 0;
  display: none;
  z-index: var(--z-modal);
}
.modal-root.open { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 12, 18, .66);
  backdrop-filter: blur(6px);
  animation: fadeIn var(--dur) var(--ease);
}
.modal-dialog {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  max-width: 560px; width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  animation: modalIn var(--dur) var(--ease);
}
.modal-dialog--lg { max-width: 860px; }
.modal-dialog--xl { max-width: 1100px; }
.modal-header {
  padding: 22px 24px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.modal-close {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--text-muted); background: var(--surface-2);
  transition: all var(--dur-fast);
}
.modal-close:hover { color: var(--text); background: var(--surface-3); }
.modal-body { padding: 24px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 10, 14, .94);
  display: none;
  align-items: center; justify-content: center;
  z-index: calc(var(--z-modal) + 5);
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--r-md);
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  animation: modalIn var(--dur) var(--ease);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  transition: background var(--dur-fast);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 14px;
  background: rgba(0, 0, 0, .5); padding: 8px 14px; border-radius: var(--r-sm);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-root {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--text); color: var(--bg);
  padding: 14px 20px; border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  animation: toastIn var(--dur) var(--ease);
  pointer-events: auto;
  max-width: 90vw;
}
.toast--success { background: var(--success); color: #fff; }
.toast--danger { background: var(--danger); color: #fff; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 18px;
  color: var(--text-muted); font-weight: 600; font-size: 14.5px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { color: var(--accent); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel[data-active] { display: block; }

/* ==========================================================================
   Before/After slider
   ========================================================================== */
.ba {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  user-select: none;
  background: var(--surface-3);
  --pos: 50%;
  border: 1px solid var(--line);
}
.ba-img, .ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-label {
  position: absolute; top: 14px;
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.ba-label--before { left: 14px; background: rgba(15, 17, 21, .78); color: #fff; }
.ba-label--after { right: 14px; background: var(--accent); color: #fff; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .4);
  cursor: ew-resize;
}
.ba-handle::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.ba-handle::after {
  content: '⇔'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--text); font-size: 18px; font-weight: 900;
}

/* ==========================================================================
   Sections / misc reusable
   ========================================================================== */
.messenger-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none; color: var(--text);
  transition: transform var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.messenger-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--sh-sm); color: var(--text); }
.messenger-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  color: #fff; flex: none;
}
.messenger-icon.tg { background: #2aabee; }
.messenger-icon.wa { background: #25d366; }
.messenger-icon.viber { background: #7360f2; }
.messenger-icon.phone { background: var(--accent); }
.messenger-icon.mail { background: #6b7280; }
.messenger-card b { display: block; font-size: 15px; white-space: nowrap; }
.messenger-card small { color: var(--text-muted); font-size: 13px; }
@media (max-width: 480px) {
  .messenger-card { padding: 14px 14px; gap: 10px; }
  .messenger-card > span:last-child { display: none; }
  .messenger-card b { font-size: 14px; }
  .messenger-card small { font-size: 12px; }
}

/* Utility */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.hide-mobile { display: initial; }
@media (max-width: 720px) { .hide-mobile { display: none; } }
.mt-0 { margin-top: 0; } .mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-sm { margin-bottom: 12px; } .mb-md { margin-bottom: 24px; } .mb-lg { margin-bottom: 40px; }

/* Prose (article content) */
.prose { max-width: 780px; margin-inline: auto; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: clamp(22px, 2.5vw, 30px); margin-top: 48px; color: var(--text); }
.prose h3 { font-size: clamp(18px, 2vw, 22px); margin-top: 36px; color: var(--text); }
.prose p { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  padding: 18px 24px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 16px; color: var(--text-2);
}
.prose img { border-radius: var(--r-lg); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Table of contents */
.toc {
  position: sticky; top: 90px;
  padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 14px;
}
.toc h5 {
  font-family: var(--font-display); font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc a {
  display: block; padding: 6px 0;
  color: var(--text-muted); text-decoration: none;
  border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }

/* Reading progress */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent;
  z-index: calc(var(--z-sticky) + 1);
}
.read-progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #ff9340);
  transition: width .1s linear;
}

/* Gallery grid */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Working hours indicator
   ========================================================================== */
.hours-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
}
.hours-chip.is-open { background: var(--success-soft); color: var(--success); }
.hours-chip.is-closed { background: var(--surface-2); color: var(--text-muted); }
.hours-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.hours-chip.is-open .hours-dot { animation: pulse 2s infinite; }

/* ==========================================================================
   Quiz
   ========================================================================== */
.quiz {
  max-width: 680px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px);
}
.quiz-step { display: none; }
.quiz-step[data-active] { display: block; animation: fadeIn var(--dur) var(--ease); }
.quiz-step h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 8px; }
.quiz-step p { color: var(--text-muted); margin-bottom: 20px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text); font-weight: 500; font-size: 15px;
  transition: all var(--dur-fast);
}
.quiz-option:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); transform: translateX(2px); }
.quiz-option-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.quiz-progress {
  display: flex; gap: 6px; margin-bottom: 20px;
}
.quiz-progress span {
  flex: 1; height: 3px; background: var(--line); border-radius: 2px;
}
.quiz-progress span.active { background: var(--accent); }

/* ==========================================================================
   Price table
   ========================================================================== */
.price-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 15px;
}
.price-table th, .price-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  background: var(--surface-2);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted);
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table td.price {
  font-family: var(--font-display); font-weight: 800; color: var(--text);
  white-space: nowrap;
}
.price-table td.price small { font-weight: 500; color: var(--text-muted); }

/* ==========================================================================
   Video card
   ========================================================================== */
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer;
  background: var(--surface-3);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5));
}
.video-play::before {
  content: ''; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  display: grid; place-items: center;
}
.video-play::after {
  content: ''; position: absolute;
  border-left: 22px solid var(--accent);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}
.video-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  color: #fff; font-weight: 600; font-size: 15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

/* ==========================================================================
   Map
   ========================================================================== */
.map-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  height: 440px;
}
#map { width: 100%; height: 100%; }

/* ==========================================================================
   Mobile polish — targeted tweaks for phones (≤640px)
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .section { padding-block: clamp(48px, 8vw, 68px); }
  .section--tight { padding-block: clamp(32px, 5vw, 48px); }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .section-lead { font-size: 15px; }

  /* Header compact — растягиваем за padding контейнера, но даём свой gutter */
  .header-inner {
    padding: 10px var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    gap: 12px;
  }
  .logo { font-size: 17px; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; font-size: 16px; }
  .theme-toggle { width: 38px; height: 38px; }
  .burger { width: 38px; height: 38px; }

  /* CTAs full width */
  .hero-cta .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .btn { min-height: 44px; /* tap target */ }

  /* FAB smaller, safe area */
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .fab-btn { width: 48px; height: 48px; }
  .fab-btn svg { width: 20px; height: 20px; }

  /* Callout compact */
  .callout { padding: 18px; grid-template-columns: 44px 1fr; gap: 12px; }
  .callout-icon { width: 44px; height: 44px; }

  /* Forms more tappable */
  .input, .textarea, .select { padding: 14px 14px; font-size: 16px; /* prevent iOS zoom */ }
  .field label { font-size: 12px; }
  .chip { padding: 10px 14px; min-height: 40px; }

  /* Modals fullscreen-ish */
  .modal-root.open { padding: 0; align-items: flex-end; }
  .modal-dialog {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 92vh;
    animation: sheetUp .32s var(--ease);
  }
  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: none; }
  }
  .modal-header { padding: 18px 20px; }
  .modal-body { padding: 20px; }

  /* Cards tight */
  .card { padding: 22px 20px; }
  .service-card { padding: 22px 20px; }

  /* Calc */
  .calc { padding: 22px 18px; gap: 24px; }
  .calc-price { font-size: 40px; }

  /* Process */
  .process-step { padding: 22px 20px; }

  /* Lightbox */
  .lightbox { padding: 20px 10px; }
  .lb-close, .lb-prev, .lb-next { width: 40px; height: 40px; }

  /* FAQ */
  .faq-item summary { padding: 16px 48px 16px 18px; font-size: 15px; }
  .faq-answer { padding: 0 18px 18px; font-size: 14.5px; }

  /* Price table — horizontally scroll for readability */
  .price-table { font-size: 14px; }
  .price-table th, .price-table td { padding: 12px 14px; }

  /* Gallery filter horizontally scroll */
  .gallery-filter {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery-filter::-webkit-scrollbar { display: none; }
  .gallery-filter .chip { flex: none; }

  /* Breadcrumbs compact */
  .breadcrumbs { font-size: 12.5px; }

  /* Projects */
  .project-body { padding: 18px; }

  /* CTA block padding */
  .cta-block { padding: 28px 22px; }
  .cta-form-wrap { padding: 22px 18px; }

  /* Page hero compact */
  .page-hero { padding-block: 32px 28px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .page-hero p { font-size: 15px; }

  /* ======================================================
     Blog articles — mobile fix (2026-04-22)
     Inline styles на блог-страницах ломали layout на 375px:
     - grid-template-columns:1fr 240px (main + TOC aside) растягивал
     - .card > flex (цифра + контент) не переносил, клиппило справа
     - внутренний .grid.grid-2 (что-будет/правильно) оставался в 2 колонки
     ====================================================== */

  /* Блог: скрываем TOC aside и разваливаем 2-колоночный grid в 1 */
  aside.toc { display: none !important; }
  .section .container > .grid[style*="240px"] {
    /* minmax(0, 1fr) — позволяет track shrink ниже min-content (важно
       когда внутри flex/card с неявным min-width). 1fr один не справляется. */
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }
  article.prose { min-width: 0; }

  /* Карточка ошибки (.card в блоге): меньше padding */
  article.prose .card[style*="padding:28px"],
  article.prose .card[style*="padding: 28px"] {
    padding: 18px !important;
  }

  /* Flex-строка с большой цифрой: делаем flex-wrap чтобы цифра сверху
     либо children получают min-width: 0 чтобы корректно shrink */
  article.prose .card > div[style*="display:flex"] {
    gap: 14px !important;
    align-items: flex-start;
  }
  article.prose .card > div[style*="display:flex"] > * {
    min-width: 0; /* ключевой фикс — позволяет flex-item shrink ниже intrinsic */
  }
  /* Уменьшаем гигантскую цифру «01..08» на мобилке */
  article.prose .card > div[style*="display:flex"] > div[style*="font-size:48px"],
  article.prose .card > div[style*="display:flex"] > div[style*="font-size: 48px"] {
    font-size: 34px !important;
  }

  /* Внутренний grid-2 (❌ / ✓) — 1 колонка на мобилке */
  article.prose .card .grid.grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Таблицы в блог-карточках (normy-rovnosti.html и др.) — horizontal scroll
     вместо вылезания за край. Задаём прокрутку на родительской card. */
  article.prose .card:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  article.prose .card table {
    font-size: 13px;
  }
  article.prose .card table th,
  article.prose .card table td {
    white-space: nowrap;
  }

  /* Защита от любого inline stylesheet с фиксированной шириной */
  body { overflow-x: hidden; }
}

/* Scroll offset for sticky header on anchor jumps */
:is(section, article, [id]) { scroll-margin-top: 86px; }
@media (max-width: 640px) { :is(section, article, [id]) { scroll-margin-top: 64px; } }

/* Hide FAB when modal open (avoid overlap) */
body:has(.modal-root.open) .fab { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .fab, .hero-visual { display: none !important; }
}

/* ==========================================================================
   PREMIUM UPGRADE — typography, motion, bento, polish
   Layered on top so everything inherits without breaking existing rules
   ========================================================================== */

/* ----- Premium fonts ----- */
:root {
  --font-display: 'Unbounded', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Premium motion curves */
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out-quart: cubic-bezier(.76, 0, .24, 1);

  /* Noise, grain, vignette tokens */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

body {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'ss03', 'cv11';
  font-variant-numeric: lining-nums proportional-nums;
  letter-spacing: -.011em;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-weight: 700;
}
.eyebrow { font-family: var(--font-body); }
.adv-val, .stat-num, .calc-price, .hero-title, .service-price, .project-title {
  font-variant-numeric: tabular-nums lining-nums;
}
code, pre, .mono, [data-count] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
[data-count] { font-family: inherit; }

/* Display type uses slightly tighter tracking, larger fluid scale */
.hero-title {
  font-size: clamp(34px, 7vw, 86px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -.035em;
  line-height: 1.04;
  font-weight: 700;
}

/* Magnetic CTA — JS sets --mx/--my; CSS handles the movement */
[data-magnetic] {
  transition: transform .3s var(--ease-out-expo), box-shadow .3s var(--ease-out-expo);
  will-change: transform;
}
[data-magnetic].mag-active {
  transform: translate(var(--mx, 0), var(--my, 0));
}

/* ----- Motion system ----- */
/* Reveal variants (progressive enhancement — JS toggles .visible) */
.reveal { transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo); }
.reveal--left { transform: translateX(-40px); }
.reveal--left.visible { transform: none; }
.reveal--right { transform: translateX(40px); }
.reveal--right.visible { transform: none; }
.reveal--scale { transform: scale(.94); }
.reveal--scale.visible { transform: none; }
.reveal--fade { transform: none; }
.reveal--blur { filter: blur(12px); }
.reveal--blur.visible { filter: none; }

/* Stagger — each direct child gets a delay via --idx (set by JS) */
[data-stagger] > * {
  transition-delay: calc(var(--idx, 0) * 70ms);
}

/* Floating letters on hero title — per-letter fade up */
.kinetic { display: inline-block; }
.kinetic .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(.35em) rotateX(30deg);
  transition: opacity .6s var(--ease-out-expo), transform .9s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 24ms);
  transform-origin: 50% 100%;
}
.kinetic.played .char { opacity: 1; transform: none; }
.kinetic .char--space { width: .3em; }

/* Noise overlay — apply with `.has-grain` on any dark section */
.has-grain { position: relative; }
.has-grain::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .35;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Page entry — first paint smoother */
.page-enter { animation: pageEnter 1s var(--ease-out-expo) both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ----- Preloader ----- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .5s var(--ease-out-expo), visibility 0s linear .5s;
}
[data-theme='dark'] .preloader { background: var(--bg); }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.preloader-mark {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  display: grid; place-items: center;
  color: #fff; font-size: 28px; font-weight: 900;
  font-family: var(--font-display);
  box-shadow: 0 20px 40px -10px rgba(255,107,26,.4);
  position: relative;
  animation: logoPulse 1.6s ease-in-out infinite;
}
.preloader-mark::after {
  content: ''; position: absolute; inset: -6px;
  border: 2px solid var(--accent);
  border-radius: 22px;
  opacity: 0;
  animation: logoRing 1.6s ease-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(.95); }
}
@keyframes logoRing {
  0% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
.preloader-bar {
  width: 120px; height: 2px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.preloader-bar::after {
  content: ''; display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: barSlide 1.2s ease-in-out infinite;
}
@keyframes barSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* ----- Process timeline — connecting line + progress ----- */
.process-grid { counter-reset: step; position: relative; }
.process-grid::before {
  content: '';
  position: absolute;
  left: 5%; right: 5%; top: 46px;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--accent-soft-2) 0 8px,
    transparent 8px 16px);
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 900px) {
  .process-grid::before { display: none; }
}
.process-step { position: relative; z-index: 1; background: var(--surface); }
.process-num {
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft), #fff8f1);
  color: var(--accent);
  box-shadow: 0 6px 14px -4px rgba(255,107,26,.25), inset 0 1px 0 rgba(255,255,255,.8);
  font-family: var(--font-display); font-weight: 800;
}
[data-theme='dark'] .process-num {
  background: linear-gradient(135deg, rgba(255,107,26,.18), rgba(255,107,26,.06));
  box-shadow: 0 6px 14px -4px rgba(255,107,26,.3), inset 0 1px 0 rgba(255,255,255,.1);
}

/* ----- Review card polish ----- */
.review-card { position: relative; padding-top: 28px; }
.review-card::before {
  content: '"';
  position: absolute;
  top: -6px; left: 22px;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  color: var(--accent);
  opacity: .18;
  font-weight: 900;
}
.review-card .stars {
  background: linear-gradient(135deg, #ffb400, #ff8c00);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(255,180,0,.3));
}

/* ----- FAQ polish ----- */
.faq-item {
  transition: border-color var(--dur) var(--ease-out-expo),
              box-shadow var(--dur) var(--ease-out-expo),
              transform var(--dur) var(--ease-out-expo);
}
.faq-item:hover { transform: translateX(2px); border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent-soft-2); background: linear-gradient(180deg, var(--surface), var(--accent-soft)); }
[data-theme='dark'] .faq-item[open] { background: linear-gradient(180deg, var(--surface), rgba(255,107,26,.06)); }
.faq-item summary { font-family: var(--font-display); letter-spacing: -.01em; }

/* ----- Footer polish ----- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute;
  left: 50%; top: -200px; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,26,.18), transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}
.site-footer .container { position: relative; }
.site-footer .logo { font-size: 22px; }
.site-footer .logo-mark { width: 40px; height: 40px; font-size: 18px; }

/* ==========================================================================
   BENTO SECTION — "Наш цех live"
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}
.bento-cell {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s var(--ease-out-expo), transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo);
}
.bento-cell:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.bento-cell--dark {
  background: linear-gradient(135deg, #141821 0%, #0c0f16 100%);
  color: var(--dark-text);
  border-color: rgba(255,255,255,.08);
}
.bento-cell--dark:hover { border-color: rgba(255,107,26,.3); }
.bento-cell--accent {
  background: linear-gradient(135deg, var(--accent), #ff8430);
  color: #fff;
  border-color: transparent;
}

/* Span utilities */
.bento-2x2 { grid-column: span 2; grid-row: span 2; }
.bento-2x1 { grid-column: span 2; grid-row: span 1; }
.bento-1x2 { grid-column: span 1; grid-row: span 2; }
.bento-1x1 { grid-column: span 1; grid-row: span 1; }

.bento-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.bento-cell--dark .bento-eyebrow { color: rgba(255,255,255,.55); }
.bento-cell--accent .bento-eyebrow { color: rgba(255,255,255,.8); }

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 10px;
  color: inherit;
}
.bento-cell--dark .bento-title { color: var(--dark-text); }

.bento-desc {
  color: var(--text-muted);
  font-size: 14.5px; line-height: 1.55;
}
.bento-cell--dark .bento-desc { color: var(--dark-text-muted); }
.bento-cell--accent .bento-desc { color: rgba(255,255,255,.85); }

/* Big visual cell with animated laser/scan */
.bento-live {
  min-height: 380px;
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(255,107,26,.18), transparent 55%),
    linear-gradient(135deg, #0b0d12 0%, #141821 60%, #0b0d12 100%);
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}
.bento-live::before {
  /* Blueprint grid под всем (decorative) */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 0%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
.bento-live-content { position: relative; z-index: 2; }
.bento-live h3 { color: #fff; }

/* Tabs — переключатель покрытия */
.scan-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 14px;
}
.scan-tab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur);
}
.scan-tab:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateY(-1px);
}
.scan-tab.is-active {
  background: rgba(255,107,26,.22);
  border-color: rgba(255,107,26,.55);
  color: #ffb075;
}

/* SVG-стейдж: сетка, точки измерений, лазер */
.scan-stage {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,107,26,.04), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  min-height: 140px;
}
.scan-svg {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute; inset: 0;
}
/* Laser */
.scan-laser {
  filter: drop-shadow(0 0 3px #ff6b1a) drop-shadow(0 0 8px rgba(255,107,26,.6));
  animation: scanLaserSweep 6s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes scanLaserSweep {
  0%   { transform: translateY(0%);   opacity: 0; }
  6%   { opacity: 1; }
  48%  { transform: translateY(100%); opacity: 1; }
  54%  { opacity: 0; }
  100% { transform: translateY(0%);   opacity: 0; }
}
/* Measurement points */
.scan-point {
  transition: fill var(--dur), stroke var(--dur), r var(--dur);
}
.scan-point-glow {
  opacity: 0;
  transition: opacity var(--dur);
}
.scan-point.is-visible .scan-point-glow {
  opacity: 1;
}
.scan-point-dot {
  fill: rgba(255,255,255,.25);
  stroke: rgba(255,255,255,.4);
  stroke-width: .2;
}
.scan-point.is-visible .scan-point-dot {
  fill: #16d27f;
  stroke: rgba(22,210,127,.8);
}
.scan-point.is-bad.is-visible .scan-point-dot {
  fill: #ff5a4e;
  stroke: rgba(255,90,78,.9);
}
.scan-point-val {
  fill: rgba(255,255,255,.0);
  font: 700 2.8px / 1 var(--font-mono);
  transition: fill var(--dur);
  text-anchor: middle;
  pointer-events: none;
}
.scan-point.is-visible .scan-point-val { fill: rgba(255,255,255,.9); }
.scan-point.is-bad.is-visible .scan-point-val { fill: #ffb8b2; }

/* Verdict внизу: живой вывод */
.scan-verdict {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.75);
  padding-top: 4px;
}
.scan-verdict-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 14px;
  line-height: 1.2;
}
.v-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 4.2vw, 26px);
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1;
  margin-right: 4px;
  font-feature-settings: "tnum";
}
.v-num.v-warn { color: #ff8a80; }
.v-lbl { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.3; }
.v-sep { opacity: .35; padding: 0 2px; }
.scan-verdict-rec {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 10px;
  margin-top: 2px;
}
.v-rec-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,107,26,.85);
  font-weight: 700;
  margin-right: 6px;
}
#scanRec { color: #fff; font-weight: 500; }
#scanRec.is-ok::before { content: '✓ '; color: #16d27f; }
#scanRec.is-warn::before { content: '⚠ '; color: #ffb075; }

/* Counter cell (big number) */
.bento-counter {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 180px;
}
.bento-counter-val {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800; line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bento-cell--dark .bento-counter-val {
  background: linear-gradient(180deg, #fff 0%, #ff9340 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bento-counter-trend {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--success);
  font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-full);
  background: var(--success-soft);
  width: max-content;
}
.bento-cell--dark .bento-counter-trend {
  background: rgba(22,210,127,.14);
  color: #5ee3a8;
}

/* Mini map cell */
.bento-map {
  background:
    radial-gradient(circle at 50% 55%, rgba(255,107,26,.2), transparent 50%),
    linear-gradient(180deg, #1a1f28, #0f131a);
  color: #fff;
  min-height: 180px;
  overflow: hidden;
}
.bento-map svg { display: block; width: 100%; height: 100%; }
.bento-map-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #ff6b1a;
  box-shadow: 0 0 0 4px rgba(255,107,26,.3), 0 0 14px rgba(255,107,26,.8);
  animation: pinPulse 2s ease-in-out infinite;
}
.bento-map-pin::after {
  content: ''; position: absolute; inset: -10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pinRipple 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes pinRipple {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Rating cell */
.bento-rating {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px;
}
.bento-rating-val {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, #ffb400, #ff8c00);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bento-rating-stars {
  color: #ffb400; letter-spacing: 3px; font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(255,180,0,.35));
}

/* CTA cell (2×2 acccent) */
.bento-cta {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 380px;
}
.bento-cta .btn { align-self: flex-start; }
.cta-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cta-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.cta-checklist .chk {
  flex: none;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.22);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  transform: translateY(1px);
}
.cta-actions {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  align-items: flex-start;
}
.cta-phone {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur);
}
.cta-phone:hover { color: #fff; }

/* UTP cells — конкретные факты */
.bento-utp {
  display: flex; flex-direction: column;
  min-height: 180px;
}
.utp-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,107,26,.12);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.utp-icon svg {
  width: 22px; height: 22px;
}
.utp-lead {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.utp-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.utp-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: auto 0 0;
}
.utp-desc b {
  color: var(--text);
  font-weight: 700;
}

/* Mobile bento — single column with reordering */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(140px, auto); gap: 10px; }
  .bento-2x2 { grid-column: span 2; grid-row: span 2; }
  .bento-2x1 { grid-column: span 2; }
  .bento-1x2 { grid-column: span 1; grid-row: span 1; }
  .bento-live { min-height: 360px; }
  .scan-stage { min-height: 150px; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento-2x2, .bento-2x1, .bento-1x2 { grid-column: span 1; grid-row: auto; }
  .bento-live { min-height: 340px; }
  .scan-stage { min-height: 140px; }
  .scan-tabs { gap: 4px; }
  .scan-tab { padding: 6px 10px; font-size: 12px; }
  .bento-cell { padding: 20px; }
  .bento-counter-val { font-size: 48px; }
  .brigades-list { font-size: 12px; }
}

/* ==========================================================================
   SERVICE PAGE — Premium hero (replaces simpler .page-hero on service pages)
   ========================================================================== */
.service-hero {
  position: relative;
  background: linear-gradient(180deg, #0b0d12 0%, #141821 100%);
  color: var(--dark-text);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 7vw, 100px) 0 clamp(44px, 5vw, 70px);
}
.service-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 95% -10%, rgba(255,107,26,.22), transparent 55%),
    radial-gradient(600px 400px at -5% 80%, rgba(80,120,180,.12), transparent 55%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 40px;
  pointer-events: none; z-index: 0;
}
.service-hero::after {
  content: ''; position: absolute; inset: 0;
  background: var(--noise);
  opacity: .28;
  mix-blend-mode: overlay;
  pointer-events: none; z-index: 1;
}
.service-hero .breadcrumbs {
  padding: 0 0 18px; color: rgba(255,255,255,.55);
  position: relative; z-index: 2;
}
.service-hero .breadcrumbs a { color: rgba(255,255,255,.55); }
.service-hero .breadcrumbs a:hover { color: var(--accent); }
.service-hero .breadcrumbs [aria-current='page'] { color: rgba(255,255,255,.9); }
.service-hero .breadcrumbs li:not(:last-child)::after { color: rgba(255,255,255,.3); }
.service-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.35fr .8fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.service-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 68px);
  line-height: 1; letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 700;
}
.service-hero h1 .accent {
  background: linear-gradient(135deg, #ff9455 0%, var(--accent) 40%, #ffb380 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
.service-hero p.lead {
  color: rgba(255,255,255,.7);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 560px; margin-bottom: 26px;
}
.service-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(255,107,26,.14);
  border: 1px solid rgba(255,107,26,.3);
  color: #ffb684;
  font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
  margin-bottom: 18px;
}
.service-hero .btn-on-dark {
  background: rgba(255,255,255,.08);
  color: #fff; border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.service-hero .btn-on-dark:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Price widget on service hero */
.service-hero-price {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
}
.service-hero-price::before {
  content: ''; position: absolute;
  width: 280px; height: 280px;
  right: -80px; top: -100px;
  background: radial-gradient(circle, rgba(255,107,26,.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.service-hero-price-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.55); font-weight: 700;
  margin-bottom: 8px;
}
.service-hero-price-val {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 66px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, #fff 0%, #ff9340 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.service-hero-price-val small {
  font-size: .32em; color: rgba(255,255,255,.7);
  -webkit-text-fill-color: rgba(255,255,255,.7);
  font-weight: 700; margin-left: 6px;
}
.service-hero-price-note { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 14px; }
.service-hero-price-list {
  padding-top: 16px; margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: grid; gap: 8px;
  font-size: 13.5px; color: rgba(255,255,255,.85);
}
.service-hero-price-list li { list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.service-hero-price-list li::before {
  content: ''; width: 14px; height: 14px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  box-shadow: 0 2px 6px rgba(255,107,26,.5);
  background-image:
    linear-gradient(135deg, var(--accent), #ff9340),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='white'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: cover;
}

@media (max-width: 860px) {
  .service-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-hero-price { padding: 22px 20px; }
}

/* ==========================================================================
   OBJECT (case-study) premium hero
   ========================================================================== */
.object-hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 90% 0%, rgba(255,107,26,.12), transparent 55%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 5vw, 72px) 0 clamp(30px, 4vw, 50px);
  overflow: hidden;
}
.object-hero-inner { position: relative; z-index: 2; }
.object-hero-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 20px;
}
.object-metric {
  padding: 18px 16px; border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: transform .3s var(--ease-out-expo), border-color .3s, box-shadow .3s;
}
.object-metric:hover { transform: translateY(-2px); border-color: var(--accent-soft-2); box-shadow: var(--sh-sm); }
.object-metric-val {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1;
  margin-bottom: 4px;
}
.object-metric-val.is-good { color: var(--success); }
.object-metric-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
@media (max-width: 640px) {
  .object-hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .object-metric { padding: 14px 12px; }
}

/* ==========================================================================
   Blog article polish
   ========================================================================== */
.blog-hero {
  position: relative;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(255,107,26,.1), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5vw, 68px) 0 clamp(28px, 3vw, 48px);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.04; letter-spacing: -.035em;
  margin-bottom: 12px;
  font-weight: 700;
}
.blog-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13.5px; color: var(--text-muted);
  margin-top: 12px;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }

.prose {
  font-family: var(--font-body);
  font-size: 17.5px; line-height: 1.75;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -.025em;
  margin-top: 56px;
  font-weight: 700;
}
.prose h2::before {
  content: ''; display: inline-block;
  width: 24px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ff9340);
  vertical-align: middle; margin-right: 10px;
  transform: translateY(-4px);
}
.prose h3 { font-family: var(--font-display); letter-spacing: -.02em; }
.prose blockquote {
  position: relative;
  border-left: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-lg);
  padding: 22px 28px 22px 60px;
}
.prose blockquote::before {
  content: '"';
  position: absolute; left: 20px; top: 6px;
  font-family: var(--font-display);
  font-size: 64px; line-height: 1;
  color: var(--accent);
  font-weight: 900;
}

/* TOC polish */
.toc {
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  box-shadow: var(--sh-sm);
}

/* ==========================================================================
   Header: search hint + scrolled state polish
   ========================================================================== */
.site-header { transition: box-shadow .3s var(--ease-out-expo), background .3s var(--ease-out-expo), border-color .3s var(--ease-out-expo); }
.site-header.scrolled { box-shadow: 0 4px 16px -8px rgba(15,17,21,.08); }
[data-theme='dark'] .site-header.scrolled { box-shadow: 0 4px 16px -8px rgba(0,0,0,.4); }

/* Nav link underline grows */
.nav a:not(.active)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out-expo);
}
.nav a:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Buttons: spring shine on primary hover
   ========================================================================== */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute;
  top: 0; left: -70%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-24deg);
  transition: left .7s var(--ease-out-expo);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ==========================================================================
   Service card: premium micro-interactions
   ========================================================================== */
.service-card {
  transition: transform .4s var(--ease-out-expo),
              border-color .4s var(--ease-out-expo),
              box-shadow .4s var(--ease-out-expo);
}
.service-card::after {
  content: ''; position: absolute;
  inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }

/* Arrow animation polish */
.service-more { transition: gap .3s var(--ease-out-expo); }
.service-card:hover .service-more { gap: 10px; color: var(--accent-dark); }

/* ==========================================================================
   Project card: image hover with label slide
   ========================================================================== */
.project-card { transition: transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.project-thumb { transition: transform .5s var(--ease-out-expo); }
.project-card:hover .project-thumb { transform: scale(1.03); }
.project-placeholder { transition: filter .5s var(--ease-out-expo); }
.project-card:hover .project-placeholder { filter: saturate(1.15); }

/* ==========================================================================
   Stats card premium
   ========================================================================== */
.stat { transition: all .4s var(--ease-out-expo); }
.stat:hover .stat-num {
  background: linear-gradient(135deg, var(--accent), #ff9340);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Subtle scrollbar (light theme) + dark
   ========================================================================== */
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; border: 2px solid var(--bg); }
  ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
}

/* ==========================================================================
   View transitions — smooth page-to-page with shared elements
   ========================================================================== */
@view-transition { navigation: auto; }

@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: .5s;
    animation-timing-function: var(--ease-out-expo);
  }
  ::view-transition-old(root) { animation-name: vtFadeOut; }
  ::view-transition-new(root) { animation-name: vtFadeIn; }

  /* Shared elements — header, logo and FAB don't flash between pages */
  .site-header { view-transition-name: site-header; }
  .logo:not(.mobile-menu .logo):not(.footer-grid .logo) { view-transition-name: site-logo; }
  .fab { view-transition-name: site-fab; }
  ::view-transition-old(site-header),
  ::view-transition-new(site-header),
  ::view-transition-old(site-logo),
  ::view-transition-new(site-logo),
  ::view-transition-old(site-fab),
  ::view-transition-new(site-fab) {
    animation-duration: .35s;
    animation-timing-function: var(--ease-out-expo);
  }
}
@keyframes vtFadeOut {
  to { opacity: 0; transform: translateY(-6px); filter: blur(4px); }
}
@keyframes vtFadeIn {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
}

/* ==========================================================================
   Mobile adjustments for new elements
   ========================================================================== */
@media (max-width: 640px) {
  .service-hero { padding: 36px 0 28px; }
  .service-hero-grid { gap: 22px; }
  .object-hero { padding: 32px 0 22px; }
  .bento-live h3 { font-size: 20px; }
  .site-footer { padding-top: 44px; }
  .prose { font-size: 16.5px; }
  .prose h2 { margin-top: 36px; font-size: 24px; }
}

/* ==========================================================================
   Auto-premium for service pages (no HTML rewrite needed — cascade upgrade)
   Triggers on any body[data-page^="service:"]
   ========================================================================== */
body[data-page^="service:"] .page-hero {
  background: linear-gradient(180deg, #0b0d12 0%, #141821 100%);
  color: var(--dark-text);
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 7vw, 100px) 0 clamp(44px, 5vw, 70px);
  border-bottom: 0;
}
body[data-page^="service:"] .page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 95% -10%, rgba(255,107,26,.22), transparent 55%),
    radial-gradient(600px 400px at -5% 80%, rgba(80,120,180,.12), transparent 55%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 40px;
  pointer-events: none; z-index: 0;
}
body[data-page^="service:"] .page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: var(--noise); opacity: .28;
  mix-blend-mode: overlay; pointer-events: none; z-index: 1;
}
body[data-page^="service:"] .page-hero .container { position: relative; z-index: 2; }
body[data-page^="service:"] .page-hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 68px);
  letter-spacing: -.04em;
  line-height: 1;
}
body[data-page^="service:"] .page-hero p { color: rgba(255,255,255,.75); }
body[data-page^="service:"] .page-hero .breadcrumbs,
body[data-page^="service:"] .page-hero .breadcrumbs a { color: rgba(255,255,255,.55); }
body[data-page^="service:"] .page-hero .breadcrumbs a:hover { color: var(--accent); }
body[data-page^="service:"] .page-hero .breadcrumbs [aria-current='page'] { color: rgba(255,255,255,.9); }
body[data-page^="service:"] .page-hero .breadcrumbs li:not(:last-child)::after { color: rgba(255,255,255,.3); }
body[data-page^="service:"] .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(255,107,26,.14);
  border: 1px solid rgba(255,107,26,.3);
  color: #ffb684;
  font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
  margin-bottom: 18px;
}
body[data-page^="service:"] .page-hero .eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #ffb684; box-shadow: 0 0 6px rgba(255,180,120,.6);
}
/* Price widget glass */
body[data-page^="service:"] .page-hero .card {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  border-radius: var(--r-xl) !important;
}
body[data-page^="service:"] .page-hero .card::before {
  content: ''; position: absolute;
  width: 280px; height: 280px;
  right: -80px; top: -100px;
  background: radial-gradient(circle, rgba(255,107,26,.35), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
body[data-page^="service:"] .page-hero .card > * { position: relative; z-index: 1; }
body[data-page^="service:"] .page-hero .card [style*="color:var(--text-muted)"],
body[data-page^="service:"] .page-hero .card [style*="color: var(--text-muted)"] {
  color: rgba(255,255,255,.55) !important;
}
body[data-page^="service:"] .page-hero .card [style*="var(--text-2)"] {
  color: rgba(255,255,255,.85) !important;
}
body[data-page^="service:"] .page-hero .card [style*="background:linear-gradient(135deg,var(--accent),#ff9340)"] {
  background: linear-gradient(135deg, #fff 0%, #ff9340 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
body[data-page^="service:"] .page-hero .card [style*="color:var(--text)"] {
  -webkit-text-fill-color: rgba(255,255,255,.75) !important;
  color: rgba(255,255,255,.75) !important;
}
body[data-page^="service:"] .page-hero .card [style*="border-top:1px solid var(--line)"] {
  border-top: 1px solid rgba(255,255,255,.1) !important;
}
/* Secondary button on dark */
body[data-page^="service:"] .page-hero .btn-outline {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
body[data-page^="service:"] .page-hero .btn-outline:hover {
  background: rgba(255,255,255,.14); color: #fff;
  border-color: rgba(255,255,255,.3);
}

/* Stack any inline-column grid on mobile — covers hero/article layouts */
@media (max-width: 780px) {
  main .grid[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
  .toc {
    position: static !important;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .prose { max-width: 100%; }
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table { min-width: 100%; }
}
main { overflow-x: clip; }

/* ==========================================================================
   Auto-premium for object case-study pages
   ========================================================================== */
body[data-page="object"] .page-hero {
  background:
    radial-gradient(1000px 500px at 90% 0%, rgba(255,107,26,.12), transparent 55%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding: clamp(44px, 5vw, 72px) 0 clamp(30px, 4vw, 50px);
  position: relative; overflow: hidden;
}
body[data-page="object"] .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 54px);
  letter-spacing: -.035em;
}
body[data-page="object"] .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  color: var(--accent-dark);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
body[data-page="object"] .page-hero .eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,26,.22);
  animation: pulse 2s infinite;
}
/* Object stat cards in hero */
body[data-page="object"] .page-hero .card {
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out-expo), border-color .3s, box-shadow .3s;
}
body[data-page="object"] .page-hero .card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft-2);
  box-shadow: var(--sh-sm);
}

/* ==========================================================================
   Auto-premium for blog article pages
   ========================================================================== */
body[data-page^="blog:"] .page-hero {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(255,107,26,.1), transparent 60%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  position: relative; overflow: hidden;
}
body[data-page^="blog:"] .page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 54px);
  letter-spacing: -.035em; line-height: 1.04;
}
body[data-page^="blog:"] .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
}

/* ==========================================================================
   Auto-premium for prices/contacts/gallery/video/404
   ========================================================================== */
body[data-page="prices"] .page-hero,
body[data-page="contacts"] .page-hero,
body[data-page="gallery"] .page-hero,
body[data-page="video"] .page-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255,107,26,.1), transparent 55%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  position: relative; overflow: hidden;
}
body[data-page="prices"] .page-hero h1,
body[data-page="contacts"] .page-hero h1,
body[data-page="gallery"] .page-hero h1,
body[data-page="video"] .page-hero h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
}

/* ==========================================================================
   PASS 1 POLISH — cursor aura, sticky bar, dividers, FAQ ±, etc.
   ========================================================================== */

/* Cursor aura — ambient glow following cursor. Uses --cx/--cy from JS */
body::before {
  content: '';
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    360px 360px at var(--cx, -1000px) var(--cy, -1000px),
    rgba(255, 107, 26, .12),
    transparent 60%
  );
  mix-blend-mode: plus-lighter;
  opacity: 0;
  transition: opacity .4s var(--ease-out-expo);
}
body.has-aura::before { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Sticky action bar — slides in after hero */
.sticky-action {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: calc(var(--z-sticky) + 2);
  background: rgba(14, 17, 22, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 107, 26, .18);
  transform: translateY(-100%);
  transition: transform .35s var(--ease-out-expo);
  padding: 10px var(--gutter);
}
.sticky-action.visible { transform: none; }
.sticky-action-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 14px;
}
.sticky-action-left {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -.01em;
}
.sticky-action-left .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #16d27f; box-shadow: 0 0 8px #16d27f;
  animation: blink 1.8s ease-in-out infinite;
}
.sticky-action-right { display: inline-flex; gap: 10px; align-items: center; }
.sticky-action .sticky-phone {
  color: #fff; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sticky-action .sticky-phone:hover { color: #ffb684; }
.sticky-action .btn { padding: 9px 16px; font-size: 13.5px; border-radius: var(--r-sm); }
@media (max-width: 640px) {
  .sticky-action-inner { gap: 10px; font-size: 13px; }
  .sticky-action-left { display: none; }
  .sticky-action-right { margin-left: auto; flex-direction: row-reverse; }
  .sticky-action .sticky-phone { font-size: 14px; }
}

/* Smooth theme transition — scoped to themeable surfaces only (no jank) */
html, body {
  transition: background-color .4s var(--ease-out-expo), color .4s var(--ease-out-expo);
}

/* FAQ — new +/× icon replacing the chevron */
.faq-item summary::after {
  content: '';
  width: 16px; height: 16px;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  color: var(--text-muted);
  transform: translateY(-50%) rotate(0);
  top: 50%; right: 22px;
  transition: transform .35s var(--ease-out-expo), color .3s;
  border-radius: 2px;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent);
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
}

/* Section dividers — between sections */
.divider {
  position: relative;
  margin: 0 auto;
  max-width: var(--container);
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 14px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.divider-mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 0 16px rgba(255, 107, 26, .4);
  flex: none;
}
[data-theme='dark'] .divider-mark { box-shadow: 0 0 0 6px rgba(255,107,26,.1), 0 0 16px rgba(255, 107, 26, .5); }

/* Service icon — wrap in a spinner on home page hover */
.service-card:hover .service-icon svg {
  animation: svcSpin 1.2s ease-in-out;
}
@keyframes svcSpin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.service-card .service-icon svg { transition: transform .3s var(--ease-out-expo); }

/* Process progress line — replaces dashed with animated fill */
.process-grid { position: relative; }
.process-grid::before {
  background: var(--line);
  height: 2px;
}
.process-grid::after {
  content: '';
  position: absolute;
  left: 5%; top: 46px;
  height: 2px;
  width: calc(var(--progress, 0) * 90%);
  background: linear-gradient(90deg, var(--accent), #ff9340);
  box-shadow: 0 0 10px rgba(255, 107, 26, .5);
  transition: width .4s var(--ease-out-expo);
  z-index: 0;
  border-radius: 2px;
}
@media (max-width: 900px) {
  .process-grid::after { display: none; }
}
.process-step.is-active .process-num {
  background: linear-gradient(135deg, var(--accent), #ff9340);
  color: #fff;
  transform: scale(1.05);
  transition: transform .4s var(--ease-out-expo);
}

/* ==========================================================================
   PASS 2 — comparison table, equipment, enhanced calc, social-proof
   ========================================================================== */

/* Comparison table — us vs. others */
.compare {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.compare-head, .compare-row { display: contents; }
.compare > * {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.compare-head > * {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.015em;
  padding: 22px;
}
.compare-head > .us {
  background: linear-gradient(135deg, var(--accent-soft), #fff4ea);
  color: var(--accent-dark);
}
[data-theme='dark'] .compare-head > .us {
  background: linear-gradient(135deg, rgba(255,107,26,.14), rgba(255,107,26,.06));
  color: #ff9340;
}
.compare > :last-child,
.compare > :nth-last-child(2),
.compare > :nth-last-child(3) { border-bottom: 0; }
.compare .us { background: var(--accent-soft); }
[data-theme='dark'] .compare .us { background: rgba(255,107,26,.06); }
.compare .yes, .compare .no {
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.compare .yes { color: var(--success); }
.compare .no { color: var(--text-dim); }
.compare .yes::before, .compare .no::before {
  width: 18px; height: 18px; border-radius: 50%;
  flex: none;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.compare .yes::before {
  content: '✓';
  background: var(--success-soft);
  color: var(--success);
}
.compare .no::before {
  content: '—';
  background: var(--surface-3);
  color: var(--text-dim);
}
.compare-feat { font-weight: 600; color: var(--text); }
.compare-feat small { display: block; color: var(--text-muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1.8fr 1fr 1fr; }
  .compare > * { padding: 14px 12px; font-size: 13.5px; }
  .compare-head > * { padding: 14px 12px; font-size: 13px; }
  .compare-feat small { font-size: 11.5px; }
  .compare .yes, .compare .no { gap: 6px; }
  .compare .yes::before, .compare .no::before { width: 16px; height: 16px; font-size: 10px; }
}

/* Equipment / trusted brands strip */
.brands {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 28px clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  align-items: center;
}
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: -.01em;
  transition: color .3s var(--ease-out-expo), transform .3s var(--ease-out-expo);
}
.brand:hover { color: var(--text); transform: translateY(-2px); }
.brand-logo {
  height: 28px; display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 18px;
  letter-spacing: -.04em;
  opacity: .7;
}
.brand-logo svg { width: auto; height: 100%; }
.brand small {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; color: var(--text-dim);
}
@media (max-width: 860px) { .brands { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .brands { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 18px; } }

/* Calculator breakdown detail */
.calc-details {
  display: grid; gap: 6px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-muted);
  margin-top: 8px;
}
.calc-details > div {
  display: flex; justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.calc-details b { color: var(--text-2); font-weight: 600; }

/* Social-proof toast — bottom-left floating */
.social-toast {
  position: fixed;
  left: 20px; bottom: 20px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 16px 12px 12px;
  box-shadow: var(--sh-lg);
  display: flex; gap: 12px; align-items: center;
  transform: translateX(-120%); opacity: 0;
  transition: transform .5s var(--ease-out-expo), opacity .5s var(--ease-out-expo);
  z-index: var(--z-sticky);
  pointer-events: auto;
}
.social-toast.visible { transform: none; opacity: 1; }
.social-toast-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9340);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
  font-family: var(--font-display);
  flex: none;
}
.social-toast-text {
  font-size: 13px; line-height: 1.4; color: var(--text-2);
}
.social-toast-text b { color: var(--text); font-weight: 600; }
.social-toast-text small { color: var(--text-dim); font-size: 11.5px; }
.social-toast-close {
  background: none; border: 0; cursor: pointer;
  color: var(--text-dim); padding: 0 0 0 6px;
  font-size: 18px;
}
@media (max-width: 640px) {
  .social-toast { left: 10px; right: 10px; max-width: none; bottom: 80px; }
  body:has(.modal-root.open) .social-toast { display: none; }
}

/* Dust canvas layer inside hero-scan */
.hero-dust {
  position: absolute; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: .7;
}

/* Live-chat bubble — speech pop-up above FAB */
.chat-bubble {
  position: fixed;
  right: 82px; bottom: 22px;
  max-width: 280px;
  padding: 12px 14px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 4px var(--r-lg);
  box-shadow: var(--sh-lg);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0; transform: translateX(12px) scale(.95);
  transition: opacity .4s var(--ease-out-expo), transform .4s var(--ease-out-expo);
  pointer-events: none;
}
.chat-bubble.visible { opacity: 1; transform: none; pointer-events: auto; }
.chat-bubble b {
  display: block; font-family: var(--font-display);
  font-size: 13px; color: var(--text); margin-bottom: 4px;
  letter-spacing: -.01em;
}
.chat-bubble .chat-replies {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 10px;
}
.chat-bubble .chat-reply {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: all .2s var(--ease-out-expo);
}
.chat-bubble .chat-reply:hover {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateX(2px);
}
.chat-bubble-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-dim); font-size: 16px;
  padding: 2px;
  line-height: 1;
}
@media (max-width: 640px) {
  .chat-bubble { right: 78px; bottom: 18px; max-width: 220px; }
  body:has(.modal-root.open) .chat-bubble { display: none; }
}

/* ==========================================================================
   PASS 3 — native scroll-driven, section nav, focus, brand logo, PWA
   ========================================================================== */

/* Native scroll-driven reveal — only on big layout blocks, not every .reveal */
@supports (animation-timeline: view()) {
  main .section-head.reveal,
  main .bento.reveal,
  main .compare.reveal,
  main .brands.reveal,
  main .calc.reveal {
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes scrollReveal {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute; top: -40px; left: 12px; z-index: 10000;
  padding: 10px 16px;
  background: var(--text); color: var(--bg);
  font-weight: 700; font-size: 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top .2s var(--ease-out-expo);
}
.skip-link:focus { top: 10px; }

/* Focus-visible polish — orange ring with offset */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 5px rgba(255, 107, 26, .16);
}
.btn:focus-visible, .nav a:focus-visible, .chip:focus-visible, .faq-item summary:focus-visible {
  outline-offset: 4px;
}

/* Sticky section progress nav (auto-built on article/service pages) */
.section-nav {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: calc(var(--z-sticky) + 1);
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 10px;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  opacity: 0;
  transition: opacity .35s var(--ease-out-expo);
  pointer-events: none;
}
[data-theme='dark'] .section-nav {
  background: rgba(20, 24, 33, .72);
  border-color: rgba(255,255,255,.08);
}
.section-nav.visible { opacity: 1; pointer-events: auto; }
.section-nav-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-contrast);
  cursor: pointer;
  position: relative;
  transition: transform .3s var(--ease-out-expo), background .3s;
}
.section-nav-dot:hover { transform: scale(1.4); background: var(--accent); }
.section-nav-dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,107,26,.2);
}
.section-nav-dot::before {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 10px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-out-expo);
}
.section-nav-dot:hover::before {
  opacity: 1; transform: translateY(-50%) translateX(0);
}
@media (max-width: 900px) { .section-nav { display: none; } }

/* Keyboard shortcuts help overlay */
.shortcuts-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(10, 12, 18, .7);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .25s var(--ease-out-expo);
}
.shortcuts-overlay.open { display: flex; }
.shortcuts-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  max-width: 480px; width: 100%;
  box-shadow: var(--sh-lg);
  animation: modalIn .3s var(--ease-out-expo);
}
.shortcuts-panel h3 {
  font-family: var(--font-display);
  font-size: 22px; margin-bottom: 18px;
  letter-spacing: -.02em;
}
.shortcuts-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.shortcuts-row:last-child { border-bottom: 0; }
.kbd {
  display: inline-block;
  padding: 3px 8px; min-width: 24px;
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  text-align: center;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}

/* PWA install banner */
.install-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 420px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-lg);
  transform: translateY(calc(100% + 32px));
  transition: transform .45s var(--ease-out-expo);
  z-index: var(--z-sticky);
}
.install-banner.visible { transform: none; }
.install-banner .install-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), #ff9340);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--sh-accent);
  flex: none;
}
.install-banner b { display: block; font-size: 14px; color: var(--text); }
.install-banner small { font-size: 12.5px; color: var(--text-muted); }
.install-banner .install-actions {
  display: flex; gap: 8px; margin-left: auto; flex: none;
}

/* Brand logo micro-animation */
.logo-mark {
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out-expo);
}
.logo:hover .logo-mark::after { transform: translateX(120%); }
.logo:hover .logo-mark {
  animation: logoPop .6s var(--ease-out-expo);
}
@keyframes logoPop {
  0% { transform: scale(1) rotate(0); }
  30% { transform: scale(.9) rotate(-6deg); }
  60% { transform: scale(1.08) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ==========================================================================
   PASS 4 — tagline rotator, calc 2.0, zone map, hero mini-chip
   ========================================================================== */

/* Animated tagline rotator under hero h1 */
.tagline-rotator {
  display: inline-flex;
  min-height: 1.3em;
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 1.15vw, 17px);
  color: rgba(255, 180, 120, .9);
  letter-spacing: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.tagline-rotator::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  align-self: center;
  margin-right: 12px;
  flex: none;
}
.tagline-rotator .tagline-word {
  display: inline-block;
  position: relative;
  transition: opacity .5s var(--ease-out-expo), transform .5s var(--ease-out-expo);
}
.tagline-rotator .tagline-word.leaving {
  opacity: 0;
  transform: translateY(-8px);
}
.tagline-rotator .tagline-word.entering {
  opacity: 0;
  transform: translateY(10px);
}

/* Calculator slider */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--surface-3);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin: 10px 0 4px;
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--val, 50%), var(--line) var(--val, 50%), var(--line) 100%);
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(255, 107, 26, .35);
  cursor: grab;
  transition: transform .15s var(--ease-out-expo);
}
.calc-slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.calc-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(255, 107, 26, .35);
  cursor: grab;
}
.calc-area-display {
  display: flex; justify-content: space-between; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.calc-area-display .val {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.calc-area-display small { color: var(--text-dim); font-size: 12px; }

/* Zone map (inside kontakty) */
.zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.zone {
  padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform .25s var(--ease-out-expo), border-color .25s, box-shadow .25s;
}
.zone:hover { transform: translateY(-2px); border-color: var(--accent-soft-2); box-shadow: var(--sh-sm); }
.zone.active { border-color: var(--accent); background: var(--accent-soft); }
.zone-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  margin-bottom: 4px; color: var(--text);
}
.zone-price {
  font-size: 13px; color: var(--text-muted);
}
.zone.active .zone-price { color: var(--accent-dark); font-weight: 600; }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } }

/* hero-chip удалён — был бесполезный пилюль «Лазерный замер активен» в шапке. */

/* ==========================================================================
   MOBILE TABLES — wrap overflow, price-table scroll hint, compare → cards
   ========================================================================== */

/* Scrollable wrapper for any wide table */
.table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
}
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

@media (max-width: 720px) {
  /* Force any table inside .table-wrap to have minimum width for horizontal scrolling */
  .table-wrap .price-table { min-width: 600px; }

  /* Scroll hint — gradient fade + "листай" pill */
  .table-wrap::after {
    content: '';
    position: sticky; right: 0; top: 0; bottom: 0;
    width: 40px; height: 100%;
    float: right;
    background: linear-gradient(90deg, transparent, var(--bg) 80%);
    pointer-events: none;
    margin-left: -40px;
  }

  /* Auto-wrap price-tables that aren't already wrapped */
  .price-table {
    font-size: 13px;
  }
  .price-table th, .price-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }
  .price-table td:first-child,
  .price-table th:first-child {
    position: sticky; left: 0;
    background: var(--surface);
    z-index: 1;
    white-space: normal;
    min-width: 140px;
    box-shadow: 2px 0 6px -4px rgba(0,0,0,.15);
  }
  .price-table thead th:first-child { background: var(--surface-2); }
}

/* Compare table — convert to card layout on mobile */
@media (max-width: 720px) {
  .compare {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .compare > * { border-bottom: 0; padding: 0; }
  .compare .compare-head { display: none; }
  .compare-row {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xs);
  }
  .compare-row > * {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 14px;
  }
  .compare-row > .compare-feat {
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--line) !important;
    font-size: 15px;
  }
  .compare-feat small {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 400;
  }
  .compare-row > .us,
  .compare-row > :last-child {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }
  .compare-row > .us::before,
  .compare-row > :last-child::before {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    min-width: 66px;
    flex: none;
  }
  .compare-row > .us::before { content: 'ШлифПол'; color: var(--accent); }
  .compare-row > :last-child::before { content: 'Частник'; color: var(--text-dim); }
}

/* ==========================================================================
   Hide hero subtle parallax on reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .scan-laser, .bento-live-stage::before, .adv-card,
  .logo-mark, .preloader-mark, .preloader-mark::after, .preloader-bar::after,
  .hero-title .accent, .service-hero h1 .accent, .tagline-rotator * {
    animation: none !important;
  }
  body::before { display: none; }
  main .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Footer: legal-block (реквизиты юрлица РБ, закон о регистрации сайтов)
   ========================================================================== */
.legal-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13.5px;
  color: var(--text-muted, #9aa0a8);
}
.legal-block summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 6px 0;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim, #c0c6cd);
  transition: color .2s;
}
.legal-block summary::-webkit-details-marker { display: none; }
.legal-block summary::before {
  content: '▸';
  font-size: 11px;
  color: var(--accent, #FF6B1A);
  transition: transform .2s ease;
  display: inline-block;
}
.legal-block details[open] summary::before { transform: rotate(90deg); }
.legal-block summary:hover { color: var(--text, #fff); }
.legal-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 22px;
}
@media (min-width: 720px) {
  .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.legal-grid > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,.04);
}
.legal-grid > div > span {
  color: var(--text-muted, #9aa0a8);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.legal-grid > div > b {
  color: var(--text-dim, #c0c6cd);
  font-weight: 500;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12.5px;
  word-break: break-word;
}
/* светлая тема — инверт */
body.theme-light .legal-block { border-color: rgba(0,0,0,.08); }
body.theme-light .legal-grid > div { border-bottom-color: rgba(0,0,0,.05); }

/* ==========================================================================
   Booking calendar — /bronirovanie.html
   ========================================================================== */

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .booking-grid { grid-template-columns: 1fr; gap: 24px; }
}

.booking-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 2px 0 rgba(0,0,0,.02), 0 16px 40px -28px rgba(20,25,40,.18);
}

.bk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.bk-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -.02em;
  color: var(--text);
  text-transform: capitalize;
}
.bk-nav {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: var(--surface-2);
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.bk-nav:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.bk-nav:active:not(:disabled) { transform: scale(.96); }
.bk-nav:disabled { opacity: .4; cursor: not-allowed; }

.bk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.bk-leg { display: inline-flex; align-items: center; gap: 6px; }
.bk-leg i {
  width: 10px; height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.bk-leg--free i { background: var(--accent-soft); border: 1px solid var(--accent); }
.bk-leg--limited i { background: #fff3d1; border: 1px solid #d89b1a; }
.bk-leg--booked i { background: var(--danger-soft); border: 1px solid var(--danger); }
.bk-leg--off i { background: var(--surface-3); border: 1px solid var(--line); }

.bk-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--text-muted);
}
.bk-dow span { text-align: center; padding: 4px 0; }
.bk-dow span:nth-child(7) { color: var(--danger); }

.bk-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-height: 260px;
}
.bk-skeleton {
  grid-column: 1 / -1;
  display: grid; place-items: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.bk-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  gap: 2px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .1s, border-color .15s, background .15s, box-shadow .15s;
}
.bk-cell small {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-muted);
  text-transform: lowercase;
}
.bk-cell:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(20,25,40,.25);
}

.bk-cell--empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

.bk-cell--free {
  background: var(--accent-soft);
  border-color: rgba(255, 107, 26, .35);
  color: var(--accent-dark);
}
.bk-cell--free:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.bk-cell--free:hover:not(:disabled) small { color: rgba(255,255,255,.85); }

.bk-cell--limited {
  background: #fff7e0;
  border-color: #e5b23a;
  color: #7a4c08;
}
.bk-cell--limited small { color: #a8781c; }
.bk-cell--limited:hover:not(:disabled) {
  background: #f5b73a;
  border-color: #d89b1a;
  color: #3d2604;
}

.bk-cell--booked {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, .3);
  color: var(--danger);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, .5);
  text-decoration-thickness: 1.5px;
}
.bk-cell--booked small { color: rgba(220, 38, 38, .75); text-decoration: none; }

.bk-cell--off,
.bk-cell--past {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text-muted);
  cursor: not-allowed;
}
.bk-cell--past {
  opacity: .3;
  background: transparent;
  border-color: transparent;
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
  pointer-events: none;
}
.bk-cell--past small { display: none; }

.bk-cell--today { box-shadow: inset 0 0 0 2px var(--accent); }

.bk-foot {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px dashed var(--line-strong);
}

.booking-side { display: grid; gap: 14px; }

.bk-list { padding-left: 0; list-style: none; margin: 0; }
.bk-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.bk-list li:last-child { border-bottom: 0; }
.bk-list li b { color: var(--text); font-weight: 700; }

.bk-faq details {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.bk-faq details:last-child { border-bottom: 0; }
.bk-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 14.5px;
  list-style: none;
  position: relative;
  padding-right: 22px;
}
.bk-faq summary::-webkit-details-marker { display: none; }
.bk-faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--accent);
  transition: transform .2s;
}
.bk-faq details[open] summary::after { content: '–'; }
.bk-faq details p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Steps block */
.bk-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.bk-step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative;
}
.bk-step-num {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.bk-step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  color: var(--text);
}
.bk-step p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Modal — selected date preview */
.bk-picked {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(255,107,26,.25);
  margin-bottom: 16px;
}
.bk-picked-date {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent-dark);
  text-transform: capitalize;
}
.bk-picked-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent);
}

/* Time slots — radio chips */
.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.bk-slot {
  position: relative;
  cursor: pointer;
}
.bk-slot input { position: absolute; opacity: 0; pointer-events: none; }
.bk-slot span {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  transition: all .15s;
}
.bk-slot:hover span { border-color: var(--accent); color: var(--accent); }
.bk-slot input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Dark-theme adjustments */
body.theme-dark .bk-cell--free,
:root:not(.theme-light) .bk-cell--free {
  /* already uses accent-soft which tracks theme */
}
body.theme-dark .bk-cell--limited {
  background: rgba(245, 183, 58, .15);
  color: #e5b23a;
  border-color: rgba(229, 178, 58, .4);
}
body.theme-dark .bk-cell--limited small { color: rgba(229, 178, 58, .75); }
body.theme-dark .bk-picked-date { color: var(--accent); }

/* Mobile tweaks */
@media (max-width: 520px) {
  .bk-cell { font-size: 14px; border-radius: 10px; }
  .bk-cell small { font-size: 9.5px; }
  .bk-grid { gap: 4px; }
  .bk-dow { gap: 4px; }
  .bk-legend { font-size: 11.5px; gap: 4px 12px; }
}

/* ==========================================================================
   Quiz — пошаговый калькулятор «Расчёт пола за минуту»
   ========================================================================== */
.page-hero--compact { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }

.quiz {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--sh-md);
}

.quiz-progress { margin-bottom: 22px; }
.quiz-progress-row {
  display: flex; align-items: center; gap: 12px;
}
.quiz-progress-step {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  font-feature-settings: "tnum"; letter-spacing: -.005em;
  flex-shrink: 0; min-width: 36px;
}
.quiz-progress-bar {
  flex: 1;
  height: 6px; border-radius: 99px; background: var(--surface-2);
  overflow: hidden; position: relative;
}
.quiz-progress-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9340);
  border-radius: 99px;
  transition: width .35s var(--ease-out-expo);
}
.quiz-progress-amount {
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 700; color: var(--accent);
  font-feature-settings: "tnum";
  letter-spacing: -.01em;
  flex-shrink: 0; min-width: 0;
  white-space: nowrap;
  transition: opacity var(--dur-fast);
}
.quiz-progress-amount.is-empty { opacity: 0; min-width: 0; }
@keyframes quizBump {
  0%   { transform: scale(1); text-shadow: none; }
  40%  { transform: scale(1.08); text-shadow: 0 0 18px rgba(255,107,26,.55); }
  100% { transform: scale(1); text-shadow: none; }
}
.quiz-progress-amount.is-bumped {
  animation: quizBump 600ms var(--ease-out-expo);
}

/* Перебиваем старое правило .quiz-step{display:none} (стр. 1695, для квиза
   на главной с data-active). На raschet.html шаги рендерятся без data-active,
   и без явного display:block они невидимы. */
#quiz-root .quiz-step { display: block; animation: quizFade .25s var(--ease-out-expo); }
@keyframes quizFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.quiz-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700; line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.quiz-hint {
  margin: 0 0 22px;
  color: var(--text-2); font-size: 14.5px; line-height: 1.55;
}
.quiz-hint a { color: var(--accent); font-weight: 600; }

.quiz-help {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--dur-fast);
}
.quiz-help:hover, .quiz-help[aria-expanded="true"] {
  background: var(--accent-soft); color: var(--accent); border-color: var(--accent);
}
.quiz-tooltip {
  display: block;
  margin: -2px 0 18px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.55;
  animation: quizFade .25s var(--ease-out-expo);
}
.quiz-tooltip[hidden] { display: none; }

.quiz-body { margin-bottom: 18px; }

.quiz-cards {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.quiz-cards--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.quiz-cards--multi { /* same grid, but with tick marker */ }

.quiz-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  text-align: left; cursor: pointer;
  transition: all var(--dur-fast);
  position: relative;
  font-family: inherit;
  color: var(--text);
}
.quiz-card:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
.quiz-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .12);
}
.quiz-card-icon { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.quiz-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.quiz-card-text b { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.quiz-card-text small { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; font-weight: 400; }
.quiz-card-tick {
  position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2); color: transparent;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--line);
  transition: all var(--dur-fast);
}
.quiz-card.is-active .quiz-card-tick {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.quiz-card--compact { padding: 10px 12px; }
.quiz-card--compact .quiz-card-icon { font-size: 18px; margin-top: 0; }
.quiz-card--compact .quiz-card-text b { font-size: 13.5px; }

.quiz-field { margin-bottom: 16px; }
.quiz-field:last-child { margin-bottom: 0; }
.quiz-label {
  display: block; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  letter-spacing: -.005em;
}
.quiz-label em { color: var(--accent); font-style: normal; }
.quiz-input {
  width: 100%; max-width: 320px;
  padding: 12px 14px; font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--dur-fast);
  font-family: inherit;
}
.quiz-input:focus { outline: none; border-color: var(--accent); }

.quiz-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.55;
}

.quiz-live {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255,107,26,.08), rgba(255,147,64,.04));
  border: 1px dashed rgba(255,107,26,.35);
  border-radius: var(--r-sm);
  margin: 16px 0;
  font-size: 14px;
}
.quiz-live-label { color: var(--text-dim); font-weight: 500; }
.quiz-live-amount {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; color: var(--accent);
  font-feature-settings: "tnum";
}
.quiz-live-amount small { font-size: 12.5px; color: var(--text-dim); font-weight: 500; margin-left: 4px; }

.quiz-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quiz-nav .btn { min-width: 0; }

.quiz-disclaimer {
  margin-top: 14px;
  font-size: 12.5px; color: var(--text-dim);
  text-align: center;
}

/* Loading / success / error */
.quiz-loading { text-align: center; padding: 40px 0; }
.quiz-spinner {
  width: 48px; height: 48px; margin: 0 auto 20px;
  border: 4px solid var(--surface-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: quizSpin 1s linear infinite;
}
@keyframes quizSpin { to { transform: rotate(360deg); } }

.quiz-success { text-align: center; }
.quiz-success-mark {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 32px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 24px -6px rgba(34,197,94,.45);
  animation: quizPop .35s var(--ease-out-expo);
}
.quiz-error-mark { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 24px -6px rgba(245,158,11,.45); }
@keyframes quizPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.quiz-result {
  margin-top: 22px; text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.quiz-result-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 12px;
}
.quiz-result-head span { font-size: 13.5px; color: var(--text-dim); font-weight: 500; }
.quiz-result-head b {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800; color: var(--accent);
  font-feature-settings: "tnum";
}
.quiz-result-head b small { font-size: 14px; color: var(--text-dim); font-weight: 600; margin-left: 4px; }
.quiz-result-lines { display: grid; gap: 8px; }
.quiz-result-lines > div {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--text-2);
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}
.quiz-result-lines > div:last-child { border-bottom: 0; }
.quiz-result-lines b { color: var(--text); font-weight: 600; font-feature-settings: "tnum"; }
.quiz-result-note {
  margin: 12px 0 0;
  font-size: 13px; color: var(--accent-dark, var(--accent));
  font-weight: 500;
}

/* Wow-экран — большая цифра + буллеты + 2 CTA */
.quiz-wow { text-align: center; padding: 8px 0 4px; animation: quizFade .35s var(--ease-out-expo); }
.quiz-wow-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800; line-height: 1.05;
  color: var(--accent);
  letter-spacing: -.02em;
  font-feature-settings: "tnum";
  margin: 8px 0 6px;
  animation: quizPop .45s var(--ease-out-expo);
}
.quiz-wow-amount small {
  font-size: .42em; color: var(--text-dim); font-weight: 600;
  margin-left: 6px; letter-spacing: 0;
}
.quiz-wow-sub {
  margin: 0 0 22px;
  font-size: 14px; color: var(--text-dim);
  letter-spacing: .005em;
}
.quiz-wow-list {
  list-style: none; padding: 0; margin: 0 auto 22px;
  max-width: 360px;
  display: grid; gap: 8px;
  text-align: left;
}
.quiz-wow-list li {
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}
.quiz-wow-note {
  margin: 0 auto 18px;
  font-size: 13px; color: var(--accent); font-weight: 600;
}
.quiz-wow-actions {
  display: grid; gap: 10px;
  max-width: 360px; margin: 0 auto;
}
.quiz-wow-actions .btn { width: 100%; justify-content: center; }
.quiz-wow-disclaimer {
  margin: 16px auto 0;
  max-width: 360px;
  font-size: 12.5px; color: var(--text-dim);
}

/* Resume banner — «продолжить с прошлого раза?» */
.quiz-resume {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255,107,26,.08), rgba(255,147,64,.04));
  border: 1px solid rgba(255,107,26,.28);
  border-radius: var(--r-md);
  animation: quizFade .3s var(--ease-out-expo);
  flex-wrap: wrap;
}
.quiz-resume-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 20px; flex-shrink: 0;
}
.quiz-resume-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.quiz-resume-text b { font-size: 15px; color: var(--text); }
.quiz-resume-text span { font-size: 13px; color: var(--text-dim); }
.quiz-resume-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Mobile */
@media (max-width: 640px) {
  .quiz { padding: 18px 16px; }
  .quiz-cards { grid-template-columns: 1fr; gap: 8px; }
  .quiz-cards--compact { grid-template-columns: repeat(2, 1fr); }
  .quiz-card { padding: 12px 14px; }
  .quiz-card-text b { font-size: 14px; }
  .quiz-title { font-size: 20px; }

  /* Sticky CTA — кнопка всегда у пальца */
  .quiz-nav {
    position: sticky;
    bottom: 0;
    margin: 0 calc(-1 * var(--gutter)) calc(-1 * var(--gutter));
    padding: 12px var(--gutter);
    background: var(--bg);
    border-top: 1px solid var(--line);
    z-index: 5;
  }
  .quiz-nav .btn { min-width: 0; }
  /* Свернуть в колонку только когда обе кнопки уже одинаковой важности */
  .quiz-result + .quiz-nav, .quiz-success .quiz-nav, .quiz-error .quiz-nav {
    flex-direction: column-reverse; align-items: stretch; position: static;
    margin: 0; padding: 0; background: none; border: 0;
  }
  .quiz-result + .quiz-nav .btn,
  .quiz-success .quiz-nav .btn,
  .quiz-error .quiz-nav .btn { width: 100%; justify-content: center; }

  .quiz-progress-amount { font-size: 13px; }
  .quiz-progress-step { font-size: 12px; min-width: 30px; }
  .quiz-live-amount { font-size: 17px; }
  .quiz-result-head b { font-size: 22px; }

  .quiz-wow-amount { font-size: 38px; }
  .quiz-resume { padding: 12px 14px; gap: 10px; }
  .quiz-resume-actions { width: 100%; }
  .quiz-resume-actions .btn { flex: 1; justify-content: center; }
}
