/* Layout: dark ink header (search + category rail) over a light catalogue; products sit on cool-grey photo plates.
   Сайт сознательно светлый (как витрина магазина), тёмные только шапка и подвал. */
:root {
  --ink: #0F1015;
  --ink-2: #181A22;
  --ink-line: #2A2D38;
  --on-ink: #F4F5F8;
  --on-ink-muted: #A3A7B5;
  --bg: #FFFFFF;
  --surface: #F4F5F8;
  --plate: #F6F6F8;
  --line: #E4E6EC;
  --fg: #12131A;
  --muted: #6A6F7E;
  --accent: #2F6BFF;
  --accent-press: #1F55E0;
  --accent-soft: #EAF0FF;
  --violet: #38B2F8;                 /* голубой из облака icloud — второй цвет градиентов */
  --sky-deep: #358EF3;
  --brand-gray: #4C4C4C;
  --brand-font: 'Montserrat', 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;
  --sale: #E5484D;
  --ok: #16A34A;
  --warn: #C46A00;
  --white: #FFFFFF;
  --shade: rgba(15, 16, 21, .55);
  --font: 'Onest', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1360px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-press); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: #DCE6FF; }
.btn-outline { border: 1.5px solid var(--line); background: var(--bg); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-2); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-text { display: inline-block; color: var(--fg); font-size: 14px; font-weight: 500; padding: 8px 2px; }
.btn svg:not(.ico) { width: 19px; height: 19px; fill: currentColor; flex: none; }
.btn-text:hover { color: var(--accent); }
.btn.is-done { background: var(--ok); color: var(--white); }
.btn-tradein {
  height: 44px; padding: 0 22px; border-radius: 999px; color: var(--white); font-weight: 700;
  background: linear-gradient(100deg, #1A82E0, var(--accent));
  box-shadow: 0 8px 20px -10px var(--accent);
}
.btn-tradein:hover { filter: brightness(1.08); }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Header (светлая, как у icloud: логотип-звезда + серая надпись Montserrat) ---------- */
.site-header { background: var(--bg); color: var(--fg); position: sticky; top: calc(env(safe-area-inset-top, 0px) - 39px); z-index: 50; box-shadow: 0 1px 0 var(--line), 0 10px 28px -24px rgba(15, 16, 21, .35); }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 38px; }
.tb-addr { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); font-weight: 600; white-space: nowrap; min-width: 0; flex: none; }
.tb-addr .ico { width: 16px; height: 16px; color: var(--sky-deep); stroke-width: 2; }
.tb-addr span { overflow: hidden; text-overflow: ellipsis; }
.tb-addr .short { display: none; }
.tb-addr:hover span { text-decoration: underline; text-underline-offset: 3px; }
.tb-nav { display: flex; gap: 18px; min-width: 0; overflow: hidden; }
.tb-nav a { color: var(--muted); white-space: nowrap; }
.tb-nav a:hover, .tb-nav a.is-active { color: var(--fg); }
.topbar .tb-right { margin-left: auto; display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.topbar .tb-phone { font-weight: 700; color: var(--fg); font-size: 14px; }
.tb-call { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.tb-call .ico { width: 13px; height: 13px; }
.tb-call:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.topbar .tb-hours { color: var(--muted); }
.open-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.open-dot.is-closed { background: var(--sale); box-shadow: 0 0 0 3px rgba(229, 72, 77, .2); }

.bar { background: var(--bg); }
.mainbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-star { width: 54px; height: 54px; flex: none; translate: 0 -12%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); } /* оптически по слову «iTunes», а не по всему блоку с подписью */
.logo:hover .logo-star { transform: rotate(-12deg) scale(1.06); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--brand-font); font-weight: 700; font-size: 34px; letter-spacing: -0.015em; color: var(--brand-gray); }
.logo-sub { font-family: var(--brand-font); font-weight: 500; font-size: 13px; color: var(--brand-gray); margin-top: 5px; }
.search { position: relative; flex: 1; min-width: 0; }
.search input {
  width: 100%; height: 48px; border: 1.5px solid transparent; border-radius: 14px; padding: 0 52px 0 20px;
  background: var(--surface); color: var(--fg); font-size: 15px; outline: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #8A8F9C; }
.search input:focus { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-go { position: absolute; right: 7px; top: 7px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--fg); }
.search-go:hover { background: var(--line); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--bg); color: var(--fg);
  border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35); border: 1px solid var(--line); padding: 8px; z-index: 70; max-height: 70vh; overflow: auto;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.suggest a:hover, .suggest a.is-hover { background: var(--surface); }
.suggest img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--plate); }
.suggest .s-title { font-size: 14px; flex: 1; min-width: 0; }
.suggest .s-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.suggest .s-all { justify-content: center; color: var(--accent); font-weight: 600; font-size: 14px; }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 8px; }
.soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg); transition: transform .15s, background .15s, color .15s; }
.soc:hover { transform: translateY(-2px); background: var(--accent); color: var(--white); }
.soc svg { width: 18px; height: 18px; fill: currentColor; }
.cart-btn { display: flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.cart-ico { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.cart-ico .ico { width: 26px; height: 26px; }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 5px;
  background: var(--sale); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.cart-count:empty { display: none; }
.cart-count.pop { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }
.cart-txt { font-size: 12px; line-height: 1.25; color: var(--muted); }
.cart-txt b { display: block; color: var(--fg); font-size: 14px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--fg); border-radius: 10px; }
.icon-btn .ico { width: 24px; height: 24px; }
.m-only { display: none; }

/* Строка разделов лежит поверх страницы под шапкой и прячется сдвигом под неё:
   высота шапки не меняется, страница не прыгает (иначе при прокрутке мерцало). */
.catbar { position: absolute; left: 0; right: 0; top: 100%; z-index: -1; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 10px 28px -24px rgba(15, 16, 21, .35); transition: transform .25s ease, visibility .25s; }
.catbar .wrap { display: flex; align-items: center; gap: 4px; min-height: 50px; overflow-x: auto; scrollbar-width: none; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.catbar a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--fg); transition: background .15s, color .15s; }
.catbar a:hover { background: var(--surface); }
.catbar a.is-active { background: var(--accent-soft); color: var(--accent); }
.catbar .cb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; flex: none; }
.catbar .cb-hot { color: var(--accent); }
.bar.is-compact .catbar { transform: translateY(-100%); visibility: hidden; }
@media (min-width: 761px) { .site-header + main { margin-top: 51px; } }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; background: var(--bg); color: var(--fg); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px)); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-head h2 { font-size: 26px; font-weight: 800; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.drawer-list { list-style: none; margin: 16px 0 0; padding: 0; }
.drawer-list a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.drawer-list.small a { font-size: 15px; font-weight: 400; color: var(--muted); padding: 11px 2px; }
.drawer-contacts { margin-top: 22px; display: grid; gap: 6px; }
.drawer-contacts .big { font-size: 22px; font-weight: 700; }

/* ---------- Sections ---------- */
main { min-height: 50vh; }
.section { padding-block: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.section-head .sub { color: var(--accent); font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; margin-top: 4px; }
.section-head a { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.page-title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 6px 0 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: var(--accent); }
.crumbs span[aria-hidden] { color: #B5B9C4; }

/* Hero carousel */
.hero { padding-block: 26px 10px; background: var(--surface); }
.carousel { position: relative; }
.hero-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 16px;
}
.hero-track::-webkit-scrollbar { display: none; }
.hcard {
  position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column; padding: 26px; isolation: isolate; background: var(--plate); color: var(--fg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hcard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(15, 16, 21, .5); }
.hcard .eyebrow { font-size: 12.5px; font-weight: 600; opacity: .8; }
.hcard h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; margin-top: 10px; }
.hcard p { font-size: 14.5px; margin-top: 8px; opacity: .85; max-width: 26ch; }
.hcard .hc-img { position: absolute; inset: auto 0 0 0; height: 66%; z-index: -1; }
.hcard .hc-img img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hcard.is-cover .hc-img { inset: 0; height: 100%; }
.hcard.is-cover .hc-img img { object-fit: cover; }
.hcard.is-cover { color: var(--white); background: var(--ink); }
.hcard.is-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 16, .82) 0%, rgba(10, 10, 16, .45) 45%, rgba(10, 10, 16, .1) 75%, rgba(10, 10, 16, .55) 100%); }
.hcard.is-dark { color: var(--on-ink); background: var(--ink); }
.hcard.is-blue { color: var(--white); background: radial-gradient(120% 90% at 100% 100%, var(--violet), var(--accent) 55%, #1B3FB8); }
.hcard.is-night { color: var(--white); background: radial-gradient(110% 80% at 0% 100%, #15559E, var(--ink) 62%); }
.hcard .hc-big { position: absolute; right: -6px; bottom: -28px; font-size: clamp(150px, 15vw, 210px); font-weight: 800; letter-spacing: -0.07em; line-height: 1; z-index: -1; opacity: .95;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hcard .hc-cta { margin-top: auto; align-self: flex-start; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--fg); }
.hcard.is-cover .hc-cta, .hcard.is-dark .hc-cta, .hcard.is-blue .hc-cta, .hcard.is-night .hc-cta { background: rgba(255, 255, 255, .16); color: var(--white); backdrop-filter: blur(6px); }
.car-btn {
  position: absolute; top: calc(50% - 30px); width: 46px; height: 46px; border-radius: 50%; background: var(--bg); color: var(--fg);
  display: grid; place-items: center; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35); z-index: 3;
}
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }

/* Benefits */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.perk { display: flex; align-items: center; gap: 14px; }
.perk-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.perk-ico .ico { width: 22px; height: 22px; }
.perk b { display: block; font-size: 15px; font-weight: 600; }
.perk span { font-size: 13px; color: var(--muted); }

/* Category bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--plate); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.05); }
.tile .tile-name { position: absolute; left: 14px; top: 14px; background: var(--bg); color: var(--fg); font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.tile .tile-count { position: absolute; left: 14px; bottom: 14px; background: rgba(15, 16, 21, .6); color: var(--white); font-size: 12.5px; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.tile.t-big { grid-column: span 2; grid-row: span 2; }
.tile.t-big .tile-name { font-size: 22px; padding: 10px 18px; }
/* живые 3D-плитки: свой фон, холст поверх фото; фото прячется, когда модель нарисовалась */
.tile.has-3d { background: radial-gradient(110% 90% at 65% 45%, #FFFFFF 0%, #F1F2F6 55%, #E4E7EE 100%); }
.tile.t3-iphone { background: radial-gradient(100% 85% at 55% 45%, #FFFFFF 0%, #F6EEF0 50%, #E9DCE0 100%); }
.tile.t3-airpods { background: radial-gradient(100% 90% at 50% 40%, #FFFFFF 0%, #EEF3F8 55%, #DDE5EE 100%); }
.tile.t3-ipad { background: radial-gradient(100% 90% at 55% 40%, #FFFFFF 0%, #EEF0FA 55%, #DEE2F3 100%); }
.tile.t3-mac { background: radial-gradient(90% 100% at 70% 40%, #FFFFFF 0%, #EDF3F9 55%, #DCE7F1 100%); }
.tile.t3-watch { background: radial-gradient(90% 110% at 70% 45%, #FFFFFF 0%, #F4F1EE 55%, #E6E0DA 100%); }
.tile.t3-accessories { background: radial-gradient(90% 110% at 70% 40%, #FFFFFF 0%, #F2F3F5 55%, #E2E4E9 100%); }
.tile .tile-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.tile.has-3d img { transition: opacity .6s ease, transform .5s ease; }
.tile.is-3d img { opacity: 0; }
.tile .tile-name, .tile .tile-count { z-index: 1; }
.tile.t-wide { grid-column: span 2; }

/* Product grid & card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px 20px; }
.grid.g5 { grid-template-columns: repeat(5, 1fr); }
.pc { display: flex; flex-direction: column; min-width: 0; }
.pc-img { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--plate); overflow: hidden; display: block; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.pc:hover .pc-img img { transform: scale(1.045); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--fg); }
.pc-img .chip { position: absolute; left: 10px; top: 10px; }
.chip.new { background: var(--accent); color: var(--white); }
.chip.order { background: var(--ink); color: var(--on-ink); }
.chip.few { background: #FFF1DD; color: var(--warn); }
.chip.sale { background: var(--sale); color: var(--white); }
.pc-title { font-size: 14px; line-height: 1.4; margin-top: 12px; min-height: 3.6em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title:hover { color: var(--accent); }
.pc-price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-price b { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.pc-price s { color: var(--muted); font-size: 14px; }
.pc-actions { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-actions .btn { flex: 0 0 auto; }

.more-row { display: flex; justify-content: center; margin-top: 26px; }

/* Services banners */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.svc { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 260px; padding: 32px; display: flex; flex-direction: column; isolation: isolate; color: var(--white); }
.svc h3 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; max-width: 15ch; }
.svc p { margin-top: 10px; max-width: 32ch; opacity: .9; }
.svc .btn { margin-top: auto; align-self: flex-start; background: var(--white); color: var(--fg); }
.svc.s-blue { background: radial-gradient(120% 120% at 100% 0%, var(--violet), var(--accent) 50%, #1B3FB8); }
.svc.s-blue .svc-num { position: absolute; right: 26px; bottom: -40px; font-size: 230px; font-weight: 800; letter-spacing: -0.08em; line-height: 1; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc.s-trade { background: var(--ink); }
.svc.s-trade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; }
.svc.s-trade::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 16, .85), rgba(10, 10, 16, .1)); }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.acard { position: relative; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); min-height: 230px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; transition: transform .2s; }
.acard:hover { transform: translateY(-3px); }
.acard img { position: absolute; right: -30px; top: -20px; width: 70%; z-index: -1; opacity: .5; border-radius: 24px; mask-image: linear-gradient(200deg, #000 30%, transparent 75%); -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 75%); }
.acard time { font-size: 12.5px; color: var(--on-ink-muted); }
.acard h3 { font-size: 17px; font-weight: 700; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); margin-top: 48px; font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 28px; padding-block: 44px 34px; }
.foot-cols h4 { color: var(--on-ink); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot-cols a:hover { color: var(--on-ink); }
.foot-phone { display: block; font-size: 24px; font-weight: 700; color: var(--on-ink); margin: 12px 0 14px; }
.foot-soc { display: flex; gap: 10px; }
.foot-soc .soc { background: transparent; color: var(--on-ink); border: 1.5px solid var(--accent); }
.foot-bottom { border-top: 1px solid var(--ink-line); padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; display: grid; gap: 10px; }
.foot-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bottom a:hover { color: var(--on-ink); }

/* ---------- Catalog page ---------- */
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.side { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 12px; position: sticky; top: 150px; max-height: calc(100vh - 170px); overflow: auto; }
.side h3 { font-size: 17px; font-weight: 700; padding: 0 10px 10px; }
.side a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--fg); }
.side a:hover { background: var(--surface); }
.side a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side .side-group { margin-top: 10px; padding: 10px 10px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.select.input { background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F6BFF' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; height: 50px; }
.select { height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 38px 0 14px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F6BFF' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 14px; }
.notify {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--accent-soft), #F1ECFF); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 24px;
}
.notify h3 { font-size: 18px; font-weight: 700; }
.notify p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pager button { min-width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; }
.pager button.is-active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager button:hover:not(.is-active) { border-color: var(--accent); color: var(--accent); }
.empty { text-align: center; padding: 60px 16px; }
.empty h2 { font-size: 24px; font-weight: 800; }
.empty p { color: var(--muted); margin: 10px auto 20px; max-width: 46ch; }
.catalog-all { columns: 4 240px; column-gap: 32px; }
.catalog-all section { break-inside: avoid; margin-bottom: 28px; }
.catalog-all h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.catalog-all h2 a:hover { color: var(--accent); }
.catalog-all ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14.5px; }
.catalog-all li a:hover { color: var(--accent); }

/* ---------- Product page ---------- */
.prod-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin: 8px 0 22px; }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumbs button { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--plate); border: 2px solid transparent; }
.thumbs button.is-active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; aspect-ratio: 5 / 4; max-height: 620px; border-radius: var(--r-xl); background: var(--plate); overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: contain; animation: fade .35s ease; }
@keyframes fade { from { opacity: .3; } }
.stage .car-btn.prev { left: 14px; }
.stage .car-btn.next { right: 14px; }
.stage .chip { position: absolute; left: 16px; top: 16px; }
.buy { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; position: sticky; top: 150px; display: grid; gap: 18px; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row b { font-size: 34px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.price-row s { color: var(--muted); font-size: 18px; }
.price-note { font-size: 12.5px; color: var(--muted); margin-top: -10px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.few { color: var(--warn); }
.stock.order { color: var(--muted); }
.opt { border-top: 1px solid var(--line); padding-top: 16px; }
.opt-label { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.opt-label b { color: var(--fg); font-weight: 600; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--plate); padding: 0; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch .dot { display: block; width: 100%; height: 100%; }
.swatch.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.optchip { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; }
.optchip:hover { border-color: var(--accent); }
.optchip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bonus-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.bonus-line .coin { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.buy-btns { display: grid; gap: 6px; }
.pay-lines { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13.5px; }
.pay-lines button { color: var(--fg); text-decoration: underline; text-decoration-color: #C7CAD3; text-underline-offset: 3px; }
.pay-lines button:hover { color: var(--accent); }
.drop-box { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-size: 13.5px; }
.drop-box b { display: block; font-size: 15px; margin-bottom: 4px; }
.drop-box p { color: var(--muted); }
.drop-box .drop-link { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sku-code { font-size: 12.5px; color: var(--muted); }
.sku-code button { color: var(--muted); text-decoration: underline dotted; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.seg button { height: 40px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.is-active { background: var(--accent); color: var(--white); }

.info-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: var(--r-xl); background: var(--accent-soft); margin-top: 32px; }
.info-strip > div { padding: 22px 18px; text-align: center; display: grid; justify-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.info-strip > div + div { border-left: 1px solid #D5DFFB; }
.info-strip .ico { width: 26px; height: 26px; color: var(--accent); }
.info-strip b { color: var(--fg); font-size: 15px; }
.info-strip a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.tabs { margin-top: 40px; }
.tab-btns { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-btns button { padding: 14px 18px; font-weight: 600; font-size: 16px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-btns button.is-active { color: var(--fg); border-color: var(--accent); }
.tab-pane { padding-top: 22px; max-width: 860px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th { text-align: left; font-weight: 400; color: var(--muted); padding: 11px 16px 11px 0; width: 42%; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs td { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.specs caption { text-align: left; font-weight: 700; font-size: 17px; padding-bottom: 8px; }
.prose { max-width: 72ch; font-size: 15.5px; line-height: 1.65; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 24px; font-weight: 800; margin-top: 30px; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); }

/* ---------- Cart & checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ci-prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ci-prod img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--plate); flex: none; }
.ci-prod a:hover { color: var(--accent); }
.ci-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; color: var(--muted); }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.ci-del { color: var(--muted); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.ci-del:hover { color: var(--sale); background: #FDECEC; }
.cart-total { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.cart-total .t { font-size: 18px; }
.cart-total .t b { color: var(--sale); font-size: 26px; margin-left: 10px; }
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guarantee { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.guarantee .perk-ico { width: 42px; height: 42px; }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
.co-block + .co-block { margin-top: 30px; }
.co-block h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.fields { display: grid; gap: 12px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.input, .textarea {
  width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; background: var(--bg); font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-error { border-color: var(--sale); }
.err-text { color: var(--sale); font-size: 12.5px; }
.radios { display: grid; gap: 10px; max-width: 620px; }
.radio { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio:hover { border-color: #BFCBEF; }
.radio input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.radio b { display: block; font-weight: 600; }
.radio span { font-size: 13px; color: var(--muted); }
.radio.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.summary { border-radius: var(--r-xl); box-shadow: 0 18px 50px -24px rgba(15, 16, 21, .3); border: 1px solid var(--line); padding: 26px; position: sticky; top: 150px; display: grid; gap: 16px; }
.summary h2 { font-size: 22px; font-weight: 800; }
.sum-item { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.sum-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--plate); flex: none; }
.sum-item .t { flex: 1; min-width: 0; }
.sum-item b { color: var(--accent); white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; }
.sum-row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 14px; }
.sum-row.total b { color: var(--sale); }
.legal-note { font-size: 12px; color: var(--muted); }
.form-error { background: #FDECEC; color: #8F1D21; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.45; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
button[disabled] { opacity: .65; cursor: progress; }
.legal-note a { color: var(--accent); }
.done { text-align: center; max-width: 560px; margin: 0 auto; padding: 60px 0 20px; }
.done .check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 20px; }
.done .check .ico { width: 40px; height: 40px; stroke-width: 2.4; }
.done h1 { font-size: 30px; font-weight: 800; }
.done p { color: var(--muted); margin-top: 10px; }
.done .btns { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Modal, toast, chat ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: var(--shade); display: grid; place-items: center; padding: 16px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg); border-radius: 26px; padding: 30px 28px 26px; animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(14px); opacity: .5; } }
.modal h2 { font-size: 24px; font-weight: 800; padding-right: 36px; }
.modal .lead { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.modal-x { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.modal form { display: grid; gap: 14px; margin-top: 20px; }
.modal-prod { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 16px; padding: 12px; }
.modal-prod img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--plate); flex: none; }
.modal-prod .t { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; }
.modal-prod .p { display: flex; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--muted); }
.modal-prod .p b { color: var(--accent); font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 110; background: var(--ink); color: var(--on-ink); padding: 14px 18px; border-radius: 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); font-size: 14px; max-width: calc(100% - 32px); animation: rise .25s ease; }
.toast a { color: #8CDBF9; font-weight: 600; white-space: nowrap; }
.chat { position: fixed; right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--violet)); color: var(--white); display: grid; place-items: center; box-shadow: 0 14px 30px -10px var(--accent); position: relative; }
.chat-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.25); opacity: 0; } }
.chat-fab .ico { width: 28px; height: 28px; }
.chat-hint { background: var(--bg); border-radius: 16px 16px 4px 16px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .35); padding: 12px 16px; font-size: 14px; max-width: 240px; display: flex; gap: 10px; align-items: flex-start; }
.chat-hint button { color: var(--muted); font-size: 18px; line-height: 1; }
.chat-menu { background: var(--bg); border-radius: 20px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .4); padding: 10px; display: grid; gap: 4px; min-width: 240px; }
.chat-menu .cm-head { padding: 8px 10px 10px; font-size: 13px; color: var(--muted); }
.chat-menu .cm-head b { display: block; color: var(--fg); font-size: 15px; }
.chat-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.chat-menu a:hover { background: var(--surface); }
.chat-menu .cm-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--white); flex: none; }
.chat-menu .cm-ico svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Service pages ---------- */
.band { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 54px); color: var(--white); position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, var(--violet), transparent 60%), radial-gradient(80% 120% at 0% 100%, #1B3FB8, transparent 60%), var(--ink); }
.band h1 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 800; letter-spacing: -0.03em; max-width: 16ch; }
.band p { font-size: clamp(15px, 1.4vw, 18px); opacity: .88; margin-top: 14px; max-width: 46ch; }
.band .band-btns { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.band .btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.band .btn-outline:hover { border-color: var(--white); color: var(--white); }
.band-list { display: flex; gap: 10px 22px; margin-top: 22px; flex-wrap: wrap; font-size: 14px; opacity: .92; }
.band-list span::before { content: "✓"; margin-right: 8px; color: #8CDBF9; font-weight: 700; }
.band-art { position: absolute; right: clamp(-40px, -2vw, 0px); bottom: -20px; width: min(42%, 440px); z-index: -1; }
.band-art img { border-radius: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-radius: var(--r-lg); background: var(--surface); padding: 22px; }
.step .n { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--white); font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 17px; font-weight: 700; margin-top: 16px; }
.step p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); max-width: 72ch; }
.faq-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.faq-aside { border-radius: var(--r-lg); background: var(--surface); padding: 24px; }
.faq-aside h2 { font-size: 26px; font-weight: 800; }
.faq-aside p { color: var(--muted); margin-top: 8px; }
.faq-aside .big { font-size: 22px; font-weight: 700; display: block; margin-top: 12px; }
.cards3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ccard { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 22px; display: grid; gap: 14px; align-content: start; }
.ccard h3 { font-size: 20px; font-weight: 800; }
.ccard dl { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.ccard dt { color: var(--muted); font-size: 12.5px; }
.ccard dd { margin: 0; font-weight: 700; font-size: 18px; }
.ccard.is-accent { background: var(--accent-soft); border-color: transparent; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { border-radius: var(--r-lg); background: var(--surface); padding: 22px; }
.fact b { display: block; font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.fact span { color: var(--muted); font-size: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 26px; }
.panel h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.panel h3 { font-size: 17px; font-weight: 700; margin-top: 18px; }
.panel ul { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; }
.map-card { border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); padding: 26px; display: grid; gap: 10px; }
.map-card .big { font-size: 22px; font-weight: 700; }

/* Trade-in wizard */
.ti { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ti-card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.stepper .st { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.stepper .st i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.stepper .st.is-on { color: var(--fg); }
.stepper .st.is-on i { background: var(--accent); border-color: var(--accent); color: var(--white); }
.stepper .st.is-done i { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.stepper .line { flex: 1; min-width: 20px; height: 1.5px; background: var(--line); }
.ti h2 { font-size: 22px; font-weight: 800; }
.ti .hint { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ti-group { margin-top: 22px; }
.ti-group > b { display: block; font-size: 15px; margin-bottom: 10px; }
.ti-group > small { display: block; color: var(--muted); margin: -6px 0 10px; font-size: 13px; }
.ti-msg { margin-top: 18px; background: var(--surface); border-left: 3px solid var(--sky-deep); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.6; }
.ti-send { display: flex; gap: 10px; flex-wrap: wrap; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.models .optchip { border-radius: 14px; text-align: left; }
.ti-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }
.ti-side { border-radius: var(--r-xl); background: var(--ink); color: var(--on-ink); padding: 26px; position: sticky; top: 150px; display: grid; gap: 12px; }
.ti-side .ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; background: radial-gradient(80% 80% at 50% 40%, #2A2F45, var(--ink-2)); display: grid; place-items: center; color: var(--on-ink-muted); }
.ti-side .ph svg { width: 70px; height: 70px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.ti-side h3 { font-size: 20px; font-weight: 800; }
.ti-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.ti-side dt { color: var(--on-ink-muted); }
.ti-side dd { margin: 0; text-align: right; }
.ti-side .note { font-size: 13px; color: var(--on-ink-muted); border-top: 1px solid var(--ink-line); padding-top: 12px; }

/* Reviews */
.rv-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rv-link { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color .15s; }
.rv-link:hover { border-color: var(--accent); }
.rv-link b { font-size: 18px; }
.rv-link span { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.stars { display: flex; gap: 6px; }
.stars button { font-size: 30px; color: #D3D6DE; line-height: 1; }
.stars button.is-on { color: #FFB020; }

/* News */
.news-list { display: grid; gap: 18px; }
.news-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; border-radius: var(--r-lg); padding: 14px; border: 1px solid var(--line); transition: border-color .15s; }
.news-item:hover { border-color: var(--accent); }
.news-item img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--plate); width: 100%; }
.news-item time { font-size: 13px; color: var(--muted); }
.news-item h2 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.news-item p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.article-cover { border-radius: var(--r-xl); overflow: hidden; background: var(--plate); max-width: 860px; aspect-ratio: 16 / 7; margin-bottom: 26px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid.g5 { grid-template-columns: repeat(4, 1fr); }
  .prod { grid-template-columns: minmax(0, 1fr) 380px; }
  .socials { display: none; }
  .tb-nav a:nth-child(n+6) { display: none; }
}
@media (max-width: 1024px) {
  .tb-nav, .tb-hours { display: none; }
  .hero-track { grid-auto-columns: calc((100% - 40px) / 3); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; border: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side h3, .side .side-group { display: none; }
  .side a { white-space: nowrap; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .side a.is-active { border-color: var(--accent); }
  .prod { grid-template-columns: minmax(0, 1fr); }
  .buy, .summary, .ti-side { position: static; }
  .checkout, .ti, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .info-strip { grid-template-columns: repeat(3, 1fr); }
  .info-strip > div:nth-child(4) { border-left: 0; }
  .info-strip > div:nth-child(n+4) { border-top: 1px solid #D5DFFB; }
  .cards3, .facts, .steps { grid-template-columns: repeat(2, 1fr); }
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .tradein-txt { display: none; }
}
@media (max-width: 760px) {
  .d-only { display: none !important; }
  .topbar { font-size: 12px; }
  .topbar .wrap { gap: 8px; }
  .tb-addr { gap: 5px; letter-spacing: -0.01em; }
  .tb-addr { flex: 0 1 auto; }
  .tb-addr .full { display: none; }
  .tb-addr .short { display: inline; }
  .tb-addr .ico { width: 13px; height: 13px; }
  .tb-call { display: none; }
  .topbar .tb-phone { font-size: 12.5px; font-weight: 600; }
  .m-only { display: grid; }
  .mainbar .wrap { flex-wrap: wrap; gap: 6px 4px; min-height: 0; padding-block: 10px; }
  .logo { margin-right: auto; }
  .logo { gap: 9px; }
  .logo-star { width: 40px; height: 40px; }
  .logo-word { font-size: 25px; }
  .logo-sub { font-size: 10.5px; margin-top: 3px; }
  .search { order: 5; flex-basis: 100%; margin-top: 6px; }
  .search input { height: 42px; }
  .search-go { top: 4px; }
  .cart-txt { display: none; }
  .btn-tradein { display: none; }
  .catbar { display: none; }
  .hero { padding-top: 16px; }
  .hero-track { grid-auto-columns: 80%; gap: 12px; }
  .hcard { padding: 22px; border-radius: 24px; }
  .car-btn { display: none; }
  .perks { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .tile.t-wide { grid-column: span 2; }
  .tile .tile-name { font-size: 14px; padding: 6px 12px; }
  .tile.t-big .tile-name { font-size: 18px; }
  .grid, .grid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pc-price b { font-size: 18px; }
  .pc-actions { gap: 4px; }
  .pc-actions .btn { width: 100%; }
  .pc-actions .btn-text { width: 100%; text-align: center; }
  .services { grid-template-columns: 1fr; }
  .svc { min-height: 220px; padding: 24px; }
  .svc.s-blue .svc-num { font-size: 170px; }
  .articles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acard { min-height: 180px; padding: 16px; }
  .acard h3 { font-size: 15px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .thumbs { order: 2; flex-direction: row; overflow-x: auto; }
  .thumbs button { width: 64px; height: 64px; flex: none; }
  .buy { padding: 18px; border-radius: 22px; }
  .price-row b { font-size: 30px; }
  .info-strip { grid-template-columns: 1fr 1fr; }
  .info-strip > div { border-left: 0 !important; border-top: 1px solid #D5DFFB; }
  .info-strip > div:first-child, .info-strip > div:nth-child(2) { border-top: 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td.c-prod { grid-column: 1 / -1; }
  .cart-table td.c-del { position: absolute; top: 14px; right: 0; width: auto; }
  .cart-table tr { position: relative; }
  .cart-total { justify-content: space-between; }
  .cart-total .btn { width: 100%; }
  .guarantees { grid-template-columns: 1fr; }
  .cards3, .facts, .steps, .two, .rv-links { grid-template-columns: minmax(0, 1fr); }
  .news-item { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .band-art { display: none; }
  .ti-card { padding: 20px; }
  .stepper .st span { display: none; }
  .modal { padding: 26px 20px 22px; border-radius: 22px; }
  .chat-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
