/* ==========================================================================
   Камский Автомобильный Центр — kamac.ru
   Чистый CSS, без внешних зависимостей (шрифты локальные — 152-ФЗ)
   ========================================================================== */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-cyr.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-lat.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-cyr.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-lat.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #2453c6;
  --blue-600: #1b43a6;
  --blue-800: #132f78;
  --blue-50: #eef3ff;
  --blue-100: #dde7ff;
  --red: #e3202f;
  --red-600: #c3111e;
  --ink: #0d1220;
  --ink-2: #283044;
  --muted: #5d6880;
  --line: #e3e8f1;
  --bg: #f5f7fb;
  --card: #ffffff;
  --dark: #090d17;
  --dark-2: #111828;
  --dark-line: rgba(255,255,255,.1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13,18,32,.06), 0 2px 8px -2px rgba(13,18,32,.06);
  --shadow: 0 2px 4px rgba(13,18,32,.04), 0 18px 40px -18px rgba(13,18,32,.22);
  --shadow-lg: 0 30px 80px -30px rgba(13,18,32,.45);

  --header-h: 72px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn { --bg: var(--blue); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.4em; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; position: relative; isolation: isolate; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--red { --bg: var(--red); }
.btn--red:hover { --bg: var(--red-600); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { --bg: rgba(255,255,255,.1); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn--light:hover { --bg: rgba(255,255,255,.18); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--sm { min-height: 42px; font-size: 15px; padding: 0 1.1em; }
.btn--block { width: 100%; }
.btn .pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ee07a; box-shadow: 0 0 0 0 rgba(62,224,122,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,224,122,.6); } 70% { box-shadow: 0 0 0 10px rgba(62,224,122,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,122,0); } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 10px rgba(36,83,198,.25)); transition: transform .4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.04); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.logo__name b { color: var(--red); font-weight: 700; }
.logo__sub { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-top: 4px; }
.logo--light { color: #fff; }
.logo--light .logo__sub { color: rgba(255,255,255,.6); }

/* ---------- topbar ---------- */
.topbar { background: var(--dark); color: rgba(255,255,255,.72); font-size: 13.5px; }
.topbar .container { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar a { color: rgba(255,255,255,.88); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; opacity: .6; }
.topbar__spacer { flex: 1; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(13,18,32,.25); }
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; flex: 1; }
.nav__item { position: static; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: 15.5px; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--blue-50); color: var(--blue); }
.nav__link.is-active { color: var(--blue); }
.nav__link.is-active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-left: 2px; }
.nav__link.is-active[aria-haspopup]::after { display: none; }
.nav__link.is-active[aria-haspopup] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 999px 999px 4px 4px; }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, color .2s; }
.search-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.search-btn svg { width: 18px; height: 18px; }
.search-btn kbd { font: 600 12px/1 var(--font); padding: 4px 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.header__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; text-decoration: none; color: var(--ink); }
.header__phone strong { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.header__phone span { font-size: 12px; color: var(--muted); font-weight: 600; }
.header__phone:hover strong { color: var(--blue); }
.burger { display: none; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* ---------- mega menu ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 10px var(--gutter) 0; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; pointer-events: none; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega__panel { max-width: var(--container); margin: 0 auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); display: grid; grid-template-columns: 1fr 300px; overflow: hidden; }
.mega__main { padding: 28px; }
.mega__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mega__title { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--ink); margin: 0; }
.mega__all { font-weight: 700; font-size: 14.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mega__all svg { width: 16px; height: 16px; transition: transform .2s; }
.mega__all:hover svg { transform: translateX(3px); }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mega__link { display: flex; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink-2); transition: background .18s; }
.mega__link:hover { background: var(--bg); color: var(--ink-2); }
.mega__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.mega__icon svg { width: 20px; height: 20px; }
.mega__link:hover .mega__icon { background: var(--blue); color: #fff; }
.mega__link strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; margin-bottom: 2px; }
.mega__link small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.mega__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 8px 68px; }
.mega__chips a { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--ink-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.mega__chips a:hover { background: var(--blue); color: #fff; box-shadow: none; }
.mega__aside { position: relative; background: var(--dark); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; overflow: hidden; isolation: isolate; }
.mega__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; z-index: -1; transition: transform 1.2s var(--ease); }
.mega__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,13,23,.1) 0%, rgba(9,13,23,.92) 75%); z-index: -1; }
.nav__item.is-open .mega__aside img { transform: scale(1.06); }
.mega__aside p { color: rgba(255,255,255,.75); font-size: 14px; margin: 0 0 14px; line-height: 1.5; }
.mega__aside strong { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.25; margin-bottom: 8px; display: block; }

/* ---------- mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(9,13,23,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: var(--header-h); border-bottom: 1px solid var(--line); flex: none; }
.drawer__close { width: 46px; height: 46px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; }
.drawer__close svg { width: 22px; height: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.drawer__search { width: 100%; justify-content: flex-start; height: 50px; margin-bottom: 14px; }
.mnav { list-style: none; margin: 0; padding: 0; }
.mnav > li { border-bottom: 1px solid var(--line); }
.mnav details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer; }
.mnav details > summary::-webkit-details-marker { display: none; }
.mnav summary .chev { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.mnav summary .chev svg { width: 16px; height: 16px; }
.mnav details[open] summary .chev { transform: rotate(180deg); background: var(--blue); color: #fff; }
.mnav__plain { display: block; padding: 16px 4px; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mnav__sub { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.mnav__sub a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.mnav__sub a:hover, .mnav__sub a.is-active { background: var(--blue-50); color: var(--blue); }
.mnav__sub a.is-all { color: var(--blue); }
.mnav__sub a svg { width: 18px; height: 18px; flex: none; }
.search-btn.drawer__search { width: 100%; padding: 0 16px; justify-content: flex-start; }
.mnav__sub .mnav__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px 12px; }
.mnav__chips a { padding: 4px 10px; font-size: 13px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: none; background: var(--bg); }
.drawer__foot small { color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- mobile action bar ---------- */
.actionbar { display: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(1200px 600px at 0% 0%, rgba(36,83,198,.55), transparent 60%),
  linear-gradient(90deg, rgba(9,13,23,.97) 0%, rgba(9,13,23,.86) 38%, rgba(9,13,23,.35) 75%, rgba(9,13,23,.25) 100%),
  linear-gradient(0deg, rgba(9,13,23,.9) 0%, transparent 35%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000 0%, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); }
.hero__inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); min-height: min(760px, calc(100svh - var(--header-h) - 38px)); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow { color: #8fb0ff; }
.hero h1 { color: #fff; font-size: clamp(34px, 6vw, 76px); line-height: 1.02; max-width: 15ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff4d5a, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.78); max-width: 56ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__phones { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; font-size: 15px; color: rgba(255,255,255,.6); }
.hero__phones a { color: #fff; font-weight: 700; text-decoration: none; }
.hero__phones a:hover { color: #8fb0ff; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 80px); background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: var(--r-lg); overflow: hidden; backdrop-filter: blur(10px); }
.stat { padding: 22px 24px; background: rgba(9,13,23,.55); }
.stat__num { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 600; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat__num small { font-size: .5em; color: rgba(255,255,255,.6); margin-left: 4px; }
.stat__label { font-size: 14px; color: rgba(255,255,255,.62); margin-top: 8px; line-height: 1.4; }

/* marquee */
.marquee { background: var(--blue); color: #fff; overflow: hidden; white-space: nowrap; position: relative; }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; padding: 16px 0; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .02em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee__track span::after { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); display: inline-block; margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--white { background: #fff; }
.section--dark { background: var(--dark); color: rgba(255,255,255,.75); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section__head h2 { font-size: clamp(28px, 4vw, 48px); margin: 0; max-width: 20ch; }
.section__head p { max-width: 48ch; margin: 0; color: var(--muted); }
.section--dark .section__head p { color: rgba(255,255,255,.62); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 16px; }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; isolation: isolate; grid-column: span 4; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,13,23,0) 25%, rgba(9,13,23,.88) 100%); }
.tile--xl { grid-column: span 8; grid-row: span 2; padding: 36px; }
.tile--wide { grid-column: span 6; }
.tile__tag { position: absolute; top: 20px; left: 20px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.tile h3 { color: #fff; font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.tile--xl h3 { font-size: clamp(26px, 3vw, 40px); max-width: 16ch; }
.tile p { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.tile__arrow { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.tile__arrow svg { width: 18px; height: 18px; }
.tile:hover .tile__arrow { transform: rotate(-45deg); background: var(--red); color: #fff; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.feature__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* about split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.split__badge { position: absolute; right: -12px; bottom: -22px; background: var(--red); color: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); }
.split__badge b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 600; }
.split__badge span { font-size: 13.5px; opacity: .9; }
.split h2 { font-size: clamp(28px, 3.6vw, 44px); }
.split p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 600; }
.ticks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 1px; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232453c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--r-lg); background: var(--dark-2); border: 1px solid var(--dark-line); counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 14px; font-weight: 600; color: #8fb0ff; display: block; margin-bottom: 26px; }
.steps li::after { content: ""; position: absolute; top: 34px; left: 64px; right: 22px; height: 1px; background: linear-gradient(90deg, rgba(143,176,255,.5), transparent); }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.55; }

/* brands */
.brands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.brand { display: grid; place-items: center; text-align: center; height: 96px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--ink); text-decoration: none; transition: all .25s var(--ease); }
.brand small { display: block; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.brand:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-3px); }
.brand:hover small { color: rgba(255,255,255,.75); }

/* CTA band */
.cta { position: relative; border-radius: calc(var(--r-lg) + 8px); overflow: hidden; background: var(--blue); color: #fff; padding: clamp(32px, 5vw, 64px); isolation: isolate; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(227,32,47,.55), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(9,13,23,.6), transparent 60%); }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; z-index: -1; opacity: .12; background: url("/assets/img/mark-white.svg") center/contain no-repeat; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 48ch; }
.cta__actions { display: grid; gap: 12px; }
.cta__note { font-size: 13.5px; color: rgba(255,255,255,.65); text-align: center; }

/* ---------- inner page ---------- */
.page-hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; isolation: isolate; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 400px at 0% 0%, rgba(36,83,198,.6), transparent 60%), linear-gradient(90deg, rgba(9,13,23,.96) 30%, rgba(9,13,23,.6) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 54px); max-width: 22ch; margin: 18px 0 14px; }
.page-hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255,255,255,.75); max-width: 64ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.55); }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .45; }

.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; display: none; }
.subnav__scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter); scrollbar-width: none; }
.subnav__scroll::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.subnav a.is-active { background: var(--ink); color: #fff; box-shadow: none; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-nav { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 10px; }
.side-nav__title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px 8px; display: block; text-decoration: none; }
.side-nav__title:hover { color: var(--blue); }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; font-weight: 650; font-size: 15px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav a.is-active { background: var(--blue); color: #fff; }
.side-nav a.is-parent { color: var(--blue); }
.side-nav ul ul { margin: 2px 0 6px 12px; padding-left: 10px; border-left: 2px solid var(--line); }
.side-nav ul ul a { font-size: 14px; padding: 7px 10px; font-weight: 600; }
.call-card { background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; isolation: isolate; }
.call-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(300px 200px at 100% 0%, rgba(36,83,198,.7), transparent 70%); }
.call-card__label { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 600; }
.call-card__phone { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; text-decoration: none; margin: 4px 0 2px; letter-spacing: -.01em; }
.call-card__phone:hover { color: #8fb0ff; }
.call-card small { color: rgba(255,255,255,.55); font-size: 13px; display: block; margin-bottom: 16px; }
.call-card .btn { width: 100%; }
.call-card .btn + .btn { margin-top: 8px; }
.call-card__list { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--dark-line); display: grid; gap: 6px; font-size: 14px; }
.call-card__list a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; }
.call-card__list a:hover { color: #fff; text-decoration: underline; }
.call-card__list span { color: rgba(255,255,255,.5); }

/* ---------- prose (content) ---------- */
.prose { font-size: 17px; color: var(--ink-2); min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: clamp(18px, 1.8vw, 21px); margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul:not([class]) { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul:not([class]) > li { position: relative; padding-left: 26px; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); line-height: 1.55; font-weight: 500; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.callout { display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--r); background: var(--blue-50); border: 1px solid var(--blue-100); margin: 1.6em 0; }
.callout svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 2px; }
.callout p { margin: 0; color: var(--ink-2); }
.callout--red { background: #fff1f2; border-color: #ffd5d9; }
.callout--red svg { color: var(--red); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 1.6em 0; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink-2); }
.card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__body strong { font-size: 17px; color: var(--ink); line-height: 1.3; margin-bottom: 6px; display: block; }
.card__body span { font-size: 14.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.card__more { margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__more svg { transform: translateX(4px); }
.cards--noimg .card__body { padding: 22px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.6em 0; }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.info b { display: block; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.info span { font-size: 14.5px; color: var(--muted); line-height: 1.45; display: block; }

.checklist { list-style: none; padding: 0; margin: 1.2em 0 1.6em; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.checklist li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; margin-top: 1px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 1.6em; list-style: none; padding: 0; }
.tags li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 650; color: var(--ink-2); }

.timeline { list-style: none; padding: 0; margin: 1.6em 0; counter-reset: tl; display: grid; gap: 0; }
.timeline > li { position: relative; padding: 0 0 26px 58px; counter-increment: tl; }
.timeline > li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.timeline > li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { margin: 6px 0 6px !important; font-size: 18px !important; }
.timeline ul { margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 1.4em 0 2em; border-radius: var(--r); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; position: sticky; top: 0; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: var(--blue-50); }
.table-wrap td.num, .table-wrap th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap td.price { font-weight: 800; color: var(--ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-wrap td.muted { color: var(--muted); font-size: 14px; white-space: nowrap; }
.table-wrap caption { caption-side: top; text-align: left; padding: 16px; font-weight: 700; color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.6em 0 2em; }
.gallery a { display: block; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(9,13,23,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/34px no-repeat; opacity: 0; transition: opacity .3s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a:hover::after { opacity: 1; }
.gallery--lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery--contain a { background: #fff; border: 1px solid var(--line); }
.gallery--contain img { object-fit: contain; }

details.more { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
details.more > summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); transition: transform .25s var(--ease); }
details.more[open] > summary::after { transform: rotate(45deg); }
details.more > div { padding: 0 22px 20px; }

.page-cta { margin-top: 3em; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; isolation: isolate; }
.page-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 200px at 100% 100%, rgba(227,32,47,.45), transparent 70%), radial-gradient(400px 200px at 0% 0%, rgba(36,83,198,.55), transparent 70%); }
.page-cta h3 { color: #fff; margin: 0 0 4px; font-size: 21px; }
.page-cta p { color: rgba(255,255,255,.7) !important; margin: 0; font-size: 15px; }
.page-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* contacts */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 2em; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.contact-card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; font-family: var(--font); font-weight: 800; }
.contact-card a.big, .contact-card .big { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.01em; line-height: 1.25; }
.contact-card a.big:hover { color: var(--blue); }
.contact-card p { margin: 0; color: var(--muted); font-size: 15px; }
.contact-card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.contact-card--accent { background: var(--blue); border-color: var(--blue); color: #fff; }
.contact-card--accent h3, .contact-card--accent p { color: rgba(255,255,255,.75); }
.contact-card--accent a.big { color: #fff; }
.contact-card--accent a.big:hover { color: #fff; text-decoration: underline; }
.contact-card--accent .contact-card__icon { background: rgba(255,255,255,.15); color: #fff; }
.contact-card--wide { grid-column: 1 / -1; }
.phone-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.phone-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.phone-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.phone-list a { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.phone-list a:hover { color: var(--blue); }
.phone-list span { color: var(--muted); font-size: 14px; }

/* ---------- footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: clamp(56px, 7vw, 88px) 0 28px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.footer__about p { margin: 18px 0 0; font-size: 14.5px; line-height: 1.6; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-weight: 800; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__contacts li { display: grid; gap: 2px; }
.footer__contacts strong { color: #fff; font-family: var(--display); font-weight: 600; font-size: 17px; }
.footer__contacts strong a { color: #fff; }
.footer__contacts span { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,.45); }
.footer__bottom a { color: rgba(255,255,255,.65); }

/* ---------- search palette ---------- */
.palette { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette.is-open { display: flex; }
.palette__backdrop { position: absolute; inset: 0; background: rgba(9,13,23,.6); backdrop-filter: blur(6px); animation: fade .2s; }
.palette__box { position: relative; width: min(640px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s var(--ease); display: flex; flex-direction: column; max-height: 76vh; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.palette__field svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.palette__field input { flex: 1; height: 62px; border: 0; outline: 0; font: 500 18px var(--font); color: var(--ink); background: transparent; min-width: 0; }
.palette__field kbd { font: 600 12px var(--font); padding: 4px 7px; border-radius: 6px; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.palette__list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.palette__group { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 12px 6px; }
.palette__item a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.palette__item a .pi { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--blue); flex: none; }
.palette__item a .pi svg { width: 18px; height: 18px; }
.palette__item a strong { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.palette__item a small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.palette__item a mark { background: #fff1b8; color: inherit; border-radius: 3px; }
.palette__item.is-active a { background: var(--blue); color: #fff; }
.palette__item.is-active a strong, .palette__item.is-active a small { color: #fff; }
.palette__item.is-active a mark { background: rgba(255,255,255,.28); color: #fff; }
.palette__item.is-active a .pi { background: rgba(255,255,255,.18); color: #fff; }
.palette__empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.palette__foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); flex: none; background: var(--bg); }
.palette__foot kbd { font: 600 11px var(--font); padding: 2px 6px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(5,8,14,.94); display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox.is-open { display: flex; animation: fade .2s; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); user-select: none; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; font-weight: 600; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 600; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.notfound { text-align: center; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.notfound__code { font-family: var(--display); font-size: clamp(90px, 18vw, 200px); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.notfound__code span { color: var(--red); }
.notfound p { color: var(--muted); max-width: 48ch; margin: 16px auto 28px; }
.notfound .hero__cta { justify-content: center; }

/* reveal animation (только при включённом JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .header__phone span { display: none; }
  .search-btn kbd, .search-btn .search-btn__text { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .topbar { display: none; }
  .nav, .header__phone { display: none; }
  .burger { display: inline-flex; }
  .search-btn { display: inline-flex; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr; }
  .sidebar .side-nav { display: none; }
  .subnav { display: block; }
  .bento { grid-auto-rows: 230px; }
  .tile, .tile--wide { grid-column: span 6; }
  .tile--xl { grid-column: span 12; grid-row: span 2; }
  .features { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__badge { right: 12px; }
  .cta { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .logo { flex: 0 1 auto; min-width: 0; gap: 10px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__name { font-size: 13px; line-height: 1.2; }
  .logo__sub { display: none; }
  .header__inner { gap: 12px; }
  .header__actions { gap: 8px; flex: none; }
  .header .btn--red { display: none; }
  .actionbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(13,18,32,.3); }
  .actionbar a, .actionbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 56px; border-radius: 16px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink); background: var(--bg); }
  .actionbar svg { width: 21px; height: 21px; }
  .actionbar .is-call { background: var(--red); color: #fff; flex-direction: row; gap: 10px; font-size: 15px; }
  .hero__inner { min-height: 0; }
  .hero::before { background: radial-gradient(600px 400px at 0% 0%, rgba(36,83,198,.55), transparent 60%), linear-gradient(180deg, rgba(9,13,23,.75) 0%, rgba(9,13,23,.92) 60%, rgba(9,13,23,.98) 100%); }
  .hero__cta .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--wide, .tile--xl { grid-column: auto; grid-row: auto; min-height: 220px; padding: 22px; }
  .tile--xl { min-height: 380px; }
  .tile--xl h3 { font-size: 26px; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 12px; }
  .steps li::after { display: none; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .brand { height: 80px; font-size: 17px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__contacts-col { grid-column: 1 / -1; }
  .page-cta { flex-direction: column; align-items: stretch; }
  .page-cta__btns .btn { flex: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery--lg { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .palette { padding-top: 8px; }
  .palette__box { max-height: 88vh; }
  .palette__foot { display: none; }
  .toast { bottom: 100px; }
  .section__head { margin-bottom: 28px; }
  .split__badge { right: 12px; bottom: -18px; padding: 14px 16px; }
  .split__badge b { font-size: 26px; }
}

@media (max-width: 380px) {
  .logo__sub { display: none; }
  .hero__stats { grid-template-columns: 1fr; }
}

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

@media print {
  .topbar, .header, .actionbar, .footer, .sidebar, .subnav, .page-cta, .drawer, .palette { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
  body { background: #fff; padding: 0; }
}
