/* Витрина Gadgets Hub (29.10.2026) — спокойный «эппловский» стиль: много воздуха, крупная типографика,
   стеклянная шапка, белые карточки на светло-сером, одна синяя акцентная кнопка. */

:root {
  --bg: #fff;
  --soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --link: #0066cc;
  --sale: #e30000;
  --ok: #1d8b3a;
  --kicker: #bf4800;
  --r: 18px;
  --r-lg: 28px;
  --wrap: 1200px;
  --pad: max(22px, calc((100vw - var(--wrap)) / 2));
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Noto Sans Georgian', 'Helvetica Neue', Arial, sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter Tight', Inter, 'Noto Sans Georgian', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.gh { min-height: 100vh; display: flex; flex-direction: column; }
.gh[lang='ka'] { --font: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, Inter, sans-serif; --font-d: 'Noto Sans Georgian', -apple-system, 'Inter Tight', sans-serif; letter-spacing: 0; }
#main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.45); outline-offset: 2px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 44px); margin: 0 auto; padding: 0 22px; }
.mute { color: var(--ink-3); font-weight: 400; }
[hidden] { display: none !important; }

/* ---------- типографика ---------- */
.h1 { font: 600 clamp(36px, 5.2vw, 56px) / 1.07 var(--font-d); letter-spacing: -0.028em; margin: 0 0 14px; }
.h2 { font: 600 clamp(28px, 3.6vw, 40px) / 1.1 var(--font-d); letter-spacing: -0.024em; margin: 0; }
.sub { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; margin: 6px 0 0; }
.kicker { display: inline-block; color: var(--kicker); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 20px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; transition: background 0.2s var(--ease), transform 0.2s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--blue-h); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.lnk { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 17px; }
.lnk svg { width: 11px; height: 11px; transition: transform 0.2s var(--ease); }
.lnk:hover { text-decoration: underline; }
.lnk:hover svg { transform: translateX(2px); }

/* ---------- строка над шапкой и шапка ---------- */
.topbar i { font-style: normal; }
.topbar { background: var(--soft); color: var(--ink-2); font-size: 13px; text-align: center; padding: 9px 0; letter-spacing: -0.01em; }
/* шапка — сплошная белая (не полупрозрачная): Артём, 29.10 */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
/* на странице с фильтрами шапка и прилипшая к ней полоса фильтров — одно целое: без серой линии между ними */
.gh:has(.fbar) .nav { border-bottom-color: transparent; }
/* над первым экраном «слово за товаром» шапка прозрачная: фон слайда уходит под неё; прокрутили — снова белая (app.js — .solid) */
.nav { transition: background 0.35s var(--ease), border-color 0.35s var(--ease); }
.gh:has(.v-type) .topbar { position: relative; z-index: 51; background: transparent; }
.gh:has(.v-type) .nav:not(.solid) { background: transparent; border-bottom-color: transparent; }
.gh:has(.v-type) .v-type { margin-top: calc(-1 * var(--top-h, 86px)); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { width: 26px; height: 26px; }
/* в шапке — только надпись, чуть крупнее */
.logo-text .logo-word { width: 124px; height: 18px; }
.logo-word { display: inline-block; width: 104px; height: 15px; background: currentColor; -webkit-mask: var(--wm) left center / contain no-repeat; mask: var(--wm) left center / contain no-repeat; color: var(--ink); font-size: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.nav-links > a, .nav-cat { padding: 6px 11px; border-radius: 980px; font-size: 13.5px; color: rgba(0, 0, 0, 0.8); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.nav-links > a:hover, .nav-cat:hover, .nav-cat[aria-expanded='true'] { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.nav-cat { font-weight: 500; }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ic { position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background 0.2s; }
.ic:hover { background: rgba(0, 0, 0, 0.05); }
.ic svg { width: 19px; height: 19px; }
.search-pill { display: flex; align-items: center; gap: 8px; height: 36px; width: 240px; padding: 0 10px 0 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.05); color: var(--ink-3); font-size: 14px; transition: background 0.2s, width 0.3s var(--spring); }
.search-pill:hover { background: rgba(0, 0, 0, 0.08); }
.search-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.search-pill span { flex: 1; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-pill kbd { font: 500 11px var(--font); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.lang { position: relative; }
.lang .ic { width: auto; padding: 0 9px; gap: 5px; display: inline-flex; border-radius: 980px; }
.lang .ic b { font-size: 12px; font-weight: 600; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05); padding: 6px; display: grid; animation: pop 0.22s var(--spring); }
.lang-menu a { padding: 9px 12px; border-radius: 9px; font-size: 14px; }
.lang-menu a:hover { background: rgba(0, 0, 0, 0.05); }
.lang-menu a.on { font-weight: 600; }
.bag-n { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 10.5px/17px var(--font); text-align: center; font-style: normal; animation: pop 0.3s var(--spring); }

/* «Каталог»: все разделы колонками, выезжает под шапкой */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.2); animation: drop 0.32s var(--spring); }
.mega-in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; padding-top: 22px; padding-bottom: 30px; }
.mg-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; padding-right: 22px; border-right: 1px solid var(--line-2); }
.mg-tab { display: grid; grid-template-columns: 40px minmax(0, 1fr) 12px; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background 0.2s var(--ease); }
.mg-tab > svg { width: 12px; height: 12px; color: var(--ink-3); opacity: 0; transition: opacity 0.2s, transform 0.2s var(--ease); }
.mg-tab:hover, .mg-tab.on { background: var(--soft); }
.mg-tab.on > svg { opacity: 1; transform: translateX(2px); }
.mg-tab-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-sale { margin-top: 6px; color: var(--kicker); }
.mg-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--soft); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.mg-ic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.mg-ic .noimg { width: 100%; border-radius: inherit; }
.mg-ic > svg { width: 20px; height: 20px; }
.mg-tab.on .mg-ic, .mg-tab:hover .mg-ic { background: #fff; }
.mg-pane { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; min-width: 0; animation: fade 0.25s var(--ease); }
.mg-pane[hidden] { display: none; }
.mg-main { min-width: 0; max-height: calc(100vh - var(--nav-h) - 120px); overflow-y: auto; scrollbar-width: thin; }
.mg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.mg-head h3 { margin: 0; font: 600 26px/1.1 var(--font-d); letter-spacing: -0.02em; color: var(--ink); }
.mg-head span { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--link); white-space: nowrap; }
.mg-head svg { width: 11px; height: 11px; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 28px; }
.mg-group { display: grid; gap: 8px; align-content: start; min-width: 0; }
.mg-sub { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.mg-sub b { font-size: 15px; font-weight: 600; line-height: 1.25; transition: color 0.2s; }
.mg-sub:hover b { color: var(--link); }
.mg-links { display: grid; gap: 7px; padding-left: 52px; }
.mg-links a { font-size: 13.5px; color: var(--ink-2); transition: color 0.2s; }
.mg-links a:hover { color: var(--ink); }
.mg-links .mg-more { color: var(--link); }
.mg-card { align-self: start; display: grid; align-content: start; justify-items: center; gap: 6px; padding: 20px 18px 22px; border-radius: 22px; background: var(--soft); text-align: center; color: var(--ink); }
.mg-card-k { font-size: 12px; font-weight: 600; color: var(--kicker); }
.mg-card-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 180px; margin: 6px 0 4px; }
.mg-card-img img { max-width: 80%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--spring); }
.mg-card:hover .mg-card-img img { transform: scale(1.05); }
.mg-card b { font: 600 17px/1.2 var(--font-d); letter-spacing: -0.01em; }
.mg-card > span:last-child { font-size: 14px; color: var(--ink-2); }
.mega-veil { position: fixed; inset: 0; top: var(--nav-h); z-index: 40; background: rgba(232, 232, 237, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade 0.3s var(--ease); }

/* ---------- первый экран ---------- */
.hero { --mx: 0; --my: 0; position: relative; overflow: hidden; }
.hero-track { display: grid; }
.slide { --sbg: #fff; grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; justify-items: center; text-align: center; padding: 48px 22px 84px; min-height: calc(100svh - var(--nav-h) - 34px); max-height: 980px; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0.9s; background: var(--sbg); }
.slide.on { opacity: 1; visibility: visible; }
/* слайд с фото «слово за товаром»: спрятанный — прозрачный, но отрисованный, чтобы при показе ничего не готовить заново */
.v-type .slide:not(.on) { visibility: visible; pointer-events: none; }
.v-type .slide:not(.on) .vt-img img { transition-delay: 0s; }
.slide.t-gray { --sbg: var(--soft); }
.slide.t-dark { --sbg: #000; color: #f5f5f7; }
.slide.t-dark .slide-text { color: #a1a1a6; }
.slide.t-dark .lnk { color: #2997ff; }
.slide .kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: color-mix(in srgb, var(--glow) 18%, transparent); color: color-mix(in srgb, var(--glow) 55%, #1d1d1f); font-size: 13.5px; margin-bottom: 16px; }
.slide .kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 25%, transparent); animation: pulse 2.4s var(--ease) infinite; }
.slide-title { font: 700 clamp(48px, 8.4vw, 112px) / 0.98 var(--font-d); letter-spacing: -0.045em; margin: 0; background: linear-gradient(180deg, #1d1d1f 35%, color-mix(in srgb, var(--glow) 45%, #1d1d1f) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.slide.t-dark .slide-title { background-image: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--glow) 60%, #fff) 120%); }
.slide-text { font-size: clamp(18px, 2vw, 26px); line-height: 1.25; margin: 14px 0 0; font-weight: 400; color: var(--ink-2); }
.slide-cta, .store .slide-cta { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.slide-cta .btn { min-height: 48px; padding: 0 24px; font-size: 16px; box-shadow: 0 10px 30px color-mix(in srgb, var(--blue) 30%, transparent); }
.slide-from { opacity: 0.75; font-weight: 400; margin-left: 4px; }
/* фото и свечение — одна группа: фото смешивается со свечением (белый фон снимка исчезает), группа следует за мышкой */
.slide-img { position: relative; isolation: isolate; background: var(--sbg); align-self: end; width: min(1000px, 100%); height: 100%; min-height: 260px; display: flex; align-items: flex-end; justify-content: center; margin-top: 28px; transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0); transition: transform 0.6s var(--spring); }
.slide-glow { position: absolute; left: 50%; bottom: 4%; width: min(780px, 92%); aspect-ratio: 1.4; transform: translateX(-50%) scale(0.7); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 70%, transparent), color-mix(in srgb, var(--glow) 22%, transparent) 55%, transparent); filter: blur(30px); opacity: 0; transition: opacity 1.2s var(--ease) 0.2s, transform 1.6s var(--spring) 0.1s; }
.slide.on .slide-glow { opacity: 1; transform: translateX(-50%) scale(1); animation: glow 7s var(--ease) 1.4s infinite alternate; }
.slide-img img { position: relative; max-height: max(240px, min(52vh, calc(100svh - 545px))); width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: translateY(60px) scale(0.92); filter: blur(10px); transition: transform 1.4s var(--spring) 0.15s, opacity 1s var(--ease) 0.15s, filter 1s var(--ease) 0.15s; }
.slide.t-dark .slide-img img { mix-blend-mode: normal; }
.slide.on .slide-img img { opacity: 1; transform: none; filter: none; animation: float 6s ease-in-out 1.6s infinite; }
.slide.on .slide-copy > * { animation: rise 1s var(--spring) both; }
.slide.on .slide-copy > :nth-child(2) { animation-delay: 0.07s; }
.slide.on .slide-copy > :nth-child(3) { animation-delay: 0.14s; }
.slide.on .slide-copy > :nth-child(4) { animation-delay: 0.21s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-46%) scale(1.08); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--glow) 10%, transparent); } }
/* подписи слайдов с полоской времени */
.hero-dots { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.hero-dots button { position: relative; display: flex; align-items: center; gap: 0; height: 44px; padding: 3px; border-radius: 999px; color: var(--ink); white-space: nowrap; transition: background 0.4s var(--ease), padding 0.5s var(--spring), gap 0.5s var(--spring); }
.hero-dots button:hover .hd-pic { transform: scale(1.06); }
.hd-pic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--glow) 18%, #fff); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); transition: transform 0.4s var(--spring), opacity 0.3s; opacity: 0.75; }
.hd-pic img { width: 78%; height: 78%; object-fit: contain; }
/* превью слайда с роликом — кадр из ролика (#t=…), без отдельной картинки */
.hd-pic video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); pointer-events: none; }
.hero-dots button span { max-width: 0; overflow: hidden; opacity: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; transition: max-width 0.6s var(--spring), opacity 0.3s var(--ease); }
.hero-dots button i { position: absolute; left: 50px; right: 16px; bottom: 8px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--glow) 25%, transparent); opacity: 0; overflow: hidden; }
.hero-dots button i::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--glow) 80%, #000); transform: scaleX(0); transform-origin: left; }
.hero-dots button.on { gap: 10px; padding-right: 18px; background: color-mix(in srgb, var(--glow) 12%, #fff); }
.hero-dots button.on .hd-pic { opacity: 1; background: #fff; }
.hero-dots button.on span { max-width: 220px; opacity: 1; transform: translateY(-2px); }
.hero-dots button.on i { opacity: 1; }
.hero-dots button.on i::after { animation: progress var(--dur, 6s) linear both; }
.hero[data-paused] .hero-dots button.on i::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .slide.on .slide-img img, .slide.on .slide-glow { animation: none; } .slide-img { transform: none; } }

/* ---------- разделы плитками ---------- */
.tiles { padding-top: 64px; }
.tiles .h2 { margin-bottom: 26px; }
.tiles-row, .family-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.tiles-row::-webkit-scrollbar, .family-row::-webkit-scrollbar, .rail-track::-webkit-scrollbar, .subs::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 auto; width: 136px; display: grid; justify-items: center; gap: 10px; scroll-snap-align: start; text-align: center; }
.tile-img { width: 136px; height: 104px; display: grid; place-items: center; }
.tile-img img { max-width: 100px; max-height: 92px; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s var(--spring); }
.tile:hover .tile-img img { transform: scale(1.06) translateY(-2px); }
.tile-label { font-size: 14px; font-weight: 500; line-height: 1.25; }

/* ---------- ленты товаров ---------- */
.shelf { padding: 72px 0 8px; }
.shelf.t-gray { background: var(--soft); padding-bottom: 64px; margin-top: 64px; }
.shelf.t-dark { background: #000; color: #f5f5f7; padding-bottom: 64px; margin-top: 64px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 980px; background: rgba(0, 0, 0, 0.06); }
.seg button { padding: 7px 16px; border-radius: 980px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background 0.3s var(--spring), color 0.2s, box-shadow 0.3s; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.tab-pane { display: none; }
.tab-pane.on { display: block; animation: fade 0.45s var(--ease); }
.rail { position: relative; }
.rail-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 4px var(--pad) 34px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail-track > * { scroll-snap-align: start; }
.rail-btn { position: absolute; top: calc(50% - 34px); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(210, 210, 215, 0.64); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: rgba(0, 0, 0, 0.56); opacity: 0; transition: opacity 0.3s, background 0.2s, transform 0.2s; z-index: 2; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { background: rgba(223, 223, 227, 0.86); color: var(--ink); }
.rail-btn:active { transform: scale(0.94); }
.rail-btn.prev { left: max(10px, calc(var(--pad) - 60px)); }
.rail-btn.next { right: max(10px, calc(var(--pad) - 60px)); }
.rail:hover .rail-btn:not([disabled]) { opacity: 1; }
.rail-btn[disabled] { pointer-events: none; }

/* плитка модели (как на маркетплейсах): крупное фото на сером, на нём скидка и кнопка корзины; ниже цена, название, оценка */
.card { flex: 0 0 auto; width: 232px; display: flex; flex-direction: column; position: relative; }
.card-media { position: relative; }
.card-img { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 22px; background: #f2f2f5; overflow: hidden; }
.card-img img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--spring); }
.card:hover .card-img img { transform: scale(1.05); }
.card-tags { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.tag { font: 600 12.5px/1 var(--font); font-style: normal; padding: 5px 9px; border-radius: 980px; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.tag.sale { background: #ff3b30; color: #fff; }
.card-cart { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 15px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transition: transform 0.25s var(--spring), background 0.2s; }
.card-cart svg { width: 23px; height: 23px; }
.card-cart:hover { background: #000; transform: scale(1.06); }
.card-cart:active { transform: scale(0.92); }
.card-cart.added { background: var(--ok); }
.card-body { display: grid; gap: 4px; padding: 10px 4px 2px; }
.card-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.card-price b { font: 700 20px/1.15 var(--font-d); letter-spacing: -0.02em; }
.card-price b.red { color: #ff3b30; }
.card-price b.ask { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.card-price small { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.card-price s { font-size: 13.5px; color: var(--ink-3); }
.card-name { font-size: 14.5px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 10px; min-height: 18px; font-size: 13px; color: var(--ink-2); }
.card-rate { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 500; }
.card-rate svg { width: 14px; height: 14px; color: #ff9f0a; }
.card-rate em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.card-meta .dots { margin: 0; min-height: 0; }
.dots { display: flex; gap: 5px; align-items: center; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.dots em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.card-out { font-size: 12.5px; color: var(--ink-3); }
.noimg { position: relative; display: block; width: 64%; aspect-ratio: 1; border-radius: 22px; background: radial-gradient(120% 100% at 50% 0%, #fbfbfd 0%, #ededf0 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03); overflow: hidden; }
.noimg::before { content: ''; position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1; background: #c7c7cc; -webkit-mask: url(/brand/glyph.svg) center / contain no-repeat; mask: url(/brand/glyph.svg) center / contain no-repeat; opacity: 0.7; }
.noimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-100%); animation: noimg 2.8s var(--ease) 0.4s 1 both; }
@keyframes noimg { to { transform: translateX(100%); } }
.card-img .noimg, .pdp-stage .noimg { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; }
.ph { margin: 24px auto; max-width: var(--wrap); padding: 40px; border: 2px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--ink-3); }

/* ---------- два баннера ---------- */
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 12px; padding-top: 72px; }
.promo-card { position: relative; min-height: 560px; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-align: center; padding: 48px 32px 0; background: var(--soft); transition: transform 0.6s var(--spring); }
.promo-card:hover { transform: scale(1.008); }
.promo-card.t-dark { background: #000; color: #f5f5f7; }
.promo-card.t-dark .promo-text { color: #a1a1a6; }
.promo-card.t-dark .lnk { color: #2997ff; }
.promo-card.t-light { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.promo-copy { display: grid; justify-items: center; gap: 6px; }
.promo-title { font: 600 clamp(32px, 3.6vw, 44px) / 1.08 var(--font-d); letter-spacing: -0.026em; }
.promo-text { font-size: 19px; color: var(--ink-2); }
.promo-copy .lnk { margin-top: 8px; }
.promo-img { align-self: end; display: flex; justify-content: center; }
.promo-img img { max-height: 320px; object-fit: contain; transform: translateY(10px); transition: transform 0.8s var(--spring); mix-blend-mode: multiply; }
.promo-card.t-dark .promo-img img { mix-blend-mode: normal; }
.promo-card:hover .promo-img img { transform: translateY(0) scale(1.03); }

/* ---------- линейка бренда ---------- */
.family { padding-top: 80px; }
.family .h2 { margin-bottom: 28px; }
.fam { flex: 0 0 auto; width: 150px; display: grid; justify-items: center; gap: 12px; text-align: center; scroll-snap-align: start; }
.fam-img { width: 150px; height: 150px; display: grid; place-items: center; }
.fam-img img { max-width: 120px; max-height: 140px; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--spring); }
.fam:hover .fam-img img { transform: translateY(-4px) scale(1.04); }
.fam-label { font-size: 14px; font-weight: 500; }

/* ---------- почему у нас ---------- */
.perks { padding-top: 88px; }
.perks .h2 { margin-bottom: 28px; }
.perks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.perk { background: var(--soft); border-radius: var(--r-lg); padding: 30px 28px 32px; }
.perk-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--blue); margin-bottom: 22px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.perk-ic svg { width: 28px; height: 28px; }
.perk h3 { font: 600 21px/1.2 var(--font-d); margin: 0 0 8px; letter-spacing: -0.018em; }
.perk p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }

/* ---------- рассрочка ---------- */
#main > .gh-b:first-child > .credit { margin-top: 0; }
.credit { margin-top: 88px; background: #000; color: #f5f5f7; padding: 88px 0; }
.credit-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.credit .kicker { color: #2997ff; }
.credit .h1 { background: linear-gradient(90deg, #f5f5f7 0%, #c7c7cc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credit p { color: #a1a1a6; font-size: 19px; max-width: 520px; }
.banks { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.banks span { padding: 7px 14px; border-radius: 980px; border: 1px solid #424245; color: #d2d2d7; font-size: 14px; }
.calc { background: #1d1d1f; border-radius: var(--r-lg); padding: 28px; display: grid; gap: 20px; }
.calc-item { display: flex; align-items: center; gap: 16px; }
.calc-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; }
.calc-item span { display: grid; }
.calc-item em { font-style: normal; color: #a1a1a6; font-size: 15px; }
.calc-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.calc-terms button { padding: 10px 0; border-radius: 10px; font-size: 14px; font-weight: 500; color: #a1a1a6; transition: background 0.3s var(--spring), color 0.2s; }
.calc-terms button.on { background: #f5f5f7; color: #1d1d1f; }
.calc-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: #a1a1a6; font-size: 15px; }
.calc-out b { font: 600 48px/1 var(--font-d); color: #f5f5f7; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-note { margin: -8px 0 0 !important; font-size: 14px !important; }
.calc .btn { justify-self: start; }

/* ---------- отзывы ---------- */
.reviews { padding-top: 88px; }
.rev { flex: 0 0 auto; width: 340px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); border-radius: var(--r-lg); padding: 26px 26px 24px; transition: transform 0.45s var(--spring); }
a.rev:hover { transform: scale(1.012); }
.stars { display: inline-flex; gap: 2px; color: #ff9f0a; position: relative; -webkit-mask: linear-gradient(90deg, #000 calc(var(--r) * 20%), rgba(0, 0, 0, 0.18) 0); mask: linear-gradient(90deg, #000 calc(var(--r) * 20%), rgba(0, 0, 0, 0.18) 0); }
.stars svg { width: 15px; height: 15px; }
.rev-title { font: 600 17px/1.3 var(--font-d); }
.rev-text { color: var(--ink-2); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rev-foot { margin-top: auto; display: grid; font-size: 13px; color: var(--ink-3); padding-top: 6px; }
.rev-foot b { color: var(--ink); font-weight: 500; }
.rev-foot em { font-style: normal; }

/* ---------- магазин ---------- */
.store { padding-top: 88px; }
.store-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); min-height: 420px; }
.store-copy { padding: 52px 48px; display: grid; align-content: center; gap: 4px; }
.store-copy p { color: var(--ink-2); margin: 10px 0 0; max-width: 440px; }
.store dl { margin: 22px 0 0; display: grid; gap: 12px; }
.store dl div { display: flex; gap: 12px; align-items: center; }
.store dt svg { width: 20px; height: 20px; color: var(--ink-2); display: block; }
.store dd { margin: 0; font-size: 17px; }
.store dd a { color: var(--link); }
.store .slide-cta { justify-content: flex-start; }
.store-img { position: relative; background: linear-gradient(135deg, #e8e8ed, #f5f5f7); }
.store-img img { width: 100%; height: 100%; object-fit: cover; }
.store-art { display: grid; place-items: center; background: radial-gradient(120% 90% at 70% 20%, #fff 0%, #e8e8ed 60%, #d9d9de 100%); }
.store-art img { width: 46%; height: auto; object-fit: contain; opacity: 0.9; }

/* ---------- заголовок страницы, вопросы ---------- */
.pagehead { padding-top: 72px; padding-bottom: 12px; max-width: 860px; }
.pagehead p { color: var(--ink-2); font-size: 21px; line-height: 1.4; }
/* сразу под шапкой страницы блок не отходит на свой полный отступ — текст и карточки читаются вместе */
.gh-b:has(.pagehead) + .gh-b > section:not(.hero) { padding-top: 40px; }
.pagehead + section { padding-top: 40px; }
.faq { padding-top: 72px; max-width: 900px; }
.faq .h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 600 19px/1.3 var(--font-d); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i svg { width: 18px; height: 18px; transition: transform 0.35s var(--spring); color: var(--ink-2); }
.faq details[open] summary i svg { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--ink-2); }
.faq-a p { margin: 0 0 10px; }

/* ---------- хлебные крошки ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; padding-top: 18px; font-size: 13px; color: var(--ink-3); }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs > * { flex: 0 0 auto; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 9px; height: 9px; }
.crumbs a:last-child { color: var(--ink-2); }

/* ---------- раздел каталога ---------- */
.listing { padding-top: 26px; padding-bottom: 40px; }
.listing-head { margin-bottom: 26px; }
/* SEO-текст под заголовком раздела — мелко и спокойно */
.listing-head .sub { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); max-width: 760px; margin-top: 4px; }
.subs { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 30px; padding: 2px 22px 8px; }
.sub-tile { flex: 0 0 auto; width: 132px; display: grid; justify-items: center; gap: 8px; padding: 14px 10px 14px; border-radius: var(--r); background: var(--soft); font-size: 13px; font-weight: 500; text-align: center; line-height: 1.25; transition: background 0.2s, transform 0.4s var(--spring); }
.sub-tile:hover { background: #ececf0; transform: translateY(-2px); }
.sub-img { width: 76px; height: 76px; display: grid; place-items: center; }
.sub-img img { max-width: 76px; max-height: 76px; object-fit: contain; mix-blend-mode: multiply; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-bottom: 18px; flex-wrap: wrap; }
.found { color: var(--ink-2); font-size: 14px; }
.toolbar-r { display: flex; align-items: center; gap: 10px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort select { border: 0; background: var(--soft); border-radius: 980px; padding: 7px 30px 7px 14px; font-size: 14px; color: var(--ink); appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231d1d1f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 980px; background: var(--soft); font-size: 14px; color: var(--ink); white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.2s; position: relative; }
.chip:hover { background: #ececf0; }
.chip.on { background: var(--ink); color: #fff; }
.chip em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.chip.on em { color: rgba(255, 255, 255, 0.6); }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.chip .on-dot { width: 7px; height: 7px; background: var(--blue); box-shadow: none; }
.chip.reset { background: none; color: var(--link); }
.filters { display: grid; gap: 14px; margin-bottom: 30px; }
.fgroup { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.fgroup-t { font-size: 14px; color: var(--ink-2); padding-top: 7px; }
.fgroup-c { display: flex; gap: 8px; flex-wrap: wrap; }
.fgroup:last-child { grid-template-columns: 1fr; }
[data-filters-open] { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 16px; }
.offers .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.offers .shelf-head { padding: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.offers .shelf-head .lnk { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.offers .shelf-head .lnk svg { width: 10px; height: 10px; }
.more-row { display: flex; justify-content: center; margin-top: 30px; }
.more-row .btn { min-width: 220px; }
.grid .card { width: auto; max-width: none; }
.nothing { text-align: center; padding: 80px 0; display: grid; justify-items: center; gap: 12px; }
.nothing h2 { font: 600 28px/1.2 var(--font-d); margin: 0; }
.nothing p { color: var(--ink-2); margin: 0 0 10px; }
.nothing.big { padding: 140px 22px; }
.catalog { padding-top: 26px; padding-bottom: 40px; }
.cat-block { margin-top: 38px; }
.cat-title { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cat-title svg { width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.2s; }
.cat-title:hover svg { transform: translateX(3px); }
.search-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 34px; }
.search-form input { flex: 1; height: 48px; border-radius: 14px; border: 1px solid var(--line); padding: 0 18px; font-size: 17px; background: #fff; }
.search-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.search-form .btn { height: 48px; border-radius: 14px; }

/* ---------- плитки разделов (каталог и подразделы): название сверху, фото под ним — не наезжают друг на друга ---------- */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; margin-bottom: 30px; }
/* на компьютере — невысокие плитки: название слева, фото справа */
.ctile { height: 84px; border-radius: 18px; background: #f2f2f5; overflow: hidden; display: flex; align-items: center; transition: transform 0.4s var(--spring), background 0.2s; }
.ctile:hover { transform: translateY(-2px); background: #ececf0; }
.ctile-t { flex: 1 1 auto; min-width: 0; padding: 0 6px 0 16px; font: 600 15px/1.25 var(--font-d); letter-spacing: -0.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctile img { flex: 0 0 74px; width: 74px; height: 100%; padding: 10px 12px 10px 0; object-fit: contain; object-position: center; mix-blend-mode: multiply; transition: transform 0.5s var(--spring); }
.ctile:hover img { transform: scale(1.04); }
.ctile.hot { background: linear-gradient(160deg, #ff3b30, #ff6b3d); color: #fff; }
.ctile.hot img { mix-blend-mode: normal; border-radius: 12px; background: #fff; margin-right: 12px; flex-basis: 60px; width: 60px; height: 60px; padding: 4px; }
.catalog .ctiles { margin-top: 12px; }
/* больше шести подразделов — два ряда, листаются вбок (на компьютере и телефоне) */
.ctiles.scroll { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 10px) / 5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: -22px; margin-right: -22px; padding: 0 22px; scroll-padding: 0 22px; }
.ctiles.scroll::-webkit-scrollbar { display: none; }
.ctiles.scroll > * { scroll-snap-align: start; }

/* ---------- страница «Каталог» ---------- */
.cat-search { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.cat-title h2 { font: 600 clamp(24px, 3vw, 32px) / 1.15 var(--font-d); letter-spacing: -0.022em; margin: 0; }
.cat-title span { color: var(--ink-3); font-size: 14px; }
.cat-title em { margin-left: auto; font-style: normal; color: var(--link); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; }
.cat-title em svg { width: 11px; height: 11px; }
.ctile-n { flex: 0 0 auto; padding: 2px 18px 0; font-size: 13px; color: var(--ink-3); }
.brands { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 4px -22px 22px; padding: 4px 22px; }
.brands::-webkit-scrollbar { display: none; }
.brand { flex: 0 0 auto; width: 76px; display: grid; justify-items: center; gap: 7px; font-size: 13px; font-weight: 500; text-align: center; }
.brand-img { width: 72px; height: 72px; border-radius: 50%; background: #f2f2f5; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); transition: transform 0.35s var(--spring); }
.brand:active .brand-img, .brand:hover .brand-img { transform: scale(0.95); }
.brand-img img { width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; }
.cat-sale { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 104px; padding: 18px 18px 18px 22px; margin-bottom: 30px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #ff6b3d 0%, #ff3b30 45%, #e0123a 100%); overflow: hidden; transition: transform 0.35s var(--spring); }
.cat-sale:active { transform: scale(0.98); }
.cat-sale-t { display: grid; gap: 4px; }
.cat-sale-t b { font: 700 26px/1.05 var(--font-d); letter-spacing: -0.02em; }
.cat-sale-t em { font-style: normal; font-size: 14px; opacity: 0.9; }
.cat-sale-imgs { display: flex; flex-shrink: 0; }
.cat-sale-imgs img { width: 62px; height: 62px; object-fit: contain; background: #fff; border-radius: 16px; padding: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.cat-sale-imgs img + img { margin-left: -18px; }
.cat-sale-imgs img:nth-child(2) { transform: translateY(-8px) rotate(4deg); }
.cat-sale-imgs img:nth-child(3) { transform: rotate(-3deg); }
.catalog .cat-block { margin-top: 26px; }

/* ---------- строка фильтров и окна к ним ---------- */
.fbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px 6px; padding: 4px 22px 8px; position: sticky; top: var(--nav-h); z-index: 20; background: #fff; }
.fbar::-webkit-scrollbar { display: none; }
.fchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 15px; border-radius: 980px; background: #f2f2f5; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.fchip:hover { background: #e8e8ed; }
.fchip svg { width: 12px; height: 12px; }
.fchip.icon { width: 38px; padding: 0; justify-content: center; position: relative; }
.fchip.icon svg { width: 19px; height: 19px; }
.fchip.icon b { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff; font: 600 10.5px/17px var(--font); }
.fchip.on { background: var(--ink); color: #fff; }
.fchip.reset { background: none; color: var(--link); }
.found { color: var(--ink-3); font-size: 13.5px; margin: 0 0 14px; }
.fsheet { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; }
.fsheet-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); animation: fade 0.25s var(--ease); }
.fsheet-panel { position: relative; width: min(460px, calc(100vw - 32px)); max-height: min(78vh, 680px); display: flex; flex-direction: column; background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); animation: pop 0.35s var(--spring); }
.fsheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px 22px; }
.fsheet-head h3 { font: 600 21px/1.2 var(--font-d); margin: 0; }
.fsheet-head .ic svg { transform: rotate(45deg); }
.fsheet-body { overflow-y: auto; padding: 4px 22px 14px; }
.fsheet-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--line-2); }
.fsheet-foot .btn { min-height: 48px; border-radius: 14px; font-size: 16px; }
/* предзаказ */
.pre-foot { grid-template-columns: 1fr; border-top: 0; padding-top: 4px; }
.pre-item { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 12px; border-radius: 16px; background: #f5f5f7; }
.pre-item img, .pre-item .noimg { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; flex: 0 0 auto; }
.pre-item span { display: grid; gap: 1px; min-width: 0; }
.pre-item b { font-size: 15px; font-weight: 600; }
.pre-item em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.pre-note { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pre textarea { min-height: 64px; }
.pre-err { margin: 0; min-height: 1em; font-size: 13.5px; color: #d70015; }
.pre-done { display: grid; justify-items: center; gap: 8px; padding: 26px 0 10px; text-align: center; }
.pre-done b { font: 600 21px/1.25 var(--font-d); }
.pre-done p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fsec { padding: 10px 0 14px; border-bottom: 1px solid var(--line-2); }
.fsec:last-child { border: 0; }
.fsec h4 { margin: 4px 0 8px; font: 600 16px/1.2 var(--font-d); }
.fopts { display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 12px; padding: 11px 6px; margin: 0 -6px; border-radius: 12px; cursor: pointer; font-size: 15.5px; }
.fopt:hover { background: var(--soft); }
.fopt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.fopt > i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); flex-shrink: 0; }
.fopt span { flex: 1; }
.fopt em { font-style: normal; color: var(--ink-3); font-size: 13px; }
.fopt.on { font-weight: 600; }
.fsorts .fopt b { color: var(--blue); }
.frange { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frange label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px; }
.frange span { color: var(--ink-3); font-size: 14px; }
.frange input { border: 0; outline: 0; width: 100%; font-size: 16px; background: none; }
.fswitch { font-weight: 500; }

/* ---------- страница товара ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-top: 22px; padding-bottom: 20px; align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--nav-h) + 20px); min-width: 0; }
.pdp-stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: #fff; overflow: hidden; touch-action: pan-y; }
.pdp-stage figure { position: absolute; inset: 0; margin: 0; display: block; opacity: 0; transform: scale(0.98); transition: opacity 0.5s var(--ease), transform 0.7s var(--spring); }
.pdp-stage figure.on { opacity: 1; transform: none; }
/* фото — абсолютно внутри рамки: в Safari max-height в ячейке grid не работает, снимок вылезал и обрезался */
.pdp-stage img { position: absolute; top: 8%; left: 8%; width: 84%; height: 84%; object-fit: contain; }
/* снимки, обрезанные снизу (крупные планы), мягко растворяются в фоне — край не выглядит оборванным */
.pdp-stage img, .ap-pic img { -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, #000 88%, transparent 100%); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumbs button { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; overflow: hidden; padding: 6px; transition: box-shadow 0.2s; }
.pdp-thumbs button.on { box-shadow: inset 0 0 0 2px var(--ink); }
.pdp-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-buy { display: grid; gap: 14px; padding-top: 12px; }
.pdp-title { font: 600 clamp(30px, 3.4vw, 40px) / 1.1 var(--font-d); letter-spacing: -0.026em; margin: 0; }
.pdp-lead { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2, #6e6e73); max-width: 46ch; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp-price b { font: 600 32px/1 var(--font-d); letter-spacing: -0.02em; }
.pdp-price s { color: var(--ink-3); font-size: 17px; }
.pdp-month { color: var(--ink-2); font-size: 15px; margin: -4px 0 6px; }
.pdp-month a { color: var(--link); }
.pick { display: grid; gap: 10px; padding-top: 10px; }
.pick-t { font-size: 15px; color: var(--ink-2); }
.pick-t b { color: var(--ink); font-weight: 600; }
.pick-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pick-row.colors { display: flex; flex-wrap: wrap; gap: 12px; }
.opt { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background 0.2s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.opt.on { box-shadow: inset 0 0 0 2px var(--blue); }
.opt b { font-weight: 600; font-size: 16px; }
.opt em { font-style: normal; font-size: 13px; color: var(--ink-2); }
.opt.off { opacity: 0.55; }
.opt.far em::after { content: ''; }
.sw { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s; }
.sw i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), inset 0 -3px 6px rgba(0, 0, 0, 0.08); }
.sw:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.sw.on { box-shadow: inset 0 0 0 2px var(--blue); }
.sw.off i { opacity: 0.45; }
.pdp-stock { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); padding-top: 6px; }
.pdp-stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(29, 139, 58, 0.14); }
.pdp-stock.out { color: var(--ink-2); }
/* «Осталось N шт.» — учёт товаров: мало на складе */
.pdp-stock.low { color: #c2410c; }
.pdp-stock.low i { box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.14); }
.pdp-stock.out i { box-shadow: none; }
.pdp-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 4px; }
.pdp-perks { list-style: none; margin: 10px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 16px; }
.pdp-perks li { display: flex; gap: 14px; align-items: flex-start; }
.pdp-perks svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--ink); }
.pdp-perks span { display: grid; font-size: 14px; color: var(--ink-2); }
.pdp-perks b { color: var(--ink); font-weight: 600; font-size: 15px; }
.pdp-credit { padding-top: 56px; }
.pdp-credit .calc { background: var(--soft); color: var(--ink); grid-template-columns: 1.2fr 1.4fr auto; align-items: center; gap: 28px; padding: 28px 32px; }
.pdp-credit .calc-copy p { margin: 6px 0 0; color: var(--ink-2); }
.pdp-credit .calc-terms { background: rgba(0, 0, 0, 0.06); }
.pdp-credit .calc-terms button { color: var(--ink-2); }
.pdp-credit .calc-terms button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.pdp-credit .calc-out { color: var(--ink-2); }
.pdp-credit .calc-out b { color: var(--ink); font-size: 36px; }
.specs { padding-top: 72px; }
.specs .h2 { margin-bottom: 18px; }
.specs dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); column-gap: 48px; }
.specs dl div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }
/* описание товара в стиле страниц Apple: заголовок, фото со свечением цвета, цифры, карточки разделов */
.ap { padding-top: 110px; }
.ap-intro { max-width: 900px; text-align: center; }
.ap-kick { display: inline-block; font-size: 17px; font-weight: 600; color: var(--kicker); }
.ap-title { margin: 12px 0 0; font: 700 clamp(40px, 6vw, 76px) / 1.03 var(--font-d); letter-spacing: -0.038em; background: linear-gradient(180deg, #1d1d1f 35%, #55555c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.ap-lead { margin: 24px auto 0; max-width: 720px; font-size: clamp(19px, 2vw, 24px); line-height: 1.42; font-weight: 500; color: var(--ink); letter-spacing: -0.012em; text-wrap: pretty; }
.ap-more { margin-top: 14px; }
.ap-more summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--link); font-size: 16px; font-weight: 500; }
.ap-more summary::-webkit-details-marker { display: none; }
.ap-more summary svg { width: 16px; height: 16px; transition: transform 0.3s var(--spring); }
.ap-more[open] summary svg { transform: rotate(45deg); }
.ap-more .c, .ap-more[open] .o { display: none; }
.ap-more[open] .c { display: inline; }
.ap-more p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-align: left; animation: fade 0.4s var(--ease); }
.ap-hero { position: relative; display: flex; align-items: center; justify-content: center; height: min(600px, 72vw); margin-top: 36px; }
.ap-hero img { position: relative; max-width: min(80%, 760px); max-height: 100%; object-fit: contain; }
.ap-glow { position: absolute; left: 50%; top: 52%; width: min(70%, 700px); aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 32%, transparent), transparent); }
.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 48px; }
.ap-stat { display: grid; gap: 8px; padding: 28px 26px; border-radius: 28px; background: var(--soft); }
.ap-stat b { font: 700 clamp(38px, 4vw, 52px) / 1 var(--font-d); letter-spacing: -0.035em; }
.ap-stat small { margin-left: 6px; font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; }
.ap-stat span { font-size: 14.5px; color: var(--ink-2); }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ap-hero + .ap-grid { margin-top: 48px; }
.ap-card { position: relative; perspective: 2000px; transition: height 0.7s var(--spring); }
.ap-card.closing { transition-duration: 0.45s; }
.ap-face { border-radius: 30px; background: var(--soft); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.8s var(--spring); }
.ap-front { display: grid; align-content: start; height: 100%; padding: 44px 42px; }
.ap-back { position: absolute; inset: 0; padding: 44px 42px; overflow: hidden; transform: rotateY(180deg); }
.ap-card.flipped .ap-front { transform: rotateY(-180deg); }
.ap-card.flipped .ap-back { transform: rotateY(0); }
.ap-card .ap-back h3 { margin-bottom: 16px; }
.ap-back p:last-of-type { margin-bottom: 0; }
.ap-back p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.ap-flip { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--link); font-size: 16px; font-weight: 500; }
.ap-flip svg { width: 16px; height: 16px; transition: transform 0.3s var(--spring); }
.ap-flip.on svg { transform: rotate(45deg); }
.ap-card.wide { grid-column: 1 / -1; }
.ap-card.wide .ap-front { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 40px; min-height: 440px; padding-bottom: 0; overflow: hidden; }
/* фото стоит на нижнем краю карточки: снимок, обрезанный снизу, выглядит как выходящий из края, а не оборванный */
.ap-card.wide .ap-copy { align-self: center; padding-bottom: 44px; min-width: 0; }
.ap-card.wide:nth-of-type(2) .ap-pic { order: -1; }
.ap-card h3 { margin: 0; font: 700 clamp(28px, 3vw, 40px) / 1.08 var(--font-d); letter-spacing: -0.03em; text-wrap: balance; }
.ap-copy > p { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ap-pic { display: flex; align-items: flex-end; justify-content: center; min-width: 0; min-height: 300px; padding-top: 32px; }
.ap-pic img { display: block; max-width: 100%; max-height: 440px; object-fit: contain; object-position: bottom; mix-blend-mode: multiply; }
.story { padding-top: 72px; max-width: 920px; }
.story .h2 { margin-bottom: 18px; }
.story-body { color: var(--ink-2); font-size: 17px; position: relative; }
.story-body h3 { color: var(--ink); font: 600 24px/1.2 var(--font-d); margin: 34px 0 10px; letter-spacing: -0.02em; }
.story-body p { margin: 0 0 14px; }
.story-body.clamp { max-height: 340px; overflow: hidden; }
.story-body.clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #fff); }
.more-btn { margin-top: 10px; }
.pdp-reviews { padding-top: 72px; }
.pdp-reviews .h2 { margin-bottom: 22px; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rev-grid .rev { width: auto; }
.buybar { position: fixed; left: 0; right: 0; top: 0; z-index: 49; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); transform: translateY(-100%); transition: transform 0.45s var(--spring); }
.buybar.on { transform: translateY(var(--nav-h)); }
.buybar-in { display: flex; align-items: center; gap: 18px; height: 56px; }
.buybar-pic { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.buybar-name i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.buybar-name i::before { content: ' · '; }
.buybar-name { flex: 1; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar b { font-size: 15px; font-weight: 500; }
.buybar .btn { min-height: 34px; font-size: 14px; }

/* ---------- поиск поверх страницы ---------- */
.search { position: fixed; inset: 0; z-index: 80; }
.search-veil { position: absolute; inset: 0; background: rgba(232, 232, 237, 0.42); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fade 0.3s var(--ease); }
.search-panel { position: relative; z-index: 1; background: rgba(255, 255, 255, 0.98); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.3); animation: drop 0.4s var(--spring); max-height: 100vh; display: flex; flex-direction: column; }
.search-bar { display: flex; align-items: center; gap: 14px; height: 76px; }
.search-bar > svg { width: 24px; height: 24px; color: var(--ink-3); flex-shrink: 0; }
.search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 clamp(22px, 2.6vw, 28px) / 1.2 var(--font-d); letter-spacing: -0.02em; }
.search-bar input::placeholder { color: var(--ink-3); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-body { overflow-y: auto; padding-bottom: 34px; max-height: calc(100vh - 76px); }
.s-group { margin-top: 12px; }
.s-title { font-size: 12px; color: var(--ink-3); font-weight: 500; margin: 10px 0 8px; letter-spacing: 0; }
.s-links { display: grid; gap: 2px; }
.s-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.s-link svg { width: 12px; height: 12px; color: var(--ink-3); }
.s-link em { font-style: normal; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.s-link:hover, .s-link.sel, .s-item:hover, .s-item.sel { background: var(--soft); }
.s-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 4px; margin: 0 -10px; }
.s-item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; }
.s-item img, .s-item .noimg { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; border-radius: 12px; background: #fff; mix-blend-mode: multiply; }
.s-item span { display: grid; min-width: 0; }
.s-item b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-item em { font-style: normal; color: var(--ink-2); font-size: 13px; }
.s-item mark, .s-link mark { background: none; color: var(--blue); }
.s-empty { padding: 26px 0 10px; color: var(--ink-2); }
.s-fix { padding: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.s-fix b { color: var(--ink); font-weight: 600; }
.s-empty b { display: block; color: var(--ink); font: 600 21px/1.3 var(--font-d); margin-bottom: 4px; }
.s-all { margin-top: 16px; }

/* ---------- корзина справа ---------- */
.bag-drawer { position: fixed; inset: 0; z-index: 90; }
.bag-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.24); animation: fade 0.3s var(--ease); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.line img, .line .noimg { width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); padding: 4px; }
.line-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.line-opts { color: var(--ink-2); font-size: 13px; }
.line-price { font-size: 15px; font-weight: 500; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border-radius: 980px; background: var(--soft); }
.qty button { width: 30px; height: 30px; border-radius: 50%; font-size: 17px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line-del { display: block; margin-top: 8px; color: var(--link); font-size: 13px; }
.bag-sum { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.sum-row.total { color: var(--ink); font: 600 21px/1.2 var(--font-d); padding-top: 8px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.sum-row.month { font-size: 13px; }
.bag-sum .btn { margin-top: 12px; min-height: 52px; border-radius: 14px; font-size: 17px; }
.bag-empty { margin: auto 0; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 40px 0; }
.bag-empty svg { width: 64px; height: 64px; color: var(--line); }
.bag-empty p { margin: 0; font: 600 21px/1.3 var(--font-d); }

/* ---------- корзина: своя страница ---------- */
.checkout { padding-top: 34px; padding-bottom: 60px; }
.cart-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.cart-top .h1 { margin: 0; }
.cart-n { font-size: 17px; color: var(--ink-2); }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cart-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.cart-box { padding: 24px 26px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.cart-box h2 { font: 600 22px/1.2 var(--font-d); margin: 0 0 14px; letter-spacing: -0.02em; }
.cart-box .fld:last-of-type { margin-bottom: 0; }
.cart-box.cart-lines { padding: 4px 22px; }
.cart-lines .line { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; grid-template-areas: 'pic info x' 'pic foot foot'; column-gap: 18px; row-gap: 10px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.cart-lines .line:last-child { border-bottom: 0; }
.line-pic { grid-area: pic; align-self: center; }
.cart-lines .line img, .cart-lines .line .noimg { width: 96px; height: 96px; border-radius: 18px; padding: 6px; }
.line-info { grid-area: info; min-width: 0; padding-top: 4px; }
.cart-lines .line-name { display: block; font-size: 16px; line-height: 1.3; }
.cart-lines .line-opts { margin-top: 3px; }
.line-x { grid-area: x; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); transition: background 0.2s, color 0.2s; }
.line-x:hover { background: var(--soft); color: var(--sale); }
.line-x svg { width: 19px; height: 19px; }
.line-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line-foot .qty { margin: 0; }
.line-foot .qty button { width: 38px; height: 38px; font-size: 20px; }
.line-foot .qty span { min-width: 22px; font-size: 15px; font-weight: 500; }
.cart-lines .line-price { display: grid; justify-items: end; font: 600 18px/1.2 var(--font-d); white-space: nowrap; }
.cart-lines .line-price em { font: 400 12px/1.3 var(--font); font-style: normal; color: var(--ink-3); }
.cart-late { margin: -4px 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-size: 14px; }
.co-day { position: relative; }
.co-day.today i { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok); margin-top: 2px; }
.cart-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--soft); }
.cart-side h2 { font: 600 22px/1.2 var(--font-d); margin: 0; letter-spacing: -0.02em; }
.cart-side .bag-sum { margin: 0; padding: 0; }
.cart-side .btn.big { width: 100%; }
.cart-side .co-note { margin: 0; }
.cart-free { margin: 2px 0 0; font-size: 13px; color: var(--ok); }
.cart-when { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 14.5px; font-weight: 500; }
.cart-when svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--ok); }
.cart-bar { display: none; }
.cart-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 20px 40px; border-radius: var(--r-lg); background: var(--soft); }
.cart-empty svg { width: 72px; height: 72px; color: var(--ink-3); }
.cart-empty h2 { margin: 0; font: 600 26px/1.2 var(--font-d); letter-spacing: -0.02em; }
.cart-empty p { margin: 0 0 8px; color: var(--ink-2); }
.cart-skel { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px 32px; }
.cart-skel i { height: 180px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--soft) 30%, #fafafc 50%, var(--soft) 70%) 0 0 / 300% 100%; animation: skel 1.4s linear infinite; }
.cart-skel i:nth-child(2) { grid-row: span 2; height: 320px; }
@keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- оформление заказа ---------- */
.co { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.co-step { padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.co-step h2 { font: 600 24px/1.2 var(--font-d); margin: 0 0 16px; letter-spacing: -0.02em; }
.co-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-opt { position: relative; display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow 0.2s; }
.co-opt input { position: absolute; opacity: 0; }
.co-opt b { font-size: 16px; }
.co-opt em { font-style: normal; color: var(--ink-2); font-size: 13px; }
.co-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); }
.co-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-top: 14px; }
.co-day { flex: 0 0 auto; min-width: 84px; padding: 10px 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-align: center; display: grid; gap: 1px; cursor: pointer; }
.co-day input { position: absolute; opacity: 0; pointer-events: none; }
.co-day b { font-size: 15px; }
.co-day em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.co-day:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); }
.co-slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.co-slots label { padding: 8px 14px; border-radius: 980px; background: var(--soft); font-size: 14px; cursor: pointer; }
.co-slots input { position: absolute; opacity: 0; }
.co-slots label:has(input:checked) { background: var(--ink); color: #fff; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld span { font-size: 13px; color: var(--ink-2); }
.fld input, .fld textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 17px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.fld textarea { min-height: 88px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.fld.bad input { border-color: var(--sale); }
.co-side { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--soft); border-radius: var(--r-lg); padding: 26px; }
.co-side h2 { font: 600 21px/1.2 var(--font-d); margin: 0 0 6px; }
.co-side .line { grid-template-columns: 56px 1fr auto; padding: 12px 0; }
.co-side .line img, .co-side .line .noimg { width: 56px; height: 56px; }
.co-ship { margin: -6px 0 6px !important; font-size: 15px !important; }
.co-note { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.co-err { color: var(--sale); font-size: 14px; margin-top: 10px; }
/* экран «Спасибо! Заказ принят» — только div: у завершённого заказа в кабинете тоже класс done (article.order.done) */
div.done { text-align: center; padding: 70px 0 30px; display: grid; justify-items: center; gap: 10px; }
.done-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop 0.6s var(--spring); }
.done-ic svg { width: 34px; height: 34px; }
div.done p { color: var(--ink-2); margin: 0; }

/* ---------- личный кабинет ---------- */
.acc { padding-top: 34px; padding-bottom: 40px; }
.acc-head { margin-bottom: 24px; }
.acc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-top .lnk { font-size: 15px; margin-bottom: 8px; }
.acc-top .lnk svg { width: 14px; height: 14px; }
.acc-nav { display: flex; gap: 8px; }
/* кабинет: профиль, плитки, пустой кабинет, быстрые действия */
.acc-me { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.acc-ava { position: relative; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--soft); cursor: pointer; list-style: none; }
.acc-ava::-webkit-details-marker { display: none; }
.acc-ava img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s var(--spring); }
.acc-ava:hover img { transform: scale(1.06) rotate(-4deg); }
.acc-ava i { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.acc-ava i svg { width: 12px; height: 12px; }
.acc-ava-pick { position: relative; flex-shrink: 0; }
.acc-ava-list { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -12px rgba(0, 0, 0, 0.25); animation: pop 0.3s var(--spring); }
.acc-ava-list b { font-size: 13.5px; font-weight: 600; }
.acc-ava-list span { display: flex; gap: 8px; }
.acc-ava-list button { width: 52px; height: 52px; border-radius: 50%; padding: 3px; background: var(--soft); box-shadow: inset 0 0 0 2px transparent; transition: transform 0.25s var(--spring), box-shadow 0.2s; }
.acc-ava-list button:hover { transform: scale(1.08); }
.acc-ava-list button.on { box-shadow: inset 0 0 0 2px var(--blue); }
.acc-ava-list img { width: 100%; height: 100%; object-fit: contain; }
.me-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.05); font-size: 13.5px; font-weight: 500; color: var(--ink); max-width: 160px; transition: background 0.2s; }
/* подложка — как у поля поиска рядом */
.me-chip:hover { background: rgba(0, 0, 0, 0.08); }
.me-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.me-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; }
.menu-quick .me-ava { width: 30px; height: 30px; }
.acc-me-t { flex: 1; min-width: 0; }
.acc-me-t h1 { margin: 0; font: 700 clamp(26px, 3vw, 34px) / 1.1 var(--font-d); letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-me-t p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.acc-me-act { display: flex; gap: 6px; }
.acc-me-act form { margin: 0; }
.acc-me-act .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.acc-me-act .ic:hover { background: var(--line-2); }
.acc-me-act svg { width: 21px; height: 21px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.acc-stats > div { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: var(--soft); }
.acc-stats b { font: 700 24px/1.1 var(--font-d); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-stats span { font-size: 13px; color: var(--ink-2); }
.acc-home .acc-sub { margin: 30px 0 14px; }
.acc-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 36px 24px; }
.acc-empty-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--blue); }
.acc-empty-ic svg { width: 30px; height: 30px; }
.acc-empty h3 { margin: 6px 0 0; font: 600 22px/1.2 var(--font-d); letter-spacing: -0.02em; }
.acc-empty p { margin: 0; color: var(--ink-2); max-width: 360px; }
.acc-empty-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.acc-quick { margin-top: 30px; border-radius: var(--r-lg); background: var(--soft); padding: 2px 0; }
.acc-qrow { display: flex; align-items: center; gap: 14px; padding: 0 18px; color: var(--ink); font-size: 16px; }
.acc-qt { flex: 1; display: flex; align-items: center; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line-2); }
.acc-qrow:first-child .acc-qt { border-top: 0; }
.acc-qt > span { flex: 1; }
.acc-qt > svg { width: 12px; height: 12px; color: var(--ink-3); }
.acc-qic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue); flex-shrink: 0; }
.acc-qic svg { width: 20px; height: 20px; }
.acc-quick .acc-link { margin: 0; padding: 0; background: none; border-radius: 0; }
.acc-quick summary.acc-qrow { cursor: pointer; list-style: none; font-weight: 400; margin: 0; }
.acc-quick summary.acc-qrow::-webkit-details-marker { display: none; }
.acc-quick .acc-qt > svg { transition: transform 0.3s var(--spring); }
.acc-quick details[open] .acc-qt > svg { transform: rotate(90deg); }
.acc-link-body { padding: 0 18px 18px 66px; }
.acc-link-body .acc-small { margin: 0 0 12px; }
.acc-link-body .acc-form .btn { width: 100%; }
/* кабинет на компьютере: слева закреплённая панель профиля, справа заказы */
.acc-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.acc-side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 0; }
.acc-side .acc-me { flex-wrap: wrap; padding: 24px; border-radius: var(--r-lg); background: var(--soft); margin-bottom: 12px; }
.acc-side .acc-ava { width: 60px; height: 60px; }
.acc-side .acc-me-t h1 { font-size: 22px; white-space: normal; }
.acc-side .acc-me-act { width: 100%; }
.acc-side .acc-me-act .ic { width: auto; height: 38px; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; font-size: 14px; }
.acc-side .acc-me-act .ic::after { content: attr(title); }
.acc-side .acc-me-act svg { width: 18px; height: 18px; }
.acc-side .acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.acc-side .acc-stats > div { padding: 14px 12px; border-radius: 18px; }
.acc-side .acc-stats b { font-size: 18px; }
.acc-side .acc-quick { margin-top: 12px; }
.acc-main .acc-sub:first-of-type { margin-top: 0; }
.acc-main .orders { display: grid; gap: 16px; }
/* вход на компьютере: одна карточка — форма слева, зачем кабинет справа */
.acc-login { max-width: 1000px; }
.acc-login .acc-head { text-align: center; margin: 12px auto 30px; max-width: 620px; }
.acc-login .acc-enter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 24px 60px -30px rgba(0, 0, 0, 0.18); }
.acc-login .acc-card { background: #fff; border-radius: 0; padding: 48px 46px; }
.acc-login .acc-why { align-content: center; gap: 30px; padding: 48px 46px; background: var(--soft); }
.acc-login .fld input { height: 54px; border-radius: 14px; font-size: 17px; }
.acc-login .acc-go, .acc-login .btn.tg { width: 100%; min-height: 54px; }
.acc-nav form { margin: 0; }
.acc-enter { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; }
.acc-card { background: var(--soft); border-radius: var(--r-lg); padding: 30px; }
.acc-card h2 { font: 600 24px/1.2 var(--font-d); margin: 0 0 14px; letter-spacing: -0.02em; }
.acc-form { display: grid; gap: 2px; }
.acc-form .btn { margin-top: 6px; }
.acc-form.two { grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.acc-form.two .fld { margin: 0; }
.acc-form.two .btn { height: 50px; margin: 0; }
.acc-who { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; font: 600 21px/1.3 var(--font-d); }
.acc-who form { margin: 0; }
.acc-card .acc-who .lnk { margin: 0; font: 500 15px/1 var(--font); }
.acc-new { margin: -6px 0 14px !important; }
.acc-go { gap: 4px; }
.acc-go svg { width: 13px; height: 13px; }
.fld-box { position: relative; display: block; }
.fld-box input { padding-right: 52px; }
.fld-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.fld-eye.on { color: var(--blue); }
.fld-eye svg { width: 21px; height: 21px; }
.fld-hint { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.acc-small { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.acc-card .lnk { font-size: 15px; margin-top: 12px; }
.acc-card form:has(> .lnk) { margin: 0; }
.acc-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--ink-3); font-size: 13px; }
.acc-or::before, .acc-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.tg { width: 100%; background: #2aabee; gap: 10px; }
.btn.tg:hover { background: #229ed9; }
.btn.tg svg { width: 20px; height: 20px; }
.acc-how { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.acc-row { display: flex; gap: 22px; align-items: center; margin-top: 8px; }
.acc-row form { margin: 0; }
.acc-why { list-style: none; margin: 0; padding: 10px 0 0; display: grid; gap: 26px; }
.acc-why li { display: flex; gap: 16px; align-items: flex-start; }
.acc-why svg { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; }
.acc-why span { display: grid; gap: 2px; color: var(--ink-2); font-size: 15px; }
.acc-why b { color: var(--ink); font: 600 19px/1.25 var(--font-d); }
.acc-note { padding: 14px 18px; border-radius: 14px; font-size: 15px; margin: 0 0 18px; }
.acc-note.bad { background: #fdecec; color: #b00020; }
.acc-note.good { background: #e8f6ec; color: #136c2e; }
.acc-trap { position: absolute; left: -9999px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.acc-sub { margin: 40px 0 16px; }
.acc-link { margin-top: 34px; padding: 22px 26px; }
.acc-link summary { cursor: pointer; font-weight: 600; list-style: none; }
.acc-link summary::-webkit-details-marker { display: none; }
.acc-link[open] summary { margin-bottom: 4px; }
.acc-link .acc-form { margin-top: 14px; }
.orders { display: grid; gap: 14px; }
.order { background: #fff; border-radius: var(--r-lg); padding: 26px 28px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 22px rgba(0, 0, 0, 0.04); }
.order.off, .order.done { box-shadow: 0 0 0 1px var(--line-2); }
.order.off { opacity: 0.75; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.order-head h2 { font: 600 22px/1.2 var(--font-d); margin: 0 0 2px; letter-spacing: -0.02em; }
.order-head .mute { font-size: 14px; }
.order-st { flex-shrink: 0; padding: 5px 12px; border-radius: 980px; font-size: 13px; font-weight: 600; background: var(--soft); }
.order-st.t-amber { background: #fff4e0; color: #9a5b00; }
.order-st.t-blue { background: #e8f1fd; color: #0058b8; }
.order-st.t-sky { background: #e3f4fb; color: #00708f; }
.order-st.t-green { background: #e8f6ec; color: #136c2e; }
.order-st.t-red { background: #fdecec; color: #b00020; }
.order-now { margin: 14px 0 0; font-size: 16px; }
.track { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.track li { position: relative; display: grid; gap: 2px; padding: 22px 8px 0 0; font-size: 13px; color: var(--ink-3); }
.track li::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 2px; background: var(--line-2); }
.track li.on::before { background: var(--ok); }
.track li i { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); z-index: 1; }
.track li.on i { background: var(--ok); box-shadow: none; }
.track li.now i { box-shadow: 0 0 0 5px rgba(29, 139, 58, 0.16); animation: pop 0.5s var(--spring); }
.track li b { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.track li.on b { color: var(--ink); }
.track li em { font-style: normal; }
.order.off .track li.on i, .order.off .track li.on::before { background: var(--ink-3); }
.order-items { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.order-items li { display: flex; gap: 14px; align-items: center; }
.order-items img, .order-items .noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 4px; background: #fff; flex-shrink: 0; }
.order-items span { display: grid; }
.order-items b { font-weight: 600; font-size: 15px; }
.order-items em { font-style: normal; color: var(--ink-2); font-size: 14px; }
.order-info { margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; }
.order-info dt { font-size: 13px; color: var(--ink-3); }
.order-info dd { margin: 2px 0 0; font-size: 15px; }
.order-act { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 14px; cursor: pointer; }
.co-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.done-act { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
@media (max-width: 834px) {
  .acc-enter { grid-template-columns: 1fr; gap: 34px; }
  .acc-card { padding: 24px 20px; }
  .acc-form.two { grid-template-columns: 1fr; }
  .order { padding: 22px 18px; }
  .track { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .track li { padding: 0 0 18px 30px; }
  .track li::before { left: 6px; right: auto; top: 16px; bottom: 0; width: 3px; height: auto; }
  .track li:last-child::before { display: none; }
}

/* ---------- подвал ---------- */
.foot { background: #fff; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; margin-top: 96px; padding: 56px 0 30px; }
.foot-help { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; margin-bottom: 52px; border-radius: 28px; background: var(--soft); }
.foot-help h2 { margin: 0; font: 600 28px/1.1 var(--font-d); color: var(--ink); letter-spacing: -0.02em; }
.foot-help p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; max-width: 460px; }
.foot-help-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.foot-help .btn { gap: 8px; min-height: 46px; padding: 0 20px; background: var(--ink); color: #fff; }
.foot-help .btn:hover { background: #000; }
.foot-help .btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.foot-help .btn.ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--ink-3); }
.foot-help .btn svg { width: 18px; height: 18px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-2); }
.foot-brand p { max-width: 320px; margin: 16px 0 0; line-height: 1.6; }
.foot-soc { display: flex; gap: 8px; margin-top: 20px; }
.foot-soc a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); transition: background 0.2s; }
.foot-soc a:hover { background: var(--line-2); }
.foot-soc svg { width: 18px; height: 18px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.foot-col a { transition: color 0.2s; }
.foot-col a:hover { color: var(--ink); }
.foot-phone { font: 600 19px/1.2 var(--font-d); color: var(--ink); }
/* плашка студии, которая сделала сайт */
.foot-studio { display: flex; align-items: center; gap: 8px; white-space: nowrap; margin: 22px 0 0; padding: 8px 14px 8px 16px; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--soft); color: var(--ink-2); font-size: 12.5px; transition: background 0.2s, transform 0.3s var(--spring); }
.foot-studio:hover { background: var(--line-2); transform: translateY(-1px); }
.foot-grig { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.foot-grig svg { width: 40px; height: 23px; }
.foot-grig em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.foot-studio > svg { width: 11px; height: 11px; color: var(--ink-3); }
/* та же плашка в меню телефона (под контактами) и внизу «Каталога» на компьютере */
.menu-studio { margin: 18px auto 6px; }
.mg-studio { margin: 16px 0 0; padding: 8px 12px 8px 14px; border-radius: 14px; font-size: 12px; line-height: 1.3; white-space: normal; flex-wrap: wrap; column-gap: 6px; row-gap: 2px; }
/* узкая колонка «Каталога»: подпись переносится, а не распирает колонку за черту */
.mg-studio > span { min-width: 0; }
.mg-studio .foot-grig { white-space: nowrap; }
.mg-studio .foot-grig svg { width: 34px; height: 20px; }
.foot-base { display: flex; justify-content: space-between; gap: 10px 24px; padding-top: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.foot-langs { display: flex; gap: 16px; }
.foot-langs a:hover, .foot-langs a.on { color: var(--ink); }
.foot-langs a.on { color: var(--ink); }

/* ---------- меню на телефоне (кнопка слева в шапке): на весь экран ---------- */
.burger { display: none; }
.menu { position: fixed; inset: 0; z-index: 92; }
.menu-veil { display: none; }
.menu-panel { position: absolute; inset: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(28px + env(safe-area-inset-bottom)); animation: menu-in 0.32s var(--spring); }
.menu-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nav-h); margin: 0 -16px; padding: 0 10px; background: #fff; }
.menu-head .logo { grid-column: 2; }
.menu-head .ic { justify-self: start; }
.menu-head .menu-langs { justify-self: end; }
.menu-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; margin: 4px 0 10px; border-radius: 14px; background: #f5f5f7; color: var(--ink-3); font-size: 15px; text-align: left; }
.menu-search svg { width: 17px; height: 17px; }
.menu-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-quick > * { display: grid; justify-items: center; gap: 5px; padding: 12px 4px 10px; border-radius: 16px; background: #f5f5f7; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.menu-quick svg { width: 22px; height: 22px; }
.mq-ic { position: relative; display: grid; }
.mq-ic .bag-n { top: -6px; right: -12px; }
.menu-langs { display: flex; gap: 2px; }
.menu-langs a { padding: 6px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.menu-langs a.on { color: var(--ink); background: #f2f2f5; }
.menu-h { margin: 22px 4px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.menu-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 116px; padding: 12px 12px 0; border-radius: 18px; background: #f5f5f7; overflow: hidden; text-align: left; color: var(--ink); }
.menu-cat span { position: relative; z-index: 1; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.menu-cat img { mix-blend-mode: multiply; align-self: flex-end; width: 64%; height: 70px; object-fit: contain; object-position: right bottom; margin: 6px -2px 8px 0; transition: transform 0.4s var(--spring); }
.menu-cat:active img { transform: scale(0.96); }
/* больше 6 разделов — по три в ряд, плитки ниже */
.menu-cats.many { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-cats.many .menu-cat { min-height: 96px; padding: 10px 10px 0; border-radius: 16px; }
.menu-cats.many .menu-cat span { font-size: 13px; }
.menu-cats.many .menu-cat img { width: 78%; height: 52px; margin: 4px -2px 6px 0; }
.menu-group { display: grid; padding: 4px 0; border-radius: 18px; background: #f5f5f7; }
.menu-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; font-size: 15.5px; color: var(--ink); text-align: left; }
.menu-link > span { flex: 1; }
.menu-link > svg { width: 11px; height: 11px; color: var(--ink-4, #c7c7cc); }
.menu-link:active { background: #ececf0; }
.menu-contacts { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; }
.menu-contact-t { flex: 1; display: grid; gap: 3px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.menu-phone { font: 600 16.5px/1.2 var(--font-d); color: var(--ink); }
.menu-wa { flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #fff; font-size: 14.5px; font-weight: 600; }
.menu-back { display: inline-flex; align-items: center; gap: 4px; height: 40px; margin: 2px 0 2px -6px; color: var(--link); font-size: 15.5px; }
.menu-back svg { width: 18px; height: 18px; }
.menu-pane-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.menu-pane-t h2 { margin: 0; font: 600 26px/1.15 var(--font-d); letter-spacing: -0.02em; }
.menu-pane-t em { font-style: normal; color: var(--link); font-size: 14.5px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.menu-pane-t em svg { width: 10px; height: 10px; }
.menu-pane .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-pane .ctile { background: #f5f5f7; border: 0; box-shadow: none; }
.menu-pane:not([data-menu-pane="root"]) { animation: menu-in 0.3s var(--spring); }
@keyframes menu-in { from { opacity: 0; transform: translateX(-24px); } }
@keyframes slide-left { from { transform: translateX(-100%); } }

/* ---------- нижнее меню на телефоне, сообщения ---------- */
.tabbar { display: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; width: min(380px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16); opacity: 0; transform: translateY(14px); pointer-events: none; transition: transform 0.4s var(--spring), opacity 0.2s; }
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast > img, .toast > .noimg { flex: 0 0 auto; width: 44px; height: 44px; object-fit: contain; }
.toast-t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.toast-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-t span { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .btn { flex: 0 0 auto; min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 999px; }

/* появление при прокрутке */
.s-js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--spring); }
.s-js .reveal.in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .s-js .reveal { opacity: 1; transform: none; }
}

/* ---------- планшет ---------- */

/* ---------- главная: строка обещаний ---------- */
.promises { padding-top: 28px; }
.promises-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.promise { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--soft); }
.promise-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--ink); }
.promise-ic svg { width: 22px; height: 22px; }
.promise b { display: block; font: 600 15.5px/1.25 var(--font-d); }
.promise em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ---------- главная: разделы мозаикой ---------- */
.bento-wrap { padding-top: 64px; }
.bento-wrap .h2 { margin-bottom: 22px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 236px; gap: 14px; }
.bento.n1 .big { grid-column: span 4; }
.bento.n2 > * { grid-column: span 2; }
.bento.n3 .big, .bento.n4 .big, .bento.n5 .big { grid-column: span 2; grid-row: span 2; }
.bento.n3 > :not(.big) { grid-column: span 2; }
.bento.n4 > :nth-child(4) { grid-column: span 2; }
.bento-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: var(--r-lg); background: var(--soft); padding: 22px 24px; color: var(--ink); transition: transform 0.5s var(--spring), background 0.2s; }
.bento-card:hover { transform: translateY(-3px); background: #efeff2; }
.bento-copy { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 70%; }
.bento-copy b { font: 600 22px/1.15 var(--font-d); letter-spacing: -0.02em; }
.bento-copy em { font-style: normal; font-size: 14px; color: var(--ink-2); }
.bento-from { font-size: 14px; color: var(--ink); margin-top: 2px; }
.bento-card.big .bento-copy b { font-size: clamp(30px, 3.2vw, 40px); }
.bento-card.big .bento-copy em, .bento-card.big .bento-from { font-size: 16px; }
.bento-img { position: absolute; right: 12px; bottom: 10px; width: 52%; height: 70%; display: flex; align-items: flex-end; justify-content: center; }
/* по центру без transform: он отрезал бы смешивание фото с фоном карточки (белая подложка) */
.bento-card.big .bento-img { left: 11%; right: 11%; width: auto; height: 74%; }
.bento-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--spring); }
.bento-card:hover .bento-img img { transform: scale(1.05) translateY(-4px); }
.bento-go { position: absolute; left: 22px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.bento-go svg { width: 16px; height: 16px; }

/* ---------- главная: живой экран товара ---------- */
.show { --p: 0; position: relative; height: 210vh; margin-top: 72px; }
.show-stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 22px; background: radial-gradient(120% 80% at 50% 100%, #ececf0 0%, var(--soft) 60%, #fff 100%); }
.show.t-dark .show-stage { background: radial-gradient(120% 80% at 50% 100%, #2a2a2e 0%, #111 60%, #000 100%); color: #f5f5f7; }
.show.t-dark .show-img img { mix-blend-mode: normal; }
.show-copy { opacity: calc(1 - var(--p) * 1.2); transform: translateY(calc(var(--p) * -24px)); }
.show-title { font: 700 clamp(40px, 6.4vw, 84px) / 1.02 var(--font-d); letter-spacing: -0.035em; margin: 0; }
.show-price { margin: 10px 0 0; font-size: 19px; color: var(--ink-2); }
/* приближение — у самой картинки: трансформация у обёртки отрезала бы смешивание с фоном (белый прямоугольник фото) */
.show-img { position: relative; flex: 0 1 auto; height: min(50vh, 500px); width: min(560px, 80vw); margin-top: 18px; display: flex; align-items: flex-end; justify-content: center; }
.show-img img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transform-origin: 50% 100%; transform: scale(calc(0.82 + var(--p) * 0.18)); transition: transform 0.08s linear; }
/* строки — «таблетками» сразу под фото, без пустоты между */
.show-lines { list-style: none; margin: 20px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 820px; }
.show-lines li { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(0, 0, 0, 0.05); font: 600 clamp(14px, 1.3vw, 16px) / 1.2 var(--font-d); letter-spacing: -0.01em; opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 0.5s var(--ease), transform 0.6s var(--spring); }
.show.t-dark .show-lines li { background: rgba(255, 255, 255, 0.1); color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.show-lines li.on { opacity: 1; transform: none; }
.show-cta { display: flex; gap: 22px; align-items: center; margin-top: 18px; opacity: calc(var(--p) * 2 - 0.6); }
.show.static { height: auto; }
.show.static .show-stage { position: relative; height: auto; min-height: 640px; }
.show.static .show-cta, .show.static .show-copy { opacity: 1; transform: none; }
.show.static .show-img { height: 380px; }
.show.static .show-img img { transform: none; }

/* ---------- главная: подбор смартфона — графит слева, белая витрина с итогом справа ---------- */
.finder { padding-top: 80px; }
.fd { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; padding: 44px; border-radius: 36px; background: linear-gradient(180deg, #1c1c1f 0%, #111113 100%); color: #f5f5f7; }
.fd-kick { display: inline-block; font-size: 13px; font-weight: 600; color: #86868b; letter-spacing: 0.01em; }
.fd-title { margin: 10px 0 0; font: 700 clamp(30px, 3.4vw, 44px) / 1.06 var(--font-d); letter-spacing: -0.03em; }
.fd-sub { margin: 12px 0 0; color: #a1a1a6; font-size: 16px; line-height: 1.45; max-width: 420px; }
.fd-form { display: grid; gap: 22px; margin-top: 34px; }
.fd-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; }
.fd-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-d); color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); margin-top: 22px; }
.fd-n { display: block; font-size: 13px; font-weight: 600; color: #86868b; margin-bottom: 9px; }
.fd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fd-opt span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); font-size: 14.5px; color: #f5f5f7; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.fd-opt span:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.fd-opt input:checked + span { background: #f5f5f7; color: #111113; box-shadow: none; }
.fd-opt input:focus-visible + span { outline: 2px solid #2997ff; outline-offset: 2px; }
.fd-right { min-height: 480px; display: grid; }
.fd-wait { border-radius: 28px; background: rgba(255, 255, 255, 0.05); }
.fd-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; padding: 22px 24px 8px; border-radius: 28px; background: #fff; color: var(--ink); }
.fd-right.swap .fd-card > * { animation: rise 0.5s var(--spring) backwards; }
.fd-right.swap .fd-stage { animation-delay: 0.04s; }
.fd-right.swap .fd-name { animation-delay: 0.08s; }
.fd-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fd-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.fd-why { font-size: 12.5px; font-weight: 600; color: var(--kicker); }
.fd-stage { display: flex; align-items: center; justify-content: center; min-height: 230px; padding: 10px 0; }
.fd-stage img { max-height: 250px; max-width: 70%; object-fit: contain; transition: transform 0.6s var(--spring); }
.fd-stage:hover img { transform: scale(1.04); }
.fd-name { display: grid; gap: 4px; text-align: center; }
.fd-name b { font: 700 24px/1.12 var(--font-d); letter-spacing: -0.02em; }
.fd-name span { font-size: 14px; color: var(--ink-2); }
.fd-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-bottom: 18px; }
.fd-price { font: 600 19px/1 var(--font-d); }
.fd-acts { display: flex; align-items: center; gap: 8px; }
.fd-acts .btn { min-height: 40px; padding: 0 20px; font-size: 14.5px; }
.fd-cmp { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, color 0.2s; }
.fd-cmp:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.fd-cmp.on { color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.fd-alts { border-top: 1px solid var(--line-2); padding-top: 12px; }
.fd-alts-t { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.fd-alt { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 12px; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); }
.fd-alt + .fd-alt { border-top: 1px solid var(--line-2); }
.fd-alt-img { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.fd-alt-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fd-alt-copy { display: grid; gap: 2px; min-width: 0; }
.fd-alt-copy b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-alt-copy em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.fd-alt-price { font-size: 14px; font-weight: 600; }
.fd-alt svg { width: 12px; height: 12px; color: var(--ink-3); }
.fd-alt:hover b { color: var(--link); }
.fd-none { margin: 0; padding: 40px 20px; border-radius: 28px; background: rgba(255, 255, 255, 0.05); color: #a1a1a6; text-align: center; align-self: center; }

/* ---------- главная: сравнение ---------- */
.versus { padding-top: 72px; }
.versus .h2 { margin-bottom: 22px; text-align: center; }
.vs { max-width: 900px; margin: 0 auto; border-radius: var(--r-lg); background: var(--soft); padding: 28px; }
.vs-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 18px; }
.vs-side { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--ink); }
.vs-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.vs-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--spring); }
.vs-side:hover .vs-img img { transform: scale(1.04); }
.vs-side b { font: 600 19px/1.2 var(--font-d); }
.vs-price { font-size: 15px; color: var(--ink-2); }
.vs-or { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 15px/1 var(--font-d); color: var(--ink-3); }
.vs-rows { margin: 0; display: grid; }
.vs-rows div { display: grid; grid-template-columns: 1fr minmax(110px, auto) 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(0, 0, 0, 0.06); text-align: center; }
.vs-rows dt { font-size: 12.5px; color: var(--ink-3); }
.vs-rows dd { margin: 0; font-size: 15px; font-weight: 500; }

/* ---------- главная: товар дня ---------- */
.deal { padding-top: 72px; }
.deal-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, #fff4ec 0%, #ffe9e3 100%); }
.deal-img { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 22px; background: #fff; }
.deal-img img { max-height: 86%; max-width: 86%; object-fit: contain; }
.deal-img .tag { position: absolute; top: 14px; left: 14px; }
.deal-title { font: 700 clamp(28px, 3.2vw, 40px) / 1.1 var(--font-d); letter-spacing: -0.025em; margin: 0 0 6px; }
.deal-copy .sub { margin: 0 0 8px; color: var(--ink-2); }
.deal-price { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 16px; }
.deal-price b { font: 700 34px/1 var(--font-d); color: var(--sale); letter-spacing: -0.02em; }
.deal-price s { color: var(--ink-3); font-size: 17px; }
.deal-timer { display: inline-grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #fff; margin-bottom: 18px; }
.deal-timer span { font-size: 12.5px; color: var(--ink-2); }
.deal-timer b { font: 700 26px/1 var(--font-d); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.deal-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- главная: подборки по поводам ---------- */
.occ { padding-top: 72px; }
.occ .h2 { margin-bottom: 22px; }
/* до 4 подборок — сеткой во всю ширину; 5 и больше — лентой (.occ-many) */
.occ-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.occ-row.n1 { --n: 1; } .occ-row.n2 { --n: 2; } .occ-row.n3 { --n: 3; } .occ-row.n4 { --n: 4; }
.occ-card { position: relative; height: 260px; overflow: hidden; border-radius: var(--r-lg); padding: 24px; color: var(--ink); transition: transform 0.5s var(--spring), box-shadow 0.3s var(--ease); }
.occ-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07); }
.occ-row.n1 .occ-card { height: 240px; padding: 32px 40px; }
.occ-row.n1 .occ-img { width: 40%; height: 92%; right: 32px; }
.occ-row.n4 .occ-card { height: 240px; padding: 22px; }
.occ-row.n4 .occ-copy b { font-size: 21px; }
.occ-row.n4 .occ-img { width: 66%; height: 56%; }
.occ-track { gap: 14px; padding-bottom: 8px; }
.occ-track .occ-card { flex: 0 0 300px; height: 280px; }
.occ-many .rail-btn { top: calc(50% - 23px); }
.occ-card.t-pink { background: linear-gradient(150deg, #ffe8ef, #ffd6e0); }
.occ-card.t-blue { background: linear-gradient(150deg, #e4f0ff, #d2e4ff); }
.occ-card.t-green { background: linear-gradient(150deg, #e9f8ec, #d4f0db); }
.occ-card.t-sand { background: linear-gradient(150deg, #fff3dc, #ffe7b8); }
.occ-card.t-lilac { background: linear-gradient(150deg, #f1eaff, #e2d6fb); }
.occ-card.t-mint { background: linear-gradient(150deg, #e2f7f5, #c9eeea); }
.occ-card.t-gray { background: linear-gradient(150deg, #f5f5f7, #e8e8ed); }
.occ-copy { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 75%; }
.occ-copy b { font: 600 24px/1.15 var(--font-d); letter-spacing: -0.02em; text-wrap: balance; }
.occ-track .occ-copy { max-width: 88%; }
.occ-copy em { font-style: normal; font-size: 14.5px; color: rgba(0, 0, 0, 0.6); }
.occ-img { position: absolute; right: 10px; bottom: 6px; width: 56%; height: 62%; display: flex; align-items: flex-end; justify-content: flex-end; }
.occ-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--spring); }
.occ-card:hover .occ-img img { transform: scale(1.06) rotate(-2deg); }
.occ-go { position: absolute; left: 24px; bottom: 22px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.4s var(--spring); }
.occ-go svg { width: 16px; height: 16px; }
.occ-card:hover .occ-go { opacity: 1; transform: none; }
@media (max-width: 1068px) { .occ-row.n4 { --n: 2; } }

/* ---------- главная: цифры, отзывы крупнее, «Вы смотрели» ---------- */
.stats { padding-top: 72px; }
.stats .h2 { margin-bottom: 22px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { padding: 26px; border-radius: var(--r-lg); background: var(--soft); }
.stat b { display: block; font: 700 clamp(34px, 4vw, 48px) / 1 var(--font-d); letter-spacing: -0.03em; }
.stat span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.rev-avg { display: grid; justify-items: end; gap: 3px; }
.rev-avg b { font: 700 40px/1 var(--font-d); letter-spacing: -0.03em; }
.rev-avg > span:last-child { font-size: 13px; color: var(--ink-3); }
.rev.big { width: 360px; }
.rev-prod { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.rev-prod img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.rev-prod em { font-style: normal; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.recent { padding-top: 64px; }
.recent .rail-track .card { flex: 0 0 auto; width: 200px; }
.pdp-quick { justify-self: center; grid-column: 1 / -1; margin-top: 2px; background: none; color: var(--link); font-size: 15px; font-weight: 500; }
.pdp-quick span { color: var(--ink-3); font-weight: 400; }

/* ---------- сравнение ---------- */
.pdp-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pdp-price-row .pdp-price { margin: 0; }
.pdp-cmp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 13.5px; font-weight: 500; transition: background 0.2s; }
.pdp-cmp svg { width: 16px; height: 16px; }
.pdp-cmp:hover { background: #ececf0; }
.pdp-cmp.on { background: #eaf3ff; color: var(--link); }
.cmp-bar { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.05); animation: rise 0.5s var(--spring); }
.cmp-bar-pics { display: flex; flex-shrink: 0; }
.cmp-bar-pics img, .cmp-bar-pics i { flex: 0 0 38px; width: 38px; max-width: none; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, 0.12); }
.cmp-bar-pics > * + * { margin-left: -10px; }
.cmp-bar .btn { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 999px; }
.cmp-bar .ic svg { transform: rotate(45deg); }
.cmp { padding-top: 26px; padding-bottom: 60px; }
.cmp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cmp-diff { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; }
.cmp-diff input { position: absolute; opacity: 0; }
.cmp-diff span { width: 44px; height: 26px; border-radius: 999px; background: #e3e3e8; position: relative; transition: background 0.25s; }
.cmp-diff span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--spring); }
.cmp-diff input:checked + span { background: var(--ok); }
.cmp-diff input:checked + span::after { transform: translateX(18px); }
.cmp-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0 24px; }
.cmp-sticky { padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.cmp-col { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.cmp-top { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.cmp-col { min-width: 0; }
.cmp-select { flex: 1 1 0; width: 0; min-width: 0; text-overflow: ellipsis; height: 40px; padding: 0 34px 0 14px; border-radius: 12px; border: 0; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; font: 500 14.5px var(--font); color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer; }
.cmp-x { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); }
.cmp-x:hover { background: var(--soft); color: var(--ink); }
.cmp-x svg { width: 16px; height: 16px; transform: rotate(45deg); }
.cmp-img { height: 260px; width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.cmp-img img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.5s var(--spring); }
.cmp-img:hover img { transform: scale(1.04); }
.cmp-dots { display: flex; gap: 6px; justify-content: center; }
.cmp-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.cmp-name { font: 600 20px/1.2 var(--font-d); letter-spacing: -0.015em; color: var(--ink); }
.cmp-price { font-size: 15px; color: var(--ink-2); }
.cmp-col .btn { margin-top: 6px; min-height: 40px; padding: 0 20px; font-size: 14.5px; }
.cmp-add { align-content: start; }
.cmp-add-ic { width: 120px; height: 120px; margin-top: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink-3); }
.cmp-add-ic svg { width: 32px; height: 32px; }
.cmp-add .mute { max-width: 100%; white-space: normal; font-size: 14px; text-align: center; }
.cmp-row { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.cmp-k { font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; text-align: center; }
.cmp-v { text-align: center; font-size: 16px; line-height: 1.35; }
.cmp.only-diff .cmp-row.same { display: none; }
.cmp-empty { padding-top: 40px; padding-bottom: 80px; text-align: center; }
.cmp-empty .sub { color: var(--ink-2); margin: 10px auto 24px; max-width: 520px; }
.cmp-pick { max-width: 360px; margin: 0 auto 16px; display: flex; }


/* ---------- первый экран: «товар поверх надписи» (v-type) ----------
   Слово во весь экран (подгоняет по ширине app.js — data-fit) сзади заливкой и спереди контуром: товар «внутри» букв.
   Фон, тень и свечение — в цвет слайда (--glow). Буквы выезжают по одной, товар парит и чуть поворачивается за мышкой. */
.v-type { --pad-b: 120px; position: relative; }
.v-type[data-side='prev'] { cursor: w-resize; }
.v-type[data-side='next'] { cursor: e-resize; }
.v-type[data-side='go'] { cursor: pointer; }
/* снизу баннер мягко растворяется в белом — без резкой границы со следующим блоком */
.v-type::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 160px; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 18%, rgba(255, 255, 255, 0.16) 36%, rgba(255, 255, 255, 0.36) 54%, rgba(255, 255, 255, 0.62) 72%, rgba(255, 255, 255, 0.86) 88%, #fff 100%); }
.v-type .hero-dots { z-index: 3; }
.v-type .slide { position: relative; display: block; padding: 0; min-height: 100svh; max-height: 1040px; overflow: hidden; background: #fff; }
.vt-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--glow) 55%, #fff) 0%, color-mix(in srgb, var(--glow) 22%, #fff) 45%, transparent 75%),
  linear-gradient(180deg, color-mix(in srgb, var(--glow) 10%, #fff) 0%, #fff 40%, color-mix(in srgb, var(--glow) 16%, #fff) 100%); opacity: 0; transform: scale(1.08); transition: opacity 1.2s var(--ease), transform 2s var(--spring); }
.v-type .slide.on .vt-bg { opacity: 1; transform: none; }
.vt-head { position: absolute; left: 0; right: 0; top: calc(var(--top-h, 86px) + 17%); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; user-select: none; }
.vt-brow { font: 600 clamp(20px, 2.2vw, 32px) / 1 var(--font-d); letter-spacing: -0.02em; color: color-mix(in srgb, var(--glow) 55%, #1d1d1f); margin-bottom: 0.15em; opacity: 0; transform: translateY(14px); }
.v-type .slide.on .vt-brow { animation: vt-brow 0.9s var(--spring) 0.05s both; }
@keyframes vt-brow { to { opacity: 1; transform: none; } }
/* шрифт — 700: жирнее у загружаемого шрифта нет, браузер дорисовал бы толщину сам (буквы «кривые») */
.vt-word { display: flex; justify-content: center; white-space: nowrap; font: 700 var(--fs, 22vw) / 0.86 var(--font-d); letter-spacing: -0.045em; font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.vt-word span { will-change: transform, opacity; display: inline-block; color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 72%, #000) 5%, var(--glow) 60%, color-mix(in srgb, var(--glow) 40%, #fff) 100%); -webkit-background-clip: text; background-clip: text; padding-bottom: 0.04em; opacity: 0; }
.vt-word .sp { width: 0.2em; }
.v-type .slide.on .vt-word span { animation: vt-letter 1.1s var(--spring) calc(0.12s + var(--i) * 0.055s) both; }
@keyframes vt-letter { from { opacity: 0; transform: translateY(0.5em) rotate(3deg); } to { opacity: 1; transform: none; } }
.vt-img { position: absolute; left: 50%; top: 63%; width: min(540px, 44vw); height: 58%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; perspective: 1200px; }
.vt-img img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; will-change: transform, opacity; opacity: 0; transform: translateY(120px) scale(0.86) rotate(-6deg); transition: opacity 1s var(--ease) 0.35s, transform 1.6s var(--spring) 0.35s; }
.v-type .slide.on .vt-img img { opacity: 1; transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 10px)) rotateY(calc(var(--mx) * 10deg)) rotateX(calc(var(--my) * -6deg)); transition: opacity 1s var(--ease) 0.35s, transform 1.6s var(--spring) 0.35s; animation: vt-float 6s ease-in-out 2s infinite; }
@keyframes vt-float { 50% { translate: 0 -14px; } }
.vt-halo { position: absolute; inset: 0 -10%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 60%, #fff) 0%, color-mix(in srgb, var(--glow) 30%, transparent) 45%, transparent 100%); opacity: 0.85; }
.vt-floor { position: absolute; left: 18%; right: 18%; bottom: -3%; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 50%, rgba(0, 0, 0, 0.4)) 0%, transparent 100%); opacity: 0; transition: opacity 1s var(--ease) 0.9s; }
.v-type .slide.on .vt-floor { opacity: 0.8; }
/* видео вместо фото: без transform у обёртки — иначе ролик с белым фоном не смешался бы со свечением слайда */
.vt-img.vt-vid { transform: none; perspective: none; left: 0; right: 0; top: 30%; height: 62%; width: min(900px, 70vw); margin: 0 auto; }
.vt-video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(60px) scale(0.94); transition: opacity 0.9s var(--ease) 0.3s, transform 1.4s var(--spring) 0.3s; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.v-type .slide.on .vt-video { opacity: 1; transform: none; }
.vt-vid.b-white .vt-video { mix-blend-mode: multiply; }
.vt-vid.b-black .vt-video { mix-blend-mode: screen; }
.vt-vid.b-clear .vt-video { -webkit-mask-image: none; mask-image: none; }
.vt-vid .vt-halo { inset: 8% 6%; }
/* ролик на чёрном фоне — слайд тёмный: свечение цвета слайда на чёрном, светлые буквы и текст */
.vt-night .vt-bg { background: radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--glow) 38%, #000) 0%, color-mix(in srgb, var(--glow) 12%, #000) 45%, #000 80%); }
.vt-night .vt-halo { opacity: 0.35; }
.vt-night .vt-word span { background-image: linear-gradient(180deg, #fff 10%, color-mix(in srgb, var(--glow) 55%, #fff) 70%, color-mix(in srgb, var(--glow) 70%, #000) 110%); }
.vt-night .vt-brow { color: color-mix(in srgb, var(--glow) 45%, #fff); }
.vt-night .vt-title, .vt-night .vt-price { color: #f5f5f7; }
.vt-night .vt-left p { color: #a1a1a6; }
.vt-night .vt-kick { color: color-mix(in srgb, var(--glow) 55%, #fff); }
.vt-night .vt-right .lnk { color: #2997ff; }
.gh:has(.v-type .vt-night.on) .nav:not(.solid), .gh:has(.v-type .vt-night.on) .topbar { --ink: #f5f5f7; color: #f5f5f7; }
.gh:has(.v-type .vt-night.on) .nav:not(.solid) :is(a, button, .logo) { color: #f5f5f7; }

/* «чистое белое»: белый фон, чёрное слово и подписи, без свечения */
.vt-white .vt-video { -webkit-mask-image: none; mask-image: none; }
.vt-white .vt-bg { background: #fff; }
.vt-white .vt-halo, .vt-white .vt-floor { display: none; }
.vt-white .vt-word span { background-image: linear-gradient(180deg, #1d1d1f 0%, #1d1d1f 100%); }
.vt-white .vt-brow, .vt-white .vt-kick { color: #1d1d1f; }
.vt-white .vt-left p { color: var(--ink-2); }

/* слайд с роликом (снят с фоном, руками и т. п.): слово ниже ростом и сверху, ролик целиком под ним до текста внизу —
   ничего не накладывается; на белом слайде белый фон ролика просто сливается со страницей, без смешивания цветов */
.vt-hasvid .vt-head { top: calc(var(--top-h, 86px) + 2vh); transform: none; }
.vt-hasvid .vt-word { font-size: min(var(--fs, 22vw), 13vh); }
/* логотип вместо большого слова: высотой с буквы, без градиента букв */
.vt-word.vt-logo span { background: none; -webkit-background-clip: border-box; background-clip: border-box; padding: 0.06em 0 0.02em; }
.vt-logo img { display: block; height: 0.98em; width: auto; max-width: 86vw; object-fit: contain; }
.vt-hasvid .vt-img.vt-vid { top: calc(var(--top-h, 86px) + 2vh + 13vh + 52px); bottom: 150px; height: auto; width: min(1400px, 96vw); }
.vt-hasvid .vt-video { transform-origin: 50% 100%; }
.vt-white .vt-video { mix-blend-mode: normal; }
/* низ ролика растворяется, под ним — мягкое свечение цвета кадра (--amb подбирает app.js по нижней части кадра) */
.vt-hasvid .vt-video { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.vt-amb { position: absolute; z-index: 0; left: 8%; right: 8%; bottom: -14%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, var(--amb, rgba(0, 0, 0, 0.08)), transparent); filter: blur(28px); opacity: 0; transition: opacity 0.8s var(--ease), background 0.5s linear; }
.v-type .slide.on .vt-amb { opacity: 0.9; }

/* низ слайда: слева название и текст, справа цена и «Купить» */
.vt-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 78px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--pad); }
.v-type .slide.on .vt-bar > * { animation: rise 1s var(--spring) 0.7s both; }
.v-type .slide.on .vt-bar > :nth-child(2) { animation-delay: 0.8s; }
.vt-left { min-width: 0; max-width: 460px; }
.vt-kick { display: inline-block; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--glow) 70%, #000); margin-bottom: 4px; }
.vt-title { margin: 0; font: 700 26px/1.1 var(--font-d); letter-spacing: -0.02em; }
.vt-left p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; }
.vt-right { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.vt-price { font: 600 19px/1 var(--font-d); }
.vt-right .btn { min-height: 48px; padding: 0 26px; font-size: 16px; }
.v-type .hero-dots { bottom: 20px; }
@media (prefers-reduced-motion: reduce) { .v-type .slide.on .vt-img img { animation: none; opacity: 1; transform: none; } }

/* ---------- первый экран: тёмный с лучом света (v-dark) ---------- */
.v-dark { background: #000; }
.v-dark .slide { --sbg: #000; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: none; align-items: center; justify-items: start; text-align: left; gap: 20px; padding: 40px var(--pad) 90px; min-height: calc(100svh - var(--nav-h) - 34px); max-height: 940px; overflow: hidden; color: #f5f5f7; background: radial-gradient(60% 70% at 70% 55%, color-mix(in srgb, var(--glow) 30%, #000) 0%, #000 70%); }
.vd-beam { position: absolute; top: -20%; left: 52%; width: 46%; height: 140%; background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 45%, transparent), transparent 70%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(30px); opacity: 0; transition: opacity 1.6s var(--ease) 0.2s; mix-blend-mode: screen; }
.v-dark .slide.on .vd-beam { opacity: 0.7; }
.vd-copy { position: relative; z-index: 2; max-width: 560px; }
.vd-kick { display: inline-block; font-size: 15px; font-weight: 600; color: var(--glow); margin-bottom: 14px; letter-spacing: 0.02em; }
.vd-title { margin: 0; font: 700 clamp(48px, 6.4vw, 96px) / 0.98 var(--font-d); letter-spacing: -0.045em; background: linear-gradient(180deg, #fff 40%, #9a9aa3); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.vd-text { margin: 16px 0 0; font-size: clamp(17px, 1.6vw, 22px); color: #a1a1a6; line-height: 1.35; }
.vd-cta { display: flex; gap: 22px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.vd-cta .btn { background: #fff; color: #000; min-height: 48px; padding: 0 24px; font-size: 16px; }
.vd-cta .btn .slide-from { color: #6e6e73; }
.vd-cta .lnk { color: #fff; }
.v-dark .slide.on .vd-copy > * { animation: rise 1s var(--spring) both; }
.v-dark .slide.on .vd-copy > :nth-child(2) { animation-delay: 0.07s; }
.v-dark .slide.on .vd-copy > :nth-child(3) { animation-delay: 0.14s; }
.v-dark .slide.on .vd-copy > :nth-child(4) { animation-delay: 0.21s; }
.vd-img { position: relative; z-index: 1; justify-self: center; width: 100%; height: min(70vh, 640px); display: flex; align-items: center; justify-content: center; transform: translate(calc(var(--mx) * 16px), calc(var(--my) * 10px)); transition: transform 0.6s var(--spring); }
.vd-img img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transform: translateX(60px) scale(0.92); filter: brightness(0.6) blur(6px); transition: opacity 1.1s var(--ease) 0.2s, transform 1.5s var(--spring) 0.2s, filter 1.4s var(--ease) 0.2s; }
.v-dark .slide.on .vd-img img { opacity: 1; transform: none; filter: drop-shadow(0 0 60px color-mix(in srgb, var(--glow) 35%, transparent)); animation: float 6s ease-in-out 1.8s infinite; }
.vd-floor { position: absolute; left: 20%; right: 20%; bottom: 2%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 40%, transparent), transparent); filter: blur(10px); }
.v-dark .hero-dots { background: rgba(40, 40, 46, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.v-dark .hero-dots button { color: #a1a1a6; }
.v-dark .hero-dots button.on { color: #fff; background: rgba(255, 255, 255, 0.1); }
.v-dark .hero-dots button.on { background: rgba(255, 255, 255, 0.1); }
.v-dark .hero-dots button.on i::after { background: #fff; }

/* ---------- первый экран: плитки без слайдера (v-bento) ---------- */
.v-bento { padding-top: 18px; padding-bottom: 8px; }
.hb { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, minmax(260px, 33vh)); gap: 14px; }
.hb-tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 28px; border-radius: 32px; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--glow) 22%, #fff) 0%, color-mix(in srgb, var(--glow) 8%, #f5f5f7) 100%); transition: transform 0.6s var(--spring); animation: rise 0.9s var(--spring) both; }
.hb-tile:nth-child(2) { animation-delay: 0.06s; } .hb-tile:nth-child(3) { animation-delay: 0.12s; } .hb-tile:nth-child(4) { animation-delay: 0.18s; }
.hb-tile:hover { transform: translateY(-4px); }
.hb-tile.big { grid-row: span 2; padding: 38px 40px; }
.hb.n4 .hb-tile:nth-child(4) { grid-column: 2 / span 2; }
.hb.n3 .hb-tile:not(.big) { grid-column: span 2; }
.hb-copy { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; max-width: 70%; }
.hb-kick { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: color-mix(in srgb, var(--glow) 60%, #1d1d1f); }
.hb-title { margin: 0; font: 700 26px/1.08 var(--font-d); letter-spacing: -0.025em; }
.hb-tile.big .hb-title { font-size: clamp(40px, 4.4vw, 60px); letter-spacing: -0.04em; }
.hb-tile.big .hb-copy { max-width: 62%; }
.hb-text { font-size: 17px; color: var(--ink-2); }
.hb-price { font-size: 15px; font-weight: 600; }
.hb-tile.big .hb-price { font-size: 18px; }
.hb-copy .btn { margin-top: 12px; }
.hb-img { position: absolute; right: 6%; bottom: 6%; width: 52%; height: 64%; display: flex; align-items: flex-end; justify-content: flex-end; z-index: 0; }
.hb-tile.big .hb-img { right: 5%; left: 38%; width: auto; height: 56%; justify-content: flex-end; }
.hb-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.18)); transition: transform 0.7s var(--spring); }
.hb-tile:hover .hb-img img { transform: scale(1.06) rotate(-2deg); }

@media (max-width: 1068px) {
  .offers .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links > a:nth-of-type(n+5) { display: none; }
  .search-pill { width: 40px; padding: 0; justify-content: center; background: none; }
  .search-pill span, .search-pill kbd { display: none; }
  .search-pill svg { width: 19px; height: 19px; color: var(--ink); }
  .credit-in { grid-template-columns: 1fr; gap: 36px; }
  .pdp { gap: 36px; }
  .pdp-credit .calc { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-help { flex-direction: column; align-items: flex-start; }
  .foot-help-acts { justify-content: flex-start; }
  .mega-in { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .mg-pane { grid-template-columns: minmax(0, 1fr); }
  .mg-card { display: none; }
  .cart, .cart-skel { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}

/* ---------- телефон ---------- */
@media (max-width: 834px) {
  :root { --nav-h: 48px; }
  body { font-size: 16px; }
  /* шапка на телефоне: меню слева, логотип по центру, поиск и корзина справа */
  .burger { display: inline-grid; margin-left: -8px; }
  .nav-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; }
  .nav-in > .logo { grid-column: 2; justify-self: center; }
  .nav-in > .burger { grid-column: 1; justify-self: start; }
  .nav-tools { grid-column: 3; justify-self: end; margin-right: -8px; gap: 0; }
  .nav-links { display: none; }
  /* справа в шапке на телефоне — язык (без подложки), поиск и корзина */
  .nav-tools > a.ic { display: none; }
  .lang .ic { height: 36px; padding: 0 5px; gap: 3px; background: none; }
  .lang .ic svg { display: none; }
  .lang .ic b { font-size: 12.5px; }
  .lang-menu { right: 0; min-width: 150px; max-width: calc(100vw - 32px); }
  .nav-in { gap: 10px; }
  .logo-word { width: 98px; }
  /* логотип по центру шапки и меню: надпись крупнее и по середине своего места */
  .logo-text .logo-word { width: 132px; height: 20px; -webkit-mask-position: center; mask-position: center; }
  .menu-head .logo { justify-self: center; }
  .topbar { font-size: 12px; padding: 7px 0; }
  .topbar span ~ span, .topbar i { display: none; }
  .topbar i { font-style: normal; }
  .slide { min-height: calc(100svh - var(--nav-h) - 120px); padding: 34px 18px 70px; }
  .slide-title { font-size: clamp(40px, 12vw, 56px); }
  .slide-text { font-size: 17px; margin-top: 10px; }
  .slide-cta { margin-top: 20px; gap: 18px; }
  .slide-cta .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
  .slide-img { min-height: 250px; transform: none; }
  .slide-img img { max-height: 340px; }
  .hero-dots { bottom: 14px; gap: 3px; padding: 4px; }
  .hero-dots button { height: 38px; padding: 3px; }
  .hd-pic { width: 32px; height: 32px; }
  .hero-dots button span { font-size: 12.5px; }
  .hero-dots button.on { gap: 8px; padding-right: 14px; }
  .hero-dots button.on span { max-width: 150px; text-overflow: ellipsis; }
  .hero-dots button i { left: 42px; right: 12px; bottom: 6px; }
  .tiles { padding-top: 44px; }
  .tile { width: 100px; }
  .tile-img { width: 100px; height: 84px; }
  .tile-img img { max-width: 78px; max-height: 74px; }
  .shelf { padding-top: 52px; }
  .rail-track { gap: 12px; scroll-padding: 0 22px; padding-left: 22px; padding-right: 22px; }
  .rail-btn { display: none; }
  .card { width: 44vw; max-width: 210px; }
  .promo { padding-top: 48px; }
  .promo-card { min-height: 460px; padding-top: 38px; }
  .promo-img img { max-height: 240px; }
  .family, .perks, .reviews, .store { padding-top: 60px; }
  .pagehead { padding-top: 32px; padding-bottom: 0; }
  .pagehead p { font-size: 18px; margin-bottom: 0; }
  .gh-b:has(.pagehead) + .gh-b > section:not(.hero) { padding-top: 24px; }
  .credit { margin-top: 60px; padding: 60px 0; }
  .calc { padding: 22px; }
  .calc-out b { font-size: 40px; }
  .store-card { grid-template-columns: 1fr; }
  .store-copy { padding: 34px 26px; }
  .store-img { min-height: 220px; }
  .rev { width: 290px; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 12px; }
  .pdp-gallery { position: static; margin: 0 -22px; }
  .pdp-stage { border-radius: 0; box-shadow: none; background: #fff; aspect-ratio: 1 / 0.9; }
  .pdp-thumbs { padding: 0 22px; }
  .pdp-thumbs button { width: 56px; height: 56px; }
  .pdp-cta { grid-template-columns: 1fr; }
  .specs dl div { grid-template-columns: 1fr 1fr; }
  .toolbar-old { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); margin: 0 -22px 14px; padding: 10px 22px; }
  .found { display: none; }
  .toolbar-r { width: 100%; justify-content: space-between; }
  .sort span { display: none; }
  [data-filters-open] { display: inline-flex; }
  .filters { display: none; }
  .filters.open { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; max-height: 78vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2); animation: sheet 0.45s var(--spring); margin: 0; }
  .fgroup { grid-template-columns: 1fr; }
  .grid, .offers .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; margin: 0 -10px; }
  .more-row { margin-top: 22px; }
  .more-row .btn { width: 100%; }
  .card-img { border-radius: 18px; }
  .card-cart { width: 40px; height: 40px; border-radius: 13px; right: 8px; bottom: 8px; }
  .card-cart svg { width: 21px; height: 21px; }
  .card-tags { left: 8px; top: 8px; }
  .card-price b { font-size: 18px; }
  .card-name { font-size: 14px; }
  .co { grid-template-columns: 1fr; gap: 10px; }
  .co-side { position: static; order: -1; }
  .ap { padding-top: 72px; }
  .addons + .ap { padding-top: 28px; }
  .shelf.addons { padding-bottom: 0; }
  .ap-title { font-size: 38px; }
  .ap-lead { font-size: 19px; margin-top: 16px; }
  .ap-hero { height: 86vw; margin-top: 20px; }
  .ap-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .ap-stat { padding: 20px 18px; border-radius: 22px; }
  .ap-stat b { font-size: 34px; }
  .ap-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .ap-hero + .ap-grid { margin-top: 32px; }
  .ap-face { border-radius: 24px; }
  .ap-front, .ap-back { padding: 28px 22px; }
  .ap-card.wide .ap-front { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-bottom: 0; }
  .ap-back p { font-size: 16px; }
  .ap-card.wide .ap-copy { padding-bottom: 8px; }
  .ap-card.wide .ap-pic, .ap-card.wide:nth-of-type(2) .ap-pic { order: 1; min-height: 0; padding-top: 18px; }
  .ap-pic img { max-height: 280px; }
  .ap-card h3 { font-size: 27px; }
  .ap-copy > p { font-size: 16.5px; margin-top: 12px; }
  /* вход на телефоне: белый экран без рамок, крупные поля и кнопка во всю ширину, преимущества — строкой значков */
  .acc-login { padding-top: 22px; }
  .acc-login .acc-head { margin-bottom: 18px; }
  .acc-login .h1 { font-size: 32px; }
  .acc-login .acc-head .sub { font-size: 16px; margin-top: 6px; }
  .acc-login .acc-enter { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .acc-login .acc-card { padding: 0; background: none; border-radius: 0; }
  .acc-login .fld span { font-size: 14px; }
  .acc-login .fld input { height: 56px; border-radius: 16px; font-size: 18px; background: var(--soft); border-color: transparent; }
  .acc-login .fld input:focus { background: #fff; }
  .acc-login .acc-go, .acc-login .btn.tg { width: 100%; min-height: 56px; border-radius: 16px; font-size: 17px; }
  .acc-login .acc-why { gap: 18px; padding: 4px 0 0; }
  .acc-login .acc-why li { gap: 14px; }
  .acc-login .acc-why svg { width: 26px; height: 26px; }
  .acc-login .acc-why span { font-size: 14px; line-height: 1.4; }
  .acc-login .acc-why b { font: 600 16.5px/1.25 var(--font-d); }
  .acc-login { padding-bottom: 8px; }
  .gh:has(.acc-login) .foot { margin-top: 36px; }
  /* на телефоне кабинет — в нижнем меню (аватарка и имя), в шапке его нет */
  .nav-tools .me-chip { display: none; }
  .acc-home { padding-top: 22px; }
  .acc-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .acc-side { display: contents; }
  .acc-side .acc-me { order: 1; padding: 0; background: none; flex-wrap: nowrap; margin-bottom: 18px; min-width: 0; max-width: 100%; }
  .acc-main, .acc-side > * { min-width: 0; max-width: 100%; }
  .acc-side .acc-me-act { width: auto; }
  .acc-side .acc-me-act .ic { width: 40px; height: 40px; padding: 0; justify-content: center; background: var(--soft); }
  .acc-side .acc-me-act .ic::after { content: none; }
  .acc-side .acc-me-t h1 { white-space: nowrap; }
  .acc-side .acc-stats { order: 2; }
  .acc-main { order: 3; }
  .acc-side .acc-quick { order: 4; margin-top: 22px; }
  .acc-main .acc-sub:first-of-type { margin-top: 24px; }
  .acc-login { max-width: none; }
  .acc-login .acc-head { text-align: left; margin: 0 0 18px; }
  .acc-login .acc-enter { box-shadow: none; border-radius: 0; overflow: visible; }
  .acc-login .acc-why { padding: 4px 0 0; background: none; }
  .acc-me { gap: 12px; margin-bottom: 18px; }
  .acc-ava, .acc-side .acc-ava { width: 52px; height: 52px; }
  .acc-ava-list button { width: 46px; height: 46px; }
  .acc-me-t h1 { font-size: 24px; }
  .acc-me-t p { font-size: 13.5px; }
  .acc-me-act .ic { width: 40px; height: 40px; }
  .acc-stats { gap: 8px; }
  .acc-stats > div { padding: 14px 12px; border-radius: 16px; }
  .acc-stats b { font-size: 19px; }
  .acc-stats span { font-size: 12px; }
  .acc-home .acc-sub { margin: 24px 0 12px; font-size: 24px; }
  .acc-empty { padding: 20px 4px; }
  .acc-empty-act { width: 100%; flex-direction: column; }
  .acc-empty-act .btn { width: 100%; min-height: 48px; }
  .acc-quick { margin-top: 22px; border-radius: 22px; }
  .foot { margin-top: 64px; padding: 36px 0 calc(96px + env(safe-area-inset-bottom)); }
  .foot-help { padding: 24px 20px; margin: 0 -8px 36px; border-radius: 24px; gap: 18px; }
  .foot-help h2 { font-size: 24px; }
  .foot-help-acts { width: 100%; }
  .foot-help .btn { flex: 1 1 auto; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-base { flex-direction: column; }
  .foot-studio { gap: 7px; padding: 8px 12px 8px 14px; max-width: 100%; }
  .foot-studio > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cart, .cart-skel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cart-skel i:nth-child(2) { grid-row: auto; height: 180px; }
  .cart-top { margin-bottom: 14px; gap: 4px 10px; }
  .cart-top .h1 { font-size: 34px; }
  .cart-n { font-size: 15px; width: 100%; }
  .cart-box { padding: 18px 16px; border-radius: 22px; }
  .cart-box h2 { font-size: 20px; margin-bottom: 12px; }
  .cart-box.cart-lines { padding: 2px 14px; }
  .cart-lines .line { grid-template-columns: 76px minmax(0, 1fr) 32px; column-gap: 12px; row-gap: 8px; padding: 14px 0; }
  .cart-lines .line img, .cart-lines .line .noimg { width: 76px; height: 76px; border-radius: 14px; padding: 4px; }
  .line-info { padding-top: 2px; }
  .cart-lines .line-name { font-size: 15px; }
  .cart-lines .line-opts { font-size: 12.5px; }
  .line-x { width: 32px; height: 32px; margin: -4px -6px 0 0; }
  .line-foot .qty button { width: 40px; height: 40px; }
  .cart-lines .line-price { font-size: 17px; }
  .co-days { margin: 10px -16px 0; padding: 2px 16px; }
  .co-day { min-width: 76px; padding: 10px 8px; }
  .co-slots { display: grid; grid-template-columns: 1fr 1fr; }
  .co-slots label { text-align: center; padding: 12px 8px; border-radius: 14px; font-size: 15px; }
  .cart-box .fld input, .cart-box .fld textarea { font-size: 16px; padding: 14px; }
  .cart-when { font-size: 14px; }
  .cart-side { position: static; padding: 20px 18px; border-radius: 22px; }
  .cart-side > .btn.big { display: none; }
  .checkout:has(.cart) { padding-bottom: 20px; }
  .gh:has(.cart) .foot { margin-top: 40px; padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
  .cart-side { gap: 12px; }
  .co-err:empty { display: none; }
  .cart-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: fixed; left: 0; right: 0; bottom: var(--tab-h, calc(62px + env(safe-area-inset-bottom))); z-index: 55; padding: 10px 16px; background: #fff; border-top: 1px solid rgba(0, 0, 0, 0.06); }
  .cart-bar span { display: grid; }
  .cart-bar em { font-style: normal; font-size: 12px; color: var(--ink-2); }
  .cart-bar b { font: 600 19px/1.2 var(--font-d); }
  .cart-bar .btn { min-height: 46px; padding: 0 26px; border-radius: 14px; font-size: 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(250, 250, 252, 0.84); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .tabbar > * { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 10px; color: var(--ink-3); padding: 4px 0; }
  .tabbar svg { width: 24px; height: 24px; }
  .tabbar .on { color: var(--blue); }
  .tabbar .bag-n { top: 0; right: calc(50% - 22px); }
  .toast { left: 12px; right: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .search-bar { height: 64px; }
  /* на телефоне — внизу над меню: фото, название, цена, кнопка */
  .buybar { top: auto; bottom: var(--tab-h, calc(62px + env(safe-area-inset-bottom))); border-bottom: 0; border-top: 1px solid rgba(0, 0, 0, 0.08); background: rgba(255, 255, 255, 0.94); transform: translateY(calc(100% + 70px)); }
  .buybar.on { transform: none; }
  .buybar-in { gap: 10px; height: 64px; }
  .buybar-pic { width: 42px; height: 42px; }
  .buybar-name { display: grid; font-size: 14px; line-height: 1.25; white-space: normal; }
  .buybar-name i::before { content: none; }
  .buybar-name i { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar-name, .buybar-name > span { overflow: hidden; text-overflow: ellipsis; }
  .buybar-name > span { white-space: nowrap; }
  .buybar b { font: 600 16px/1.1 var(--font-d); white-space: nowrap; }
  .buybar .btn { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
  /* полоса «Купить» или «Итого» на экране — меню под ней сплошное, без линии: одна панель, ничего не просвечивает */
  .buybar { background: #fff; }
  .gh:has(.buybar.on) .tabbar, .gh:has(.cart-bar) .tabbar { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: transparent; }
  .gh:has(.buybar.on) .cmp-bar, .gh:has(.buybar.on) .toast { bottom: calc(136px + env(safe-area-inset-bottom)); }
}
@keyframes sheet { from { transform: translateY(100%); } }
@media (max-width: 834px) {
  /* первый экран — виды на телефоне */
  .v-type .slide { min-height: calc(100svh - 64px); max-height: 840px; }
  .vt-img.vt-vid { top: 28%; height: 46%; width: 100vw; }
  .vt-hasvid .vt-word { font-size: min(var(--fs, 22vw), 11vh); }
  .vt-hasvid .vt-img.vt-vid { top: calc(var(--top-h, 86px) + 2vh + 11vh + 40px); bottom: 190px; left: -8vw; right: -8vw; width: auto; }
  /* от верхнего края, а не по центру: короткое слово («Air») выше ростом и иначе подходило бы к шапке */
  .vt-head { top: calc(var(--top-h, 86px) + 26px); transform: none; }
  .vt-brow { font-size: 19px; margin-bottom: 0.1em; }
  .vt-img { top: 50%; width: 68vw; height: 43%; }
  .vt-halo { inset: 6% -14%; }
  .vt-bar { bottom: 74px; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 0 18px; }
  .vt-kick { font-size: 13px; margin-bottom: 4px; }
  .vt-title { font-size: 22px; letter-spacing: -0.02em; }
  .vt-left p { display: none; }
  .vt-right { flex-direction: row; justify-content: center; align-items: center; gap: 16px; }
  .vt-price { font-size: 16px; color: var(--ink); font-weight: 600; }
  .vt-right .btn { min-height: 44px; padding: 0 24px; font-size: 15.5px; }
  .vt-right .lnk { display: none; }
  .v-type .hero-dots { bottom: 14px; }
  .v-dark .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; text-align: center; justify-items: center; padding: 34px 18px 70px; min-height: calc(100svh - var(--nav-h) - 110px); }
  .vd-beam { left: 25%; width: 50%; }
  .vd-title { font-size: clamp(40px, 12vw, 56px); }
  .vd-text { font-size: 16px; margin-top: 10px; }
  .vd-cta { justify-content: center; margin-top: 20px; }
  .vd-cta .btn { min-height: 44px; font-size: 15px; padding: 0 20px; }
  .vd-img { height: 40vh; transform: none; }
  .v-bento { padding-top: 12px; }
  .hb { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 190px; gap: 8px; }
  .hb-tile { padding: 16px; border-radius: 22px; }
  .hb-tile.big { grid-column: 1 / -1; grid-row: span 2; padding: 22px; }
  .hb.n4 .hb-tile:nth-child(4), .hb.n3 .hb-tile:not(.big) { grid-column: auto; }
  .hb.n4 .hb-tile:nth-child(4) { grid-column: 1 / -1; }
  .hb-copy { max-width: 100%; }
  .hb-title { font-size: 17px; }
  .hb-tile.big .hb-title { font-size: 36px; }
  .hb-text { font-size: 15px; }
  .hb-price { font-size: 13px; }
  .hb-img { width: 70%; height: 56%; right: 6px; bottom: 6px; }
  .hb-tile.big .hb-img { height: 56%; }
  /* сравнение на телефоне: по две колонки, листается вбок, если три */
  .cmp-bar { right: 50%; transform: translateX(50%); bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cmp { padding-top: 14px; }
  .cmp-head .h1 { font-size: 32px; }
  .cmp-cols { gap: 0 10px; }
  .cmp[style*="--cols:3"] .cmp-sticky, .cmp[style*="--cols:3"] .cmp-row > .cmp-cols { grid-template-columns: repeat(3, 44vw); }
  .cmp[style*="--cols:3"] { overflow-x: auto; }
  .cmp-img { height: 150px; }
  .cmp-head { align-items: center; margin-bottom: 14px; }
  .cmp-head .h1 { font-size: 30px; }
  .cmp-diff { font-size: 14px; gap: 8px; }
  .cmp-select { height: 36px; padding: 0 24px 0 10px; background-position: right 8px center; font-size: 13px; border-radius: 10px; }
  .cmp-x { width: 30px; height: 36px; border-radius: 10px; }
  .cmp-x svg { width: 14px; height: 14px; }
  .cmp-name { font-size: 16px; }
  .cmp-price { font-size: 13.5px; }
  .cmp-col .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
  .cmp-add-ic { width: 80px; height: 80px; margin-top: 40px; }
  .cmp-add-ic svg { width: 24px; height: 24px; }
  .cmp-add .mute { font-size: 13px; }
  .cmp-row { padding: 14px 0; }
  .cmp-v { font-size: 14.5px; overflow-wrap: anywhere; }
  .cmp-name { font-size: 15px; }
  .cmp-price { font-size: 13px; }
  .cmp-select { height: 36px; font-size: 13px; padding: 0 26px 0 10px; background-position: right 8px center; }
  .cmp-x { width: 32px; height: 32px; }
  .cmp-col .btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
  .cmp-add-ic { width: 72px; height: 72px; margin-top: 30px; }
  .cmp-v { font-size: 13.5px; }
  .cmp-k { font-size: 11px; }

  /* главная: новые блоки на телефоне */
  .promises { padding-top: 18px; }
  .promises-row { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 0 22px; gap: 8px; }
  .promises-row::-webkit-scrollbar { display: none; }
  .promise { flex: 0 0 auto; padding: 12px 14px; gap: 10px; border-radius: 16px; }
  .promise-ic { width: 34px; height: 34px; border-radius: 10px; }
  .promise b { font-size: 14px; } .promise em { font-size: 12px; }
  .bento-wrap { padding-top: 40px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 8px; }
  .bento > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento .big { grid-column: span 2 !important; grid-row: span 2 !important; }
  .bento-card { padding: 14px 14px; border-radius: 20px; }
  .bento-copy { max-width: 100%; }
  .bento-copy b { font-size: 16px; } .bento-copy em { display: none; } .bento-from { font-size: 12.5px; }
  .bento-card.big .bento-copy b { font-size: 28px; } .bento-card.big .bento-copy em { display: block; font-size: 14px; }
  .bento-img { width: 64%; height: 58%; right: 6px; bottom: 6px; }
  .bento-card.big .bento-img { left: 18%; right: 18%; height: 62%; bottom: 8px; }
  .bento-go { display: none; }
  .show { height: 170vh; margin-top: 48px; }
  .show-stage { padding: 30px 18px 26px; }
  .show-img { width: 86vw; height: min(42vh, 380px); margin-top: 12px; }
  .show-lines { gap: 6px; margin-top: 14px; }
  .show-lines li { font-size: 13.5px; padding: 7px 12px; }
  .finder { padding-top: 48px; }
  .fd { grid-template-columns: 1fr; gap: 26px; padding: 26px 18px 18px; margin: 0 -10px; border-radius: 28px; }
  .fd-title { font-size: 30px; }
  .fd-sub { font-size: 14.5px; }
  .fd-form { gap: 18px; margin-top: 24px; }
  .fd-step { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
  .fd-num { width: 22px; height: 22px; font-size: 11.5px; margin-top: 20px; }
  .fd-opt span { height: 36px; padding: 0 13px; font-size: 13.5px; }
  .fd-right { min-height: 0; }
  .fd-wait { min-height: 360px; }
  .fd-card { padding: 16px 16px 4px; border-radius: 22px; }
  .fd-stage { min-height: 190px; }
  .fd-stage img { max-height: 200px; }
  .fd-name b { font-size: 20px; }
  .fd-buy { flex-wrap: wrap; }
  .fd-acts .btn, .fd-cmp { height: 38px; min-height: 38px; }
  .versus, .deal, .occ, .stats { padding-top: 48px; }
  .vs { padding: 18px 12px; margin: 0 -10px; border-radius: 24px; }
  .vs-img { height: 130px; }
  .vs-side b { font-size: 15px; } .vs-price { font-size: 13px; }
  .vs-or { width: 36px; height: 36px; font-size: 13px; }
  .vs-rows div { grid-template-columns: 1fr 86px 1fr; gap: 6px; }
  .vs-rows dd { font-size: 13px; } .vs-rows dt { font-size: 11px; }
  .deal-box { grid-template-columns: 1fr; gap: 16px; padding: 14px; margin: 0 -10px; border-radius: 24px; }
  .deal-img { height: 240px; }
  .deal-cta .btn { flex: 1; }
  .occ-row:not(.n1) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 22px; scrollbar-width: none; margin: 0 -22px; padding: 0 22px; gap: 10px; }
  .occ-row::-webkit-scrollbar { display: none; }
  .occ-card, .occ-track .occ-card, .occ-row.n4 .occ-card { flex: 0 0 72%; height: 210px; scroll-snap-align: start; border-radius: 22px; padding: 18px; }
  .occ-row.n1 .occ-card { height: 200px; padding: 20px; }
  .occ-go { display: none; }
  .occ-copy { max-width: 100%; }
  .occ-copy b { font-size: 20px; }
  .occ-copy em { font-size: 13.5px; }
  .occ-img { width: 46%; height: 50%; }
  .rev-avg { justify-items: start; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
  .rev-avg > span:last-child { grid-column: 1 / -1; }
  .rev-avg b { font-size: 30px; }
  .rev.big { width: 290px; }
  .recent { padding-top: 44px; }
  .recent .rail-track .card { width: 160px; }
  /* на телефоне — по три в ряд, компактно; название сверху (до двух строк), фото под ним — не наезжают */
  /* каталог на телефоне: поиск строкой, бренды и баннер — во всю ширину, разделы — компактными плитками */
  .catalog { padding-top: 16px; }
  .cat-h1 { font-size: 32px; margin-bottom: 12px; }
  .cat-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px; margin-bottom: 18px; border-radius: 14px; background: #f2f2f5; color: var(--ink-3); font-size: 16px; text-align: left; }
  .cat-search svg { width: 18px; height: 18px; flex-shrink: 0; }
  .brands { gap: 10px; margin-bottom: 16px; }
  .brand { width: 66px; font-size: 12px; }
  .brand-img { width: 62px; height: 62px; }
  .cat-sale { min-height: 92px; padding: 14px 14px 14px 18px; border-radius: 20px; margin-bottom: 22px; }
  .cat-sale-t b { font-size: 22px; }
  .cat-sale-imgs img { width: 52px; height: 52px; border-radius: 13px; }
  .catalog .cat-block { margin-top: 18px; }
  .cat-title { margin-bottom: 10px; }
  .cat-title h2 { font-size: 21px; }
  .cat-title span { font-size: 12.5px; }
  .cat-title em { font-size: 14px; }
  .ctile-n { padding: 1px 9px 0; font-size: 11px; }
  .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
  .listing-head .sub { font-size: 13px; line-height: 1.45; }
  .ctiles.scroll { grid-template-columns: none; grid-auto-columns: calc((100% - 2 * 8px - 22px) / 3); margin-left: -22px; margin-right: -22px; padding: 0 22px; }
  .ctile { height: auto; flex-direction: column; align-items: stretch; border-radius: 16px; aspect-ratio: 1 / 1.08; }
  .ctile-t { flex: 0 0 auto; padding: 9px 9px 0; font-size: 12.5px; line-height: 1.2; }
  .ctile img { flex: 1 1 0; width: 100%; height: auto; min-height: 0; padding: 2px 6px 6px; object-position: center bottom; }
  .ctile.hot img { flex: 0 0 auto; width: 70%; height: auto; margin: 4px auto 8px; padding: 4px; border-radius: 12px; }
  .fbar { margin: 0 -22px 4px; padding: 4px 16px 8px; }
  .fchip { height: 36px; padding: 0 13px; font-size: 14px; }
  .fchip.icon { width: 36px; }
  .fsheet { place-items: end stretch; }
  .fsheet-panel { width: 100%; max-height: 86vh; border-radius: 24px 24px 0 0; animation: sheet 0.45s var(--spring); padding-bottom: env(safe-area-inset-bottom); }
}


/* конструктор: страница стоит спокойно */
.gh[data-builder] .slide { transition: none; }
.gh[data-builder] .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- блоки с вариантами (29.10.2026): баннер, текст и фото, преимущества, шаги, «напишите нам», фраза ---------- */
.blk-head { margin-bottom: 32px; max-width: 760px; }
.btn.on-dark { background: #fff; color: var(--ink); }
.btn.on-dark:hover { background: #f5f5f7; }

/* баннер */
.bnr-w { padding-top: 72px; }
.bnr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 460px; padding: 56px 64px; border-radius: var(--r-lg); background: var(--soft); overflow: hidden; }
.bnr-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: 4px; }
.bnr-title { font: 600 clamp(32px, 4vw, 52px) / 1.06 var(--font-d); letter-spacing: -0.028em; margin: 0; }
.bnr-copy .paras p { margin: 10px 0 0; font-size: 19px; line-height: 1.42; color: var(--ink-2); max-width: 30em; }
.bnr-copy .btn { margin-top: 24px; }
.bnr-img { display: grid; place-items: center; height: 100%; }
.bnr-img img { max-height: 380px; width: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.14)); transition: transform 0.8s var(--spring); }
.bnr:hover .bnr-img img { transform: scale(1.03) translateY(-4px); }
.bnr.v-center { grid-template-columns: 1fr; text-align: center; padding: 64px 32px 0; gap: 28px; }
.bnr.v-center .bnr-copy { justify-items: center; }
.bnr.v-center .paras p { margin-inline: auto; }
.bnr.v-center .bnr-img img { max-height: 340px; }
.bnr.v-dark { background: #000; color: #f5f5f7; }
.bnr.v-dark .paras p { color: #a1a1a6; }
.bnr.v-dark .kicker { color: #ff9f4a; }
.bnr.v-dark .bnr-img::before { content: ''; position: absolute; right: 8%; top: 50%; width: 46%; aspect-ratio: 1; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(41, 151, 255, 0.35), transparent); filter: blur(10px); }
.bnr.v-color { background: linear-gradient(135deg, var(--bc), color-mix(in srgb, var(--bc) 70%, #000)); color: #fff; }
.bnr.v-color .paras p, .bnr.v-color .kicker { color: rgba(255, 255, 255, 0.82); }

/* текст и фото */
.split-w { padding: 88px 0; }
.split-w + .split-w { padding-top: 0; }
.split-w.t-gray { background: var(--soft); margin-top: 72px; }
.split-w.t-dark { background: #000; color: #f5f5f7; margin-top: 72px; }
.split-w.t-dark .paras p, .split-w.t-dark .split-list li { color: #a1a1a6; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.split.rev .split-copy { order: 2; }
.split-copy .paras p { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 16px 0 0; }
.split-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.split-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; color: var(--ink); }
.split-list svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }
.split-copy .btn { margin-top: 28px; }
.split-img { aspect-ratio: 5 / 4; border-radius: var(--r-lg); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.split-w.t-gray .split-img { background: #fff; }
.split-img img { width: 78%; height: 78%; object-fit: contain; }
.split-img.own img { width: 100%; height: 100%; object-fit: cover; }

/* преимущества */
.feat { padding-top: 88px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.feat-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--blue); }
.feat-ic svg { width: 26px; height: 26px; }
.feat-i h3 { font: 600 20px/1.22 var(--font-d); letter-spacing: -0.016em; margin: 0 0 6px; }
.feat-i .paras p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.feat.v-cards .feat-i { background: var(--soft); border-radius: var(--r-lg); padding: 28px; }
.feat.v-cards .feat-ic { background: #fff; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.feat.v-plain .feat-grid { gap: 40px 32px; }
.feat.v-plain .feat-ic { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(160deg, #eaf3ff, #f5f5f7); margin-bottom: 18px; }
.feat.v-plain .feat-ic svg { width: 30px; height: 30px; }
.feat.v-list .feat-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 48px; }
.feat.v-list .feat-i { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.feat.v-list .feat-ic { flex: none; background: var(--soft); }

/* шаги */
.steps { padding-top: 88px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; counter-reset: s; }
.steps-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 17px/1 var(--font-d); margin-bottom: 18px; }
.steps-list h3 { font: 600 20px/1.22 var(--font-d); letter-spacing: -0.016em; margin: 0 0 6px; }
.steps-list .paras p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.steps > .btn { margin-top: 36px; }
.steps.v-row .steps-list li { position: relative; }
.steps.v-row .steps-list li:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 52px; right: -16px; height: 1px; background: var(--line); }
.steps.v-cards .steps-list { gap: 14px; }
.steps.v-cards .steps-list li { background: var(--soft); border-radius: var(--r-lg); padding: 28px; }
.steps.v-cards .steps-n { background: var(--blue); }
.steps.v-line .steps-list { grid-template-columns: 1fr; max-width: 720px; gap: 0; }
.steps.v-line .steps-list li { display: flex; gap: 20px; position: relative; padding-bottom: 32px; }
.steps.v-line .steps-n { flex: none; margin: 0; }
.steps.v-line .steps-list li:not(:last-child)::before { content: ''; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.steps.v-line h3 { margin-top: 8px; }

/* «напишите нам» */
.cta-w { padding-top: 72px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; padding: 48px 56px; border-radius: var(--r-lg); background: var(--soft); }
.cta-copy { max-width: 560px; }
.cta-copy .paras p { margin: 10px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.cta-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-acts .btn { min-height: 48px; padding: 0 22px; }
.cta-acts svg { width: 18px; height: 18px; }
.cta.v-dark { background: #000; color: #f5f5f7; }
.cta.v-dark .paras p { color: #a1a1a6; }
.cta.v-dark .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.cta.v-blue { background: linear-gradient(135deg, #0071e3, #2997ff); color: #fff; }
.cta.v-blue .paras p { color: rgba(255, 255, 255, 0.85); }
.cta.v-blue .btn:not(.ghost) { background: #fff; color: var(--blue); }
.cta.v-blue .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.cta.v-blue .btn.ghost:hover, .cta.v-dark .btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* крупная фраза */
.stmt { padding-top: 120px; padding-bottom: 32px; }
.stmt-t { font: 600 clamp(32px, 5vw, 64px) / 1.08 var(--font-d); letter-spacing: -0.03em; margin: 0; max-width: 18em; }
.stmt .paras p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--ink-2); margin: 20px 0 0; max-width: 34em; }
.stmt .btn { margin-top: 28px; }
.stmt.v-center { text-align: center; }
.stmt.v-center .stmt-t, .stmt.v-center .paras p { margin-inline: auto; }
.stmt.v-glow .stmt-t { background: linear-gradient(90deg, #0071e3, #a24bf6 45%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 834px) {
  .bnr { grid-template-columns: 1fr; padding: 40px 24px 0; text-align: center; min-height: 0; }
  .bnr-copy { justify-items: center; }
  .bnr-copy .paras p { margin-inline: auto; font-size: 17px; }
  .bnr-img img { max-height: 280px; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-copy { order: 0; }
  .split-w { padding: 56px 0; }
  .split-w.t-gray, .split-w.t-dark { margin-top: 48px; }
  .bnr-w, .cta-w, .feat, .steps { padding-top: 56px; }
  .cta { padding: 32px 24px; }
  .cta-acts, .cta-acts .btn { width: 100%; }
  .stmt { padding-top: 72px; }
  .steps.v-row .steps-list li::after { display: none; }
  .feat.v-cards .feat-i, .steps.v-cards .steps-list li { padding: 24px; }
}

/* подбор смартфона свёрнутым (29.10.2026): графитовая карточка с тремя шагами и веером телефонов;
   раскрытый — сам подбор, «Свернуть» в углу */
.fd-fold > summary { list-style: none; }
.fd-fold > summary::-webkit-details-marker { display: none; }
.fd-fold[open] > summary { display: none; }
.fd-tease { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px; min-height: 340px; padding: 44px 48px; border-radius: 36px; overflow: hidden; cursor: pointer; color: #f5f5f7; background: radial-gradient(120% 140% at 85% 50%, #1d2a44 0%, rgba(29, 42, 68, 0) 55%), linear-gradient(180deg, #1c1c1f 0%, #111113 100%); isolation: isolate; }
.fd-tease-copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 10px; }
.fd-tease-t { font: 700 clamp(30px, 3.6vw, 46px) / 1.05 var(--font-d); letter-spacing: -0.03em; max-width: 14em; text-wrap: balance; }
.fd-tease-x { color: #a1a1a6; font-size: 17px; line-height: 1.45; max-width: 30em; }
.fd-tease-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fd-tease-steps span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 14px; color: #e8e8ed; }
.fd-tease-steps i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f5f5f7; color: #111113; font: 600 12px/1 var(--font-d); font-style: normal; }
.fd-tease-btn { margin-top: 16px; min-height: 48px; padding: 0 24px; font-size: 16px; }
.fd-tease-btn svg { width: 11px; height: 11px; }
.fd-fan { position: relative; z-index: 1; height: 280px; }
.fd-fan-glow { position: absolute; left: 50%; top: 55%; width: 360px; height: 360px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(41, 151, 255, 0.45), rgba(162, 75, 246, 0.18) 55%, transparent); filter: blur(12px); }
.fd-mini { position: absolute; left: 50%; bottom: 8px; width: 168px; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 16px; border-radius: 26px; background: #fff; box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6) inset; transition: transform 0.7s var(--spring); }
.fd-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fd-mini.f0 { transform: translateX(-125%) translateY(14px) rotate(-10deg) scale(0.86); }
.fd-mini.f1 { transform: translateX(-50%); z-index: 2; }
.fd-mini.f2 { transform: translateX(25%) translateY(14px) rotate(10deg) scale(0.86); }
.fd-tease:hover .fd-mini.f0 { transform: translateX(-135%) translateY(6px) rotate(-14deg) scale(0.86); }
.fd-tease:hover .fd-mini.f1 { transform: translateX(-50%) translateY(-10px) scale(1.03); }
.fd-tease:hover .fd-mini.f2 { transform: translateX(35%) translateY(6px) rotate(14deg) scale(0.86); }
.fd-tease:hover .fd-tease-btn { background: var(--blue-h); }
.fd-open { position: relative; animation: fd-open 0.5s var(--spring); }
/* место под «Свернуть» над подбором, чтобы кнопка не ложилась на карточку результата */
.fd-open .fd { padding-top: 72px; }
.fd-close { position: absolute; top: 20px; right: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #f5f5f7; font-size: 13.5px; font-weight: 500; transition: background 0.2s; }
.fd-close:hover { background: rgba(255, 255, 255, 0.18); }
.fd-close svg { width: 11px; height: 11px; }
@keyframes fd-open { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@media (max-width: 834px) {
  .fd-tease { grid-template-columns: 1fr; padding: 28px 22px 0; gap: 8px; min-height: 0; border-radius: 28px; }
  .fd-tease-x { font-size: 15px; }
  .fd-tease-btn { width: 100%; }
  .fd-fan { height: 200px; margin: 0 -22px; }
  .fd-fan { height: 220px; }
  .fd-mini { width: 132px; border-radius: 22px; padding: 12px; bottom: -18px; }
  .fd-fan-glow { width: 260px; height: 260px; }
  .fd-close { top: 14px; right: 14px; }
  .fd-open .fd { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .fd-open { animation: none; } .fd-mini { transition: none; } }

/* ---------- статьи (29.10.2026): список и статья ---------- */
.art-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.art-crumbs a:hover { color: var(--ink); }
.art-crumbs svg { width: 9px; height: 9px; }
.art-head p { color: var(--ink-2); font-size: 21px; line-height: 1.4; }
.arts { padding-top: 24px; }
.arts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 20px; }
.art-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--soft); overflow: hidden; }
/* без подсветки при наведении — только заголовок становится ссылкой */
.art-card:hover .art-card-t { color: var(--link); }
.art-card-img { aspect-ratio: 16 / 10; background: #ececf0; display: grid; place-items: center; overflow: hidden; }
.art-card-img img { width: 100%; height: 100%; object-fit: cover; }
.art-card-ph svg { width: 40px; height: 40px; color: var(--ink-3); }
.art-card-copy { display: grid; align-content: start; gap: 8px; padding: 20px 24px 26px; }
.art-meta { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.art-draft-tag { color: var(--kicker); font-weight: 600; }
.art-card-t { font: 600 21px/1.22 var(--font-d); letter-spacing: -0.018em; }
.art-card-x { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-card.big { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: none; }
.art-card.big .art-card-img { aspect-ratio: auto; min-height: 380px; }
.art-card.big .art-card-copy { align-content: center; padding: 40px; }
.art-card.big .art-card-t { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.12; }
.art-card.big .art-card-x { font-size: 18px; -webkit-line-clamp: 4; }
.art-none { color: var(--ink-2); font-size: 19px; padding: 40px 0; }

.art-top { max-width: 860px; padding-top: 56px; }
.art-draft { display: inline-block; margin: 0 0 16px; padding: 6px 12px; border-radius: 999px; background: #fff4e5; color: var(--kicker); font-size: 13.5px; font-weight: 600; }
.art-h1 { font: 600 clamp(34px, 4.6vw, 54px) / 1.08 var(--font-d); letter-spacing: -0.03em; margin: 0; }
.art-lead { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.42; color: var(--ink-2); margin: 18px 0 0; }
.art-top .art-meta { margin-top: 20px; }
.art-cover { margin-top: 36px; }
.art-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-lg); }
.art-body { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 56px; padding-top: 44px; }
.art-body.has-toc { grid-template-columns: 220px minmax(0, 760px); }
.art-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 4px; font-size: 14px; }
.art-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 6px; }
.art-toc a { color: var(--ink-2); padding: 5px 0 5px 12px; border-left: 2px solid var(--line-2); line-height: 1.35; }
.art-toc a:hover { color: var(--ink); border-color: var(--blue); }
.art-text { font-size: 18px; line-height: 1.65; color: #333336; }
.art-text p { margin: 0 0 20px; }
.art-text h2 { font: 600 clamp(26px, 2.6vw, 32px) / 1.18 var(--font-d); letter-spacing: -0.022em; color: var(--ink); margin: 48px 0 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.art-text h3 { font: 600 21px/1.3 var(--font-d); color: var(--ink); margin: 32px 0 10px; }
.art-text ul, .art-text ol { margin: 0 0 22px; padding-left: 24px; }
.art-text li { margin: 6px 0; }
.art-text li::marker { color: var(--blue); }
.art-text a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 102, 204, 0.35); }
.art-text a:hover { text-decoration-color: currentColor; }
.art-text blockquote { margin: 28px 0; padding: 22px 26px; border-radius: var(--r); background: var(--soft); font: 500 21px/1.45 var(--font-d); color: var(--ink); }
.art-text figure { margin: 32px 0; }
.art-text figure img { width: 100%; border-radius: var(--r); background: var(--soft); }
.art-text figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
.art-text hr { border: 0; height: 1px; background: var(--line-2); margin: 40px 0; }
.art-text .art-cta { margin: 28px 0; }
.art-text .art-cta .btn { text-decoration: none; color: #fff; }
.art-more { padding-top: 72px; }
@media (max-width: 1024px) {
  .art-body.has-toc { grid-template-columns: minmax(0, 760px); }
  .art-toc { position: static; padding: 18px 20px; border-radius: var(--r); background: var(--soft); }
}
@media (max-width: 834px) {
  .art-card.big { grid-template-columns: 1fr; }
  .art-card.big .art-card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .art-card.big .art-card-copy { padding: 22px 22px 26px; }
  .art-top { padding-top: 32px; }
  .art-text { font-size: 17px; }
  .art-cover { padding: 0; }
  .art-cover img { border-radius: 0; }
}

/* ---------- отзывы на товаре (29.10.2026): средняя оценка, «Написать отзыв» из кабинета, форма со звёздами ---------- */
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 22px; }
.pdp-reviews .rv-head .h2 { margin: 0; }
.rv-avg { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.rv-avg b { font: 600 17px/1 var(--font-d); }
.rv-side { display: grid; justify-items: end; gap: 8px; max-width: 360px; text-align: right; font-size: 13.5px; line-height: 1.4; }
.rv-write { width: 100%; }
.rv-write > summary { list-style: none; cursor: pointer; display: inline-flex; }
.rv-write > summary::-webkit-details-marker { display: none; }
.rv-head > .rv-write { width: auto; }
.rv-write[open] { flex-basis: 100%; }
.rv-write[open] > summary { display: none; }
.rv-form { display: grid; gap: 10px; max-width: 640px; padding: 24px; border-radius: var(--r-lg); background: var(--soft); animation: fd-open 0.4s var(--spring); }
.rv-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.rv-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars label { cursor: pointer; color: var(--line); transition: color 0.15s, transform 0.2s var(--spring); }
.rv-stars label svg { width: 30px; height: 30px; fill: currentColor; }
.rv-stars label:hover, .rv-stars label:hover ~ label, .rv-stars input:checked ~ label { color: #ff9f0a; }
.rv-stars label:active { transform: scale(0.9); }
.rv-stars input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.rv-form textarea { width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; line-height: 1.45; resize: vertical; }
.rv-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.rv-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13.5px; margin-top: 4px; }
.rv-msg { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.rv-msg.ok { background: #e9f8ec; color: #1d6b33; }
.rv-msg.err { background: #fff1e8; color: #a8430d; }
.rv-none { color: var(--ink-2); font-size: 17px; margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--soft); }
@media (max-width: 834px) {
  .rv-side { justify-items: start; text-align: left; max-width: none; }
  .rv-form { padding: 18px; }
}

/* ---------- блок «Блог» на главной (29.10.2026): первая статья крупно, остальные столбиком справа ---------- */
.blog-b { padding-top: 88px; }
.blog-head { align-items: flex-end; margin-bottom: 22px; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.blog-grid.n1 { grid-template-columns: 1fr; }
.blog-grid .art-card.big { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.blog-grid .art-card.big .art-card-img { aspect-ratio: 16 / 9; min-height: 0; }
.blog-grid .art-card.big .art-card-copy { padding: 26px 30px 30px; }
.blog-side { display: grid; gap: 20px; align-content: start; }
.blog-side .art-card { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: none; }
.blog-side .art-card-img { aspect-ratio: auto; height: 100%; min-height: 150px; }
.blog-side .art-card-copy { padding: 18px 20px; align-content: center; }
.blog-side .art-card-t { font-size: 18px; }
.blog-side .art-card-x { -webkit-line-clamp: 2; font-size: 14.5px; }
@media (max-width: 834px) {
  .blog-b { padding-top: 56px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-side .art-card { grid-template-columns: 38% minmax(0, 1fr); }
  .blog-side .art-card-img { min-height: 120px; }
}

/* фото товара в статьях и карточках блога — целиком на светлом фоне (не обрезаем квадрат на белом) */
.art-card.shot .art-card-img { background: linear-gradient(160deg, #fafafc, #ececf0); }
.art-card.shot .art-card-img img { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.art-cover.shot img { object-fit: contain; height: min(460px, 60vw); padding: 32px; background: linear-gradient(160deg, #fafafc, #ececf0); }
.art-cover.shot { border-radius: var(--r-lg); }
.art-cover.shot img { mix-blend-mode: multiply; }
.art-text figure.shot { padding: 28px; border-radius: var(--r); background: linear-gradient(160deg, #fafafc, #ececf0); }
.art-text figure.shot img { width: auto; max-width: 100%; max-height: 380px; margin: 0 auto; display: block; background: none; mix-blend-mode: multiply; }

/* товары раздела внутри статьи — лента во всю ширину между абзацами */
.art-goods { margin: 36px 0; }
.art-goods-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.art-goods-head b { font: 600 22px/1.2 var(--font-d); letter-spacing: -0.018em; color: var(--ink); }
.art-text .art-goods a { text-decoration: none; color: inherit; }
.art-text .art-goods .lnk { color: var(--link); font-size: 15px; }
.art-goods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.art-goods-grid > * { width: auto; min-width: 0; }
.art-goods-grid .card-name, .art-goods-grid .card b { font-size: 15px; }
@media (max-width: 834px) {
  .art-goods-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 22px; scrollbar-width: none; margin: 0 -22px; padding: 0 22px 8px; gap: 12px; }
  .art-goods-grid::-webkit-scrollbar { display: none; }
  .art-goods-grid > * { flex: 0 0 62%; scroll-snap-align: start; }
}
