/* =========================================================
   CoffeeOne — прототип
   Палітра: біло-сіра, преміум, великі м'які картки
   ========================================================= */

:root {
  --bg: #F3F3F1;
  --surface: #FFFFFF;
  --surface-2: #F8F8F6;
  --surface-3: #EFEFEC;
  --line: #E6E6E2;
  --line-strong: #D9D9D4;

  --ink: #121212;
  --ink-2: #3A3A3A;
  --muted: #74746F;
  --muted-2: #A3A39E;

  --dark: #151515;
  --dark-2: #1F1F1F;
  --dark-line: #2E2E2E;

  --accent: #A26A3C;        /* кавовий акцент — точково */
  --accent-soft: #F4ECE4;
  --green: #2F7A4F;
  --green-soft: #E8F3EC;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.02);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 30px 60px -25px rgba(0,0,0,.25);

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;

  --container: 1840px;
  --gutter: clamp(16px, 2.5vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Типографіка ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--pill {
  background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px 8px 12px; border-radius: 999px; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow--light { color: #9A9A95; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 600; margin-top: 14px; }
.h2--light { color: #fff; }
.muted-ink { color: var(--muted-2); }

.muted-light { color: #7C7C78; }
.lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 520px; }

.link-arrow { font-weight: 500; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); }
.btn--dark:hover { background: #000; box-shadow: 0 12px 28px -10px rgba(0,0,0,.55); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: rgba(0,0,0,.05); }
.btn--light { background: var(--surface-3); color: var(--ink); }
.btn--light:hover { background: var(--line); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #EDEDED; }
/* Фірмова кнопка ПриватБанку (оплата частинами) */
.btn--privat { background: #5A9A1C; color: #fff; box-shadow: 0 8px 20px -10px rgba(90,154,28,.7); }
.btn--privat:hover { background: #4C8616; }
.btn .arr { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .arr, .btn:hover .arr-sm { transform: translateX(3px); }
.arr-sm { display: inline-block; transition: transform .2s; }

.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn__badge {
  position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--dark); color: #fff; font-size: 10px; font-weight: 600; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface);
}
.icon-btn__badge[hidden] { display: none; }
.icon-btn__badge.is-pop { animation: badgePop .45s cubic-bezier(.2,.8,.2,1.4); }
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.icon-btn[aria-expanded="true"] { background: var(--surface-3); }

/* ---------- Кошик: шторка ---------- */
.cart { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s .4s; }
.cart.is-open { visibility: visible; transition-delay: 0s; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(18,18,18,.3); opacity: 0; transition: opacity .3s; }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 26px; font-weight: 600; }
.cart__head h3 span { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.cart__foot { padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cart__foot:empty { display: none; }
.cart__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.cart__row--save span:last-child { color: var(--green); font-weight: 500; }
.cart__row--total { color: var(--ink); align-items: baseline; margin: 6px 0 8px; font-size: 16px; font-weight: 500; }
.cart__row--total b { font-family: var(--font-head); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.cart__empty { text-align: center; padding: 64px 12px; display: flex; flex-direction: column; align-items: center; }
.cart__empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 20px; }
.cart__empty-icon svg { width: 30px; height: 30px; color: var(--muted); }
.cart__empty b { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cart__empty p { color: var(--muted); font-size: 14.5px; margin: 8px 0 24px; max-width: 300px; }
body.cart-open { overflow: hidden; }

/* Рядок товару в кошику */
.cline { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cline:last-child { border-bottom: 0; }
.cline.is-new { animation: clineIn .6s cubic-bezier(.2,.8,.2,1); }
@keyframes clineIn { from { background: var(--green-soft); } to { background: transparent; } }
.cline__img { width: 84px; height: 84px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.cline__img img { max-width: 74%; max-height: 74%; object-fit: contain; }
.cline__name { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.cline__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cline__meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cline__row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cline__qty { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.cline__remove { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.cline__remove:hover { background: var(--surface-3); color: var(--ink); }
.cline__remove svg { width: 17px; height: 17px; }
.cline__price { text-align: right; white-space: nowrap; }
.cline__price s { display: block; font-size: 12px; color: var(--muted-2); }
.cline__price b { font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.qty { display: inline-flex; align-items: center; height: 34px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.qty button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { background: var(--surface-3); }
.qty button svg { width: 14px; height: 14px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }

/* ---------- Пошук ---------- */
.search { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .35s; }
.search.is-open { visibility: visible; transition-delay: 0s; }
.search__backdrop { position: absolute; inset: 0; background: rgba(18,18,18,.28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.search.is-open .search__backdrop { opacity: 1; }
.search__panel {
  position: absolute; left: 0; right: 0; top: 0; max-height: 100%; overflow-y: auto;
  background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow-lg);
  padding: 20px 0 36px; transform: translateY(-24px); opacity: 0;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.search.is-open .search__panel { transform: none; opacity: 1; }
.search__panel .container { max-width: 1120px; }
.search__bar {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 22px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search__bar:focus-within { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.search__icon svg { width: 22px; height: 22px; display: block; color: var(--muted); }
.search__bar input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 18px; color: var(--ink);
}
.search__bar input::placeholder { color: var(--muted-2); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__kbd { font-family: var(--font); font-size: 12px; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.search__close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.search__close:hover { background: var(--surface-3); }
.search__close svg { width: 20px; height: 20px; }

.search__body { margin-top: 28px; }
.search__default { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px 40px; }
.search__label { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search__chips button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: border-color .2s, background .2s; }
.search__chips button:hover { border-color: var(--ink); }
.search__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.search__cats a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13px; font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.search__cats a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.search__cats img {
  height: 64px; width: auto; max-width: 90%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.search__wizard {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--r-md); background: var(--dark); color: #fff;
}
.search__wizard small { display: block; color: #9A9A95; font-size: 13px; }
.search__wizard b { font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.search__wizard-go { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .2s; }
.search__wizard:hover .search__wizard-go { transform: translateX(3px); }

.search__results { display: grid; gap: 8px; }
.search__results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.search__results-head span { font-size: 13px; color: var(--muted); }
.search__all { font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.search__all:hover { border-color: var(--ink); }
.search__item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 8px 18px 8px 8px; border-radius: var(--r-md); border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.search__item:hover, .search__item.is-focus { background: var(--surface-2); border-color: var(--line); }
.search__item-img { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.search__item-img img { max-width: 52px; max-height: 52px; object-fit: contain; }
.search__item b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.search__item b mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.search__item small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.search__item-price { font-family: var(--font-head); font-weight: 600; font-size: 17px; white-space: nowrap; text-align: right; }
.search__item-price s { display: block; font-family: var(--font); font-size: 12px; font-weight: 400; color: var(--muted-2); }
.search__empty { text-align: center; padding: 32px 0 12px; }
.search__empty b { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.search__empty p { color: var(--muted); margin: 8px 0 20px; }
body.search-open { overflow: hidden; }
.search [hidden] { display: none !important; }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: var(--surface-3); color: var(--ink-2);
}
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--accent { background: var(--accent-soft); color: var(--accent); }
.tag--light { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); }

.stars { color: #E0A33B; letter-spacing: 2px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.86); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); max-width: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { height: 44px; width: auto; }
.footer .logo__img { height: 52px; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--dark); color: #fff;
  display: grid; place-items: center;
}
.logo__mark svg { width: 20px; height: 20px; }
.logo__text { font-family: var(--font-head); font-size: 21px; font-weight: 500; letter-spacing: -0.03em; }
.logo__text b { font-weight: 700; }

.nav { display: flex; gap: 4px; margin: 0 auto 0 -14px; }
.nav a { padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav__home { display: inline-flex; align-items: center; gap: 6px; }
.nav__home svg { width: 17px; height: 17px; }
.nav a.is-active { background: var(--surface-3); color: var(--ink); font-weight: 500; }
/* Хлібні крихти */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); }
.crumbs [hidden] { display: none; }

/* Роздільник у рядках характеристик */
.sep { display: inline-block; width: 1px; height: .85em; margin: 0 8px; vertical-align: -.08em; background: currentColor; opacity: .28; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header__phone { font-size: 14px; font-weight: 500; margin-right: 10px; color: var(--ink-2); }
.header__cta { margin-left: 8px; }
.header__logo { display: none; }
.header__logo img { height: 34px; width: auto; }

/* Бургер: дві лінії → хрестик */
.burger {
  display: none; width: 44px; height: 44px; border-radius: 14px; margin-left: 4px;
  background: var(--dark); color: #fff; place-items: center; transition: background .2s;
}
.burger__lines { position: relative; width: 18px; height: 12px; }
.burger__lines i {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1);
}
.burger__lines i:first-child { top: 1px; }
.burger__lines i:last-child { top: 9px; }
.burger[aria-expanded="true"] .burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Мобільне меню ---------- */
.mmenu {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 49;
  background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s;
}
.mmenu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mmenu__inner { padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 28px; }
.mmenu.is-open .mmenu__inner > * { animation: stepIn .45s cubic-bezier(.2,.8,.2,1) both; }
.mmenu.is-open .mmenu__inner > *:nth-child(2) { animation-delay: .04s; }
.mmenu.is-open .mmenu__inner > *:nth-child(3) { animation-delay: .08s; }
.mmenu.is-open .mmenu__inner > *:nth-child(4) { animation-delay: .12s; }
.mmenu.is-open .mmenu__inner > *:nth-child(5) { animation-delay: .16s; }

.mmenu__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--dark); color: #fff; border-radius: var(--r-lg); padding: 20px 22px;
}
.mmenu__cta small { display: block; color: #9A9A95; font-size: 13px; }
.mmenu__cta b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.mmenu__cta-arrow { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 18px; }

.mmenu__label { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.mmenu__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mmenu__cats a {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 4px; min-height: 112px; min-width: 0; text-align: center; font-size: clamp(11px, 3.1vw, 12.5px); font-weight: 500; line-height: 1.2;
}
.mmenu__cats span { max-width: 100%; hyphens: manual; }
.mmenu__cats img {
  height: 56px; width: auto; max-width: 90%; object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.mmenu__cats a:active { background: var(--surface-3); }
.mmenu__pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.mmenu__pills a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.mmenu__pills a::after { content: "→"; color: var(--muted-2); font-weight: 400; }
.mmenu__pills a.is-wide { grid-column: span 2; }
.mmenu__pills a:active { background: var(--surface-3); }

.mmenu__who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mmenu__who a {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; line-height: 1.2;
}
.mmenu__who svg { width: 22px; height: 22px; flex: none; }

.mmenu__links { display: grid; border-top: 1px solid var(--line); }
.mmenu__links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.03em;
}
.mmenu__links span { font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

.mmenu__contact { padding: 20px 0 0; border-top: 1px solid var(--line); }
.mmenu__phone { display: block; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.mmenu__contact small { color: var(--muted); font-size: 13px; }
.mmenu__messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.mmenu__messengers .btn { background: var(--dark); color: #fff; }
.mmenu__messengers .btn:active { background: #000; }
.mmenu__messengers svg { width: 18px; height: 18px; }

body.menu-open { overflow: hidden; }
body.menu-open .header { background: var(--surface); border-bottom-color: var(--line); }

/* ---------- 1. Hero ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.hero__panel {
  position: relative; display: flex; flex-direction: column;
  /* hero рівно на висоту екрану під хедером; фото стискається під доступне місце */
  height: calc(100svh - 77px); min-height: 540px; max-height: 1080px;
  padding: 36px 32px 20px;
}
.hero::before { /* концентричні кола як у референсі */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, transparent 0 220px, rgba(0,0,0,.035) 221px, transparent 222px),
    radial-gradient(circle at 50% 38%, transparent 0 360px, rgba(0,0,0,.035) 361px, transparent 362px),
    radial-gradient(circle at 50% 38%, transparent 0 520px, rgba(0,0,0,.03) 521px, transparent 522px),
    radial-gradient(circle at 50% 38%, transparent 0 700px, rgba(0,0,0,.025) 701px, transparent 702px);
}
.hero__grid { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; min-height: 0; }
.hero__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { width: clamp(150px, min(15vw, 26vh), 240px); height: auto; }
.hero__title { font-size: clamp(34px, min(4.4vw, 7.5vh), 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; margin-top: 22px; max-width: 1100px; text-wrap: balance; }
.hero__lead { font-size: clamp(16px, 2.3vh, 19px); color: var(--muted); max-width: 560px; margin-top: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.hero__visual { position: relative; width: 100%; max-width: 1200px; margin-top: 24px; flex: 1; min-height: 140px; display: flex; justify-content: center; }
.hero__glow {
  position: absolute; left: 10%; right: 10%; bottom: 6%; height: 50%;
  background: radial-gradient(ellipse at center, #ECECE8 0%, rgba(236,236,232,0) 70%);
  filter: blur(10px);
}
.hero__visual picture { position: absolute; inset: 0; display: block; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 40px 40px rgba(0,0,0,.18));
  /* анімуємо лише opacity і transform: анімація filter на iOS Safari змушує картинку зникати */
  opacity: 0; transform: translate3d(0, 24px, 0) scale(.97);
  transition: opacity .7s ease-out, transform 1s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.hero__img.is-loaded { opacity: 1; transform: none; }
.hero__glow { opacity: 0; transition: opacity 1.2s .2s; }
.hero__visual:has(.is-loaded) .hero__glow { opacity: 1; }

.float-card {
  position: absolute; background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  padding: 14px 18px; font-size: 14px; text-align: left;
  animation: floatIn .8s .4s cubic-bezier(.2,.8,.2,1) both;
}
.float-card small { display: block; color: var(--muted); font-size: 12px; }
.float-card--a { top: 8%; left: -2%; display: flex; gap: 12px; align-items: center; }
.float-card__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.float-card__icon svg { width: 20px; height: 20px; }
.float-card--b { top: 0; right: -2%; animation-delay: .6s; }
.float-card__price { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin-top: 2px; }
.float-card__price s { color: var(--muted-2); font-size: 13px; font-weight: 400; margin-right: 6px; }
@keyframes floatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.trust {
  list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(6, 1fr); position: relative;
}
.trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 12px; border-left: 1px solid var(--line); }
.trust li:first-child { border-left: 0; }
.trust__icon { flex: none; color: var(--ink); display: grid; place-items: center; }
.trust__icon svg { width: 24px; height: 24px; }
.trust b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.trust small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }

/* ---------- Секції ---------- */
.section { padding: 110px 0 0; }
.section__head { margin-bottom: 44px; }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- 2. Що вам потрібно ---------- */
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need {
  position: relative; overflow: hidden; min-height: 520px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 24px 0; display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.need:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.need__top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 28px; }
.need__go {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 18px; transition: background .2s, color .2s, border-color .2s, transform .3s;
}
.need:hover .need__go { background: var(--dark); color: #fff; border-color: var(--dark); transform: rotate(-45deg); }
.need__title { font-size: 30px; font-weight: 600; }
.need__sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.need__tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.need__tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.need__media {
  position: relative; margin: auto -24px 0; height: 220px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse 60% 55% at 50% 100%, var(--surface-3), transparent 70%);
}
.need__media img {
  height: 92%; width: auto; max-width: 88%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.14));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.need__media img.is-group { height: auto; width: 118%; max-width: none; -webkit-mask-image: none; mask-image: none; margin-bottom: 18px; }
.need:hover .need__media img { transform: scale(1.05) translateY(-4px); }

.need--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.need--dark .need__sub { color: #9A9A95; }
.need--dark .need--dark .need__go { border-color: var(--dark-line); }
.need--dark:hover .need__go { background: #fff; color: var(--ink); border-color: #fff; }
.need--dark .need__tags li { background: var(--dark-2); border-color: var(--dark-line); color: #D6D6D2; }
.need--dark .need__media { background: radial-gradient(ellipse 60% 55% at 50% 100%, rgba(255,255,255,.1), transparent 70%); }
.need--dark .need__media img { filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }

/* ---------- 3. Категорії ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  position: relative; overflow: hidden; min-height: 340px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.cat--wide { grid-column: span 2; }
.cat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat__text { position: relative; z-index: 2; max-width: 260px; }
.cat__text .tag { margin-bottom: 14px; }
.cat h3 { font-size: 26px; font-weight: 600; }
.cat p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.cat__img {
  position: absolute; right: 18px; bottom: 0; height: 52%; width: auto; max-width: 70%;
  object-fit: contain; object-position: bottom right;
  /* м'яко ховаємо краї сусідніх машин з вирізки */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  filter: drop-shadow(0 20px 20px rgba(0,0,0,.12));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.cat--wide .cat__img { height: 82%; right: 60px; }
.cat__img--wide { height: auto; width: 58%; bottom: 36px; right: 24px; }
.cat:hover .cat__img { transform: scale(1.04) translateY(-4px); }
.cat__go {
  position: absolute; left: 28px; bottom: 28px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 18px; transition: background .2s, color .2s, border-color .2s;
}
.cat:hover .cat__go { background: var(--dark); color: #fff; border-color: var(--dark); }

.cat--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.cat--dark p { color: #9A9A95; }
.cat--dark .cat__go { border-color: var(--dark-line); }
.cat--dark:hover .cat__go { background: #fff; color: var(--ink); }
.cat--dark .cat__img { filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }

.subcats { margin-top: 16px; }
.subcats__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 14px; }
.subcats__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.subcat {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.subcat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.subcat__icon { flex: none; width: 32px; display: grid; place-items: center; color: var(--ink); }
.subcat__icon svg { width: 28px; height: 28px; }
.subcat__text { flex: 1; min-width: 0; }
.subcat__text b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.subcat__text small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.subcat__icon { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.subcat:hover .subcat__icon { transform: scale(1.12); }

/* ---------- 4. Wizard ---------- */
.wizard-wrap {
  background: var(--dark); border-radius: var(--r-xl); padding: 64px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
  position: relative; overflow: hidden;
}
.wizard-intro { position: relative; color: #fff; }
.wizard-intro .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.wizard-intro__lead { color: #A8A8A3; font-size: 18px; margin-top: 22px; max-width: 460px; }
.wizard-intro__points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.wizard-intro__points li { display: flex; gap: 12px; align-items: center; color: #D6D6D2; font-size: 15px; }
.wizard-intro__points li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.wizard {
  position: relative; background: var(--surface); border-radius: var(--r-lg);
  padding: 32px; min-height: 460px; box-shadow: var(--shadow-lg);
}
.wizard__top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: 13px; color: var(--muted); }
.wizard__back { color: var(--ink-2); font-size: 13px; padding: 4px 8px; border-radius: 8px; }
.wizard__back:hover { background: var(--surface-3); }
.wz-steps { list-style: none; padding: 0; margin: 14px 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wz-steps__bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.wz-steps__bar::after { content: ""; position: absolute; inset: 0; background: var(--dark); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.wz-steps li.is-done .wz-steps__bar::after, .wz-steps li.is-active .wz-steps__bar::after { transform: none; }
.wz-steps__label { display: block; font-size: 12px; color: var(--muted-2); margin-top: 8px; transition: color .3s; }
.wz-steps li.is-done .wz-steps__label, .wz-steps li.is-active .wz-steps__label { color: var(--ink); }

.wz-step { animation: stepIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wz-q { font-size: 30px; font-weight: 600; margin-bottom: 22px; }
.wz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-options[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 5 варіантів: 3 зверху + 2 ширші знизу, без порожніх клітинок */
.wz-options[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wz-options[data-count="5"] .wz-opt { grid-column: span 2; }
.wz-options[data-count="5"] .wz-opt:nth-child(n+4) { grid-column: span 3; }
.wz-opt {
  position: relative; text-align: left; min-height: 132px; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 22px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: background .25s, border-color .25s, color .25s, transform .15s, box-shadow .25s;
}
.wz-opt:hover { background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.wz-opt:active { transform: scale(.98); }
.wz-opt__top { display: flex; justify-content: space-between; align-items: flex-start; }
.wz-opt__icon svg { width: 28px; height: 28px; display: block; }
.wz-opt__check {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; color: transparent; transition: all .25s;
}
.wz-opt__check svg { width: 14px; height: 14px; stroke-width: 2.4; }
.wz-opt__text b { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.wz-opt__text small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.35; }
.wz-opt.is-selected { background: var(--dark); border-color: var(--dark); color: #fff; }
.wz-opt.is-selected small { color: #A8A8A3; }
.wz-opt.is-selected .wz-opt__check { background: #fff; border-color: #fff; color: var(--ink); }

.wz-level { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.wz-level i { width: 6px; border-radius: 3px; background: var(--line-strong); }
.wz-level i:nth-child(1) { height: 8px; } .wz-level i:nth-child(2) { height: 14px; }
.wz-level i:nth-child(3) { height: 20px; } .wz-level i:nth-child(4) { height: 26px; }
.wz-level i.on { background: currentColor; }

.wz-result__eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wz-result__title { margin-bottom: 0; }
.wz-result__summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 22px; }
.wz-list { display: grid; gap: 8px; }
.wz-item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 10px 20px 10px 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
  transition: background .2s, box-shadow .2s;
}
.wz-item:hover { background: #fff; box-shadow: var(--shadow-md); }
.wz-item__img { width: 72px; height: 72px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.wz-item__img img { max-height: 60px; max-width: 60px; width: auto; object-fit: contain; }
.wz-item__text b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.wz-item__text small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.wz-item__price { font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.wz-result__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

/* ---------- 5. Trade-In ---------- */
.tradein { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 56px; }
.tradein__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.tradein__aside { max-width: 460px; }
.tradein__aside p { color: var(--muted); font-size: 17px; }
.tradein__aside .btn { margin-top: 24px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow__step { display: flex; flex-direction: column; gap: 18px; position: relative; }
/* стрілка між кроками */
.flow__step:not(:last-child)::after {
  content: "→"; position: absolute; z-index: 2; top: 110px; right: -22px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 13px; color: var(--muted);
}
.flow__visual {
  position: relative; height: 240px; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, var(--surface-3), var(--surface-2) 70%);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.flow__img {
  height: 170px; width: auto; max-width: 70%; object-fit: contain; margin-top: 20px;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.14));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.flow__step:hover .flow__img { transform: translateY(-4px) scale(1.03); }
.flow__img--dim { opacity: .35; filter: grayscale(1); }

.flow__chip {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 500;
}
.flow__chip svg { width: 13px; height: 13px; }
.flow__chip--dark { background: var(--dark); border-color: var(--dark); color: #fff; }

.flow__card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(78%, 220px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 14px 16px; font-size: 13px;
}
.flow__card > small { color: var(--muted); font-size: 12px; }
.flow__rating { display: flex; gap: 4px; margin: 8px 0 12px; }
.flow__rating i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); }
.flow__rating i.on { background: var(--dark); }
.flow__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; font-size: 12.5px; }
.flow__ok svg { width: 14px; height: 14px; }
.flow__card--receipt { display: grid; gap: 0; padding: 6px 16px; }
.flow__card--receipt div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); }
.flow__card--receipt div:last-child { border-bottom: 0; }
.flow__card--receipt small { color: var(--muted); font-size: 12px; }
.flow__card--receipt span { font-weight: 500; white-space: nowrap; }
.flow__card--receipt .is-minus span { color: var(--green); }
.flow__card--receipt .is-total span { font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.flow__text { padding: 0 4px; }
.flow__num { display: block; font-size: 12px; font-weight: 600; color: var(--muted-2); letter-spacing: .04em; margin-bottom: 8px; }
.flow__text b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.flow__text small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.45; }
.flow__step--final .flow__visual { background: radial-gradient(ellipse 70% 60% at 50% 100%, #D9EEDF, var(--green-soft) 70%); border-color: #D3E8DA; }

/* ---------- 6. Journey ---------- */
.journey { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: stretch; }
.journey__tabs { display: flex; flex-direction: column; gap: 8px; }
.journey__tab {
  position: relative; overflow: hidden; text-align: left; width: 100%;
  display: flex; gap: 20px; align-items: flex-start; padding: 22px 26px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-lg);
  transition: background .3s, border-color .3s;
}
.journey__tab:hover { background: rgba(255,255,255,.6); }
.journey__tab.is-active { background: var(--surface); border-color: var(--line); }
.journey__num { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--muted-2); padding-top: 6px; transition: color .3s; }
.journey__tab.is-active .journey__num { color: var(--ink); }
.journey__body { flex: 1; }
.journey__body b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--muted-2); transition: color .3s; }
.journey__tab.is-active .journey__body b, .journey__tab:hover .journey__body b { color: var(--ink); }
.journey__desc {
  display: grid; grid-template-rows: 0fr; opacity: 0; color: var(--muted); font-size: 15px; line-height: 1.5;
  transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1), opacity .3s, margin .45s;
}
.journey__desc > span { overflow: hidden; min-height: 0; }
.journey__tab.is-active .journey__desc { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.journey__progress { position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px; background: transparent; }
.journey__progress i { display: block; height: 100%; width: 100%; background: var(--dark); transform: scaleX(0); transform-origin: left; }
.journey__tab.is-active .journey__progress { background: var(--surface-3); }
.journey__tab.is-active .journey__progress i { animation: journeyProgress var(--journey-time, 6s) linear forwards; }
.journey.is-paused .journey__tab.is-active .journey__progress i { animation-play-state: paused; }
@keyframes journeyProgress { to { transform: scaleX(1); } }

.journey__panel {
  position: relative; min-height: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
}
.stage {
  position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s;
}
.stage.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }
.stage__visual {
  position: relative; flex: 1; min-height: 0; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, var(--surface-3), var(--surface-2) 70%);
}
.stage__img {
  position: absolute; right: 8%; bottom: 0; height: 86%; width: auto; max-width: 60%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 24px 24px rgba(0,0,0,.14));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.stage.is-active .stage__img { animation: stageImg .8s cubic-bezier(.2,.8,.2,1) both; }
.stage.is-active .ui { animation: stageUi .7s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stageImg { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stageUi { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.stage__facts { list-style: none; margin: 0; padding: 4px 8px 8px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.stage__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.stage__facts svg { width: 16px; height: 16px; color: var(--green); }

/* Міні-інтерфейси */
.ui {
  position: absolute; left: 28px; top: 28px; width: min(58%, 320px); z-index: 2;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); padding: 16px; font-size: 14px;
}
.ui small { color: var(--muted); font-size: 12px; }
.ui-chat { display: grid; gap: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.ui-chat__msg { padding: 10px 14px; border-radius: 16px; line-height: 1.4; max-width: 88%; }
.ui-chat__msg--in { background: var(--surface-3); border-bottom-left-radius: 6px; }
.ui-chat__msg--out { background: var(--dark); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.ui-chat__meta { font-size: 11.5px; color: var(--muted); justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
.ui-chat__meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ui-toggle__seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--surface-3); border-radius: 999px; font-size: 13px; font-weight: 500; text-align: center; }
.ui-toggle__seg span { padding: 8px 0; border-radius: 999px; color: var(--muted); }
.ui-toggle__seg .is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.ui-toggle__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; }
.ui-toggle__row b { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.ui-toggle__save { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 500; }
.ui-ticket__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ui-status { padding: 4px 10px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 11.5px; font-weight: 500; }
.ui-ticket__row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ui-ticket__row span { color: var(--muted); }
.ui-ticket__row b { font-weight: 500; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ui-ticket__row .is-green { color: var(--green); }
.ui-ticket__row svg { width: 14px; height: 14px; }
.ui-upgrade { display: grid; gap: 2px; }
.ui-upgrade b { font-family: var(--font-head); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.ui-upgrade__btn { margin-top: 10px; display: inline-flex; justify-content: center; padding: 11px 16px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 13.5px; font-weight: 500; }

/* ---------- Кастомні рішення ---------- */
.custom {
  background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 56px;
  display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: 64px; align-items: center;
}
.custom__lead { color: #A8A8A3; font-size: 18px; margin-top: 20px; max-width: 540px; }
.custom__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.custom__list li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-md);
  background: var(--dark-2); border: 1px solid var(--dark-line); transition: border-color .2s, background .2s;
}
.custom__list li:hover { border-color: #444; background: #242424; }
.custom__icon svg { width: 26px; height: 26px; display: block; color: #fff; }
.custom__list b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.custom__list small { display: block; color: #9A9A95; font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.custom__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.btn--ghost-light { color: #fff; border: 1px solid var(--dark-line); }
.btn--ghost-light:hover { background: var(--dark-2); border-color: #444; }
.custom__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  background: #000; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.custom__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 7. Business ---------- */
/* Вертикальне відео заходить на картку з текстом */
.case { --case-w: clamp(300px, 26vw, 400px); --case-overlap: 96px; display: grid; grid-template-columns: var(--case-w) 1fr; align-items: center; padding: 24px 0; }
.case__photo {
  position: relative; z-index: 2; aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.45), 0 10px 24px -10px rgba(0,0,0,.2);
  background: var(--dark);
}
.case__photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.case__photo:hover video { transform: scale(1.03); }
.case__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 40px; display: flex; flex-direction: column; align-items: flex-start;
  margin-left: calc(var(--case-overlap) * -1); padding: 48px 48px 48px calc(var(--case-overlap) + 56px); min-height: 78%;
}
.case__card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.case__logo { height: 44px; width: auto; margin-bottom: 28px; }
.case__card h3 { font-size: 44px; font-weight: 600; }
.case__card p { color: var(--muted); margin-top: 16px; font-size: 17px; line-height: 1.6; }
.case__main .btn { margin-top: 32px; }
.case__stats { width: 100%; margin: 0; border-top: 1px solid var(--line); }
.case__stats div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.case__stats dt { color: var(--muted); }
.case__stats dd { margin: 0; font-weight: 500; text-align: right; }

.clients {
  display: flex; align-items: center; gap: 40px; margin-top: 16px; padding: 28px 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.clients > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.clients__marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  list-style: none; padding: 0; margin: 0; display: flex; align-items: center; width: max-content;
  animation: marquee 40s linear infinite;
}
.clients__marquee:hover .clients__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients li { height: 56px; display: flex; align-items: center; justify-content: center; flex: none; padding: 0 44px; }
/* Логотипи в монохромі, кольорові при наведенні */
.clients img { width: auto; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }
.clients .logo-bmw { height: 46px; }
.clients .logo-lc { height: 40px; }
.clients .logo-mb { height: 56px; }
.clients .logo-os { height: 30px; }
.clients .logo-gw { height: 26px; }
/* вирівнюємо візуальну вагу: світлий OSOCOR темнішаємо, масивний Goodwine світлішаємо */
.clients img.logo-os { filter: grayscale(1) brightness(.55); }
.clients img.logo-gw { opacity: .4; }
.clients li:hover img.logo-os { filter: none; }
.clients li:hover img.logo-gw { opacity: 1; }

/* ---------- 8. Відгуки ---------- */
.rating-sum { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.rating-sum b { color: var(--ink); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.review__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.review__body p { font-size: 17px; line-height: 1.55; margin: 16px 0 28px; color: var(--ink-2); }
.review__author { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.review__author small { display: block; color: var(--muted); font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.review__spec { margin: 0; padding: 18px 28px; background: var(--surface-2); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.review__spec div { display: flex; justify-content: space-between; font-size: 14px; }
.review__spec dt { color: var(--muted); }
.review__spec dd { margin: 0; font-weight: 500; }

/* ---------- 9. Відео ---------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #2A2A2A, #0E0E0E); color: #fff; display: block;
}
.video__img {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 78%; height: auto; opacity: .92; transition: transform .6s cubic-bezier(.2,.8,.2,1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.video:hover .video__img { transform: translate(-50%, -50%) scale(1.06); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.video__play {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; transition: transform .2s;
}
.video__play svg { width: 18px; height: 18px; margin-left: 2px; }
.video:hover .video__play { transform: scale(1.1); }
.video__meta { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.video__meta b { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 12px 0 6px; }
.video__meta small { color: #A8A8A3; font-size: 13px; }

/* ---------- 10. Товари ---------- */
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--dark); color: #fff; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px; display: flex; flex-direction: column;
  animation: stepIn .4s cubic-bezier(.2,.8,.2,1) both;
  transition: box-shadow .3s;
}
.product:hover { box-shadow: var(--shadow-md); }
.product__img-link { position: absolute; inset: 0; display: grid; place-items: center; }
.product__badges, .product__fav { z-index: 2; }
.product__name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.product__media {
  position: relative; aspect-ratio: 1; border-radius: 18px; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.product__media img {
  max-width: 74%; max-height: 66%; object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(0,0,0,.14)); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.product:hover .product__media img { transform: scale(1.05); }
.product__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.product__badges .tag { background: #fff; box-shadow: var(--shadow-sm); }
.product__badges .tag--green { background: var(--green-soft); }
.product__badges .tag--accent { background: var(--accent-soft); }
.product__fav {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); color: var(--muted);
}
.product__fav svg { width: 17px; height: 17px; }
.product__fav.is-on { color: #D14B4B; }
.product__fav.is-on svg { fill: currentColor; }
.product__body { padding: 16px 10px 8px; display: flex; flex-direction: column; flex: 1; }
.product__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.product__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; white-space: nowrap; }
.product__stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product__stock.is-order { color: var(--accent); }
.product__sku { color: var(--muted-2); white-space: nowrap; }
.product__rating { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.product__rating .stars { font-size: 12px; letter-spacing: 1px; }
.product__name { font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-top: 10px; }
.product__meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.product__price { margin-top: auto; padding-top: 18px; }
.product__price s { color: var(--muted-2); font-size: 14px; display: block; }
.product__price b { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.product__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.product__actions .btn { height: 44px; padding: 0 12px; font-size: 14px; }

/* ---------- 11. CTA ---------- */
.cta {
  background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: 56px;
  display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 64px; align-items: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -300px; bottom: -420px;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 65%);
}
.cta__text { position: relative; }
.cta__text > p { color: #A8A8A3; font-size: 17px; margin-top: 18px; max-width: 440px; }
.cta__contacts { display: grid; gap: 8px; margin-top: 32px; max-width: 400px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-md);
  background: var(--dark-2); border: 1px solid var(--dark-line); transition: border-color .2s, background .2s;
}
.contact:hover { border-color: #444; background: #242424; }
.contact__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #2B2B2B; display: grid; place-items: center; }
.contact__icon svg { width: 18px; height: 18px; }
.contact__text small { display: block; font-size: 12px; color: #8E8E8A; }
.contact__text b { display: block; font-size: 15px; font-weight: 500; }

.cta__text > .cta__hours { margin-top: 16px; font-size: 12.5px; line-height: 1.4; color: #7C7C78; }

.cta__form {
  position: relative; background: var(--surface); color: var(--ink); border-radius: var(--r-lg);
  padding: 28px; display: grid; gap: 16px;
}
.cta__form-head h3 { font-size: 24px; font-weight: 600; }
.cta__form-head p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  font: inherit; color: var(--ink); outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
/* Вибір задачі у формі: рівна сітка плиток */
.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.chip {
  grid-column: span 2; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.chip:nth-child(n+4) { grid-column: span 3; }
.chip:hover { border-color: var(--line-strong); background: #fff; }
.chip::before {
  content: ""; width: 0; height: 16px; border-radius: 50%; background: var(--dark) no-repeat center / 10px;
  background-image: 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='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  opacity: 0; transition: width .2s, opacity .2s;
}
.chip.is-active { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-active::before { width: 16px; opacity: 1; }
.cta__note { text-align: center; color: var(--muted-2); font-size: 12px; line-height: 1.4; }

/* ---------- Footer ---------- */
.footer { padding: 110px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand p { color: var(--muted); margin-top: 18px; max-width: 300px; font-size: 15px; }
.footer h4 { font-family: var(--font); font-size: 13px; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 10px; }
.footer__grid a:not(.logo) { font-size: 15px; color: var(--ink-2); }
.footer__grid a:not(.logo):hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 100;
  background: var(--dark); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__img { opacity: 1 !important; transform: none !important; }
  .clients__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .clients__track li[aria-hidden] { display: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1200px) {
  .header__phone { display: none; }
  .needs, .products, .videos { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .subcats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat--wide { grid-column: span 2; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .flow__step:nth-child(2)::after { display: none; }
  .tradein, .wizard-wrap, .cta { grid-template-columns: 1fr; }
  .custom { grid-template-columns: 1fr minmax(240px, 320px); gap: 40px; padding: 48px; }
  .trust { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  /* на планшетах переваги йдуть у 2 ряди — hero звичайної висоти, фото в потоці */
  .hero__panel { height: auto; min-height: 0; max-height: none; }
  .hero__grid, .hero__visual { flex: none; }
  .hero__visual { margin-top: 36px; min-height: 0; }
  .hero__visual picture { position: static; }
  .hero__img { position: relative; inset: auto; height: auto; }
  .trust li:nth-child(3n+1) { border-left: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  html { scroll-padding-top: 72px; }
  .nav, .header__cta { display: none; }
  .header__inner { gap: 12px; }
  .header__logo { display: block; }
  .hero__logo { display: none; } /* на мобільному лого вже є в хедері */
  .hero__title { margin-top: 0; }
  .burger { display: grid; }
  .search__panel { border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 12px 0 24px; }
  .search__default { grid-template-columns: 1fr; }
  .search__kbd { display: none; }

  .hero__panel { height: auto; min-height: 0; max-height: none; padding: 40px 0 24px; }
  .hero__grid, .hero__visual { flex: none; }
  .hero__visual { margin-top: 40px; min-height: 0; }
  .hero__visual picture { position: static; }
  .hero__img { position: relative; inset: auto; height: auto; }
  .float-card--a { top: -12%; left: 0; }
  .float-card--b { top: auto; bottom: -10%; right: 2%; }
  .custom { grid-template-columns: 1fr; }
  .custom__media { width: 100%; aspect-ratio: 4 / 5; justify-self: stretch; order: -1; }
  .case { --case-overlap: 110px; grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .case__photo { width: min(62%, 300px); }
  .case__card { grid-template-columns: 1fr; gap: 28px; }
  .case__card { width: 100%; margin: calc(var(--case-overlap) * -1) 0 0; padding-left: 40px; padding-top: calc(var(--case-overlap) + 32px); min-height: 0; }
  .journey { grid-template-columns: 1fr; }
  .journey__panel { min-height: 0; height: 420px; margin: 4px 0 8px; }
  .journey__tab { padding: 18px 20px; }
  .journey__progress { left: 20px; right: 20px; }
  .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .clients { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .clients__marquee { width: 100%; }
  .clients li { padding: 0 26px; }
  .clients .logo-bmw { height: 38px; } .clients .logo-lc { height: 32px; } .clients .logo-mb { height: 46px; } .clients .logo-os { height: 24px; } .clients .logo-gw { height: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --r-xl: 24px; --r-lg: 20px; }
  .section { padding-top: 80px; }
  .section__head { margin-bottom: 28px; }
  .hero__panel { padding: 28px 0 20px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { width: 100%; }
  .float-card { padding: 10px 12px; font-size: 12px; }
  .float-card--a { display: none; }
  .hero__visual { flex-direction: column; align-items: center; }
  .float-card--b { position: relative; top: auto; bottom: auto; right: auto; margin-top: 12px; }
  .hero__title { font-size: clamp(32px, 9.6vw, 44px); white-space: normal; margin-top: 24px; }
  .hero__logo { width: 150px; }
  .hero__visual { margin-top: 36px; }
  .float-card__icon { width: 30px; height: 30px; }
  .float-card__price { font-size: 16px; }
  .trust { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .trust li, .trust li:nth-child(3n+1) { border-left: 0; padding: 0; gap: 8px; }
  .trust__icon svg { width: 22px; height: 22px; }
  .trust b { font-size: 13px; }
  .trust small { font-size: 12px; }

  .needs, .cats { grid-template-columns: 1fr; }
  .cat--wide { grid-column: auto; }
  .cat { min-height: 300px; }
  .cart__body, .cart__foot { padding-left: 16px; padding-right: 16px; }
  .cline { grid-template-columns: 68px minmax(0, 1fr); }
  .cline__img { width: 68px; height: 68px; grid-row: span 2; }
  .cline__price { grid-column: 2; text-align: left; }
  .cline__price s { display: inline; margin-right: 6px; }
  .custom { padding: 32px 20px; gap: 32px; }
  .custom__list { grid-template-columns: 1fr; }
  .custom__lead { font-size: 16px; }
  .custom__actions .btn { width: 100%; }
  .search__panel { height: 100%; border-radius: 0; }
  .search__bar { height: 54px; padding-left: 16px; }
  .search__bar input { font-size: 16px; }
  .search__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search__item { grid-template-columns: 56px minmax(0, 1fr); padding-right: 10px; }
  .search__item-img { width: 56px; height: 56px; grid-row: span 2; }
  .search__item-price { grid-column: 2; text-align: left; font-size: 15px; }
  .search__item-price s { display: inline; margin-right: 6px; }
  .journey__body b { font-size: 24px; }
  .journey__panel { height: 380px; border-radius: var(--r-lg); }
  .stage { padding: 10px; gap: 12px; }
  .stage__img { height: 62%; right: 4%; }
  .ui { left: 14px; top: 14px; width: calc(100% - 28px); max-width: 300px; padding: 12px; font-size: 13px; }
  .ui-upgrade b { font-size: 28px; }
  .stage__facts { gap: 8px 16px; padding: 2px 6px 6px; }
  .stage__facts li { font-size: 13px; }
  .subcats__grid { grid-template-columns: 1fr; gap: 8px; }
  .subcat { padding: 14px; }

  .cat--wide .cat__img, .cat__img { right: 16px; height: 44%; }
  .cat__img--wide { height: auto; }
  .need { min-height: 0; padding: 20px 20px 0; }
  .need__top { margin-bottom: 16px; }
  .need__title { font-size: 26px; }
  .need__media { margin: 16px -20px 0; height: 180px; }

  .wizard-wrap, .tradein, .cta { padding: 32px 20px; gap: 32px; }
  .wizard { padding: 22px; min-height: 0; }
  .wz-options, .wz-options[data-count="3"], .wz-options[data-count="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wz-options .wz-opt, .wz-options[data-count="5"] .wz-opt, .wz-options[data-count="5"] .wz-opt:nth-child(n+4) { grid-column: auto; }
  .wz-options .wz-opt:last-child:nth-child(odd) { grid-column: span 2; }
  .wz-opt { min-height: 118px; padding: 14px; }
  .wz-opt__text b { font-size: 17px; }
  .wz-steps__label { font-size: 11px; }
  .wz-q { font-size: 23px; }
  .wz-item { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 8px 14px 8px 8px; }
  .wz-item__img { width: 60px; height: 60px; grid-row: span 2; }
  .wz-item__img img { max-height: 50px; max-width: 50px; }
  .wz-item__text b { font-size: 15px; }
  .wz-item__price { grid-column: 2; font-size: 16px; }
  .wz-result__actions { grid-template-columns: 1fr; }

  .tradein__head { margin-bottom: 28px; gap: 20px; }
  .tradein__aside p { font-size: 16px; }
  .tradein__aside .btn { width: 100%; }
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .flow__step:not(:last-child)::after { display: none; }
  .flow__step { gap: 14px; }
  .flow__visual { height: 200px; }
  .flow__img { height: 140px; }
  .flow__card { width: min(80%, 240px); }
  .flow__text b { font-size: 20px; }

  .case__card { padding: calc(var(--case-overlap) + 24px) 22px 28px; }
  .case__photo { width: min(64%, 240px); }
  .case { --case-overlap: 90px; }
  .case__card h3 { font-size: 34px; }
  .case__main { display: flex; flex-direction: column; align-items: center; }
  .case__main h3 { text-align: center; }
  .case__main .btn { align-self: stretch; }
  .case__card p { font-size: 16px; }
  .case__logo { height: 36px; margin-bottom: 20px; }

  .products { grid-template-columns: 1fr; gap: 12px; }
  .products .product__media { aspect-ratio: 4 / 3; }
  .products .product__sku { display: inline; }
  .products .product__actions { grid-template-columns: 1fr 1fr; }
  .products .product__body { padding: 14px 8px 6px; }
  .videos { grid-template-columns: 1fr; gap: 12px; }
  .video { aspect-ratio: 4 / 3; }
  .video__img { width: 52%; top: 40%; }
  .product__name { font-size: 16px; }
  .product__sku { display: none; }
  .product__price b { font-size: 19px; }
  .product__actions { grid-template-columns: 1fr; }
  .product__body { padding: 12px 6px 4px; }
  .tabs { width: 100%; }
  .video__meta b { font-size: 15px; }

  .cta { padding: 24px 16px 16px; gap: 24px; border-radius: var(--r-lg); }
  .cta__text > p { font-size: 14.5px; margin-top: 12px; }
  .cta__contacts { gap: 6px; margin-top: 20px; max-width: none; }
  .contact { padding: 10px 14px 10px 10px; gap: 12px; }
  .contact__icon { width: 36px; height: 36px; border-radius: 10px; }
  .contact__text small { font-size: 11.5px; }
  .contact__text b { font-size: 14.5px; }
  .contact::after { content: "→"; margin-left: auto; color: #6A6A66; font-size: 15px; }
  .cta { padding-bottom: 0; }
  .cta__text > .cta__hours { margin-top: 12px; font-size: 11.5px; }
  .cta__form { padding: 22px 16px 20px; gap: 14px; margin: 0 -16px; border-radius: 18px 18px var(--r-lg) var(--r-lg); }
  .cta__form-head h3 { font-size: 19px; }
  .cta__form-head p { font-size: 13px; }
  .cta__row { grid-template-columns: 1fr; gap: 12px; }
  .field input { height: 46px; font-size: 16px; }
  .field > span { font-size: 12.5px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .chip, .chip:nth-child(n+4) { grid-column: auto; height: 42px; font-size: 13.5px; }
  .chip:last-child { grid-column: 1 / -1; }
  .cta__form .btn--lg { height: 50px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* =========================================================
   Мобільна типографіка: спокійніша шкала для телефонів
   ========================================================= */
@media (max-width: 640px) {
  h1, h2, h3, h4 { letter-spacing: -0.025em; }
  .h2 { font-size: 27px; line-height: 1.12; margin-top: 10px; }
  .eyebrow { font-size: 11px; letter-spacing: .07em; }
  .lead, .wizard-intro__lead, .custom__lead, .cta__text > p, .tradein__aside p { font-size: 15.5px; line-height: 1.55; }

  .hero__title { font-size: 31px; line-height: 1.08; letter-spacing: -0.035em; }
  .hero__lead { font-size: 15.5px; }
  .trust b { font-size: 13px; }
  .trust small { font-size: 11.5px; }

  .need__title, .cat h3 { font-size: 22px; }
  .need__sub, .cat p { font-size: 14px; }
  .subcat__text b { font-size: 16px; }
  .wizard-intro .h2 { font-size: 26px; }
  .wz-q { font-size: 21px; }
  .wz-opt__text b { font-size: 16px; }
  .flow__text b { font-size: 18px; }
  .journey__body b { font-size: 21px; }
  .journey__desc { font-size: 14px; }
  .custom__list b { font-size: 16px; }
  .case__card h3 { font-size: 28px; }
  .case__card p { font-size: 15px; }
  .review__body p { font-size: 15px; }
  .video__meta b { font-size: 18px; }
  .product__name { font-size: 18px; font-weight: 600; }
  .product__price b { font-size: 22px; }

  .mmenu__cta b { font-size: 19px; }
  .mmenu__links a { font-size: 19px; font-weight: 500; padding: 14px 0; }
  .mmenu__phone { font-size: 20px; }
  .cart__head h3 { font-size: 22px; }
  .cart__row--total b { font-size: 24px; }
  .cline__name { font-size: 15px; }
  .cline__price b { font-size: 15px; }
  .search__item b { font-size: 15px; }
  .search__empty b { font-size: 20px; }
  .ui-upgrade b { font-size: 24px; }
  .ui-toggle__row b { font-size: 18px; }
}

/* Малі екрани (iPhone SE, старі Android) */
@media (max-width: 380px) {
  .h2 { font-size: 24px; }
  .hero__title { font-size: 27px; }
  .need__title, .cat h3 { font-size: 20px; }
  .journey__body b { font-size: 19px; }
  .case__card h3 { font-size: 24px; }
  .wz-q { font-size: 19px; }
  .mmenu__links a { font-size: 17px; }
  .product__name { font-size: 15px; }
  .btn--lg { height: 52px; font-size: 15px; padding: 0 22px; }
}

/* На сенсорних екранах немає наведення — кнопки-стрілки одразу акцентні */
@media (max-width: 960px), (hover: none) {
  .cat__go, .need__go { background: var(--dark); color: #fff; border-color: var(--dark); }
  .cat--dark .cat__go, .need--dark .need__go { background: #fff; color: var(--ink); border-color: #fff; }
}
