/* 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/build-pages.py из tools/pages/*.css. Руками не править. */

/* ---------- Общее для внутренних страниц ---------- */
/* текущая страница в меню и подвале */
.nav a[aria-current="page"] { background: rgba(0,0,0,.06); }
.f-grid a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Первый экран внутренней страницы: оффер слева, интерактив справа (как на главной и в категории) */
.p-hero { --fig: clamp(28px, 2.2vw, 36px); margin-top: calc(var(--frame) * -1 - 64px); padding-top: calc(64px + var(--frame) + clamp(20px, 4vh, 48px)); padding-bottom: clamp(20px, 4vh, 48px); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 64px); align-items: stretch; }
.p-hero-copy { display: flex; flex-direction: column; justify-content: center; }
.p-hero-copy .h1 { font-size: clamp(48px, 5vw, 96px); line-height: 1; max-width: 14ch; }
.p-hero-copy .lead { margin: clamp(16px, 2.6vh, 28px) 0 clamp(20px, 3.4vh, 36px); max-width: 38ch; }
.p-hero-copy .rates { margin-top: clamp(28px, 5vh, 56px); padding-top: 0; }
.p-stage { position: relative; border-radius: 28px; background: var(--bg); padding: 20px; min-height: clamp(520px, calc(100svh - 150px), 760px); overflow: hidden; }

/* eyebrow-пилюля перед заголовком секции */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 16px; }
.on-dark .eyebrow { background: var(--dark-2); color: var(--on-dark-2); }

/* ответ сервиса под отзывом */
.rv-reply { border-radius: 14px; background: #fff; padding: 10px 14px; font-size: 14px; }
.rv-reply summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rv-reply summary::-webkit-details-marker { display: none; }
.rv-reply summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.rv-reply[open] summary::after { transform: rotate(-135deg); }
.rv-reply p { margin: 8px 0 2px; color: var(--ink-2); line-height: 1.45; }

/* таблица прайса: две готовые таблицы (оригинал / аналог), видна одна */
[data-grade-panel][hidden] { display: none !important; }

/* сегмент-переключатель без «бегунка» (чипы) */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-row 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; }
.chips-row button:hover { background: var(--line-soft); }
.chips-row button[aria-pressed="true"], .chips-row button[aria-selected="true"] { background: var(--ink); color: #fff; }

@media (max-width: 1240px) {
  .p-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .p-stage { min-height: 0; }
}
@media (max-width: 820px) {
  .p-hero { margin-top: calc(var(--frame) * -1 - 60px); padding-top: calc(60px + var(--frame) + 20px); --fig: clamp(22px, 6vw, 34px); }
  .p-hero-copy .h1 { font-size: clamp(40px, 10.4vw, 64px); }
  .p-hero-copy .lead { font-size: 18px; margin: 16px 0 22px; }
  .p-hero-copy .rates { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .p-hero-copy .hero-cta .btn { flex: 1 1 auto; }
  .p-hero-grid { gap: 24px; }
  .p-stage { padding: 12px; border-radius: 24px; }
  .chips-row { 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); }
  .chips-row::-webkit-scrollbar { display: none; }
  .chips-row button { flex: none; height: 40px; padding: 0 14px; font-size: 14px; }
}

/* «Также чиним» без текущего устройства — 10 карточек в ряд */
.also-row:has(> :nth-child(10)) { grid-template-columns: repeat(10, minmax(0, 1fr)); }
@media (max-width: 1240px) { .also-row:has(> :nth-child(10)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 820px) { .also-row:has(> :nth-child(10)) { display: flex; } }
/* обложки статей с крупным текстом не переносятся */
.post .cover .cv-big[style] { font-size: clamp(56px, 4.4vw, 88px) !important; white-space: nowrap; }

/* ===== about ===== */
/* ---------- О сервисе: план мастерской ---------- */
.ab-plan { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
.ab-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ab-plan-top .eyebrow { margin: 0; background: #fff; }
.ab-count { font-size: 14px; color: var(--ink-2); }
.ab-map { position: relative; align-self: center; width: 100%; aspect-ratio: 720 / 480; max-height: 100%; margin: 0 auto; }
.ab-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-walls { fill: #fff; stroke: var(--line); stroke-width: 2; }
.ab-room { fill: var(--bg); stroke: var(--line-soft); stroke-width: 2; transition: fill .45s var(--ease), stroke .45s var(--ease); }
.ab-furn { fill: none; stroke: #b8b8bf; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s var(--ease); }
.ab-lbl { font: 500 14px var(--font); fill: var(--ink-2); letter-spacing: -0.01em; paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; transition: fill .45s var(--ease); pointer-events: none; }
.ab-lbl.is-on { fill: var(--ink); stroke: #e6eefa; }
.ab-zone.is-on .ab-room { fill: rgba(0,113,227,.08); stroke: var(--blue); }
.ab-zone.is-on .ab-furn { stroke: var(--blue); }
.ab-route { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .55; animation: abRoute 1.4s linear infinite; }
@keyframes abRoute { to { stroke-dashoffset: -22; } }
.ab-spot { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(0,0,0,.3); display: grid; place-items: center; transition: background-color .3s var(--ease), color .3s, transform .4s var(--ease), box-shadow .3s; }
.ab-spot:hover { transform: translate(-50%, -50%) scale(1.08); }
.ab-spot.is-on { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(0,113,227,.2), 0 10px 24px -8px rgba(0,113,227,.6); }
.ab-facts { position: relative; min-height: 112px; }
.ab-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); animation: fadeUp .45s var(--ease); }
.ab-fact b { font-size: clamp(40px, 3.4vw, 60px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; color: var(--blue); min-width: 2.4ch; }
.ab-fact h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.ab-fact p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }

/* ---------- Цифры ---------- */
.ab-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-num { padding: 8px clamp(16px, 2vw, 40px); border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.ab-num:first-child { border-left: 0; padding-left: 0; }
.ab-num b { white-space: nowrap; font-size: clamp(52px, 5.2vw, 104px); font-weight: 200; letter-spacing: -0.065em; line-height: .9; }
.ab-num:nth-child(2) b { color: var(--blue); }
.ab-num span { color: var(--ink-2); font-size: 16px; max-width: 22ch; }

/* ---------- История ---------- */
.ab-hist { list-style: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding: 0 var(--pad); overscroll-behavior-x: contain; }
.ab-hist::-webkit-scrollbar { display: none; }
.ab-yr { flex: 0 0 clamp(260px, 19vw, 340px); scroll-snap-align: start; border-radius: var(--r-card); background: var(--bg); padding: 26px; display: flex; flex-direction: column; min-height: 280px; position: relative; }
.ab-yr::before { content: ""; position: absolute; left: 26px; right: -12px; top: 92px; height: 1px; background: var(--line); }
.ab-yr b { font-size: 56px; font-weight: 200; letter-spacing: -0.06em; line-height: 1; }
.ab-yr h3 { margin-top: auto; padding-top: 40px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ab-yr p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.ab-yr--now { background: var(--black); color: var(--on-dark); }
.ab-yr--now b { color: var(--link-dark); }
.ab-yr--now p { color: var(--on-dark-2); }
.ab-yr--now::before { background: #333336; right: 26px; }

/* ---------- Оборудование ---------- */
.ab-eqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ab-eq { border-radius: var(--r-card); background: var(--bg); padding: 26px; display: flex; flex-direction: column; min-height: 320px; }
.ab-eq svg { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-eq b { margin-top: auto; padding-top: 28px; font-size: clamp(48px, 4vw, 72px); font-weight: 300; letter-spacing: -0.06em; line-height: 1; }
.ab-eq h3 { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ab-eq p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.ab-eq:first-child { background: var(--black); color: var(--on-dark); }
.ab-eq:first-child svg { stroke: var(--link-dark); }
.ab-eq:first-child p { color: var(--on-dark-2); }

/* ---------- Стандарты ---------- */
.ab-std { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.ab-std-head { display: flex; flex-direction: column; gap: 32px; }
.ab-std-head .h2 { color: #fff; max-width: 14ch; }
.ab-std-ph { flex: 1; min-height: 280px; border-radius: var(--r-card); }
.ab-std-list { list-style: none; margin: 0; padding: 0; }
.ab-std-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 20px; padding: 30px 0; border-top: 1px solid #333336; }
.ab-std-list li:last-child { border-bottom: 1px solid #333336; }
.ab-std-list span { grid-row: span 2; font-size: 40px; font-weight: 200; letter-spacing: -0.05em; line-height: 1; color: var(--link-dark); }
.ab-std-list h3 { font-size: clamp(22px, 1.8vw, 30px); letter-spacing: -0.03em; color: #fff; }
.ab-std-list p { margin: 0; color: var(--on-dark-2); max-width: 48ch; }

/* ---------- Компактный прайс ---------- */
.ab-pop { list-style: none; margin: 0; padding: 8px; border-radius: var(--r-card); background: var(--bg); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ab-pop a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none !important; transition: box-shadow .2s; height: 100%; }
.ab-pop a:hover { box-shadow: inset 0 0 0 1px var(--line); }
.ab-pop a:hover em { color: var(--link); }
.ab-pop span { display: grid; font-size: 14px; color: var(--ink-2); }
.ab-pop span b { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.016em; }
.ab-pop em { font-style: normal; font-weight: 600; font-size: 17px; text-align: right; white-space: nowrap; display: grid; }
.ab-pop em small { font-weight: 400; font-size: 12px; color: var(--ink-2); }

/* ---------- Документы ---------- */
.ab-docs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ab-doc { border-radius: var(--r-card); background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 220px; color: var(--ink); text-decoration: none !important; transition: transform .4s var(--ease), background-color .2s; }
.ab-doc:hover { transform: translateY(-3px); background: var(--line-soft); }
.ab-doc svg { width: 32px; height: 32px; margin-bottom: auto; }
.ab-doc b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; padding-top: 24px; }
.ab-doc span { font-size: 14px; color: var(--ink-2); }
.ab-doc em { font-style: normal; font-size: 15px; color: var(--link); margin-top: 6px; }

@media (max-width: 1240px) {
  .ab-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .ab-num:nth-child(3) { border-left: 0; padding-left: 0; }
  .ab-eqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-std { grid-template-columns: minmax(0, 1fr); }
  .ab-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-pop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .ab-plan { gap: 10px; }
  .ab-plan-top .eyebrow { font-size: 12px; }
  .ab-spot { width: 30px; height: 30px; font-size: 11px; }
  .ab-lbl { font-size: 19px; }
  .ab-fact { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; }
  .ab-fact b { font-size: 40px; }
  .ab-facts { min-height: 150px; }
  .ab-num { padding: 0 12px; }
  .ab-num:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ab-num b { font-size: clamp(36px, 10.4vw, 60px); }
  .ab-num span { font-size: 14px; }
  .ab-yr { flex-basis: 78%; min-height: 240px; padding: 22px; }
  .ab-eqs, .ab-docs { 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; }
  .ab-eqs::-webkit-scrollbar, .ab-docs::-webkit-scrollbar { display: none; }
  .ab-eq { flex: 0 0 78%; scroll-snap-align: start; min-height: 260px; padding: 22px; }
  .ab-doc { flex: 0 0 66%; scroll-snap-align: start; min-height: 180px; }
  .ab-std-ph { min-height: 220px; }
  .ab-std-list li { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; }
  .ab-std-list span { font-size: 30px; }
  .ab-pop a { padding: 14px; }
}

/* ===== blog ===== */
/* ---------- Блог: главная статья ---------- */
.page-blog .p-hero-copy .h1 { max-width: 13ch; }
.page-blog .p-hero-copy .lead { margin-bottom: clamp(20px, 3vh, 32px); }
.bl-feat { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; gap: 20px; align-items: center; padding: 10px; border-radius: var(--r-card); background: var(--bg); color: var(--ink); text-decoration: none !important; transition: transform .5s var(--ease), background-color .2s; }
.bl-feat:hover { transform: translateY(-3px); }
.bl-feat:hover .bl-feat-h { color: var(--link); }
.bl-feat-cv { aspect-ratio: 1; border-radius: 18px; background: var(--black); color: #fff; display: grid; place-content: center; justify-items: center; }
.bl-feat-cv .num { font-size: clamp(56px, 5vw, 88px); font-weight: 200; letter-spacing: -0.07em; line-height: 1; color: var(--link-dark); }
.bl-feat-cv small { font-size: 13px; color: var(--on-dark-2); margin-top: 4px; }
.bl-feat-tx { padding-right: 12px; }
.bl-feat-tx .chip { background: #fff; height: 28px; font-size: 13px; }
.bl-feat-h { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.18; letter-spacing: -0.025em; margin: 12px 0 0; transition: color .2s; }

/* автор под карточкой */
.bl-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.bl-meta b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.bl-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #d2d2d7; flex: none; }

/* ---------- Подбор по симптому ---------- */
.bl-tool { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 2vw, 32px); }
.bl-q .eyebrow { background: #fff; }
.bl-q-h { font-size: clamp(30px, 2.6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.bl-sym { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-sym button { height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-soft); transition: background-color .25s, color .25s; }
.bl-sym button:hover { box-shadow: inset 0 0 0 1px var(--line); }
.bl-sym button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.bl-answers { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.bl-ans { display: grid; gap: 8px; }
.bl-ans:not([hidden]) { animation: fadeUp .45s var(--ease); }
.bl-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none !important; transition: transform .35s var(--ease), box-shadow .25s; }
.bl-row:hover { transform: translateX(4px); box-shadow: inset 0 0 0 2px var(--blue); }
.bl-row-n { font-size: 13px; color: var(--ink-2); }
.bl-row b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.25; }
.bl-row small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.bl-ask { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.bl-ask-who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.bl-ask-who b { display: block; color: var(--ink); font-size: 16px; }
.bl-ask-who .ac-ava { width: 48px; height: 48px; flex: none; }
.bl-ask .online { box-shadow: 0 0 0 3px var(--bg); width: 12px; height: 12px; }

/* ---------- Сетка статей ---------- */
.bl-rubs { margin-bottom: 28px; }
.bl-rubs small { font-size: 12px; margin-left: 6px; opacity: .6; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
.bl-card { min-width: 0; }
.bl-card .cover { aspect-ratio: 16 / 10; }
.bl-card p { -webkit-line-clamp: 2; }
.bl-more { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }

@media (min-width: 1600px) { .bl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1240px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-answers { min-height: 0; }
}
@media (max-width: 820px) {
  .bl-feat { grid-template-columns: 96px 1fr; gap: 14px; padding: 8px; }
  .bl-feat-cv .num { font-size: 40px; }
  .bl-feat-cv small { display: none; }
  .bl-feat-h { font-size: 17px; margin-top: 8px; }
  .bl-feat .bl-meta { display: none; }
  .bl-feat-tx .chip { height: 24px; font-size: 12px; padding: 0 10px; }
  .bl-tool { padding: 18px 16px; gap: 14px; }
  .bl-sym { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; overscroll-behavior-x: contain; }
  .bl-sym::-webkit-scrollbar { display: none; }
  .bl-sym button { flex: none; height: 40px; padding: 0 14px; font-size: 14px; }
  .bl-row { padding: 14px; grid-template-columns: 28px 1fr; }
  .bl-row b { font-size: 15px; }
  .bl-ask { flex-direction: column; align-items: stretch; }
  .bl-ask .btn { width: 100%; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bl-more { flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
}

/* ===== blog-akkumulyator-iphone ===== */
/* ---------- Статья блога: прогресс чтения ---------- */
.ar-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 70; pointer-events: none; }
.ar-progress i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Первый экран ---------- */
.ar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(14px, 2vh, 24px); }
.ar-top .crumbs ol { margin: 0; }
.ar-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.ar-h1 { font-size: clamp(44px, 4.4vw, 84px); line-height: 1.02; max-width: 24ch; margin-bottom: clamp(20px, 3.4vh, 40px); }
.ar-grid { align-items: stretch; }
.ar-grid .p-hero-copy { justify-content: space-between; gap: 28px; padding: 8px 0; }
.ar-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 520px; }
.ar-legend li { --c: #34c759; display: grid; grid-template-columns: 12px 108px 1fr; align-items: baseline; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--bg); font-size: 15px; color: var(--ink-2); }
.ar-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.ar-legend li[data-level="mid"] { --c: #ff9f0a; }
.ar-legend li[data-level="low"] { --c: #ff3b30; }
.ar-legend b { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.ar-grid .p-hero-copy .lead { margin-top: 0; }
.ar-by { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ar-by-ava { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #d2d2d7; }
.ar-by-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ar-by b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.ar-by small { display: block; font-size: 13px; }

.ar-tool { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 16px; min-height: clamp(440px, calc(100svh - 330px), 640px); }
.ar-tool-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ar-caps { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #e8e8ed; }
.ar-caps button { height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: #515154; font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s, box-shadow .25s; }
.ar-caps button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.18); }

.ar-stage { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 0; border-radius: 22px; background: radial-gradient(60% 55% at 50% 50%, #fff 0%, rgba(255,255,255,0) 72%); }
.ar-path { margin: 0; font-size: 13px; color: var(--ink-2); }
.ar-bat { --c: #34c759; display: flex; align-items: center; gap: 8px; width: min(100%, 460px); }
.ar-bat[data-level="mid"] { --c: #ff9f0a; }
.ar-bat[data-level="low"] { --c: #ff3b30; }
.ar-bat-body { position: relative; flex: 1; aspect-ratio: 2.3; border-radius: 36px; padding: 12px; box-shadow: inset 0 0 0 4px var(--ink); background: #fff; overflow: hidden; }
.ar-bat-fill { position: absolute; left: 12px; top: 12px; bottom: 12px; width: calc((100% - 24px) * var(--cap) / 100); border-radius: 24px; background: var(--c); transition: width .9s var(--ease), background-color .5s var(--ease); }
.ar-bat-cells { position: absolute; inset: 12px; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.ar-bat-cells i + i { border-left: 2px solid rgba(255,255,255,.55); }
.ar-bat-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink); mix-blend-mode: normal; }
.ar-bat-num b { font-size: clamp(72px, 7vw, 120px); font-weight: 300; letter-spacing: -0.06em; line-height: 1; text-shadow: 0 0 18px rgba(255,255,255,.7); }
.ar-bat-num small { font-size: clamp(24px, 2vw, 36px); font-weight: 500; margin-left: 4px; align-self: center; }
.ar-bat-tip { width: 16px; height: clamp(30px, 3.6vw, 60px); border-radius: 0 10px 10px 0; background: var(--ink); flex: none; }
.ar-bat-cap { margin: 0; font-size: 15px; color: var(--ink-2); }

.ar-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ar-stats div { background: #fff; border-radius: 16px; padding: 14px 16px; }
.ar-stats dt { font-size: 13px; color: var(--ink-2); }
.ar-stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.ar-stats dd.flash, .ar-verdict .flash { animation: flash .6s var(--ease); }
.ar-verdict { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 16px 16px 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.ar-verdict p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); max-width: 36ch; }
.ar-pill { display: inline-flex; height: 30px; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgba(52,199,89,.14); color: #1a7f37; }
.ar-pill[data-level="mid"] { background: rgba(255,159,10,.16); color: #a35a00; }
.ar-pill[data-level="low"] { background: rgba(255,59,48,.12); color: #c1271d; }
.ar-verdict .btn { flex: none; }

/* ---------- Статья ---------- */
.ar-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 760px) minmax(280px, 340px); justify-content: space-between; gap: clamp(28px, 3vw, 64px); align-items: start; }
.ar-toc { position: sticky; top: 96px; margin: 0; padding: 22px 22px 24px; }
.ar-toc ol { font-size: 15px; gap: 10px; padding-left: 20px; }
.ar-toc a.is-on { color: var(--link); font-weight: 600; }
.ar-article .byline { margin-top: 0; }
.ar-short { border-radius: 20px; background: var(--ink); color: #fff; padding: 24px 28px; margin-bottom: 16px; }
.ar-short b { font-size: 15px; color: var(--link-dark); }
.ar-short ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; color: #f5f5f7; }
.ar-prose { max-width: none; }
.ar-prose h2 { font-size: clamp(28px, 2.2vw, 36px); line-height: 1.12; letter-spacing: -0.03em; margin: 52px 0 16px; scroll-margin-top: 96px; }
.ar-prose h3 { margin-top: 28px; }
.ar-prose ol { margin: 0 0 18px; padding-left: 24px; }
.ar-prose ol li { margin-bottom: 8px; }
.ar-prose table td:not(:first-child), .ar-prose table th:not(:first-child) { text-align: right; }
.ar-plate { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0; padding: 22px 24px; border-radius: 22px; background: var(--bg); font-size: 16px; line-height: 1.45; }
.ar-plate b { font-size: 19px; letter-spacing: -0.02em; display: block; }
.ar-plate p { margin: 4px 0 0; color: var(--ink-2); }
.ar-plate .btn { flex: none; }
.ar-fig { margin: 20px 0 8px; }
.ar-fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-fig-row div { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #e8e8ed; }
.ar-fig-row img { width: 100%; height: 100%; object-fit: cover; }
.ar-fig-row span { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.94); font-size: 13px; font-weight: 500; }
.ar-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.ar-faq .qa summary { font-size: 19px; padding: 20px 0; }
.ar-faq .qa .ans { font-size: 17px; padding-right: 0; }
.ar-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.ar-share span { margin-right: 8px; }
.ar-share .btn { height: 44px; padding: 0 18px; }
.ar-card { top: 96px; }
/* на планшете и мобилке плашка автора — под оглавлением */
.ar-mob-author { display: none; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: -12px 0 32px; padding: 14px; border-radius: 20px; background: var(--bg); }
.ar-mob-author .ac-ava { width: 56px; height: 56px; }
.ar-mob-author b { display: block; font-size: 16px; letter-spacing: -0.02em; }
.ar-mob-author small { display: block; font-size: 13px; font-weight: 500; color: var(--ok); }
.ar-mob-author .btn { height: 48px; padding: 0 18px; font-size: 15px; }

@media (max-width: 1440px) { .ar-caps button { padding: 0 10px; } }
@media (min-width: 821px) and (max-height: 860px) {
  .ar-h1 { font-size: clamp(40px, 3.8vw, 64px); margin-bottom: 18px; }
  .ar-bat { width: min(100%, 340px); }
  .ar-path, .ar-bat-cap { display: none; }
  .ar-bat-num b { font-size: 76px; }
  .ar-stats div { padding: 10px 14px; }
  .ar-verdict { padding: 12px 12px 12px 18px; }
  .ar-verdict p { display: none; }
  .ar-legend li { padding: 11px 16px; }
}
@media (max-width: 1240px) {
  .ar-tool { min-height: 0; }
  .ar-stage { padding: 28px 0; }
  .ar-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; justify-content: stretch; }
  .ar-toc { position: static; max-width: 760px; }
  .ar-article .byline { margin-bottom: 20px; }
  .ar-card { display: none; }
  .ar-mob-author { display: grid; }
  .ar-article { max-width: 760px; }
}
@media (max-width: 820px) {
  .ar-h1 { font-size: clamp(32px, 8.4vw, 52px); margin-bottom: 14px; }
  .ar-top { margin-bottom: 14px; }
  .ar-tool-top { flex-direction: column; align-items: stretch; }
  .ar-caps { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .ar-caps::-webkit-scrollbar { display: none; }
  .ar-caps button { flex: none; padding: 0 11px; }
  .ar-tool-top .select, .ar-tool-top select { width: 100%; }
  .ar-stage { padding: 16px 0; }
  .ar-bat-body { border-radius: 26px; padding: 9px; }
  .ar-bat-fill { left: 9px; top: 9px; bottom: 9px; width: calc((100% - 18px) * var(--cap) / 100); border-radius: 18px; }
  .ar-bat-cells { inset: 9px; }
  .ar-bat-num b { font-size: 64px; }
  .ar-stats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ar-legend li { grid-template-columns: 10px 84px 1fr; padding: 12px 14px; font-size: 14px; }
  .ar-legend b { font-size: 16px; }
  .ar-grid .p-hero-copy { gap: 20px; }
  .ar-legend { display: none; }
  .ar-grid .p-hero-copy .lead { margin-bottom: 0; }
  .ar-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .ar-stats dd { margin: 0; font-size: 15px; text-align: right; }
  .ar-verdict { flex-direction: column; align-items: stretch; padding: 16px; }
  .ar-verdict .btn { width: 100%; height: auto; min-height: 56px; white-space: normal; text-align: center; font-size: 16px; }
  .ar-short { padding: 20px; }
  .ar-short ul { font-size: 15px; }
  .ar-prose h2 { font-size: 26px; margin-top: 40px; }
  .ar-plate { flex-direction: column; align-items: stretch; padding: 18px; }
  .ar-plate .btn { width: 100%; }
  .ar-fig-row { grid-template-columns: minmax(0, 1fr); }
  .ar-faq .qa summary { font-size: 17px; }
}

/* ===== contacts ===== */
/* ---------- Контакты: адрес слева ---------- */
.page-contacts .p-hero-copy .h1 { max-width: 12ch; }
.ct-dl { display: grid; gap: 18px; margin: clamp(20px, 3.4vh, 36px) 0 clamp(24px, 3.6vh, 40px); }
.ct-dl dt { font-size: 13px; color: var(--ink-2); }
.ct-dl dd { margin: 4px 0 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 500; }
.ct-dl dd a { color: var(--ink); }
.ct-dl dd small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: -0.01em; }
.ct-live { display: inline-flex !important; align-items: center; gap: 8px; color: var(--ok) !important; font-weight: 500 !important; }
.ct-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(26,143,60,.14); }
.ct-live.is-closed { color: #b25000 !important; }
.ct-live.is-closed i { box-shadow: 0 0 0 4px rgba(178,80,0,.14); }

/* ---------- Схема с маршрутом ---------- */
.ct-stage { padding: 0; background: #fff; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line-soft); }
.ct-map-svg { position: relative; flex: 1 1 0; width: 100%; min-height: 260px; height: 0; }
.ct-route { fill: none; stroke: #2997ff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 8px rgba(41,151,255,.6)); }
.ct-route.is-on { opacity: 1; animation: ctDraw 1.8s var(--ease) forwards; }
@keyframes ctDraw { to { stroke-dashoffset: 0; } }
.ct-dest { fill: #fff; stroke: #2997ff; stroke-width: 5; }
.ct-panel { padding: 18px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; }
.ct-panel .ct-steps { grid-column: 1 / -1; }
.ct-modes { width: min(100%, 420px); display: grid; grid-template-columns: repeat(3, 1fr); }
.ct-modes button { padding: 0 8px; }
.ct-steps-t { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.ct-steps-t b { color: var(--ink); font-weight: 600; }
.ct-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; counter-reset: s; }
.ct-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 0 10px; font-size: 15px; line-height: 1.3; counter-increment: s; animation: fadeUp .5s var(--ease) both; }
.ct-steps li:nth-child(2) { animation-delay: .25s; } .ct-steps li:nth-child(3) { animation-delay: .5s; } .ct-steps li:nth-child(4) { animation-delay: .75s; }
.ct-steps li::before { content: counter(s); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.ct-steps li b { font-weight: 600; }
.ct-steps li span { font-size: 13px; color: var(--ink-2); }
.ct-2gis { font-size: 14px; font-weight: 500; }
.ct-cap { left: 16px; top: 16px; bottom: auto; }

/* ---------- Способы связи ---------- */
.ct-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-way { position: relative; border-radius: var(--r-card); background: var(--bg); padding: 24px; min-height: 220px; display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; transition: transform .5s var(--ease), background-color .2s; }
.ct-way:hover { transform: translateY(-3px); }
.ct-way:hover .round-arrow { background: var(--blue); transform: rotate(0); }
.ct-way .round-arrow { position: absolute; top: 18px; right: 18px; transform: rotate(-45deg); }
.ct-way-i { width: 30px; height: 30px; color: var(--ink); }
.ct-way-n { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--ink-2); }
.ct-way b { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.ct-way p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); max-width: 32ch; }
.ct-way--wa { grid-row: span 2; background: #25d366; color: #fff; }
.ct-way--wa .ct-way-i { width: 56px; height: 56px; color: #fff; }
.ct-way--wa b { font-size: clamp(32px, 3vw, 52px); letter-spacing: -0.04em; }
.ct-way--wa p, .ct-way--wa .ct-way-n { color: rgba(255,255,255,.9); font-size: 17px; }
.ct-way--wa .round-arrow { background: #fff; color: #128c4a; }
.ct-way--wa:hover .round-arrow { background: #fff; }

/* ---------- Как найти ---------- */
.ct-find { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.ct-find-photo { min-height: 520px; border-radius: var(--r-card); }
.ct-find-photo img { object-position: 50% 50%; }
.ct-find .h2 { max-width: 16ch; }
.ct-find-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-find-list li { position: relative; border-radius: var(--r-card); background: var(--bg); padding: 22px 24px; }
.ct-find-n { position: absolute; top: 20px; right: 22px; font-size: 13px; color: var(--ink-2); }
.ct-find-list svg { width: 48px; height: 48px; color: var(--blue); }
.ct-find-list h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; }
.ct-find-list p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Курьер ---------- */
.ct-cour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.ct-cour-copy .eyebrow { margin-bottom: 0; }
.ct-cour-big { font-size: clamp(120px, 12vw, 220px); font-weight: 200; letter-spacing: -0.08em; line-height: .85; color: var(--link-dark); margin: 16px 0 20px; }
.ct-cour-big small { font-size: .2em; font-weight: 500; letter-spacing: -0.02em; margin-left: 10px; color: #fff; }
.ct-cour-copy .h2 { color: #fff; max-width: 14ch; }
.ct-cour-copy p { color: var(--on-dark-2); margin: 18px 0 28px; max-width: 38ch; }
.ct-cour-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-cour-steps li { border-radius: var(--r-card); background: #111113; padding: 24px; min-height: 200px; display: flex; flex-direction: column; }
.ct-cour-steps b { font-size: 14px; color: var(--link-dark); font-weight: 600; }
.ct-cour-steps h3 { margin-top: auto; padding-top: 28px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.ct-cour-steps p { margin: 6px 0 0; font-size: 15px; color: var(--on-dark-2); }

/* ---------- Филиалы ---------- */
.ct-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ct-branch { border-radius: var(--r-card); background: var(--bg); padding: clamp(24px, 2.4vw, 36px); display: flex; flex-direction: column; }
.ct-branch .eyebrow { align-self: flex-start; background: #fff; }
.ct-branch h3 { font-size: clamp(26px, 2.2vw, 36px); letter-spacing: -0.03em; font-weight: 500; }
.ct-branch dl { margin: 24px 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ct-branch dt { font-size: 13px; color: var(--ink-2); }
.ct-branch dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }
.ct-branch-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.ct-branch-btns .btn--light { background: #fff; }

/* ---------- Реквизиты ---------- */
.ct-req { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.ct-req .h2 { max-width: 14ch; }
.ct-req > div > p { color: var(--ink-2); margin: 20px 0 0; max-width: 36ch; }
.ct-req-list { margin: 0; border-radius: var(--r-card); background: var(--bg); padding: 8px 24px; }
.ct-req-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ct-req-list > div:first-child { border-top: 0; }
.ct-req-list dt { font-size: 14px; color: var(--ink-2); }
.ct-req-list dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ct-copy { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--link); transition: background-color .2s, color .2s; }
.ct-copy:hover { background: var(--line-soft); }
.ct-copy.is-done { background: var(--ok); color: #fff; }

/* ---------- Финальный CTA ---------- */
.ct-final-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.ct-final .h2 { color: #fff; max-width: 18ch; }
.ct-final-side p { margin: 0 0 24px; font-size: 21px; color: #fff; letter-spacing: -0.02em; }
.ct-final-side p small { display: block; font-size: 15px; color: var(--on-dark-2); margin-top: 4px; }

@media (max-width: 1240px) {
  .ct-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-find, .ct-cour, .ct-req, .ct-final-in { grid-template-columns: minmax(0, 1fr); }
  .ct-find-photo { min-height: 360px; }
  .ct-stage { min-height: 640px; }
}
@media (max-width: 820px) {
  .page-contacts .p-hero-copy .h1 { font-size: clamp(38px, 10vw, 60px); }
  .ct-dl { gap: 14px; margin: 18px 0 22px; }
  .ct-dl dd { font-size: 18px; }
  .ct-stage { min-height: 0; }
  .ct-map-svg { flex: none; height: 280px; min-height: 0; }
  .ct-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .ct-modes { width: 100%; }
  .ct-steps ol { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-cap { display: none; }
  .ct-ways { 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; gap: 10px; }
  .ct-ways::-webkit-scrollbar { display: none; }
  .ct-way { flex: 0 0 72%; scroll-snap-align: start; min-height: 200px; padding: 20px; }
  .ct-way--wa { flex-basis: 84%; }
  .ct-way--wa .ct-way-i { width: 40px; height: 40px; }
  .ct-way--wa b { font-size: 30px; }
  .ct-find-photo { min-height: 240px; }
  .ct-find-list { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
  .ct-find-list li { padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
  .ct-find-list svg { width: 40px; height: 40px; grid-row: span 2; }
  .ct-find-list h3 { margin-top: 0; font-size: 17px; padding-right: 24px; }
  .ct-find-n { top: 18px; right: 18px; }
  .ct-cour-big { font-size: 120px; }
  .ct-cour-copy .btn { width: 100%; }
  .ct-cour-steps { 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; gap: 10px; }
  .ct-cour-steps::-webkit-scrollbar { display: none; }
  .ct-cour-steps li { flex: 0 0 78%; scroll-snap-align: start; min-height: 180px; padding: 20px; }
  .ct-branches { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-branch dl { gap: 12px; margin: 18px 0 20px; }
  .ct-branch-btns .btn { flex: 1 1 100%; }
  .ct-req-list { padding: 4px 16px; }
  .ct-req-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ct-req-list dd { font-size: 15px; }
  .ct-final-side p { font-size: 18px; }
}

/* ===== iphone-15-pro ===== */
/* ---------- Модель: iPhone 15 Pro ---------- */
/* таблица всех работ */
.md-pt td:first-child { white-space: normal; }
.md-pt td .chip { background: var(--bg); height: 28px; font-size: 13px; }
.md-pt td.md-na { color: var(--ink-2); font-size: 13px; }
.md-pt td.md-fx { text-align: right; }
.md-pt th:last-child, .md-pt td:last-child { text-align: right; }

.md-near .mdl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1240px) { .md-near .mdl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .md-near .mdl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md-grade { width: 100%; }
  .md-pt td, .md-pt th { font-size: 14px; }
}

/* характерные поломки: 8 карточек, 4×2 на десктопе; на мобилке — слайдер по одной */
@media (max-width: 599px) {
  .prob-grid--8 { 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); }
  .prob-grid--8::-webkit-scrollbar { display: none; }
  .prob-grid--8 .prob { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 250px; padding: 20px; }
  .prob-grid--8 .prob h3 { font-size: 21px; margin-top: 14px; }
  .prob-grid--8 .prob p { font-size: 15px; margin-top: 8px; }
  .prob-grid--8 .prob-foot { margin-top: auto; padding-top: 18px; flex-direction: row; align-items: center; justify-content: space-between; }
  .prob-grid--8 .prob-foot b { font-size: 18px; }
}

/* ===== reviews ===== */
/* ---------- Отзывы: панель рейтинга на первом экране ---------- */
.rp-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; min-height: clamp(520px, calc(100svh - 150px), 720px); }
.rp-score { border-radius: 22px; background: #fff; box-shadow: var(--shadow); padding: clamp(22px, 2vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 20px clamp(20px, 3vw, 48px); flex-wrap: wrap; }
/* площадки: кружки-логотипы внахлёст, оценка — во всплывашке */
.pls { display: flex; padding-left: 14px; }
.pl { position: relative; margin-left: -14px; width: clamp(64px, 5.4vw, 84px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 10px 24px -10px rgba(0,0,0,.35); display: grid; place-items: center; text-decoration: none !important; z-index: calc(1 + var(--i)); transition: transform .4s var(--ease); animation: plIn .7s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.pl:hover, .pl:focus-visible { transform: translateY(-6px); z-index: 5; }
@keyframes plIn { from { opacity: 0; transform: translateX(-18px) scale(.9); } }
.pl-logo { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; color: #fff; }
.pl-logo b { font-weight: 700; letter-spacing: -0.02em; }
.pl-2gis .pl-logo { background: #19aa1e; font-size: clamp(14px, 1.15vw, 18px); }
.pl-google .pl-logo { background: #fff; }
.pl-google svg { width: 48%; height: 48%; }
.pl-ya .pl-logo { background: #fc3f1d; font-size: clamp(30px, 2.6vw, 40px); }
.pl-zoon .pl-logo { background: #5b3cc4; font-size: clamp(15px, 1.25vw, 19px); }
.pl-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.pl:hover .pl-tip, .pl:focus-visible .pl-tip { opacity: 1; transform: translate(-50%, 0); }
.rp-score-num { display: flex; align-items: center; gap: 18px; }
.rp-big { font-size: clamp(72px, 6.4vw, 112px); font-weight: 200; letter-spacing: -0.07em; line-height: .85; color: var(--ink); }
.rp-score-num p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.rp-score-num b { color: var(--ink); font-weight: 600; }

.rp-feed { border-radius: 22px; background: #fff; padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; min-height: 0; box-shadow: var(--shadow); }
.rp-feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rp-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rp-live i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.16); }
.rp-dots { display: flex; gap: 6px; }
.rp-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; display: grid; place-items: center; }
.rp-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .4s var(--ease), background-color .3s; }
.rp-dots button[aria-pressed="true"]::before { width: 22px; background: var(--ink); }
.rp-qs { position: relative; flex: 1; min-height: 300px; }
.rp-q { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.rp-q.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rp-q .stars svg { width: 16px; height: 16px; }
.rp-q blockquote { margin: 0; font-size: clamp(30px, 3vw, 54px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; max-width: 22ch; }
.rp-q-text { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.rp-q figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.rp-q figcaption .ava { background: var(--bg); box-shadow: none; flex: none; }
.rp-q figcaption b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }

/* ---------- Сетка всех отзывов ---------- */
.rp-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin-bottom: 24px; }
.rp-filters .chips-row { grid-column: 1; }
.rp-add { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rp-src button { height: 36px; font-size: 14px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.rp-src button[aria-pressed="true"] { box-shadow: none; }
.reviews.reviews--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; align-items: stretch; }
.reviews--grid .rv { flex: none; }
.rp-empty { margin: 0; padding: 32px; border-radius: var(--r-card); background: var(--bg); color: var(--ink-2); text-align: center; }

/* ---------- Почему верить ---------- */
.rp-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rp-rule { border-radius: var(--r-card); background: var(--bg); padding: 26px; display: flex; flex-direction: column; }
.rp-rule:first-child { background: var(--black); color: var(--on-dark); }
.rp-rule:first-child .rp-rule-big { color: var(--link-dark); }
.rp-rule:first-child p { color: var(--on-dark-2); }
.rp-rule-big { font-size: clamp(56px, 5vw, 88px); font-weight: 300; letter-spacing: -0.06em; line-height: .95; }
.rp-rule-big small { font-size: .26em; font-weight: 500; letter-spacing: -0.02em; margin-left: 6px; }
.rp-rule h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 28px; }
.rp-rule p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.rp-photos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; align-items: center; margin-top: 16px; padding: 16px 16px 16px 26px; border-radius: var(--r-card); background: var(--bg); }
.rp-photos-copy h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.rp-photos-copy p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.rp-photos-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rp-ph { padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: #e8e8ed; cursor: zoom-in; }
.rp-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rp-ph:hover img { transform: scale(1.05); }

@media (max-width: 1240px) {
  .rp-stage { min-height: 0; }
  .rp-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-photos { grid-template-columns: minmax(0, 1fr); padding: 20px; }
}
@media (max-width: 820px) {
  .rp-score { padding: 20px; gap: 16px; }
  .pl { width: 60px; }
  .rp-big { font-size: 72px; }
  .rp-feed { padding: 20px; }
  .rp-qs { min-height: 230px; }
  .rp-q blockquote { font-size: 26px; }
  .rp-q-text { font-size: 15px; }
  .rp-qs { min-height: 330px; }
  .reviews.reviews--grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rp-filters { grid-template-columns: minmax(0, 1fr); }
  .rp-add { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
  .rp-rules { 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; gap: 10px; }
  .rp-rules::-webkit-scrollbar { display: none; }
  .rp-rule { flex: 0 0 80%; scroll-snap-align: start; padding: 22px; }
  .rp-rule-big { font-size: 60px; }
  .rp-rule h3 { margin-top: 16px; font-size: 19px; }
  .rp-photos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

.page-reviews .p-hero-copy .h1 { max-width: 16ch; font-size: clamp(44px, 4.2vw, 84px); }
@media (max-width: 820px) { .page-reviews .p-hero-copy .h1 { font-size: clamp(38px, 10vw, 60px); } }

/* ===== warranty ===== */
/* ---------- Гарантия: талон с пояснениями ---------- */
.wr-tool { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: center; min-height: clamp(520px, calc(100svh - 150px), 720px); }
.wr-paper { position: relative; width: 100%; max-width: 470px; justify-self: center; background: #fff; border-radius: 18px; padding: 26px 28px 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 60px -28px rgba(0,0,0,.35); font-variant-numeric: tabular-nums;
  /* перфорация слева, как у отрывного талона */
  -webkit-mask: radial-gradient(6px 6px at 0 50%, #0000 98%, #000) 0 0 / 100% 16px repeat-y;
          mask: radial-gradient(6px 6px at 0 50%, #0000 98%, #000) 0 0 / 100% 16px repeat-y; }
.wr-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px dashed var(--line); }
.wr-top .logo { font-size: 17px; }
.wr-top .logo-mark { width: 26px; height: 26px; font-size: 15px; border-radius: 8px; }
.wr-title { font-size: 12px; color: var(--ink-2); text-align: right; letter-spacing: .04em; text-transform: uppercase; }
.wr-title b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wr-lines { margin: 0; padding: 10px 0; display: grid; gap: 2px; border-bottom: 1.5px dashed var(--line); }
.wr-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.wr-lines dt { color: var(--ink-2); white-space: nowrap; }
.wr-lines dd { margin: 0; font-weight: 500; text-align: right; }
.wr-lines div.is-on { background: rgba(0,113,227,.08); box-shadow: inset 0 0 0 1.5px var(--blue); }
.wr-lines div.is-on dt { color: var(--blue); }
.wr-lines dd.flash { animation: flash .6s var(--ease); }
.wr-paper .grade { margin: 14px 0 0; }
.wr-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 16px; min-height: 58px; }
.wr-stamp { padding: 7px 10px; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 10px; font-weight: 700; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; text-align: center; transform: rotate(-10deg); opacity: .85; width: 86px; height: 58px; display: grid; place-items: center; }
.wr-sig { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); min-width: 46%; }
.wr-sig i { display: block; height: 26px; border-bottom: 1px solid var(--line); background: no-repeat 10% 80% / 70% 70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M3 22c10-14 16-18 18-12s-6 14 2 10 12-16 16-12-4 12 4 9 10-10 16-8 4 8 12 6 20-6 44-8' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.wr-pts { display: grid; gap: 6px; }
.wr-pt { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; text-align: left; border: 0; border-radius: 16px; background: transparent; padding: 12px 14px; color: var(--ink); transition: background-color .3s var(--ease), box-shadow .3s; }
.wr-pt:hover { background: rgba(255,255,255,.6); }
.wr-pt[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.wr-pt-n { grid-row: span 2; font-size: 13px; color: var(--ink-2); padding-top: 3px; }
.wr-pt[aria-pressed="true"] .wr-pt-n { color: var(--blue); }
.wr-pt b { font-size: 16px; font-weight: 600; letter-spacing: -0.016em; }
.wr-pt-t { font-size: 14px; line-height: 1.4; color: var(--ink-2); display: block; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .45s var(--ease), opacity .3s var(--ease), margin .3s; }
.wr-pt[aria-pressed="true"] .wr-pt-t { max-height: 160px; opacity: 1; margin-top: 4px; }

/* ---------- Что покрывает: бенто, одна акцентная карточка ---------- */
.wr-cover { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.wr-cover > li { border-radius: var(--r-card); background: var(--bg); padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.wr-cover b { color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.wr-main { grid-row: span 2; background: var(--blue) !important; color: rgba(255,255,255,.82) !important; justify-content: flex-end; min-height: 380px; }
.wr-main .eyebrow { background: rgba(255,255,255,.16); color: #fff; align-self: flex-start; margin-bottom: auto; }
.wr-main .num { font-size: clamp(96px, 9vw, 168px); font-weight: 200; letter-spacing: -0.07em; line-height: .85; color: #fff; margin-bottom: 18px; }
.wr-main b { color: #fff; font-size: clamp(22px, 1.8vw, 28px); }
.wr-main span:last-child { font-size: 17px; max-width: 34ch; }
.wr-ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); margin-bottom: auto; }
.wr-ic svg { width: 22px; height: 22px; }
.wr-yes { min-height: 184px; }
.wr-yes b { margin-top: 28px; }
.wr-no { margin-top: 12px; border-radius: var(--r-card); border: 1px solid var(--line); padding: clamp(20px, 2vw, 28px) clamp(22px, 2vw, 32px); display: grid; grid-template-columns: 220px 1fr; gap: 16px 32px; align-items: start; }
.wr-no h3 { font-size: 19px; letter-spacing: -0.02em; padding-top: 8px; }
.wr-no ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wr-no li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--bg); font-size: 14px; color: var(--ink-2); }
.wr-no li svg { width: 14px; height: 14px; color: var(--ink-2); flex: none; }
.wr-no li b { color: var(--ink); font-weight: 600; }
.wr-no li span::before { content: "· "; }

/* ---------- Гарантийный случай: кольцо + шаги ---------- */
.wr-claim { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 80px); align-items: start; }
.wr-claim-side { position: sticky; top: 110px; display: grid; gap: 28px; justify-items: start; }
.wr-ring { margin: 0; display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; border-radius: var(--r-card); background: var(--bg); padding: 20px 24px 20px 20px; font-size: 15px; color: var(--ink-2); }
.wr-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.wr-ring circle { fill: none; stroke: rgba(0,0,0,.08); stroke-width: 10; }
.wr-ring circle.on { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.wr-ring .num { display: block; font-size: clamp(48px, 4vw, 64px); font-weight: 300; letter-spacing: -0.06em; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.wr-ring small { font-size: 20px; letter-spacing: -0.02em; color: var(--ink-2); }
.wr-flow { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.wr-flow::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--blue), var(--line)); }
.wr-flow li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 26px 0 26px 44px; border-bottom: 1px solid var(--line); }
.wr-flow li:last-child { border-bottom: 0; }
.wr-flow li::before { content: ""; position: absolute; left: 0; top: 32px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--blue); }
.wr-step { grid-column: 1; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.wr-flow h3 { grid-column: 1; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -0.03em; }
.wr-flow p { grid-column: 1; margin: 0; color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.wr-time { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: clamp(40px, 3.6vw, 64px); font-weight: 300; letter-spacing: -0.06em; line-height: 1; color: var(--ink); white-space: nowrap; }
.wr-flow li:nth-child(3) .wr-time { color: var(--blue); }

/* ---------- Защита от подмены: фото + 4 правила ---------- */
.wr-swap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
.wr-swap-ph { position: relative; margin: 0; min-height: 520px; }
.wr-swap-ph .ph { position: absolute; inset: 0; border-radius: var(--r-card); }
.wr-swap-ph .glass { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); font-size: 16px; font-weight: 500; letter-spacing: -0.016em; }
.wr-swap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wr-swap-list li { border-radius: var(--r-card); background: var(--bg); padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; }
.wr-swap-list .num { font-size: clamp(56px, 4.6vw, 84px); font-weight: 200; letter-spacing: -0.06em; line-height: .9; color: var(--ink); margin-bottom: auto; padding-bottom: 28px; }
.wr-swap-list h3 { font-size: 21px; letter-spacing: -0.025em; }
.wr-swap-list p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.wr-swap-list li.is-accent { background: var(--blue); color: #fff; }
.wr-swap-list li.is-accent .num, .wr-swap-list li.is-accent h3 { color: #fff; }
.wr-swap-list li.is-accent p { color: rgba(255,255,255,.82); }

/* ---------- Детали по устройствам: карточки ---------- */
.wr-devs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; }
.wr-dev:first-child { grid-row: span 2; background: #fff; box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.wr-dev:first-child .wr-dev-ic { width: 120px; height: 120px; margin-bottom: auto; }
.wr-dev:first-child h3 { font-size: 28px; }
.wr-dev:first-child dd b { font-size: 26px; }
.wr-dev { border-radius: var(--r-card); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.wr-dev-ic { width: 56px; height: 56px; color: var(--ink); }
.wr-dev h3 { font-size: 20px; letter-spacing: -0.025em; }
.wr-dev h3 span { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 2px; }
.wr-dev dl { margin: auto 0 0; display: grid; gap: 8px; }
.wr-dev dl div { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.wr-dev dt { color: var(--ink-2); }
.wr-dev dd { margin: 0; color: var(--ink-2); white-space: nowrap; }
.wr-dev dd b { color: var(--ink); font-size: 17px; font-weight: 600; margin-right: 6px; }
.wr-dev dd { font-size: 14px; }
.wr-dev div:first-child dd b { color: var(--blue); }
.wr-only { font-weight: 500; color: var(--ink) !important; }

/* ---------- Проверка запчастей ---------- */
.wr-pc { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.wr-pc .num { font-size: clamp(64px, 6vw, 112px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; }
.wr-pc p { margin: 18px 0 0; color: var(--ink-2); font-size: 16px; max-width: 36ch; }
.wr-pc-big { grid-row: span 2; border-radius: var(--r-card); background: var(--black); color: var(--on-dark); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.wr-pc-big .num { color: var(--link-dark); font-size: clamp(96px, 9vw, 168px); }
.wr-pc-big p { color: var(--on-dark-2); font-size: 18px; }
.wr-pc-card { border-radius: var(--r-card); background: var(--bg); padding: 28px; }
.wr-pc-who { grid-column: 2 / span 2; margin: 0; border-radius: var(--r-card); background: var(--bg); padding: 12px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.wr-pc-who .ph { aspect-ratio: 4 / 5; border-radius: 16px; }
.wr-pc-who .ph img { object-position: 50% 15%; }
.wr-pc-who figcaption { font-size: 14px; color: var(--ink-2); padding-right: 16px; }
.wr-pc-who b { display: block; font-size: 19px; color: var(--ink); font-weight: 600; }
.wr-pc-who p { margin: 10px 0 0; font-size: 17px; color: var(--ink); line-height: 1.4; max-width: 52ch; }

@media (max-width: 1240px) {
  .wr-tool { min-height: 0; }
  .wr-cover { grid-template-columns: 1fr 1fr; }
  .wr-devs { grid-template-columns: 1fr 1fr 1fr; }
  .wr-dev:first-child { grid-row: auto; }
  .wr-dev:first-child .wr-dev-ic { width: 56px; height: 56px; }
  .wr-main { grid-row: auto; grid-column: 1 / -1; min-height: 300px; }
  .wr-claim { grid-template-columns: minmax(0, 1fr); }
  .wr-claim-side { position: static; }
  .wr-swap { grid-template-columns: minmax(0, 1fr); }
  .wr-swap-ph { min-height: 420px; }
  .wr-no { grid-template-columns: minmax(0, 1fr); }
  .wr-pc { grid-template-columns: 1fr 1fr; }
  .wr-pc-big { grid-row: auto; grid-column: 1 / -1; }
  .wr-pc-who { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .wr-tool { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wr-paper { padding: 20px 18px 18px 22px; }
  .wr-lines div { font-size: 14px; padding: 6px 8px; margin: 0 -8px; }
  /* пояснения — лентой по одному, раскрыт активный */
  .wr-pts { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; gap: 8px; }
  .wr-pts::-webkit-scrollbar { display: none; }
  .wr-pt { flex: 0 0 84%; scroll-snap-align: start; background: #fff; }
  .wr-pt .wr-pt-t { max-height: 90px; opacity: 1; margin-top: 4px; }
  /* длинные блоки — слайдером по одной карточке */
  .wr-cover, .wr-swap-list, .wr-devs { 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; gap: 10px; }
  .wr-cover::-webkit-scrollbar, .wr-swap-list::-webkit-scrollbar, .wr-devs::-webkit-scrollbar { display: none; }
  .wr-cover > li, .wr-swap-list li, .wr-dev { flex: 0 0 82%; scroll-snap-align: start; }
  .wr-main { min-height: 0; }
  .wr-main .num { font-size: 96px; }
  .wr-yes { min-height: 0; }
  .wr-no li { width: 100%; border-radius: 16px; display: grid; grid-template-columns: 14px 1fr; align-items: start; gap: 2px 10px; padding: 12px 14px; }
  .wr-no li svg { margin-top: 4px; grid-row: span 2; }
  .wr-no li span::before { content: none; }
  .wr-ring { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; }
  .wr-ring svg { width: 96px; height: 96px; }
  .wr-flow li { grid-template-columns: minmax(0, 1fr); padding: 20px 0 20px 36px; }
  .wr-time { grid-column: 1; grid-row: auto; font-size: 34px; margin-top: 6px; }
  .wr-flow li::before { top: 24px; }
  .wr-claim-side .btn { width: 100%; }
  .wr-swap-ph { min-height: 0; aspect-ratio: 4 / 5; }
  .wr-swap-list .num { font-size: 52px; }
  .wr-pc { grid-template-columns: minmax(0, 1fr); }
  .wr-pc-big, .wr-pc-card { padding: 22px; }
  .wr-pc-who { grid-template-columns: 96px 1fr; gap: 14px; }
  .wr-pc-who p { font-size: 15px; }
}
.wr-lines dd.num { white-space: nowrap; }

/* ===== zamena-ekrana-iphone ===== */
/* ---------- Услуга: замена экрана iPhone ---------- */
.sv-tool { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: stretch; }
.sv-scene { position: relative; min-height: 0; display: grid; }
.sv-ba { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(60% 50% at 50% 55%, #fff 0%, rgba(255,255,255,0) 70%); --pos: 50%; user-select: none; min-height: 460px; }
.sv-phone { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-after { clip-path: inset(0 0 0 var(--pos)); }
/* реальные фото: «до» — три вида поломки (сменяются по data-dmg), «после» — новый экран; кадры совпадают пиксель в пиксель */
.sv-ph { position: absolute; inset: 3% 4%; width: 92%; height: 94%; object-fit: contain; transition: opacity .5s var(--ease); }
.sv-before .sv-ph { opacity: 0; }
.sv-ba[data-dmg="crack"] .sv-before .sv-ph[data-dmg="crack"], .sv-ba[data-dmg="line"] .sv-before .sv-ph[data-dmg="line"], .sv-ba[data-dmg="spot"] .sv-before .sv-ph[data-dmg="spot"] { opacity: 1; }
.sv-ba .ba-tag { z-index: 3; }
.sv-ba .ba-line, .sv-ba .ba-knob { z-index: 3; }
.sv-ba input { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.sv-dmg-chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; background: rgba(255,255,255,.94); box-shadow: 0 6px 18px -8px rgba(0,0,0,.3); pointer-events: none; }

.sv-panel { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.sv-select, .sv-select select { width: 100%; }
.sv-panel .grade { margin: 0; }
.sv-figs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sv-fig { border-radius: 18px; background: #fff; padding: 14px 16px; display: grid; gap: 2px; }
.sv-fig dt { font-size: 13px; color: var(--ink-2); }
.sv-fig dd { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.sv-fig--price { grid-column: 1 / -1; box-shadow: var(--shadow); }
.sv-fig--price dd { font-size: clamp(36px, 3vw, 48px); color: var(--blue); line-height: 1.05; }
.sv-fig dd.flash { animation: flash .6s var(--ease); }
.sv-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.sv-inc li { display: flex; align-items: center; gap: 10px; }
.sv-inc svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* признаки: мини-экраны */
.sv-signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sv-sign { border-radius: var(--r-card); background: var(--bg); padding: 24px; display: flex; flex-direction: column; }
.sv-sign h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 22px; }
.sv-sign p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.sv-shot { margin: -8px -8px 0; height: clamp(200px, 17vw, 260px); display: flex; align-items: center; justify-content: center; }
.sv-shot { overflow: hidden; }
.sv-shot img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0,0,0,.12)); }
@keyframes svTap { 0%, 100% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 60% { opacity: 0; } }

/* что входит */
.sv-gens { margin-bottom: 14px; }
.sv-oth { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sv-oth .prob { min-height: 170px; }

@media (max-width: 1240px) {
  .sv-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-oth { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .sv-tool { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sv-ba { min-height: 0; height: clamp(360px, 104vw, 460px); }
  .sv-figs { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .sv-fig--price { grid-column: auto; }
  .sv-fig { padding: 12px; }
  .sv-fig dd { font-size: 18px; }
  .sv-fig--price dd { font-size: 26px; }
  .sv-inc { display: none; }
  .sv-signs { 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; }
  .sv-signs::-webkit-scrollbar { display: none; }
  .sv-sign { flex: 0 0 78%; scroll-snap-align: start; padding: 20px; }
  .sv-oth { grid-template-columns: minmax(0, 1fr); }
  .sv-oth .prob { min-height: 0; }
}
@media (min-width: 600px) and (max-width: 820px) { .sv-sign { flex-basis: 46%; } }
/* H1 в 2 строки: «Замена экрана iPhone» / «за 40 минут» */
.sv-hero .p-hero-copy .h1 { max-width: none; font-size: clamp(44px, 3.9vw, 84px); }
@media (max-width: 820px) { .sv-hero .p-hero-copy .h1 { font-size: clamp(36px, 9.6vw, 56px); } }

/* ---------- Что входит: бенто из фото-карточек, одна большая (новый экран) и тёмная итоговая ---------- */
.xb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(250px, 19vw, 320px); gap: 12px;
  grid-template-areas: "a a b c" "a a d e" "f f g g"; }
/* секция на серой подложке, карточки белые: фото без фона сливаются с карточкой */
#inc { background: #e9e9ee; }
.xb-c { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; padding: clamp(18px, 1.5vw, 24px); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.xb-c:nth-child(1) { grid-area: a; } .xb-c:nth-child(2) { grid-area: b; } .xb-c:nth-child(3) { grid-area: c; }
.xb-c:nth-child(4) { grid-area: d; } .xb-c:nth-child(5) { grid-area: e; } .xb-c:nth-child(6) { grid-area: f; }
.xb-n { position: absolute; top: clamp(18px, 1.5vw, 24px); left: clamp(18px, 1.5vw, 24px); z-index: 1; font-size: 14px; color: var(--ink-2); }
/* фото предмета без фона: живёт в своей зоне над текстом, чуть увеличивается при наведении */
.xb-ph { position: relative; min-height: 0; margin-top: 18px; }
.xb-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.xb-c:hover .xb-ph img { transform: scale(1.04) rotate(-1deg); }
.xb-c b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.xb-c p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
/* большая карточка: крупное фото и заголовок крупнее */
.xb-c:nth-child(1) .xb-ph { margin: 40px 6% 8px; }
.xb-c:nth-child(1) b { font-size: clamp(24px, 2vw, 32px); }
.xb-c:nth-child(1) p { font-size: 17px; max-width: 34ch; }
/* широкая карточка: текст слева, фото справа */
.xb-c:nth-child(6) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: none; align-items: end; }
.xb-c:nth-child(6) .xb-ph { order: 2; height: 100%; margin: 0; }
/* итог: тёмная акцентная карточка */
.xb-sum { grid-area: g; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(22px, 2vw, 32px); border-radius: var(--r-card); background: var(--ink); color: #fff; }
.xb-sum-k { font-size: 15px; color: rgba(255,255,255,.66); }
.xb-sum-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.xb-sum-big b { font-size: clamp(56px, 5vw, 88px); font-weight: 300; letter-spacing: -0.05em; line-height: .9; }
.xb-sum-big span { font-size: 17px; line-height: 1.35; color: rgba(255,255,255,.8); max-width: 22ch; }
.xb-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.xb-sum-row .btn { flex: none; }
.xb-sum-row p { flex: 1 1 auto; margin: 0; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.66); max-width: 30ch; }
.xb-sum-row p b { color: #fff; font-weight: 500; }

@media (max-width: 1100px) {
  .xb { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 280px; grid-template-areas: "a a" "a a" "b c" "d e" "f f" "g g"; }
}
/* мобилка: слайдер по одной карточке, видно край следующей */
@media (max-width: 760px) {
  .xb { 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); }
  .xb::-webkit-scrollbar { display: none; }
  .xb-c, .xb-sum { flex: 0 0 84%; height: 360px; scroll-snap-align: start; }
  .xb-c:nth-child(6) { grid-template-columns: none; grid-template-rows: minmax(0, 1fr) auto; }
  .xb-c:nth-child(6) .xb-ph { order: 0; margin: 18px 0 0; }
  .xb-c:nth-child(1) .xb-ph { margin: 24px 0 0; }
  .xb-c:nth-child(1) b { font-size: 20px; }
  .xb-c:nth-child(1) p { font-size: 15px; }
  .xb-sum-big b { font-size: 64px; }
  .xb-sum-row { flex-direction: column; align-items: stretch; }
  .xb-sum-row .btn { width: 100%; }
}
