/* i-service — общие токены и компоненты. Палитра apple.com. */
:root {
  --bg: #f5f5f7;
  --sheet: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --black: #000000;
  --dark: #1d1d1f;
  --dark-2: #2c2c2e;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --link-dark: #2997ff;
  --ok: #1a8f3c;
  --star: #1d1d1f;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --r-sheet: 32px;
  --r-card: 24px;
  --r-sm: 14px;
  --frame: clamp(8px, .7vw, 16px);
  --pad: clamp(28px, 3.6vw, 96px);
  --wrap: none; /* резиновая: контент тянется на всю ширину листа */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-optical-sizing: auto;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
::selection { background: rgba(0,113,227,.18); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: #c7c7cc transparent; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.028em; text-wrap: balance; }
.h1 { font-size: clamp(48px, 5vw, 104px); line-height: 1.02; font-weight: 500; letter-spacing: -0.032em; }
.h2 { font-size: clamp(36px, 3.4vw, 72px); line-height: 1.05; letter-spacing: -0.03em; }
.h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.022em; }
.tone { color: var(--ink-3); }
.on-dark .tone { color: #86868b; }
.lead { font-size: 21px; line-height: 1.38; color: var(--ink-2); letter-spacing: -0.018em; max-width: 40ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.43; letter-spacing: -0.008em; }

/* ---------- Каркас: листы на подложке ---------- */
.page { padding: 0 var(--frame) var(--frame); }
.sheet { background: var(--sheet); border-radius: var(--r-sheet); margin-top: var(--frame); padding: calc(var(--pad) * 1.15) var(--pad); position: relative; overflow: clip; }
.sheet--gray { background: transparent; padding-left: var(--pad); padding-right: var(--pad); }
.sheet--dark { background: var(--black); color: var(--on-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.sec-head .h2 { max-width: 24ch; }
.sec-head p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.on-dark .sec-head p { color: var(--on-dark-2); }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.016em; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); text-decoration: none !important; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn--ghost:hover { background: rgba(0,102,204,.06); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--line-soft); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 18px; }
.btn .i { width: 20px; height: 20px; flex: none; }
.btn .arrow { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-right: -12px; }
.btn--ghost .arrow { background: rgba(0,102,204,.1); }
.more { font-size: 17px; color: var(--link); display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform .2s var(--ease); }
.more:hover::after { transform: translateX(3px) rotate(45deg); }
.on-dark .more { color: var(--link-dark); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--bg); font-size: 14px; color: var(--ink); white-space: nowrap; }
.on-dark .chip { background: var(--dark-2); color: var(--on-dark); }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.round-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; transition: transform .3s var(--ease), background-color .2s; }
.round-arrow svg { width: 16px; height: 16px; }

/* ---------- Шапка-капсула ---------- */
.hdr-shell { position: sticky; top: 0; z-index: 50; padding: var(--frame) var(--frame) 0; margin: 0 calc(var(--frame) * -1); pointer-events: none; }
.hdr { pointer-events: auto; max-width: none; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 10px 0 22px; border-radius: 999px; background: rgba(255,255,255,.78); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 24px -16px rgba(0,0,0,.2); transition: height .35s var(--ease), box-shadow .35s var(--ease); }
.hdr-shell.is-scrolled .hdr { height: 56px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 32px -14px rgba(0,0,0,.28); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 20px; letter-spacing: -0.04em; text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 600; letter-spacing: 0; position: relative; }
.logo-mark::after { content: ""; position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.hdr-cat { position: relative; }
.hdr-cat > button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.hdr-cat > button .burger { width: 14px; height: 10px; position: relative; }
.hdr-cat > button .burger::before, .hdr-cat > button .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.hdr-cat > button .burger::before { top: 1px; } .hdr-cat > button .burger::after { top: 7px; }
.hdr-cat.is-open > button .burger::before { top: 4px; transform: rotate(45deg); }
.hdr-cat.is-open > button .burger::after { top: 4px; transform: rotate(-45deg); }
.mega { position: absolute; top: calc(100% + 14px); left: -8px; width: min(1120px, calc(100vw - 48px)); padding: 10px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 70px -18px rgba(0,0,0,.35); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 10px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; visibility: hidden; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
/* меню не выше окна: на низком экране листается внутри */
@media (min-width: 821px) { .mega { max-height: calc(100svh - 100px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
.hdr-cat.is-open .mega { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
/* 1-й уровень: устройства */
.mega-l1 { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.mega-l1 a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 14px; color: var(--ink); text-decoration: none !important; transition: background-color .15s; position: relative; }
.mega-l1 a svg { width: 28px; height: 28px; }
.mega-l1 b { font-weight: 500; font-size: 15px; letter-spacing: -0.016em; }
.mega-l1 em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.mega-l1 a.is-on { background: var(--bg); }
.mega-l1 a.is-on::after { content: ""; position: absolute; right: -6px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-3); border-top: 1.6px solid var(--ink-3); transform: translateY(-50%) rotate(45deg); }
/* 2-й уровень: модели по сериям + услуги с ценой */
.mega-panels { background: var(--bg); border-radius: 20px; padding: 20px 22px; align-self: stretch; max-height: calc(100svh - 190px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* если всё же не влезло — снизу тень и подсказка, что внутри листается */
.mega-panels.has-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.mega-panel { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; animation: fadeUp .3s var(--ease); }
.mp-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.mp-h a { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; }
/* дерево моделей: серия слева, её модели — чипами в строку; так весь iPhone помещается в окно */
.mp-groups { display: grid; gap: 6px; }
.mp-groups > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: start; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.mp-groups > div:last-child { border-bottom: 0; }
.mp-groups b { font-size: 14px; font-weight: 600; padding-top: 5px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mp-groups .mp-chips a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: #fff; font-size: 13px; line-height: 1; white-space: nowrap; transition: background-color .15s, color .15s; }
.mp-groups .mp-chips a:hover { background: var(--ink); color: #fff; }
.mp-groups > div:only-child { grid-template-columns: minmax(0, 1fr); }
.mp-groups > div:only-child b { display: none; }
.mp-groups a, .mp-services a { color: var(--ink); font-size: 14px; line-height: 1.3; padding: 4px 0; }
.mp-groups a:hover, .mp-services a:hover { color: var(--link); text-decoration: none; }
.mp-services { display: grid; align-content: start; border-left: 1px solid var(--line); padding-left: 24px; }
.mp-services a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.mp-services em { font-style: normal; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mega .mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; padding: 8px 8px 8px 14px; font-size: 14px; color: var(--ink-2); }
.mega .mega-foot .btn { height: 44px; padding: 0 18px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background-color .2s; }
.nav a:hover { background: rgba(0,0,0,.05); text-decoration: none; }
/* город */
.city { position: relative; margin-left: -10px; }
.city > button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.city > button:hover, .city.is-open > button { background: rgba(0,0,0,.05); }
.city > button .i { width: 16px; height: 16px; color: var(--blue); }
.city > button::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); margin-left: 2px; opacity: .55; transition: transform .25s var(--ease); }
.city.is-open > button::after { transform: translateY(1px) rotate(-135deg); }
.city-list { position: absolute; top: calc(100% + 14px); left: 0; width: 290px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 30px 70px -18px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s; z-index: 5; }
.city.is-open .city-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.city-list p { margin: 6px 12px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.city-list button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; }
.city-list button:hover { background: #F5F5F7; }
.city-list button b { font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.city-list button small { font-size: 13px; color: var(--ink-2); }
.city-list button[aria-pressed="true"] b::after { content: ""; width: 8px; height: 13px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -2px); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-right: 8px; line-height: 1.2; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(26,143,60,.14); }
.hdr-phone { display: grid; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; line-height: 1.15; margin-right: 6px; }
.hdr-phone small { font-weight: 400; font-size: 12px; color: var(--ink-2); letter-spacing: 0; }
.hdr-phone:hover { text-decoration: none; color: var(--link); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- HERO ---------- */
.hero { margin-top: calc(var(--frame) * -1 - 64px); padding-top: calc(64px + var(--frame) + clamp(12px, 3vh, 32px)); padding-bottom: clamp(12px, 3vh, 32px); overflow: hidden;
  /* первый экран целиком в окне: высота = окно минус рамка */
  height: calc(100svh - var(--frame)); min-height: 600px; display: flex; flex-direction: column; }
.hero > .wrap { flex: 1; min-height: 0; width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: stretch; height: 100%; }
.hero-copy { display: flex; flex-direction: column; padding: 0 0 calc(var(--tool-pad) + var(--res-pad)); }
.hero-copy .h1 { margin-top: auto; }
.hero-copy .h1 { max-width: 9ch; font-size: clamp(48px, 4.7vw, 96px); line-height: 1; }
.hero-copy .lead { margin: clamp(16px, 2.6vh, 28px) 0 clamp(20px, 3.4vh, 36px); max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 1024px) { .hero-cta .btn--lg { padding: 0 clamp(18px, 4vw - 28px, 30px); font-size: clamp(16px, 1.25vw, 18px); gap: clamp(8px, 0.625vw + 2px, 10px); } }
.rates { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: auto; padding-top: 24px; }
.rate { display: grid; gap: 2px; padding: 0 clamp(14px, 1.7vw, 40px); border-left: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.rate:first-child { padding-left: 0; border-left: 0; }
.rate b { font-size: var(--fig); font-weight: 500; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: center; gap: 6px; }
.rate b svg { width: 18px; height: 18px; }
.rate span { font-size: 14px; margin-top: 2px; color: var(--ink-2); white-space: nowrap; }
.rate:hover span { color: var(--link); }

/* Инструмент «устройство в разборе» */
.hero { --tool-pad: 20px; --res-pad: 18px; --fig: clamp(28px, 2.2vw, 36px); }
.tool { background: var(--bg); border-radius: 28px; padding: var(--tool-pad); display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(8px, 1.4vh, 14px) 20px; min-height: 0; }
.tool-top { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #e8e8ed; gap: 2px; position: relative; }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border: 0; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 500; color: #515154; transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.18); transition: transform .45s var(--ease), width .45s var(--ease); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 44px 0 18px; border-radius: 999px; border: 0; background: #fff; font-size: 15px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-soft); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.stage { position: relative; perspective: 1800px; display: grid; place-items: center; min-height: 0; border-radius: 22px; background: radial-gradient(60% 50% at 50% 55%, #ffffff 0%, rgba(255,255,255,0) 70%); overflow: hidden; }
.stack { --w: 190px; --h: 390px; --r: 40px; --gap: 4px; position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(var(--rz, -36deg)) translate3d(-40px, var(--ty, 30px), -40px); scale: calc(var(--s, .82) * var(--fit, 1)); transition: width .6s var(--ease), height .6s var(--ease), scale .6s var(--ease), transform .6s var(--ease); }
.stack.is-exploded { --gap: var(--gap-x, 54px); }
.layer { position: absolute; inset: 0; border-radius: var(--r); transform: translateZ(calc(var(--i) * var(--gap) + var(--lift, 0px))) var(--tf, translateX(0)); transition: transform .8s var(--ease), opacity .4s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d; }
.layer[data-part] { cursor: pointer; }
.layer::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(0,113,227,0); transition: box-shadow .4s var(--ease); pointer-events: none; }
.stack.has-active .layer { opacity: .5; }
.stack.has-active .layer.is-active { opacity: 1; --lift: 34px; }
.layer.is-active::after { box-shadow: 0 0 0 2px var(--blue), 0 0 0 8px rgba(0,113,227,.16); }
.layer[data-part]:hover { opacity: 1 !important; }
/* общие «внутренности» */
.stack .ph-board, .stack .mb-board, .stack .pd-board, .stack .w-board, .stack .ap-board { background-color: #232326; background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 9px 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 22px 34px -16px rgba(0,0,0,.4); }
.stack [class*="-board"] i { position: absolute; border-radius: 3px; background: #3a3a3d; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.stack [class*="-board"] i:nth-child(1) { left: 44%; top: 18%; width: 30%; height: 42%; background: #4a4a4e; }
.stack [class*="-board"] i:nth-child(2) { left: 10%; top: 56%; width: 22%; height: 26%; }
.stack [class*="-board"] i:nth-child(3) { left: 52%; top: 66%; width: 14%; height: 18%; }
.stack [class*="-board"] i:nth-child(4) { left: 74%; top: 64%; width: 16%; height: 20%; background: #8a7a52; }
.stack [class*="-board"] i:nth-child(5) { left: 12%; top: 18%; width: 20%; height: 26%; }
.stack .usbc { position: absolute; border-radius: 99px; background: linear-gradient(180deg, #e5e5ea, #9a9aa0); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.stack .usbc::after { content: ""; position: absolute; inset: 32% 14%; border-radius: 99px; background: #1d1d1f; }
.stack .wall { position: absolute; inset: 5px; border-radius: calc(var(--r) - 5px); background: radial-gradient(120% 70% at 20% 10%, #2f6fd6 0%, rgba(47,111,214,0) 55%), radial-gradient(90% 60% at 90% 90%, #0a3a8a 0%, rgba(10,58,138,0) 60%), linear-gradient(170deg, #0c1a33, #050608); }
.stack .sheen { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }

/* iPhone */
.ph-back { background: linear-gradient(150deg, #dcdce1 0%, #c3c3c9 55%, #a9a9b0 100%); box-shadow: 0 34px 50px -14px rgba(0,0,0,.45), inset 0 0 0 1.5px #86868b, inset 0 0 0 3px rgba(255,255,255,.5); }
.ph-back .bump { position: absolute; top: 4.5%; left: 7%; width: 42%; aspect-ratio: 1; border-radius: 26%; background: linear-gradient(150deg, #d2d2d7, #b4b4ba); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.stack .ph-cam { inset: 5% auto auto 8%; width: 38%; height: auto; aspect-ratio: 1; border-radius: 24%; background: #1d1d1f; display: grid; grid-template-columns: 1fr 1fr; padding: 9%; gap: 8%; box-shadow: 0 22px 34px -16px rgba(0,0,0,.4); }
.ph-cam i { border-radius: 50%; background: radial-gradient(circle at 40% 38%, #4a5a7a 0 14%, #11141c 15% 45%, #2c2c2e 46% 62%, #3a3a3c 63% 100%); }
.ph-cam i:nth-child(3) { grid-column: 1; }
.stack .ph-board { inset: 3% 6% auto 6%; height: 30%; border-radius: calc(var(--r) * .45); }
.stack .ph-bat { inset: 36% 12% 16% 12%; border-radius: calc(var(--r) * .4); background: linear-gradient(160deg, #3a3a3c, #2a2a2c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 22px 34px -16px rgba(0,0,0,.4); display: grid; place-items: center; color: #d2d2d7; font-size: 11px; text-align: center; line-height: 1.3; }
.ph-bat b, .w-bat span, .ap-bat span { display: block; font-size: 15px; color: #fff; font-weight: 600; }
/* разъём: коннектор USB-C со шлейфом */
.stack .ph-port { inset: auto 32% 1.5% 32%; height: 12%; border-radius: 8px; }
.ph-port .flex { position: absolute; left: 36%; right: 36%; top: 0; bottom: 30%; border-radius: 3px; background: linear-gradient(90deg, #c9934a, #a8742f); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.ph-port .usbc { left: 0; right: 0; bottom: 0; height: 40%; }
.ph-frame { background: transparent; box-shadow: inset 0 0 0 7px #8e8b85, inset 0 0 0 8.5px #5f5d59, 0 0 0 1.5px #5f5d59, 0 24px 36px -18px rgba(0,0,0,.35); }
.ph-screen { background: #0b0b0d; box-shadow: inset 0 0 0 5px #0b0b0d; overflow: hidden; }
.ph-screen .wall::before { content: "9:41"; position: absolute; left: 0; right: 0; top: 16%; text-align: center; color: rgba(255,255,255,.92); font-size: calc(var(--w) * .2); font-weight: 600; letter-spacing: -0.04em; }
.ph-screen .wall::after { content: ""; position: absolute; top: 2.4%; left: 50%; width: 30%; height: 3.2%; transform: translateX(-50%); border-radius: 99px; background: #000; }

/* MacBook: нижняя крышка → аккумулятор → плата → кулер → топкейс с клавиатурой → крышка с матрицей */
.mb-bottom { background: linear-gradient(150deg, #d9d9de, #b6b6bc); box-shadow: 0 34px 50px -14px rgba(0,0,0,.45), inset 0 0 0 1.5px #8e8e93; }
.mb-bottom i { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; background: #3a3a3c; }
.mb-bottom i:nth-child(1) { left: 5%; top: 7%; } .mb-bottom i:nth-child(2) { right: 5%; top: 7%; } .mb-bottom i:nth-child(3) { left: 5%; bottom: 7%; } .mb-bottom i:nth-child(4) { right: 5%; bottom: 7%; }
.stack .mb-bat { inset: 42% 7% 8% 7%; border-radius: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mb-bat i { border-radius: 8px; background: linear-gradient(160deg, #3a3a3c, #2a2a2c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 24px -14px rgba(0,0,0,.5); }
.stack .mb-board { inset: 6% 30% 62% 30%; border-radius: 10px; }
.stack .mb-fan { inset: 5% 4% 62% 4%; border-radius: 12px; }
.mb-fan .fan { position: absolute; top: 4%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #1d1d1f 0 18%, transparent 19%), repeating-conic-gradient(#4a4a4e 0 14deg, #2c2c2e 14deg 30deg); box-shadow: 0 0 0 3px #6e6e73, 0 16px 24px -12px rgba(0,0,0,.5); }
.mb-fan .fan:first-child { left: 1%; } .mb-fan .fan:nth-child(2) { right: 1%; }
.mb-fan .pipe { position: absolute; left: 22%; right: 22%; top: 38%; height: 16%; border-radius: 99px; background: linear-gradient(180deg, #d79a5a, #9a6430); box-shadow: 0 10px 16px -8px rgba(0,0,0,.4); }
.mb-top { background: linear-gradient(150deg, #ececf0, #cfcfd4); box-shadow: 0 24px 40px -18px rgba(0,0,0,.4), inset 0 0 0 1.5px #a1a1a6; }
.mb-top .keys { position: absolute; top: 8%; left: 7%; right: 7%; height: 50%; padding: 1.4%; border-radius: 6px; background: #b9b9be; display: grid; grid-template-columns: repeat(14, 1fr); grid-auto-rows: 1fr; gap: 3px; }
.mb-top .keys i { border-radius: 2px; background: #1d1d1f; }
.mb-top .pad { position: absolute; left: 31%; right: 31%; top: 64%; bottom: 6%; border-radius: 6px; background: #dedee2; box-shadow: inset 0 0 0 1px #b9b9be; }
/* крышка стоит на заднем крае корпуса — как у открытого ноутбука */
.stack .mb-lid { inset: auto 0 100% 0; height: 94%; transform-origin: 50% 100%; --tf: rotateX(-76deg); border-radius: 16px 16px 6px 6px; background: #121214; box-shadow: inset 0 0 0 2px #a1a1a6, 0 20px 40px -20px rgba(0,0,0,.5); }
.mb-lid .disp { position: absolute; inset: 4% 3% 7% 3%; border-radius: 6px; overflow: hidden; }
.mb-lid .wall { inset: 0; border-radius: 0; }
.mb-lid .wall::after { content: ""; position: absolute; top: 0; left: 50%; width: 12%; height: 5%; transform: translateX(-50%); border-radius: 0 0 6px 6px; background: #121214; }

/* iPad */
.pd-back { background: linear-gradient(150deg, #dcdce1, #b9b9bf); box-shadow: 0 34px 50px -14px rgba(0,0,0,.45), inset 0 0 0 1.5px #8e8e93; }
.pd-back .bump { position: absolute; top: 3.5%; left: 5%; width: 17%; aspect-ratio: 1; border-radius: 28%; background: linear-gradient(150deg, #cfcfd4, #b0b0b6); }
.stack .pd-cam { inset: 4.3% auto auto 6.2%; width: 14.5%; height: auto; aspect-ratio: 1; border-radius: 28%; background: #1d1d1f; padding: 2.5%; box-shadow: 0 16px 24px -12px rgba(0,0,0,.5); }
.pd-cam i { display: block; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #4a5a7a 0 14%, #11141c 15% 45%, #2c2c2e 46% 62%, #3a3a3c 63% 100%); }
.stack .pd-board { inset: 4% 6% auto 28%; height: 13%; border-radius: 10px; }
.stack .pd-bat { inset: 22% 7% 9% 7%; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; }
.pd-bat i { border-radius: 10px; background: linear-gradient(160deg, #3a3a3c, #2a2a2c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 24px -14px rgba(0,0,0,.5); }
.stack .pd-port { inset: auto 38% 1% 38%; height: 4%; border-radius: 99px; }
.pd-port .usbc { inset: 0; }
.pd-screen { background: #0b0b0d; box-shadow: inset 0 0 0 1.5px #3a3a3c; overflow: hidden; }
.pd-screen .wall { inset: 4.5%; border-radius: calc(var(--r) - 10px); }
.pd-screen .wall::before { content: "9:41"; position: absolute; left: 0; right: 0; top: 30%; text-align: center; color: rgba(255,255,255,.92); font-size: calc(var(--w) * .2); font-weight: 600; letter-spacing: -0.04em; }

/* Apple Watch: ремешки на задней крышке, корпус с колёсиком */
.w-back { background: radial-gradient(circle at 50% 50%, #3a3a3c 0 30%, #1d1d1f 31% 46%, #b9b9bf 47%); box-shadow: 0 34px 50px -14px rgba(0,0,0,.45), inset 0 0 0 1.5px #8e8e93; }
.w-back .strap { position: absolute; left: 14%; right: 14%; height: 62%; background: linear-gradient(180deg, #2f3a52, #232b3e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.w-back .strap.t { bottom: 98%; border-radius: 40px 40px 8px 8px; }
.w-back .strap.b { top: 98%; border-radius: 8px 8px 40px 40px; }
.w-back .sensor { position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle, #5a6a8a 0 18%, #11141c 20% 100%); }
.stack .w-board { inset: 18% 16%; border-radius: 18px; }
.stack .w-bat { inset: 26% 22%; border-radius: 16px; background: linear-gradient(160deg, #3a3a3c, #2a2a2c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 22px 34px -16px rgba(0,0,0,.4); display: grid; place-items: center; }
.w-case { background: transparent; box-shadow: inset 0 0 0 10px #c7c7cc, inset 0 0 0 11.5px #8e8e93, 0 0 0 1.5px #8e8e93, 0 24px 36px -18px rgba(0,0,0,.35); }
.w-case .crown { position: absolute; right: -7%; top: 28%; width: 8%; height: 18%; border-radius: 5px; background: repeating-linear-gradient(180deg, #d2d2d7 0 2px, #9a9aa0 2px 4px); }
.w-case .btn-s { position: absolute; right: -3.5%; top: 56%; width: 4%; height: 18%; border-radius: 3px; background: #a1a1a6; }
.w-disp { background: #000; box-shadow: inset 0 0 0 1px #2c2c2e; overflow: hidden; }
.w-disp .face { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; }
.w-disp .face b { font-size: calc(var(--w) * .26); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.w-disp .face small { font-size: calc(var(--w) * .08); color: #2997ff; font-weight: 600; margin-top: 4px; }
.w-glass { background: linear-gradient(140deg, rgba(255,255,255,.35), rgba(255,255,255,.06)); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 0 0 1px rgba(0,0,0,.18); }

/* AirPods: кейс с разъёмом → аккумулятор кейса → плата → наушники → крышка */
.ap-case { background: linear-gradient(160deg, #ffffff, #e2e2e7); box-shadow: 0 34px 50px -14px rgba(0,0,0,.4), inset 0 0 0 1.5px #c7c7cc; }
.ap-case .usbc { left: 42%; right: 42%; bottom: 3%; height: 6%; background: #1d1d1f; }
.ap-case .usbc::after { display: none; }
.stack .ap-bat { inset: 14% 22% 48% 22%; border-radius: 14px; background: linear-gradient(160deg, #3a3a3c, #2a2a2c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 22px 34px -16px rgba(0,0,0,.4); display: grid; place-items: center; }
.stack .ap-board { inset: 58% 30% 12% 30%; border-radius: 10px; }
.stack .ap-buds { inset: 4% 8% 2% 8%; border-radius: 30px; display: flex; justify-content: space-between; }
.ap-buds .bud { position: relative; width: 47%; }
.ap-buds .bud::before { content: ""; position: absolute; top: 0; left: 6%; width: 88%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #6e6e73 0 22%, #f5f5f7 24% 70%, #e2e2e7 71%); box-shadow: 0 16px 24px -12px rgba(0,0,0,.4), inset 0 0 0 1px #c7c7cc; }
.ap-buds .bud::after { content: ""; position: absolute; top: 72%; left: 34%; width: 32%; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #ffffff, #e2e2e7); box-shadow: inset 0 0 0 1px #c7c7cc, 0 12px 18px -10px rgba(0,0,0,.4); }
.ap-lid { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(236,236,240,.9)); box-shadow: inset 0 0 0 1.5px #c7c7cc, 0 24px 36px -18px rgba(0,0,0,.3); }
.ap-lid .led { position: absolute; left: 48%; bottom: 10%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: #34c759; box-shadow: 0 0 8px #34c759; }

.parts { display: flex; flex-direction: column; gap: clamp(4px, .7vh, 6px); min-height: 0; justify-content: center; }
.parts-title { font-size: 13px; color: var(--ink-2); padding: 4px 4px 6px; display: flex; justify-content: space-between; align-items: center; }
.part { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; width: 100%; padding: clamp(6px, 1.15vh, 12px) 14px; border: 0; border-radius: 16px; background: #fff; text-align: left; transition: box-shadow .25s var(--ease), transform .25s var(--ease), background-color .25s; box-shadow: inset 0 0 0 1px transparent; }
.part:hover { box-shadow: inset 0 0 0 1px var(--line); }
.part[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.part b { font-weight: 500; font-size: 15px; letter-spacing: -0.016em; }
.part .p-price { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.part small { font-size: 13px; color: var(--ink-2); }
.part .p-time { grid-column: 2; text-align: right; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #e8e8ed; border-radius: 14px; margin-top: auto; }
.grade button { border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 500; color: #515154; text-align: left; line-height: 1.25; transition: background-color .25s, color .25s, box-shadow .25s; }
.grade button small { display: block; font-weight: 400; color: #515154; }
.grade button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.result { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto auto 1fr; align-items: end; gap: 10px clamp(20px, 2.4vw, 40px); padding: var(--res-pad) var(--res-pad) var(--res-pad) 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.result-fig { display: grid; gap: 2px; }
.result-fig small { font-size: 14px; color: var(--ink-2); }
.result-fig b { font-size: var(--fig); font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-fig b.is-blue { color: var(--blue); }
.result-fig b.flash { animation: flash .6s var(--ease); }
.result .grade { justify-self: end; align-self: center; width: min(100%, 330px); margin: 0; }
@keyframes flash { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Каталог устройств (бенто) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(210px, 15vw, 300px); gap: 16px; }
.tile { position: relative; border-radius: var(--r-card); background: var(--bg); padding: clamp(22px, 1.8vw, 32px); overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; transition: transform .5s var(--ease); isolation: isolate; }
.tile:hover { transform: translateY(-3px); }
.tile:hover .round-arrow { transform: rotate(0deg); background: var(--blue); }
.tile .round-arrow { position: absolute; top: 20px; right: 20px; transform: rotate(-45deg); }
.tile h3 { font-size: clamp(22px, 1.7vw, 30px); letter-spacing: -0.03em; font-weight: 500; max-width: 11ch; }
.tile .from { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.tile .from b { color: var(--ink); font-weight: 600; }
.tile .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; position: relative; z-index: 2; }
.tile .tags .chip { background: #fff; height: 30px; font-size: 13px; }
/* иллюстрация целиком в карточке, наклон и «подъём» при наведении */
.tile .art { position: absolute; z-index: -1; color: var(--ink); right: 10%; bottom: 10%; height: 52%; width: auto; transition: transform .8s var(--ease); }
.tile:hover .art { transform: translateY(-8px); }
.tile--hero:hover .art.art--ph { transform: rotate(-10deg) translateY(-10px); }
.tile .art--flat { height: 40%; bottom: 12%; }
.tile .art--pencil { height: auto; width: 70%; right: 10%; bottom: 26%; }
/* фото устройств вместо линейных рисунков: серия как в первом экране */
.tile .art--ph { object-fit: contain; object-position: right bottom; max-width: 74%; height: 58%; bottom: 8%; right: 8%; }
.tile .art--ph.art--flat { height: 40%; bottom: 14%; }
.tile .art--ph.art--pencil { height: 50%; width: auto; max-width: 84%; bottom: 14%; right: 6%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.14)); }
.tile--wide .art.art--ph { height: 72%; bottom: 8%; right: 6%; max-width: 52%; }
.tile--hero .art.art--ph { height: 86%; bottom: 7%; right: 10%; max-width: none; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.tile--hero { grid-column: span 6; grid-row: span 2; background: var(--black); color: var(--on-dark); }
.tile--hero .from { color: var(--on-dark-2); } .tile--hero .from b { color: #fff; }
.tile--hero .round-arrow { background: #fff; color: var(--ink); }
.tile--hero .tags .chip { background: var(--dark-2); color: var(--on-dark); }
.tile--hero h3 { font-size: clamp(40px, 3.4vw, 64px); }
.tile--hero .art { right: 12%; bottom: -26%; height: 104%; color: #f5f5f7; transform: rotate(-14deg); }
.tile--hero:hover .art { transform: rotate(-10deg) translateY(-14px); }
.tile--wide { grid-column: span 6; }
.tile--wide .art { right: 7%; bottom: 16%; height: 54%; }
.tile--q { grid-column: span 3; }
.tile--cta { grid-column: span 6; background: var(--blue); color: #fff; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.tile--cta:hover { transform: none; }
.tile--cta h3 { font-size: clamp(24px, 2vw, 34px); max-width: 18ch; }
.tile--cta p { margin: 10px 0 0; color: #fff; font-size: 16px; max-width: 36ch; }
.tile--cta .btn { flex: none; background: #fff; color: var(--blue); }
.tile--cta .btn:hover { background: #f5f5f7; }
.tile .count { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tile--hero .count { color: var(--on-dark-2); }

/* ---------- Манифест (scroll reveal) ---------- */
.manifest { padding-top: 140px; padding-bottom: 140px; }
.manifest p { margin: 0 auto; max-width: 24ch; font-size: clamp(40px, 4.2vw, 84px); line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; text-align: left; }
.manifest .w { color: #3a3a3c; transition: color .5s var(--ease); }
.manifest .w.on { color: var(--on-dark); }
.manifest .w.on.acc { color: var(--link-dark); }
.manifest em { font-style: normal; }
.manifest-foot { max-width: 22ch; margin: 56px auto 0; display: flex; gap: 12px; flex-wrap: wrap; font-size: 17px; }
.manifest-wrap { max-width: 1400px; margin: 0 auto; }

/* ---------- Преимущества ---------- */
.facts { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.fact { border-radius: var(--r-card); background: var(--bg); padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.fact .big { font-size: clamp(72px, 7vw, 112px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.fact .big small { font-size: .32em; font-weight: 500; letter-spacing: -0.02em; margin-left: 6px; }
.fact h3 { margin-top: auto; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; padding-top: 28px; }
.fact p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.fact--a { grid-column: span 6; grid-row: span 3; background: var(--black); color: var(--on-dark); }
.fact--a p { color: var(--on-dark-2); }
.fact--a .big { color: var(--link-dark); font-size: clamp(120px, 12vw, 200px); }
.fact--b { grid-column: span 3; } .fact--c { grid-column: span 3; }
.fact--d { grid-column: span 6; }
.fact--q { grid-column: span 3; }
.fact--a .ph { margin-top: 28px; flex: 1; min-height: 200px; }
.grade-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.grade-cmp div { background: #fff; border-radius: 16px; padding: 16px; font-size: 14px; color: var(--ink-2); }
.grade-cmp b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 4px; }

/* Плейсхолдер фото — что должно быть на кадре */
.ph { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #e8e8ed, #d2d2d7); display: flex; align-items: flex-end; }
.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.ph span { position: relative; margin: 14px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.95); font-size: 13px; line-height: 1.35; color: var(--ink-2); max-width: 36ch; }
.ph span b { color: var(--ink); font-weight: 600; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph img ~ span, .ph .initials { z-index: 0; }
.fact-photo { height: clamp(160px, 12vw, 240px); margin: 0 0 24px; flex: none; }
.ph--dark { background: linear-gradient(135deg, #2c2c2e, #1d1d1f); }
.ph--dark::before { background: radial-gradient(60% 60% at 70% 30%, rgba(41,151,255,.18), rgba(41,151,255,0) 70%); }

/* ---------- Кейсы до/после ---------- */
.cases { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
.cases::-webkit-scrollbar { display: none; }
.case { flex: 0 0 clamp(360px, 29vw, 560px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: var(--r-card); padding: 12px; }
.ba { position: relative; border-radius: 18px; overflow: hidden; background: #e8e8ed; aspect-ratio: 4 / 3; --pos: 50%; user-select: none; }
.ba-layer { position: absolute; inset: 0; display: grid; place-items: center; background: #e8e8ed; }
.ba-after { background: #f0f0f3; }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-cap { max-width: 60%; text-align: center; font-size: 14px; color: var(--ink-2); }
.ba-before .ba-cap { margin-right: 35%; } .ba-after .ba-cap { margin-left: 35%; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.2); display: grid; place-items: center; pointer-events: none; }
.ba-knob svg { width: 22px; height: 22px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.94); pointer-events: none; }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; }
.case-body { padding: 16px 12px 8px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: clamp(22px, 1.6vw, 28px); letter-spacing: -0.03em; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.case-meta .chip { background: #fff; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-size: 13px; color: var(--ink-2); }
.case dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.case-res { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-res .big { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.case-res .big small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 6px; }
/* Экраны для до/после */
.scr { width: auto; height: 88%; aspect-ratio: 9 / 19; border-radius: 34px; background: #0b0b0d; padding: 7px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.4); position: relative; }
.scr-in { position: absolute; inset: 7px; border-radius: 28px; overflow: hidden; background: linear-gradient(170deg, #0c1a33, #050608); }
.scr-in.wall { background: radial-gradient(120% 70% at 20% 10%, #2f6fd6 0%, rgba(47,111,214,0) 55%), radial-gradient(90% 60% at 90% 90%, #0a3a8a 0%, rgba(10,58,138,0) 60%), linear-gradient(170deg, #0c1a33, #050608); }
.scr-in .t { position: absolute; top: 14%; left: 0; right: 0; text-align: center; color: #fff; font-size: 38px; font-weight: 600; letter-spacing: -0.04em; }
.scr-in .d { position: absolute; top: 9%; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 12px; }
.scr-in svg.crack { position: absolute; inset: 0; width: 100%; height: 100%; }
.scr-in.settings { background: #f2f2f7; color: var(--ink); padding: 44px 12px 12px; font-size: 12px; }
.settings .st-h { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.settings .row { background: #fff; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.settings .row b { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.settings .bar { height: 6px; border-radius: 6px; background: #e5e5ea; margin-top: 6px; overflow: hidden; }
.settings .bar i { display: block; height: 100%; border-radius: inherit; background: #34c759; }
.settings .bar i.low { background: #ff9f0a; }
.mac { width: 82%; position: relative; }
.mac-lid { aspect-ratio: 16 / 10.4; border-radius: 14px 14px 4px 4px; background: #1d1d1f; padding: 4.5%; box-shadow: 0 30px 50px -24px rgba(0,0,0,.45); }
.mac-scr { width: 100%; height: 100%; border-radius: 4px; background: #050505; position: relative; overflow: hidden; }
.mac-scr.on { background: radial-gradient(80% 90% at 30% 20%, #3478f6 0%, rgba(52,120,246,0) 60%), radial-gradient(70% 80% at 85% 85%, #0a2a6a, rgba(10,42,106,0) 60%), linear-gradient(160deg, #0f1f3d, #04060b); }
.mac-scr.on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4%; background: rgba(255,255,255,.25); }
.mac-scr .stain { position: absolute; inset: 0; background: radial-gradient(30% 22% at 62% 58%, rgba(120,72,30,.0), rgba(0,0,0,0)); }
.mac-base { height: 10px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#d2d2d7, #a1a1a6); }
.mac-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #8e8e93; font-size: 12px; gap: 6px; }
.mac-msg svg { width: 28px; height: 28px; margin: 0 auto; }
.cases-nav { display: flex; align-items: center; gap: 12px; }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.nav-btn:hover { background: var(--line-soft); }
.nav-btn:disabled { opacity: .35; cursor: default; }
.nav-btn svg { width: 18px; height: 18px; }
.counter { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; }

/* ---------- Прайс ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.price-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.price-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--bg); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.price-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.table-wrap { border-radius: var(--r-card); background: var(--bg); padding: 8px; overflow-x: auto; }
table.pt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.pt th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 13px; padding: 14px 16px 12px; white-space: nowrap; }
.pt th:not(:first-child), .pt td:not(:first-child) { text-align: right; }
.pt td { padding: 15px 16px; background: #fff; white-space: nowrap; }
.pt tr td:first-child { font-weight: 600; letter-spacing: -0.016em; }
.pt tbody tr:first-child td:first-child { border-top-left-radius: 16px; } .pt tbody tr:first-child td:last-child { border-top-right-radius: 16px; }
.pt tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; } .pt tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.pt tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.pt tbody tr:hover td { background: #fbfbfd; }
.pt td a { color: var(--ink); }
.pt td a:hover { color: var(--link); }
.pt .time { display: block; font-size: 12px; color: var(--ink-2); font-weight: 400; }
.price-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.price-aside { position: sticky; top: 96px; border-radius: var(--r-card); background: var(--black); color: var(--on-dark); padding: 28px; display: grid; gap: 22px; }
.price-aside h3 { font-size: 26px; letter-spacing: -0.03em; }
.price-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.price-aside li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: var(--on-dark-2); }
.price-aside li b { color: #fff; font-weight: 600; display: block; }
.price-aside li svg { width: 22px; height: 22px; color: var(--link-dark); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Этапы (липкий номер) ---------- */
.steps { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.steps-pin { position: sticky; top: 120px; align-self: start; }
.steps-pin .h2 { max-width: 14ch; }
.steps-pin p { color: var(--ink-2); max-width: 32ch; margin: 20px 0 32px; }
.bignum { font-size: 220px; font-weight: 200; letter-spacing: -0.07em; line-height: .8; color: var(--ink); font-variant-numeric: tabular-nums; display: flex; align-items: flex-end; gap: 16px; margin-top: 40px; height: 180px; overflow: hidden; }
.bignum span { display: inline-block; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.bignum small { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-3); line-height: 1.2; margin-bottom: 18px; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 36px 0; border-top: 1px solid var(--line); transition: opacity .4s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step h3 { font-size: 28px; letter-spacing: -0.03em; }
.step p { grid-column: 1; margin: 0; color: var(--ink-2); max-width: 46ch; }
.step .chip { grid-column: 2; grid-row: 1; align-self: start; font-weight: 500; }
.step .n { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; display: block; font-variant-numeric: tabular-nums; }
.step.is-dim { opacity: .55; }
.step--final { background: var(--bg); border-radius: var(--r-card); padding: 32px; border: 0 !important; margin-top: 16px; }
.step--final .chip { background: var(--blue); color: #fff; }

/* ---------- Команда ---------- */
.team { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); }
.team::-webkit-scrollbar { display: none; }
.person { flex: 0 0 clamp(250px, 18vw, 330px); scroll-snap-align: start; }
.sec-side { display: grid; gap: 20px; justify-items: end; }
.sec-side p { text-align: right; }
.person .ph { aspect-ratio: 4 / 5; border-radius: var(--r-card); }
.person h3 { font-size: 19px; margin-top: 18px; letter-spacing: -0.02em; }
.person .role { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.person .stats { display: flex; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.person .stats div { display: grid; }
.person .stats b { font-size: 24px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.person .stats small { font-size: 13px; color: var(--ink-2); }
.person p { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }
.ph .initials { position: absolute; top: 20px; left: 22px; font-size: 64px; font-weight: 200; letter-spacing: -0.06em; color: rgba(29,29,31,.35); }

/* ---------- Отзывы ---------- */
.rv-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) auto; gap: 12px; align-items: stretch; margin-bottom: 32px; }
.rv-score { border-radius: var(--r-card); background: var(--black); color: var(--on-dark); padding: 24px 28px; display: flex; align-items: center; gap: 20px; }
.rv-score b { font-size: 64px; font-weight: 300; letter-spacing: -0.06em; line-height: 1; }
.rv-score span { color: var(--on-dark-2); font-size: 15px; }
.rv-plat { border-radius: var(--r-card); background: var(--bg); padding: 22px 24px; color: var(--ink); display: grid; gap: 4px; text-decoration: none !important; transition: background-color .2s; }
.rv-plat:hover { background: var(--line-soft); }
.rv-plat .pn { font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.rv-plat b { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.rv-plat small { font-size: 13px; color: var(--ink-2); }
.rv-plat:hover small { color: var(--link); }
.rv-add { align-self: center; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }
.on-dark .stars, .rv-score .stars { color: #fff; }
.reviews { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); align-items: stretch; }
.reviews::-webkit-scrollbar { display: none; }
.rv { flex: 0 0 clamp(320px, 23vw, 440px); scroll-snap-align: start; border-radius: var(--r-card); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rv-head { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-soft); }
.rv-head b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.016em; }
.rv-head small { font-size: 13px; color: var(--ink-2); }
.rv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rv-row .chip { background: #fff; height: 28px; font-size: 13px; padding: 0 12px; }
.rv-text { margin: 0; font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv.is-open .rv-text { -webkit-line-clamp: unset; display: block; }
.rv-more { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--link); font-size: 15px; }
.rv-photo { display: flex; gap: 8px; }
.rv-photo .ph { width: 76px; height: 76px; border-radius: 14px; }
.h2--sm { font-size: clamp(32px, 2.6vw, 48px); }
.rv-photo .ph span { display: none; }
.rv-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-src { font-size: 13px; color: var(--ink-2); }
.like { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: #fff; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.like svg { width: 16px; height: 16px; }
.like:hover { background: var(--line-soft); }
.like[aria-pressed="true"] { background: var(--blue); color: #fff; }
.like[aria-pressed="true"] svg path { fill: currentColor; }
.like.pop { animation: pop .4s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }
.rv-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* Модалка */
dialog.modal { border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100vw - 32px)); background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); }
dialog.modal::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-in { padding: 32px; display: grid; gap: 16px; }
.modal-in h3 { font-size: 28px; letter-spacing: -0.03em; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; }
.modal-close svg { width: 16px; height: 16px; }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { width: 36px; height: 36px; display: grid; place-items: center; color: var(--line); cursor: pointer; border-radius: 10px; transition: color .15s; }
.star-input label svg { width: 28px; height: 28px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--ink); }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); }

/* ---------- Поля ---------- */
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--ink-2); }
.field input, .field textarea { width: 100%; height: 52px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--bg); font-size: 17px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background-color .2s; }
.field textarea { height: 110px; padding: 14px 18px; resize: vertical; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #6e6e73; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #d70015; }
.field .err { color: #d70015; font-size: 13px; display: none; }
.field input[aria-invalid="true"] ~ .err { display: block; }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--bg); font-size: 15px; color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed transparent; }
.file-drop svg { width: 22px; height: 22px; color: var(--ink); }
.consent { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Лид-форма + визитка ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.boss { border-radius: var(--r-card); background: var(--black); color: var(--on-dark); padding: 16px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.boss .ph { height: 100%; min-height: 260px; border-radius: 18px; }
.boss-body { padding: 16px 16px 16px 0; display: flex; flex-direction: column; }
.boss-body blockquote { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.boss-body .who { margin-top: 20px; color: var(--on-dark-2); font-size: 15px; }
.boss-body .who b { display: block; color: #fff; font-weight: 600; }
.boss-body .btns { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.boss-body .btn--light { background: var(--dark-2); color: #fff; }
.boss-body .btn--light:hover { background: #3a3a3c; }
.lead-form { border-radius: var(--r-card); background: var(--bg); padding: 36px; display: grid; gap: 14px; align-content: start; }
.lead-form .field input { background: #fff; }
.offer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 15px; }
.offer svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-or { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); flex-wrap: wrap; }
.form-ok { display: none; padding: 20px; border-radius: 16px; background: #fff; }
.lead-form.is-sent .form-ok { display: block; }
.lead-form.is-sent .form-fields { display: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.faq-side { position: sticky; top: 120px; align-self: start; }
.faq-side p { color: var(--ink-2); margin: 20px 0 28px; max-width: 30ch; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.022em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); flex: none; position: relative; transition: background-color .2s, transform .4s var(--ease); }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.qa summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.qa[open] summary .pm { background: var(--ink); }
.qa[open] summary .pm::before, .qa[open] summary .pm::after { background: #fff; }
.qa[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover { color: var(--link); }
.qa .ans { padding: 0 64px 28px 0; color: var(--ink-2); font-size: 17px; max-width: 68ch; }
.qa .ans p { margin: 0 0 10px; }
.qa[open] .ans { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- SEO-статья ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.art-head h2 { font-size: clamp(32px, 3vw, 48px); line-height: 1.1; letter-spacing: -0.035em; max-width: 52ch; }
/* заголовок статьи — на всю ширину секции, плашка эксперта ниже рядом с текстом */
@media (min-width: 1241px) {
  .article > article { display: contents; }
  .art-head { grid-column: 1 / -1; }
  .article .toc, .article .prose { grid-column: 1; }
  .article .author-card { grid-column: 2; grid-row: 2 / span 2; }
  .article { row-gap: 0; }
}
.byline { display: flex; align-items: center; gap: 14px; margin: 28px 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.byline .ava { width: 48px; height: 48px; background: var(--bg); }
.byline b { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }
.byline .dates { margin-left: auto; text-align: right; }
.toc { background: var(--bg); border-radius: 20px; padding: 24px 28px; margin-bottom: 32px; }
.toc b { font-size: 15px; }
.toc ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 16px; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--link); }
.prose { font-size: 18px; line-height: 1.6; max-width: 68ch; }
.prose h3 { font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.025em; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.prose-more { position: relative; max-height: 0; overflow: hidden; transition: max-height .8s var(--ease); }
.prose.is-open .prose-more { max-height: 6000px; }
.readmore { position: relative; margin-top: 4px; }
.prose:not(.is-open) .readmore::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.prose.is-open .readmore { display: none; }
.author-card { position: sticky; top: 96px; border-radius: 32px; background: var(--bg); padding: 24px; display: grid; gap: 16px; }
.ac-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.ac-ava { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #d2d2d7; }
.ac-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
/* «в сети»: зелёная точка с мягкой пульсацией */
.online { position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px var(--bg); }
.online::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34c759; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.4); opacity: 0; } }
.author-card b { font-size: 18px; letter-spacing: -0.02em; display: block; line-height: 1.2; }
.author-card small { color: var(--ink-2); font-size: 14px; display: block; }
.ac-status { display: inline-flex; margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ok); }
.author-card p { margin: 0; font-size: 16px; }
.author-card .btn { width: 100%; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; }
.c-info { display: flex; flex-direction: column; gap: 28px; padding: 8px 8px 8px 0; }
.c-info .h2 { color: var(--on-dark); }
.c-list { display: grid; gap: 22px; margin: 0; }
.c-list dt { font-size: 13px; color: var(--on-dark-2); }
.c-list dd { margin: 4px 0 0; font-size: 21px; letter-spacing: -0.02em; color: #fff; }
.c-list dd a { color: #fff; }
.c-list dd a:hover { color: var(--link-dark); text-decoration: none; }
.c-list dd small { display: block; font-size: 15px; color: var(--on-dark-2); letter-spacing: -0.01em; margin-top: 2px; }
.c-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.on-dark .btn--light { background: var(--dark-2); color: #fff; }
.on-dark .btn--light:hover { background: #3a3a3c; }
.map { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 520px; background: #1c1c1e; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 54%; top: 46%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 8px; }
.map-pin .bubble { background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }
.map-pin .bubble b { display: block; font-size: 15px; }
.map-pin .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(0,113,227,.3), 0 0 0 14px rgba(0,113,227,.12); }
.map-cap { position: absolute; left: 16px; bottom: 16px; font-size: 13px; color: var(--on-dark-2); background: rgba(0,0,0,.5); padding: 6px 10px; border-radius: 10px; }

/* ---------- Статьи (слайдер) ---------- */
.posts { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); }
.posts::-webkit-scrollbar { display: none; }
.post { flex: 0 0 clamp(300px, 21vw, 420px); scroll-snap-align: start; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; }
.cover { aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; position: relative; background: var(--bg); display: grid; place-items: center; transition: transform .6s var(--ease); }
.post:hover .cover { transform: scale(.985); }
.post:hover h3 { color: var(--link); }
.post .chip { margin-top: 18px; align-self: flex-start; height: 28px; font-size: 13px; }
.post h3 { font-size: 21px; letter-spacing: -0.022em; line-height: 1.24; margin-top: 12px; transition: color .2s; }
.post p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .meta { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.cover .cv-big { font-size: 120px; font-weight: 200; letter-spacing: -0.07em; line-height: 1; }
.cover--dark { background: var(--black); color: #fff; }
.cover--blue { background: var(--blue); color: #fff; }

/* ---------- Подвал ---------- */
.footer { padding: 72px var(--pad) 0; overflow: hidden; }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; max-width: var(--wrap); margin: 0 auto; font-size: 14px; }
.f-grid h4 { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.f-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-grid a { color: var(--ink-2); }
.f-grid a:hover { color: var(--ink); }
.f-about p { color: var(--ink-2); margin: 16px 0 0; max-width: 34ch; }
.f-legal { max-width: var(--wrap); margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 32px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.f-legal p { margin: 0; max-width: 80ch; }
.wordmark { font-size: 29vw; font-weight: 600; letter-spacing: -0.075em; line-height: .74; color: var(--ink); margin: 56px 0 0 -0.04em; white-space: nowrap; user-select: none; }
.wordmark i { font-style: normal; color: var(--blue); }

/* ---------- Появление при скролле ---------- */
.rv-in { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .rv-in:not(.is-in) { opacity: 0; transform: translateY(24px); filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .js .rv-in:not(.is-in) { opacity: 1; transform: none; filter: none; } }

/* Ценник на каждой детали разбора (развёрнут к зрителю) */
.hero-trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.hero-trust .chip { background: var(--bg); }
/* Ценник выбранной детали — плоская плашка у слоя разбора */
.stage-tag { position: absolute; left: 0; top: 0; z-index: 3; display: grid; gap: 1px; padding: 9px 14px 10px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 13px; line-height: 1.25; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,113,227,.6); pointer-events: none; opacity: 0; transition: opacity .3s var(--ease), transform .5s var(--ease); font-variant-numeric: tabular-nums; }
.stage-tag.is-on { opacity: 1; }
.stage-tag b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.stage-tag::before { content: ""; position: absolute; left: -5px; top: 18px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.stage-tag.is-left::before { left: auto; right: -5px; }
.stage-tag.is-peek { background: var(--ink); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.ph span.initials { background: none; margin: 0; padding: 0; max-width: none; }
.tile h3 { line-height: 1.1; }
.person .ph img { object-position: 50% 15%; }

/* Первый экран на невысоких и узких окнах */
.nav a, .hdr-cat > button, .hdr-phone, .status { white-space: nowrap; }
@media (max-width: 1380px) { .status { display: none; } .nav a { padding: 8px 9px; } .hdr { gap: 16px; } }
@media (max-height: 860px) {
  .part { padding-top: 7px; padding-bottom: 7px; }
  .part small:not(.p-time) { display: none; }
  .part .p-time { grid-column: auto; grid-row: auto; display: none; }
}
@media (max-height: 760px) { .parts-title { display: none; } .hero-copy .lead { font-size: 18px; } }
.result .grade button { padding: 10px 14px; font-size: 15px; }
.result .grade button small { font-size: 12px; }
.result .grade button small { white-space: nowrap; }

/* Лайтбокс фото из отзывов */
.rv-photo img { cursor: zoom-in; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.lightbox[open] { animation: modalIn .35s var(--ease); }
dialog.lightbox img { display: block; max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 20px; }
dialog.lightbox .modal-close { top: -14px; right: -14px; background: #fff; }

/* ---------- Финальный CTA без формы: готовые сообщения в WhatsApp ---------- */
.lead-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.lead-boss { margin: 0; position: relative; min-height: 560px; }
.lead-boss .ph { position: absolute; inset: 0; border-radius: var(--r-card); }
.lead-boss .ph img { object-position: 50% 20%; }
.lead-boss .glass { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; padding: 22px 24px; border-radius: 20px; background: rgba(20,20,22,.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.lead-boss blockquote { margin: 0; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; color: #fff; }
.lead-boss .who { margin-top: 12px; font-size: 14px; color: var(--on-dark-2); }
.lead-boss .who b { color: #fff; font-weight: 600; margin-right: 6px; }
.lead-body { display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.lead-body .h2 { color: #fff; max-width: 14ch; }
.lead-sub { margin: 20px 0 8px; font-size: 19px; color: var(--on-dark-2); max-width: 46ch; }
.lead-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.lead-steps { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid #333336; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; color: var(--on-dark-2); font-size: 15px; }
.lead-steps b { display: block; font-size: clamp(32px, 2.6vw, 44px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: #fff; margin-bottom: 8px; }
.lead-steps li:first-child b { color: var(--link-dark); }
.rv-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.hdr-cta { height: 44px; padding: 0 20px; font-size: 15px; }
.hdr-tel { display: none; }
/* гасим слои, а не сам .stack: opacity на контейнере с preserve-3d сплющивает разбор, и устройство «прыгает» */
.stack.is-swap { scale: calc(var(--s, .82) * var(--fit, 1) * .94); }
.stack.is-swap .layer { opacity: 0; }
.stack { transition: width .6s var(--ease), height .6s var(--ease), scale .6s var(--ease), translate .6s var(--ease), transform .6s var(--ease); }
.stack.measure, .stack.measure .layer { transition: none !important; }
.tabbar { display: none; }

/* ================= Адаптив: ноутбуки → планшеты → телефоны ================= */
@media (max-width: 1240px) {
  .nav { display: none; }
  .mega { position: fixed; top: calc(var(--frame) + 72px); left: calc(var(--frame) + 8px); right: calc(var(--frame) + 8px); width: auto; max-height: calc(100svh - 100px); overflow: auto; }
  .hero { height: auto; min-height: 0; padding-bottom: var(--pad); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { padding: 0; }
  .hero-copy .h1 { max-width: 14ch; }
  .rates { margin-top: 36px; }
  .tool { min-height: 620px; }
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(200px, 26vw, 280px); }
  .tile--hero { grid-column: span 6; } .tile--wide, .tile--cta { grid-column: span 6; }
  .tile--q { grid-column: span 2; }
  .facts { grid-template-columns: repeat(6, 1fr); }
  .fact--a, .fact--d { grid-column: span 6; } .fact--b, .fact--c, .fact--q { grid-column: span 3; }
  .fact--a { grid-row: auto; }
  .price { grid-template-columns: minmax(0, 1fr); }
  .price-aside { position: static; }
  .rv-top { grid-template-columns: repeat(3, 1fr); }
  .rv-score { grid-column: 1 / -1; }
  .rv-add { grid-column: 1 / -1; justify-self: start; }
  .lead-wrap { grid-template-columns: minmax(0, 1fr); }
  .lead-boss { min-height: 520px; }
  .article { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .author-card { position: static; max-width: 560px; }
  .contacts { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .map { min-height: 420px; }
  .f-grid { grid-template-columns: repeat(4, 1fr); }
  .f-about { grid-column: 1 / -1; }
  .steps { gap: 40px; }
}

@media (max-width: 820px) {
  :root { --pad: 20px; --frame: 6px; --r-sheet: 26px; --r-card: 20px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .h2 { font-size: clamp(30px, 7vw, 44px); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .sec-side { justify-items: start; } .sec-side p { text-align: left; }
  .cases-nav .nav-btn { display: none; } .cases-nav .counter { text-align: left; min-width: 0; }

  /* шапка: логотип · телефон · WhatsApp · бургер */
  .hdr { height: 60px; gap: 8px; padding: 0 8px 0 16px; }
  .hdr-shell.is-scrolled .hdr { height: 56px; }
  .hdr-cat { order: 3; }
  .hdr-cat > button { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .hdr-cat > button .burger { width: 16px; height: 11px; }
  .hdr-right { gap: 6px; }
  .hdr-phone, .hdr-cta { display: none; }
  .hdr-tel { display: grid; }
  .city { margin-left: -4px; margin-right: auto; }
  .city > button { height: 40px; padding: 0 8px; gap: 4px; font-size: 14px; }
  .city > button .i { width: 14px; height: 14px; }
  .city-list { position: fixed; top: 80px; left: 12px; right: 12px; width: auto; }
  .mega { position: fixed; top: 74px; left: 8px; right: 8px; width: auto; max-height: calc(100svh - 90px); overflow: auto; overscroll-behavior: contain; grid-template-columns: minmax(0, 1fr); gap: 8px; transform-origin: top right; }
  .mega-l1 { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .mega-l1::-webkit-scrollbar { display: none; }
  .mega-l1 a { grid-template-columns: 22px auto; height: 44px; white-space: nowrap; background: var(--bg); }
  .mega-l1 a svg { width: 22px; height: 22px; }
  .mega-l1 em, .mega-l1 a.is-on::after { display: none; }
  .mega-l1 a.is-on { background: var(--ink); color: #fff; }
  .mega-panels { padding: 16px; }
  .mega-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mp-groups { columns: 2; }
  .mp-services { border-left: 0; padding-left: 0; }
  .mp-services a { padding: 11px 0; }
  .mega .mega-foot { flex-direction: column; align-items: stretch; text-align: center; padding: 8px; }

  /* первый экран */
  .hero { padding-top: calc(60px + var(--frame) + 28px); }
  .hero-copy .h1 { font-size: clamp(40px, 10.4vw, 64px); }
  .hero-copy .lead { font-size: 18px; margin: 18px 0 24px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-call { display: none; } /* звонок уже в шапке и в нижнем меню */
  .rates { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .rate { padding: 0 12px; }
  .rate span { white-space: normal; font-size: 13px; }
  .rate b { white-space: nowrap; }
  .hero { --fig: clamp(22px, 6vw, 34px); }
  .tool { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding: 12px; border-radius: 24px; gap: 12px; }
  .tool-top { flex-wrap: wrap; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; padding: 0 14px; }
  .select, .select select { width: 100%; }
  .stage { height: clamp(320px, 88vw, 420px); }
  .parts-title { display: flex; }
  .part small:not(.p-time) { display: block; }
  .part { padding: 12px 14px; }
  .result { grid-template-columns: repeat(3, auto); justify-content: space-between; padding: 18px; }
  .result .grade { grid-column: 1 / -1; width: 100%; justify-self: stretch; }

  /* каталог: 2 в ряд */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 10px; }
  .tile { padding: 18px; }
  .tile--hero { grid-column: span 2; grid-row: span 2; }
  .tile--wide, .tile--cta { grid-column: span 2; }
  .tile--q { grid-column: span 1; }
  .tile .round-arrow { top: 14px; right: 14px; width: 34px; height: 34px; }
  .tile h3 { font-size: 20px; max-width: 8ch; padding-right: 36px; box-sizing: content-box; }
  .tile--hero h3 { font-size: 40px; }
  .tile--hero .tags { display: none; }
  .tile--wide .tags { display: none; }
  .tile .art { height: 44%; right: 12%; bottom: 10%; }
  .tile--hero .art { height: 66%; bottom: -10%; right: 12%; }
  .tile--wide .art { height: 52%; bottom: 12%; right: 8%; }
  /* iPhone и MacBook — в один ряд; фото в своей зоне под текстом, iPhone ровный */
  .tile--hero, .tile--wide { grid-column: span 1; grid-row: span 1; }
  .tile--hero h3 { font-size: 20px; }
  .tile--hero .count, .tile .from-x { display: none; }
  .tile .art--pencil { width: 74%; height: auto; }
  .tile.tile--cta { flex-direction: column; align-items: stretch; justify-content: flex-start; grid-row: auto; gap: 20px; padding: 24px; }
  .tile.tile--cta h3 { max-width: none; font-size: clamp(24px, 6.6vw, 30px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
  .tile--cta p { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.86); max-width: 30ch; }
  .tile--cta .btn { width: 100%; white-space: normal; }

  .manifest { padding-top: 72px; padding-bottom: 72px; }
  .manifest p { font-size: clamp(30px, 8vw, 44px); }

  /* длинные блоки — слайдеры по одной карточке */
  .facts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .facts::-webkit-scrollbar { display: none; }
  /* компактные карточки ~240px: крупная цифра, заголовок, 1–2 строки; фото зоны ожидания и сравнение деталей — только на десктопе */
  .fact { flex: 0 0 84%; scroll-snap-align: start; padding: 20px 22px 22px; min-height: 0; }
  .fact .big, .fact--a .big { font-size: 64px; }
  .fact--a .ph, .fact--d .grade-cmp { display: none; }
  .fact-photo { height: 112px; margin-bottom: 16px; }
  .fact h3 { padding-top: 16px; font-size: 19px; }
  .fact p { font-size: 15px; }
  .fact .big[style] { font-size: 52px !important; }
  .grade-cmp { grid-template-columns: minmax(0, 1fr); }
  .case { flex-basis: 88%; }
  .case-res { flex-wrap: wrap; }
  .person { flex-basis: 74%; }
  .rv { flex-basis: 88%; }
  .post { flex-basis: 80%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps-pin { position: static; }
  .bignum { display: none; }
  .step-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .step-list::-webkit-scrollbar { display: none; }
  .step, .step:last-child { flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 0; border-radius: var(--r-card); background: var(--bg); }
  .step.is-dim { opacity: 1; }
  .step .chip { align-self: flex-start; background: #fff; }
  /* .step:last-child выше по специфичности — повторяем класс */
  .step.step--final { margin: 0; background: var(--ink); color: #fff; }
  .step.step--final h3 { color: #fff; }
  .step.step--final p, .step.step--final .n { color: var(--on-dark-2); }
  .step.step--final .chip { background: var(--blue); color: #fff; }
  .step h3 { font-size: 24px; }

  .price-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 16px; padding: 0 var(--pad); }
  .price-tabs::-webkit-scrollbar { display: none; }
  .price-tabs button { flex: none; }
  .pt td, .pt th { padding-left: 12px; padding-right: 12px; }
  .pt tr td:first-child, .pt th:first-child { position: sticky; left: 0; z-index: 1; }
  .pt th:first-child { background: var(--bg); }

  .rv-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rv-score { padding: 20px; }
  .rv-score b { font-size: 52px; }
  .rv-plat { padding: 14px; }
  .rv-plat b { font-size: 26px; }
  .rv-plat .pn { font-size: 12px; }
  .rv-plat .pn .stars { display: none; }
  .rv-add { width: 100%; }
  .rv-actions { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }

  .lead-boss { min-height: 0; aspect-ratio: 4 / 5; }
  .lead-cta .btn { flex: 1 1 100%; }
  .lead-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lead-steps li { display: flex; align-items: baseline; gap: 14px; }
  .lead-steps b { margin: 0; min-width: 3.4em; }

  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq-side { position: static; }
  .qa summary { font-size: 18px; padding: 20px 0; gap: 16px; }
  .qa .ans { padding-right: 0; font-size: 16px; }

  .art-head h2 { font-size: 28px; }
  .byline .dates { margin-left: 0; text-align: left; width: 100%; }
  .toc { padding: 20px; }
  .prose { font-size: 17px; }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .author-card { max-width: none; }

  .c-list dd { font-size: 19px; }
  .c-btns .btn { flex: 1 1 100%; }
  .map { min-height: 320px; }
  .footer { padding-top: 48px; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .f-legal { flex-direction: column; gap: 12px; }

  .rv-pick { grid-template-columns: minmax(0, 1fr); }
  .modal-in { padding: 24px; }
  .modal-in .btn { white-space: normal; height: auto; min-height: 56px; text-align: center; }
  dialog.lightbox .modal-close { top: 8px; right: 8px; }

  /* нижнее меню */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.9); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 -1px 0 rgba(0,0,0,.08); }
  .tabbar { transition: transform .45s cubic-bezier(.23, 1, .32, 1); }
  .tabbar.is-wait { transform: translateY(calc(100% + 32px)); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 500; color: var(--ink-2); text-decoration: none !important; letter-spacing: 0; }
  .tabbar svg { width: 24px; height: 24px; color: var(--ink); }
  .tabbar .tb-wa span { width: 48px; height: 48px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; background: #25d366; box-shadow: 0 8px 20px -6px rgba(37,211,102,.7), 0 0 0 4px #fff; }
  .tabbar .tb-wa svg { color: #fff; width: 26px; height: 26px; }
  .tabbar .tb-wa { color: var(--ink); }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
  .hdr { padding-left: 12px; }
  .logo { font-size: 18px; }
  .city > button .i { display: none; }
  .hdr-wa { display: none; } /* WhatsApp — в нижнем меню */
  .icon-btn { width: 40px; height: 40px; }
  .hdr-cat > button { width: 40px; height: 40px; }
  .hero-cta .btn { padding: 0 18px; font-size: 16px; }
  .rate { padding: 0 8px; }
  .tile h3 { font-size: 18px; }
  .rv-top { grid-template-columns: minmax(0, 1fr); }
}

/* Планшет в портрете: калькулятор в две колонки, в слайдерах видно 2 карточки */
@media (min-width: 600px) and (max-width: 820px) {
  .tool { grid-template-columns: minmax(0, 1fr) 260px; }
  .tool-top, .result { grid-column: 1 / -1; }
  .select, .select select { width: auto; }
  .stage { height: auto; min-height: 420px; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .tile--hero, .tile--wide, .tile--cta { grid-column: span 6; }
  .tile--q { grid-column: span 2; }
  .tile.tile--cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .tile.tile--cta h3 { max-width: 16ch; }
  .tile--cta .btn { width: auto; }
  .fact { flex-basis: 56%; }
  .case, .rv { flex-basis: 62%; }
  .person, .post { flex-basis: 44%; }
  .step, .step:last-child { flex-basis: 52%; }
  .lead-boss { aspect-ratio: 16 / 11; }
  .lead-steps { grid-template-columns: repeat(3, 1fr); }
  .lead-steps li { display: block; }
  .lead-cta .btn { flex: 1 1 0; }
  .c-btns .btn { flex: 1 1 0; }
  .f-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Слайдеры листаются только вбок: без вертикальной прокрутки внутри блока */
.cases, .team, .reviews, .posts, .facts, .step-list, .price-tabs, .seg, .mega-l1 { overflow-y: hidden; overscroll-behavior-x: contain; }

/* Команда: фильтр по отделу */
.team-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: -12px 0 24px; }
.team-filter button { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.team-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.team > [hidden] { display: none !important; }
@media (max-width: 820px) { .team-filter { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: -8px calc(var(--pad) * -1) 20px; padding: 0 var(--pad); } .team-filter::-webkit-scrollbar { display: none; } .team-filter button { flex: none; } }

/* ---------- Оригинал или аналог: две карточки-варианта ---------- */
.pick-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(20px, 3vh, 40px); }
.pick-head p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 40ch; }
.pick { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-card { position: relative; border-radius: var(--r-card); background: var(--bg); padding: clamp(22px, 2.2vw, 36px); display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); overflow: hidden; }
.pick-card--orig { background: #fff; box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.pick-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pick-name { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.pick-card--orig .pick-name { background: var(--blue); }
.pick-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.pick-tag svg { width: 18px; height: 18px; color: var(--blue); }
.pick-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.pick-price > span:first-child { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.pick-price b { display: block; font-size: clamp(40px, 3.6vw, 66px); font-weight: 300; letter-spacing: -0.06em; line-height: .95; color: var(--ink); white-space: nowrap; }
.pick-card--orig .pick-price b { color: var(--blue); }
.pick-off { display: inline-flex; align-items: center; height: 30px; margin-top: 12px; padding: 0 12px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
/* силуэт устройства: у оригинала экран ярче */
.pick-dev { position: relative; width: clamp(70px, 6vw, 96px); aspect-ratio: 1 / 2; }
.pick-dev svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
.pick-dev i { position: absolute; inset: 5% 9%; border-radius: 14%/7%; background: linear-gradient(160deg, #6fb6ff, #0071e3 55%, #003b8e); }
.pick-card--alt .pick-dev i { background: linear-gradient(160deg, #9fb7cf, #4f78a6 55%, #2c4766); opacity: .85; }
/* фото детали без подложки (фон вырезан), справа от цены */
.pick-main--ph { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(12px, 1.6vw, 28px); }
.pick-ph { margin: 0; height: clamp(140px, 20vh, 220px); display: grid; place-items: center; }
.pick-ph img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pick-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; margin-top: auto; }
.pick-card:hover .pick-ph img { transform: scale(1.03); }
.pick-spec { margin: 0; display: grid; border-top: 1px solid var(--line); }
.pick-spec div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: clamp(8px, 1.2vh, 12px) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pick-spec dt { color: var(--ink-2); }
.pick-spec dd { margin: 0; font-weight: 500; color: var(--ink); }
.pick-share { display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.pick-share b { color: var(--ink); font-weight: 600; }
.pick-bar { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.pick-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--ink); }
.pick-card--orig .pick-bar i { background: var(--blue); }
.pick-card .btn { align-self: flex-start; }
.pick-card--alt .btn--ghost { background: #fff; }
.pick-or { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px var(--paper, #fff), var(--shadow); display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 900px) {
  .pick-head { grid-template-columns: minmax(0, 1fr); }
  .pick { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad); scroll-padding: 0 var(--pad); gap: 10px; }
  .pick::-webkit-scrollbar { display: none; }
  .pick-card { flex: 0 0 88%; scroll-snap-align: start; gap: 18px; padding: 22px; }
  .pick-or { display: none; }
  .pick-spec div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; font-size: 14px; }
  .pick-card .btn { align-self: stretch; }
  .pick-foot { grid-template-columns: minmax(0, 1fr); }
  .pick-main--ph { grid-template-columns: minmax(0, 1fr); }
  .pick-ph { order: -1; height: 140px; }
  .pick-card .btn { padding-inline: 16px; font-size: 16px; }
}

/* ---------- Прайс: строки сверх показанных ---------- */
.is-more { display: none !important; }
.price-more { margin-top: 12px; }
@media (max-width: 900px) { .price-more { width: 100%; } }

/* ---------- Блог: фото-обложки (tools/blog_covers.py) ---------- */
.cover--ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* узкие телефоны: в маленьких карточках каталога стрелку убираем — название («HomePod», «AirPods») не помещается рядом, карточка и так ссылка */
@media (max-width: 380px) {
  .tile--q .round-arrow, .tile--wide .round-arrow, .tile--hero .round-arrow { display: none; }
  .tile--q h3, .tile--wide h3 { padding-right: 0; }
}

/* ---------- Мобильное меню деревом (собирается в app.js из MENU) ---------- */
.mtree { display: none; }
@media (max-width: 820px) {
  .mega-l1, .mega-panels { display: none; }
  .mega { padding: 8px; gap: 0; }
  .mtree { display: block; order: 1; }
  .mega .mega-foot { order: 2; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
  .mt-cap { margin: 6px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
  .mtree summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .mtree summary::-webkit-details-marker { display: none; }
  .mt-dev > summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 50px; padding: 0 12px; border-radius: 14px; }
  .mt-dev > summary svg { width: 24px; height: 24px; color: var(--ink); }
  .mt-dev > summary b { font-size: 16px; font-weight: 500; letter-spacing: -0.016em; }
  .mt-dev > summary em { font-style: normal; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
  .mt-dev[open] > summary { background: var(--bg); }
  .mt-chev { width: 8px; height: 8px; justify-self: center; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
  details[open] > summary > .mt-chev { transform: translateY(2px) rotate(-135deg); }
  /* вложенность: линия слева показывает, к чему относится ветка */
  .mt-body { margin: 4px 0 8px 24px; padding-left: 14px; border-left: 1.5px solid var(--line); display: grid; gap: 2px; animation: fadeUp .25s var(--ease); }
  .mt-all { display: flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--link); text-decoration: none !important; }
  .mt-sub > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-right: 12px; font-size: 15px; font-weight: 500; }
  .mt-list { padding: 2px 0 10px; display: grid; gap: 6px; }
  .mt-g { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
  .mt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .mt-chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 14px; text-decoration: none !important; }
  .mt-svc { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 15px; text-decoration: none !important; }
  .mt-svc em { font-style: normal; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mt-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 4px; padding-top: 10px; border-top: 1px solid var(--line); }
  .mt-link { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none !important; }
}

/* мобилка: во всех карточках каталога фото одной высоты, по центру, с одинаковым отступом снизу */
@media (max-width: 820px) {
  .bento .tile .art.art--ph { height: 46%; width: auto; max-width: 84%; right: 50%; bottom: 16px; object-fit: contain; object-position: center bottom; transform: translateX(50%); filter: none; }
  .bento .tile:hover .art.art--ph { transform: translateX(50%) translateY(-6px); }
  .bento .tile--hero .art.art--ph { filter: drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
}

/* i-service — шаблон «Категория устройства» (макет на iPhone). Токены и общие компоненты — в styles.css. */

/* ---------- Хлебные крошки ---------- */
.crumbs ol { list-style: none; margin: 0 0 clamp(16px, 2.4vh, 28px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.4px solid var(--ink-3); border-top: 1.4px solid var(--ink-3); transform: rotate(45deg); margin-right: 4px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Первый экран: оффер слева, фото с ценами справа ---------- */
.cat-hero { --fig: clamp(28px, 2.2vw, 36px); --tool-pad: 20px; margin-top: calc(var(--frame) * -1 - 64px); padding-top: calc(64px + var(--frame) + clamp(20px, 4vh, 48px)); padding-bottom: clamp(20px, 4vh, 48px); }
.cat-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 64px); align-items: stretch; }
.cat-hero-copy { display: flex; flex-direction: column; justify-content: center; }
.cat-hero-copy .h1 { font-size: clamp(48px, 5.2vw, 104px); line-height: 1; max-width: 13ch; } /* 2 строки: «Ремонт iPhone» / «в Алматы» */
.cat-hero-copy .lead { margin: clamp(16px, 2.6vh, 28px) 0 clamp(20px, 3.4vh, 36px); max-width: 36ch; }
.cat-hero-copy .rates { margin-top: clamp(28px, 5vh, 56px); padding-top: 0; }
/* ---------- Модели: сетка карточек, у каждой — экран и аккумулятор ---------- */
.mdl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mdl { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--bg); padding: 18px 18px 18px; min-height: 216px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; transition: transform .5s var(--ease), background-color .2s; }
.mdl:hover { transform: translateY(-3px); }
.mdl:hover h3 { color: var(--link); }
.mdl-year { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mdl h3 { font-size: clamp(18px, 1.3vw, 22px); letter-spacing: -0.025em; margin-top: 2px; line-height: 1.12; }
.mdl dl { margin: auto 0 0; display: grid; gap: 6px; position: relative; z-index: 1; }
.mdl-from { margin: auto 0 0; font-size: 13px; color: var(--ink-2); display: grid; position: relative; z-index: 1; }
.mdl-from b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.mdl dl div { display: grid; }
.mdl dt { font-size: 13px; color: var(--ink-2); }
.mdl dd { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.mdl-art { position: absolute; right: 12px; bottom: 10px; width: 30%; height: auto; transition: transform .6s var(--ease); pointer-events: none; }
.mdl:hover .mdl-art { transform: translateY(-6px); }
.mdl--cta { background: var(--ink); color: #fff; justify-content: space-between; gap: 14px; }
.mdl--cta:hover { transform: none; }
.mdl--cta h3 { max-width: none; }
.mdl--cta p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--on-dark-2); }
.mdl--cta .btn { background: #fff; color: var(--ink); width: 100%; padding: 0 14px; }

/* ---------- Поломки: нумерованные карточки ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prob { border-radius: var(--r-card); background: var(--bg); padding: 22px 22px 20px; min-height: 230px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; transition: transform .5s var(--ease); }
.prob:hover { transform: translateY(-3px); }
.prob:hover h3 { color: var(--link); }
.prob-n { font-size: 13px; color: var(--ink-2); }
.prob h3 { font-size: clamp(21px, 1.6vw, 26px); letter-spacing: -0.03em; margin-top: 18px; transition: color .2s; }
.prob p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 30ch; }
.prob-foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prob-foot b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.prob-foot .chip { background: #fff; height: 30px; font-size: 13px; }
.prob--dark { background: var(--black); color: var(--on-dark); }
.prob--dark p, .prob--dark .prob-n { color: var(--on-dark-2); }
.prob--dark:hover h3 { color: var(--link-dark); }
.prob--dark .prob-foot .chip { background: var(--dark-2); color: var(--on-dark); }

/* ---------- Прайс: переключатель оригинал / аналог ---------- */
.cat-grade button { height: 44px; }
.cat-grade small { font-size: inherit; }

/* ---------- Оригинал или аналог ---------- */
.cmp-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.cmp-copy .h2 { color: #fff; max-width: 13ch; }
.cmp-copy p { color: var(--on-dark-2); max-width: 34ch; margin: 20px 0 28px; }
.cmp { margin: 0; border-radius: var(--r-card); background: #111113; padding: 8px 24px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid #2c2c2e; font-size: 16px; }
.cmp-row:first-child { border-top: 0; }
.cmp-row dt { color: var(--on-dark-2); font-size: 15px; }
.cmp-row dd { margin: 0; color: #fff; }
.cmp-row:nth-child(2) dd { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cmp-row:nth-child(2) dd:nth-of-type(1) { color: var(--link-dark); }
.cmp-head dd { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- Преимущества: 6 компактных фактов ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adv { border-radius: var(--r-card); background: var(--bg); padding: 26px 28px; display: flex; flex-direction: column; }
.adv-big { font-size: clamp(56px, 5vw, 88px); font-weight: 300; letter-spacing: -0.06em; line-height: .95; }
.adv-big small { font-size: .3em; font-weight: 500; letter-spacing: -0.02em; margin-left: 6px; }
.adv h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin-top: 22px; }
.adv p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; max-width: 36ch; }
.adv--accent { background: var(--black); color: var(--on-dark); }
.adv--accent .adv-big { color: var(--link-dark); }
.adv--accent p { color: var(--on-dark-2); }


/* ---------- Чипы поколений над моделями и прайсом ---------- */
.gen-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.gen-chips button { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s; }
.gen-chips button:hover { background: var(--line-soft); }
.gen-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.gen-chips--price { margin-bottom: 12px; }

/* ---------- Первый экран: iPhone в разборе (слои и сцена — из styles.css, как на главной) ---------- */
.cat-tool { height: clamp(520px, calc(100svh - 150px), 760px); grid-template-columns: minmax(0, 1fr) 280px; }
.cat-tool .stage { grid-column: 1; grid-row: 2; }
.cat-tool > .parts { grid-column: 2; grid-row: 2; }
.era-model { font-size: 15px; font-weight: 600; letter-spacing: -0.016em; white-space: nowrap; }
.cat-tool .stage-tag { pointer-events: auto; text-decoration: none !important; }
.cat-tool .stage-tag:hover { background: var(--blue-hover); }
.cat-tool .stack.is-swap { scale: calc(var(--s, .82) * var(--fit, 1) * .94); }
.cat-tool .stack.is-swap .layer { opacity: 0; }
.ph-bat em { font-style: normal; }
.ph-screen .home { display: none; }

/* Поколения: цвет корпуса, блок камер, «лицо». e17 — по умолчанию (Dynamic Island, три камеры) */
.stack[data-era="e17"] .ph-back { background: linear-gradient(150deg, #f0a06d 0%, #e0763b 55%, #c25e27 100%); }
.stack[data-era="e17"] .ph-back .bump { left: 4%; right: 4%; width: auto; aspect-ratio: auto; height: 22%; border-radius: 22px; background: linear-gradient(150deg, #e98a52, #cf6a32); }
.stack[data-era="e14"] .ph-back { background: linear-gradient(150deg, #4f7fae 0%, #2f5f8a 55%, #22486c 100%); }
.stack[data-era="e14"] .ph-back .bump { background: linear-gradient(150deg, #4374a3, #2a557d); }
.stack[data-era="e14"] .ph-cam i:nth-child(2) { visibility: hidden; }
.stack[data-era="e14"] .ph-cam i:nth-child(3) { grid-column: 2; }
.stack[data-era="e11"] .ph-back { background: linear-gradient(150deg, #e9e0f5 0%, #d6c7ec 55%, #bcaad7 100%); }
.stack[data-era="e11"] .ph-back .bump { background: linear-gradient(150deg, #cdbde6, #b9a6d6); }
.stack[data-era="e11"] .ph-cam i:nth-child(2) { visibility: hidden; }
.stack[data-era="e14"] .ph-screen .wall::after, .stack[data-era="e11"] .ph-screen .wall::after { top: 0; width: 46%; height: 4.4%; border-radius: 0 0 14px 14px; }
/* 8–6 и 5–4: одна камера без блока, кнопка Home, рамки сверху и снизу */
.stack[data-era="e8"] .ph-back { background: linear-gradient(150deg, #f7eadb 0%, #f0dcc4 55%, #dcc3a6 100%); }
.stack[data-era="e5"] .ph-back { background: linear-gradient(150deg, #efe2c6 0%, #e3cfa8 55%, #cdb68c 100%); }
.stack[data-era="e8"] .ph-back .bump, .stack[data-era="e5"] .ph-back .bump { display: none; }
.stack[data-era="e8"] .ph-cam, .stack[data-era="e5"] .ph-cam { width: 17%; padding: 3%; grid-template-columns: 1fr; border-radius: 50%; }
.stack[data-era="e5"] .ph-cam { width: 13%; }
.stack[data-era="e8"] .ph-cam i + i, .stack[data-era="e5"] .ph-cam i + i { display: none; }
.stack[data-era="e8"] .ph-screen, .stack[data-era="e5"] .ph-screen { background: #f5f5f7; box-shadow: inset 0 0 0 1px #c7c7cc; }
.stack[data-era="e8"] .ph-screen .wall, .stack[data-era="e5"] .ph-screen .wall { inset: 15% 6%; border-radius: 3px; }
.stack[data-era="e8"] .ph-screen .wall::after, .stack[data-era="e5"] .ph-screen .wall::after { display: none; }
.stack[data-era="e8"] .ph-screen .wall::before, .stack[data-era="e5"] .ph-screen .wall::before { font-size: calc(var(--w) * .16); top: 12%; }
.stack[data-era="e8"] .ph-screen .home, .stack[data-era="e5"] .ph-screen .home { display: block; position: absolute; left: 50%; bottom: 3.6%; width: 18%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; box-shadow: inset 0 0 0 1.5px #c7c7cc; }
.stack[data-era="e5"] .ph-screen .home { width: 20%; bottom: 3%; }
.stack[data-era="e8"] .ph-frame, .stack[data-era="e5"] .ph-frame { box-shadow: inset 0 0 0 6px #d8cbb8, inset 0 0 0 7.5px #b9a98f, 0 0 0 1.5px #b9a98f, 0 24px 36px -18px rgba(0,0,0,.35); }
.stack[data-era="e8"] .ph-port .usbc, .stack[data-era="e5"] .ph-port .usbc { left: 14%; right: 14%; }


/* ---------- Также чиним: перелинковка на другие категории ---------- */
.also-sheet { padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(28px, 3vw, 48px); }
.also-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.also-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; }
.also { display: grid; grid-template-rows: 74px auto auto; gap: 2px; padding: 16px 14px; border-radius: 20px; background: var(--bg); color: var(--ink); text-decoration: none !important; transition: transform .4s var(--ease), background-color .2s; }
.also:hover { transform: translateY(-3px); background: var(--line-soft); }
.also:hover b { color: var(--link); }
.also-art { height: 56px; width: auto; max-width: 100%; color: var(--ink); margin-bottom: 8px; }
.also-art--flat { height: 40px; align-self: end; }
.also-ph { height: 64px; width: 100%; object-fit: contain; object-position: left bottom; margin-bottom: 10px; }
.also b { font-size: 15px; font-weight: 600; letter-spacing: -0.016em; line-height: 1.2; }
.also span { font-size: 13px; color: var(--ink-2); }

/* iPhone 18 Duo: бирюзовый корпус, плато во всю ширину с двумя крупными объективами */
.stack[data-era="e18"] .ph-back { background: linear-gradient(150deg, #6cc0c1 0%, #3f9a9c 55%, #2c7476 100%); }
.stack[data-era="e18"] .ph-back .bump { left: 4%; right: 4%; width: auto; aspect-ratio: auto; height: 20%; border-radius: 24px; background: linear-gradient(150deg, #57b0b2, #348587); }
.stack[data-era="e18"] .ph-cam { width: 62%; aspect-ratio: 2; padding: 5% 6%; gap: 10%; border-radius: 40px; }
.stack[data-era="e18"] .ph-cam i:nth-child(3) { display: none; }

/* ---------- Ноутбуки и планшеты ---------- */
@media (max-width: 1240px) {
  .mdl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .also-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-tool { height: clamp(520px, 70vw, 680px); }
  .prob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-wrap { grid-template-columns: minmax(0, 1fr); }
  .cmp-copy .h2 { max-width: 20ch; }
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .cat-hero-copy .rates { grid-template-columns: repeat(3, auto); }
}

/* ---------- Мобилка ---------- */
@media (max-width: 820px) {
  .cat-hero { margin-top: calc(var(--frame) * -1 - 60px); padding-top: calc(60px + var(--frame) + 20px); --fig: clamp(22px, 6vw, 34px); }
  .cat-hero-copy .h1 { font-size: clamp(40px, 10.4vw, 64px); }
  .cat-hero-copy .lead { font-size: 18px; margin: 16px 0 22px; }
  .cat-hero-copy .rates { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .cat-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .crumbs ol { font-size: 13px; }

  /* модели — 2 в ряд, как товарные карточки */
  .mdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mdl { min-height: 0; padding: 14px 14px 16px; }
  .mdl dl { margin-top: 12px; }
  .mdl h3 { font-size: 20px; }
  .mdl dd { font-size: 15px; }
  .mdl dt { font-size: 12px; }
  /* силуэт — над названием, чтобы не наезжал на цены */
  .mdl-art { position: static; order: -1; width: 40px; margin: 0 0 10px; }
  .mdl-from { margin-top: 12px; }
  .mdl-from b { font-size: 16px; }
  .mdl:hover .mdl-art { transform: none; }
  .gen-chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .gen-chips::-webkit-scrollbar { display: none; }
  .gen-chips button { flex: none; height: 40px; padding: 0 14px; font-size: 14px; }
  .cat-tool { height: auto; grid-template-columns: minmax(0, 1fr); }
  .cat-tool .stage, .cat-tool > .parts { grid-column: 1; grid-row: auto; }
  .era-model { display: none; }
  .mdl--cta { gap: 8px; }
  .mdl--cta h3 { font-size: 18px; }
  .mdl--cta p { font-size: 13px; }
  .mdl--cta .btn { height: 44px; font-size: 15px; padding: 0 10px; }

  /* поломки — компактный список: название и симптомы слева, цена справа */
  .prob-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prob { min-height: 0; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n n" "h f" "p f"; column-gap: 12px; }
  .prob-n { grid-area: n; font-size: 12px; }
  .prob h3 { grid-area: h; font-size: 19px; margin-top: 4px; }
  .prob p { grid-area: p; font-size: 14px; margin-top: 4px; }
  .prob-foot { grid-area: f; margin: 0; padding: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; }
  .prob-foot b { font-size: 16px; }
  .prob-foot .chip { height: 26px; padding: 0 10px; font-size: 12px; }

  .also-row { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); overscroll-behavior-x: contain; }
  .also-row::-webkit-scrollbar { display: none; }
  .also { flex: 0 0 132px; scroll-snap-align: start; }
  .cat-grade { flex-wrap: nowrap; }
  .cat-grade button { flex: 1 1 0; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .cat-grade small { display: none; }

  .cmp { padding: 4px 16px; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; font-size: 15px; }
  .cmp-row dt { grid-column: 1 / -1; font-size: 13px; }
  .cmp-head dt { display: none; }
  .cmp-row:nth-child(2) dd { font-size: 21px; }

  /* преимущества — слайдер по одной компактной карточке */
  .adv-grid { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); overscroll-behavior-x: contain; }
  .adv-grid::-webkit-scrollbar { display: none; }
  .adv { flex: 0 0 82%; scroll-snap-align: start; padding: 20px 22px; }
  .adv-big { font-size: 60px; }
  .adv h3 { margin-top: 16px; font-size: 19px; }
}
@media (min-width: 600px) and (max-width: 820px) {
  .mdl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv { flex-basis: 48%; }
}
@media (max-width: 380px) {
  .mdl h3 { font-size: 17px; padding-right: 30px; }
  .mdl--cta .btn { white-space: normal; line-height: 1.15; font-size: 14px; }
  .cat-grade button { font-size: 13px; padding: 0 8px; }
}
.also-head .more { white-space: nowrap; flex-shrink: 0; }
/* фото модели — в своей зоне над текстом, не налезает на заголовок и цену */
.mdl:has(.mdl-photo) { min-height: 0; }
.mdl .mdl-photo { position: static; order: -1; width: 100%; height: clamp(120px, 9vw, 150px); object-fit: contain; object-position: center bottom; margin: 0 0 14px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.10)); }
.mdl:hover .mdl-photo { transform: translateY(-4px); }
.mdl:has(.mdl-photo) .mdl-from { margin-top: 10px; }

/* i-service — первый экран «слово позади устройства»: главная и страницы категорий.
   Разметка — tools/hero_block.py, логика — hero.js. Токены — в styles.css. */
.hx { --mx: 0; --my: 0; --eo: cubic-bezier(.23, 1, .32, 1); --sh: saturate(1);
  --u: min(clamp(.62px, calc(100vw / 1700), 1.05px), calc(100svh / 1060));
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(calc(100svh - var(--frame) * 2 - 84px), 860px); }
.hx-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "head lead" "head cta"; gap: 0 48px; align-items: end; width: 100%; margin-top: auto; }
.hx-head { grid-area: head; position: relative; z-index: 4; }
.hx .h1 { max-width: 17ch; }
.hx .crumbs ol { margin-bottom: 16px; }
.hx-lead { grid-area: lead; position: relative; z-index: 4; margin: 0 0 22px; }
.hx-cta { grid-area: cta; position: relative; z-index: 4; }

/* сцена: огромное слово позади, устройство по центру */
.hx-stage { position: absolute; inset: 0; pointer-events: none; }
.hx-word { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); }
.hx-word > span { display: block; font-size: var(--fs, 24vw); font-weight: 600; letter-spacing: -0.07em; line-height: .8; white-space: nowrap; color: var(--bg);
  transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -6px)); }
.hx-word i { display: inline-block; font-style: normal; }
.hx-dev { position: absolute; inset: 0; z-index: 2; transform: translate(calc(var(--mx) * 20px), calc(var(--my) * 14px)); }
.hx-pos { position: absolute; left: 50%; top: 44%; width: 0; height: 0; transform: rotate(calc(var(--mx) * 3deg)); }
/* смена: устройство уходит в размытие с лёгким подъёмом, новое проявляется из размытия */
.hx-img { position: absolute; left: 0; top: 0; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); max-width: none; object-fit: contain;
  opacity: 0; filter: blur(18px) var(--sh); transform: translate(-50%, -50%) translateY(16px) scale(1.06);
  transition: opacity 1.3s var(--eo) .3s, filter 1.45s var(--eo) .3s, transform 1.6s var(--eo) .3s; }
.hx-img.sh { --sh: drop-shadow(0 40px 40px rgba(0,0,0,.2)) drop-shadow(0 8px 12px rgba(0,0,0,.1)); }
.hx-img.is-on { opacity: 1; filter: blur(0) var(--sh); transform: translate(-50%, -50%); }
.hx-img.is-leave { opacity: 0; filter: blur(14px) var(--sh); transform: translate(-50%, -50%) translateY(-12px) scale(.94);
  transition-duration: .8s, .85s, .9s; transition-delay: 0s; transition-timing-function: cubic-bezier(.4, 0, .6, 1); }

/* плашка цен: вкладки с полосками автопоказа, как у сторис */
.hx-card { position: absolute; top: calc(var(--pad) * 1.15); right: var(--pad); z-index: 4; width: clamp(316px, 25vw, 392px); padding: 20px 22px; border-radius: 24px;
  background: rgba(255,255,255,.74); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--shadow); pointer-events: auto; }
.hx-tabs { display: flex; justify-content: space-between; gap: 6px; margin: -4px 0 14px; }
.hx-tab { flex: 1 1 auto; display: grid; gap: 7px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: left; white-space: nowrap; }
.hx-tab[aria-pressed="true"], .hx-tab:hover { color: var(--ink); }
.hx-bar { display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hx-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.hx-tab.is-done .hx-bar i, .hx.is-user .hx-tab[aria-pressed="true"] .hx-bar i { width: 100%; }
.hx-tab.is-run .hx-bar i { animation: hxBar var(--dur, 3.2s) linear both; }
@keyframes hxBar { from { width: 0; } to { width: 100%; } }
.hx-k { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.hx-k b { color: var(--ink); }
.hx-r { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hx-r small { display: block; font-size: 13px; color: var(--ink-2); }
.hx-r b { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.hx-swap { transition: opacity .32s ease, filter .32s ease; }
.hx-swap.is-blur { opacity: 0; filter: blur(4px); }
.hx-all { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--blue); }

/* цифры доверия — слева вверху, напротив плашки цен */
.hx-stats { position: absolute; left: var(--pad); top: calc(var(--pad) * 1.15); z-index: 4; display: grid; gap: 18px; }
.hx-st { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 190px; color: var(--ink); text-decoration: none !important; }
.hx-st:first-child { border-top: 0; padding-top: 0; }
.hx-st b { display: flex; align-items: center; gap: 6px; font-size: clamp(34px, 2.8vw, 48px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.hx-st b svg { width: 22px; height: 22px; color: #ffb800; fill: currentColor; }
.hx-st span { font-size: 14px; color: var(--ink-2); }

@media (max-width: 1400px) { .hx-tab { font-size: 12px; } }
@media (max-width: 1100px) {
  .hx { min-height: 0; justify-content: flex-start; --u: calc(100vw / 1100); }
  .hx-bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; margin-top: 0; }
  .hx-head, .hx-lead, .hx-cta { grid-area: auto; }
  .hx .h1 { max-width: 12ch; }
  .hx-lead { margin: 18px 0 0; }
  .hx-stage { position: relative; inset: auto; height: clamp(380px, 62vw, 560px); margin: 8px calc(var(--pad) * -1); }
  .hx-word, .hx-pos { top: 50%; }
  .hx-card { display: none; }
  /* на мобилке цифры доверия над кнопкой, кнопка — последней */
  .hx-stats { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .hx-cta { order: 1; margin-top: 20px; }
  .hx-st { align-content: start; min-width: 0; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid var(--line); }
  .hx-st:first-child { padding-left: 0; border-left: 0; }
  .hx-st b { font-size: clamp(24px, 6.4vw, 40px); }
  .hx-st b svg { width: 16px; height: 16px; }
  .hx-st span { font-size: 13px; line-height: 1.3; }
}
@media (max-width: 760px) {
  .hx { --u: calc(100vw / 860); }
  .hx .h1 { font-size: clamp(34px, 10.6vw, 44px); }
  .hx-lead { font-size: 17px; line-height: 1.4; }
  /* телефон без лишних полей сверху и снизу: кнопка и цифры доверия помещаются в первый экран */
  .hx-lead { margin-top: 10px; }
  /* высоту сцены hero.js подгоняет под самое высокое фото устройства */
  .hx-stage { height: calc(524 * var(--u)); margin: 8px -16px 4px; }
  .hx-stats { margin-top: 12px; }
  .hx-cta { margin-top: 18px; }
  .hx-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-img, .hx-img.is-leave { filter: var(--sh); transform: translate(-50%, -50%); transition: opacity .4s ease; }
}
