/* ============================================================
   MOTO JAPAN — Импорт мотоциклов из Японии в Россию
   Design system: light, premium, motion-driven
   Palette: graphite #1E293B + action red #DC2626 on #F8FAFC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --color-primary: #1E293B;
  --color-on-primary: #FFFFFF;
  --color-secondary: #334155;
  --color-accent: #DC2626;
  --color-accent-dark: #B91C1C;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-foreground: #0F172A;
  --color-muted: #E9EDF1;
  --color-muted-foreground: #64748B;
  --color-border: #E2E8F0;
  --color-success: #16A34A;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --shadow-accent: 0 12px 28px rgba(220, 38, 38, .28);

  --container: 1200px;
  --nav-h: 96px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms var(--ease);
  --t: 280ms var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--color-accent); border-radius: 2px; }

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; color: var(--color-primary); font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.12rem; color: var(--color-muted-foreground); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .98rem; white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(220,38,38,.34); }
.btn--dark { background: var(--color-primary); color: #fff; }
.btn--dark:hover { background: #0b1220; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--color-surface); color: var(--color-primary); box-shadow: inset 0 0 0 1.5px var(--color-border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--color-primary); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }

/* ============================================================
   FLOATING NAV — три отдельных блока (логотип / меню / контакт)
   ============================================================ */
.nav {
  position: fixed; inset: 18px 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: min(100% - 32px, var(--container)); margin-inline: auto;
  transition: transform var(--t);
}
.nav.is-hidden { transform: translateY(-140%); }

/* общий стиль «парящего» блока */
.nav__block {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow);
  border-radius: var(--radius-pill);
  transition: box-shadow var(--t), background var(--t);
}
.nav__block:hover { box-shadow: var(--shadow-md); }

/* блок логотипа */
.nav__brand { display: flex; align-items: center; gap: 11px; padding: 12px 22px 12px 16px; }
.nav__logo {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #0b1220);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.nav__logo svg { width: 24px; height: 24px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-name { font-weight: 700; font-size: 1.05rem; color: var(--color-primary); letter-spacing: -.01em; }
.nav__brand-sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent); font-weight: 700; }

/* логотип-картинка */
.brand-logo { height: 36px; width: auto; max-width: 160px; display: block; object-fit: contain; }
.nav__brand { padding: 8px 16px; } /* фон/бордер наследуются от .nav__block — как в меню */
.footer__brand .brand-logo { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); } /* белый логотип на тёмном футере */

/* блок меню */
.nav__menu { display: flex; align-items: center; gap: 4px; padding: 8px 10px; }
.nav__link {
  position: relative; padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .96rem; color: var(--color-secondary);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--color-primary); background: var(--color-muted); }
.nav__link.is-active { color: #fff; background: var(--color-primary); }

/* блок контакта */
.nav__cta { padding: 9px 10px; display: flex; }
.nav__cta .btn { padding: 12px 22px; }

/* бургер (моб.) — отдельный блок */
.nav__burger {
  display: none; width: 52px; height: 52px; border-radius: 50%;
  align-items: center; justify-content: center; color: var(--color-primary);
}
.nav__burger svg { width: 26px; height: 26px; }
.nav__burger .icon-close { display: none; }
.nav.is-open .nav__burger .icon-open { display: none; }
.nav.is-open .nav__burger .icon-close { display: block; }

/* мобильное выпадающее меню */
.nav__mobile {
  position: fixed; inset: 92px 16px auto 16px; z-index: 99;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav.is-open ~ .nav__mobile { opacity: 1; visibility: visible; transform: none; }
.nav__mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-radius: var(--radius); font-weight: 500; font-size: 1.05rem;
  color: var(--color-secondary); transition: background var(--t-fast);
}
.nav__mobile a:hover, .nav__mobile a.is-active { background: var(--color-muted); color: var(--color-primary); }
.nav__mobile .btn { margin-top: 8px; }
.nav__scrim {
  position: fixed; inset: 0; z-index: 98; background: rgba(15,23,42,.4);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.nav.is-open ~ .nav__scrim { opacity: 1; visibility: visible; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--nav-h) + 56px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(220,38,38,.10), transparent 60%),
    radial-gradient(700px 500px at 8% 0%, rgba(30,41,59,.08), transparent 55%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); font-size: .85rem; font-weight: 600; color: var(--color-secondary);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero__badge .flag { font-size: 1rem; }
.hero h1 { margin-bottom: 8px; }
.hero h1 .accent { color: var(--color-accent); }
.hero__lead { font-size: 1.16rem; color: var(--color-muted-foreground); max-width: 520px; margin: 18px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero__stat .num { font-size: 2.1rem; font-weight: 700; color: var(--color-primary); letter-spacing: -.02em; }
.hero__stat .lbl { font-size: .9rem; color: var(--color-muted-foreground); }

.hero__visual { position: relative; }
.hero__img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--color-muted);
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__float {
  position: absolute; background: rgba(255,255,255,.86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.hero__float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hero__float .ic svg { width: 22px; height: 22px; }
.hero__float .t1 { font-weight: 700; color: var(--color-primary); line-height: 1.1; }
.hero__float .t2 { font-size: .82rem; color: var(--color-muted-foreground); }
.hero__float--a { left: -22px; bottom: 36px; }
.hero__float--a .ic { background: #dcfce7; color: var(--color-success); }
.hero__float--b { right: -16px; top: 30px; }
.hero__float--b .ic { background: #fee2e2; color: var(--color-accent); }

/* ============================================================
   MARQUEE BRANDS
   ============================================================ */
.brands { border-block: 1px solid var(--color-border); background: var(--color-surface); }
.brands__inner { display: flex; align-items: center; gap: 14px; padding: 28px 0; flex-wrap: wrap; justify-content: center; }
.brands__label { font-size: .82rem; color: var(--color-muted-foreground); font-weight: 600; margin-right: 8px; }
.brands__item {
  font-weight: 700; font-size: 1.15rem; color: var(--color-secondary); letter-spacing: -.01em;
  padding: 8px 18px; border-radius: var(--radius-pill); background: var(--color-background);
}

/* ============================================================
   FEATURES / STEPS / CARDS GRID
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 30px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--color-muted); color: var(--color-primary); margin-bottom: 20px;
}
.card__ic svg { width: 28px; height: 28px; }
.card__ic--accent { background: #fee2e2; color: var(--color-accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-muted-foreground); }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.step__num {
  counter-increment: step; font-size: 2.4rem; font-weight: 700; color: var(--color-accent);
  line-height: 1; letter-spacing: -.04em;
}
.step__num::before { content: "0" counter(step); }
.step h3 { margin: 14px 0 8px; }
.step p { color: var(--color-muted-foreground); font-size: .96rem; }

/* ============================================================
   PRODUCT CARD (catalog + featured)
   ============================================================ */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  display: flex; flex-direction: column; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-muted); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 700; background: rgba(255,255,255,.92); color: var(--color-primary);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.product__tag--hot { background: var(--color-accent); color: #fff; }
.product__fav {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--color-secondary);
  box-shadow: var(--shadow-sm); transition: color var(--t-fast), transform var(--t-fast);
}
.product__fav:hover { color: var(--color-accent); transform: scale(1.08); }
.product__fav svg { width: 19px; height: 19px; }
.product__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product__brand { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.product__name { font-size: 1.18rem; margin: 4px 0 12px; }
.product__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.spec {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--color-secondary);
  background: var(--color-muted); padding: 6px 11px; border-radius: var(--radius-pill);
}
.spec svg { width: 15px; height: 15px; color: var(--color-muted-foreground); }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__price .p-label { font-size: .76rem; color: var(--color-muted-foreground); }
.product__price .p-val { font-size: 1.4rem; font-weight: 700; color: var(--color-primary); letter-spacing: -.02em; }
.product__foot .btn { padding: 11px 18px; font-size: .9rem; }

/* ---------- Catalog filters ---------- */
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 34px; align-items: start; }
.filters {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 24px;
}
.filters h3 { font-size: 1.1rem; margin-bottom: 6px; }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group > .fg-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted-foreground); margin-bottom: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: var(--radius-pill); font-size: .88rem; font-weight: 500;
  background: var(--color-muted); color: var(--color-secondary); transition: background var(--t-fast), color var(--t-fast);
}
.chip:hover { background: #dfe5ec; }
.chip.is-active { background: var(--color-primary); color: #fff; }

.catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-bar .count { color: var(--color-muted-foreground); font-size: .95rem; }
.catalog-bar .count b { color: var(--color-primary); }
.select {
  appearance: none; padding: 11px 40px 11px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface); font: inherit; font-size: .92rem;
  color: var(--color-secondary); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.empty-state { text-align: center; padding: 70px 20px; color: var(--color-muted-foreground); }
.empty-state svg { width: 54px; height: 54px; margin-bottom: 14px; color: var(--color-border); }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc {
  background: linear-gradient(160deg, var(--color-primary), #0b1220);
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  display: grid; grid-template-columns: 1.1fr .9fr;
}
.calc__form { padding: 44px; }
.calc__form .eyebrow { color: #fca5a5; }
.calc__form .eyebrow::before { background: var(--color-accent); }
.calc__form h2 { color: #fff; }
.calc__form .lead { color: rgba(255,255,255,.7); }
.field { margin-top: 20px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: rgba(255,255,255,.85); }
.field .hint { font-weight: 400; color: rgba(255,255,255,.5); font-size: .8rem; }
.input, .field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius); font: inherit; font-size: 1rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: rgba(255,255,255,.4); }
.input:focus, .field select:focus { outline: none; border-color: var(--color-accent); background: rgba(255,255,255,.12); }
.field select option { color: #0f172a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calc__result { padding: 44px; background: rgba(255,255,255,.04); border-left: 1px solid rgba(255,255,255,.1); }
.calc__result h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.calc__result .sub { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 22px; }
.calc__rows { display: flex; flex-direction: column; gap: 2px; }
.calc__row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.calc__row .k { color: rgba(255,255,255,.75); font-size: .94rem; display: flex; align-items: center; gap: 8px; }
.calc__row .k svg { width: 16px; height: 16px; color: #fca5a5; }
.calc__row .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__total { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.2); }
.calc__total .k { font-size: 1rem; color: rgba(255,255,255,.8); }
.calc__total .v { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__note { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 16px; line-height: 1.5; }
.calc__result .btn { margin-top: 22px; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.pd { padding-top: calc(var(--nav-h) + 32px); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--color-muted-foreground); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs svg { width: 15px; height: 15px; }
.pd__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.pd__grid > * { min-width: 0; } /* не дать галерее/слайдеру раздувать колонку шире экрана (моб.) */
.gallery__main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--color-muted); box-shadow: var(--shadow); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--color-muted); border: 2px solid transparent; cursor: pointer; transition: border-color var(--t-fast); }
.gallery__thumb.is-active { border-color: var(--color-accent); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd__info .product__brand { font-size: .85rem; }
.pd__info h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 6px 0 14px; }
.pd__price-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin: 22px 0; }
.pd__price-box .pp-main { font-size: 2rem; font-weight: 700; color: var(--color-primary); letter-spacing: -.02em; }
.pd__price-box .pp-old { font-size: 1.05rem; color: var(--color-muted-foreground); text-decoration: line-through; }
.pd__price-box .pp-note { font-size: .85rem; color: var(--color-success); font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table td { padding: 13px 0; font-size: .96rem; }
.spec-table td:first-child { color: var(--color-muted-foreground); }
.spec-table td:last-child { text-align: right; font-weight: 600; color: var(--color-primary); }
.pd__actions { display: flex; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.pd__trust { display: flex; flex-direction: column; gap: 12px; }
.pd__trust li { display: flex; align-items: center; gap: 12px; color: var(--color-secondary); font-size: .95rem; }
.pd__trust svg { width: 20px; height: 20px; color: var(--color-success); flex: none; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-hero { padding-top: calc(var(--nav-h) + 48px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline { max-width: 760px; margin-inline: auto; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding-bottom: 34px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 130px; top: 8px; bottom: -8px; width: 2px; background: var(--color-border); }
.tl-item:last-child::before { display: none; }
.tl-year { font-size: 1.4rem; font-weight: 700; color: var(--color-accent); text-align: right; }
.tl-dot { position: absolute; left: 124px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent); border: 3px solid var(--color-background); }
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--color-muted-foreground); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.member h3 { font-size: 1.1rem; }
.member p { color: var(--color-accent); font-size: .9rem; font-weight: 600; }

/* ============================================================
   CTA BANNER + FOOTER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-lg); padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 300px at 80% 120%, rgba(255,255,255,.18), transparent); }
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 540px; margin: 14px auto 28px; position: relative; }
.cta-banner .btn { position: relative; }
.cta-banner .btn--primary { background: #fff; color: var(--color-accent); box-shadow: var(--shadow-md); }
.cta-banner .btn--primary:hover { background: #fff; transform: translateY(-2px); }

.footer { background: var(--color-primary); color: rgba(255,255,255,.7); padding: 64px 0 32px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__brand p { max-width: 300px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; transition: color var(--t-fast); }
.footer__col a:hover { color: #fff; }
.footer__contacts li { display: flex; gap: 10px; padding: 6px 0; }
.footer__contacts svg { width: 18px; height: 18px; color: #fca5a5; flex: none; margin-top: 3px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: .88rem; gap: 14px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background var(--t-fast); }
.footer__social a:hover { background: var(--color-accent); color: #fff; }
.footer__social svg { width: 19px; height: 19px; }

/* ============================================================
   MODAL — форма заказа
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--t); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__card {
  position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 34px; transform: translateY(20px) scale(.97); opacity: 0; transition: transform var(--t), opacity var(--t);
}
.modal.is-open .modal__card { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--color-muted); display: grid; place-items: center; color: var(--color-secondary); transition: background var(--t-fast); }
.modal__close:hover { background: #dfe5ec; }
.modal__close svg { width: 20px; height: 20px; }
.modal__head { margin-bottom: 6px; }
.modal__product { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--color-muted); border-radius: var(--radius); margin: 18px 0; }
.modal__product img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.modal__product .mp-name { font-weight: 700; color: var(--color-primary); }
.modal__product .mp-price { color: var(--color-accent); font-weight: 700; }

.form-field { margin-top: 16px; }
.form-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--color-secondary); }
.form-field label .req { color: var(--color-accent); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius); font: inherit; font-size: 1rem;
  background: var(--color-background); border: 1.5px solid var(--color-border); color: var(--color-foreground);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form-field textarea { resize: vertical; min-height: 92px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--color-accent); background: #fff; }
.form-field input.invalid, .form-field select.invalid { border-color: var(--color-accent); }
.form-error { color: var(--color-accent); font-size: .82rem; margin-top: 6px; display: none; }
.form-field.has-error .form-error { display: block; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .85rem; color: var(--color-muted-foreground); }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--color-accent); }
.modal__success { text-align: center; padding: 24px 10px; display: none; }
.modal.is-success .modal__success { display: block; }
.modal.is-success .modal__body { display: none; }
.modal__success .ic-ok { width: 76px; height: 76px; border-radius: 50%; background: #dcfce7; color: var(--color-success); display: grid; place-items: center; margin: 0 auto 20px; }
.modal__success .ic-ok svg { width: 40px; height: 40px; }
.modal__success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal__success p { color: var(--color-muted-foreground); margin-bottom: 22px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120%); z-index: 300;
  background: var(--color-primary); color: #fff; padding: 14px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 500;
  transition: transform var(--t); max-width: calc(100% - 32px);
}
.toast.is-show { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: #86efac; flex: none; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 560px; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .pd__grid { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__block { box-shadow: var(--shadow); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .products, .grid-3, .values { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .nav { inset: 12px 0 auto 0; width: calc(100% - 24px); }
  .products, .grid-3, .grid-4, .steps, .values, .team { grid-template-columns: 1fr; }
  .hero__float--a { left: 8px; }
  .hero__float--b { right: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .calc__form, .calc__result { padding: 28px; }
  .modal__card { padding: 24px; }
  .cta-banner { padding: 40px 24px; }
  .tl-item { grid-template-columns: 64px 1fr; gap: 16px; }
  .tl-item::before { left: 70px; }
  .tl-dot { left: 64px; }
  .tl-year { font-size: 1.1rem; }
  .hero__stats { gap: 24px; }
}

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

/* ============================================================
   v2 — доработки CMS (курс, слайдер, валюты, фиксы UI)
   ============================================================ */

/* (2) hero — отступ снизу */
.hero--home { padding-bottom: 88px; }

/* (9) hero — курс йена → рубль */
.hero__rate { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 28px; padding: 12px 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hero__rate .ic { width: 38px; height: 38px; border-radius: 10px; background: #fee2e2; color: var(--color-accent); display: grid; place-items: center; flex: none; }
.hero__rate .ic svg { width: 20px; height: 20px; }
.hero__rate .hr-text { display: flex; flex-direction: column; line-height: 1.15; }
.hero__rate .hr-text b { font-size: .78rem; color: var(--color-muted-foreground); font-weight: 600; }
.hero__rate .hr-text span { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); }

/* (7) hero floats — отступ после заголовка внутри блока */
.hero__float .hf-text { display: flex; flex-direction: column; gap: 4px; }
.hero__float .t1 { margin-bottom: 3px; }

/* (3) бренды — настоящие логотипы */
.brands__logo { display: inline-flex; align-items: center; justify-content: center; height: 32px; color: #94A3B8; transition: color var(--t-fast); }
.brands__logo svg { display: block; height: 20px; width: auto; }
.brands__logo:hover { color: #475569; }
@media (max-width: 560px) { .brands__logo svg { height: 16px; } }

/* (4) карточка каталога — цена в йенах + кнопка «Подробнее» под ценой */
.product__foot { flex-direction: column; align-items: stretch; gap: 14px; }
.product__price .p-yen { font-size: 1.4rem; font-weight: 700; color: var(--color-primary); letter-spacing: -.02em; }
.product__price .p-label { font-size: .86rem; color: var(--color-muted-foreground); }

/* (6) мобильное меню — иконка бургера/крестика по центру, белый текст CTA */
.nav__burger { padding: 0; align-items: center; justify-content: center; }
.nav__burger span { display: grid; place-items: center; width: 100%; height: 100%; line-height: 0; }
.nav__burger svg { display: block; }
/* крестик закрытия — сохраняем grid-центровку при открытом меню */
.nav.is-open .nav__burger .icon-close { display: grid; }
#navMobile .btn--primary, #navMobile .btn--primary svg { color: #fff !important; }
/* кнопка «Написать нам» в мобильном меню — как на ПК (красная, без осветления) */
#navMobile .btn--primary:hover { background: var(--color-accent-dark); color: #fff !important; transform: translateY(-2px); }

/* (5) слайдер фото на странице товара */
.slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--color-muted); box-shadow: var(--shadow); }
.slider__track { display: flex; height: 100%; transition: transform .45s var(--ease); }
.slider__slide { min-width: 100%; height: 100%; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--color-primary); box-shadow: var(--shadow); transition: background var(--t-fast), transform var(--t-fast); }
.slider__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider__nav svg { width: 22px; height: 22px; }
.slider__nav--prev { left: 14px; } .slider__nav--next { right: 14px; }
.slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.slider__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background var(--t-fast), width var(--t-fast); }
.slider__dot.is-active { background: #fff; width: 24px; border-radius: 6px; }

/* (5) цена товара в йенах */
.pd__price-box .pp-yen { font-size: 2.1rem; font-weight: 700; color: var(--color-primary); letter-spacing: -.02em; line-height: 1.1; }
.pd__price-box .pp-rub { color: var(--color-muted-foreground); font-size: 1rem; margin-top: 4px; }
.pd__price-box .pp-rub .pp-note { color: var(--color-success); font-weight: 600; }
.pd__price-box .pp-badge { background: #fee2e2; color: var(--color-accent); font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); font-size: .85rem; }

/* (8) калькулятор — переключатель валют */
.calc__cur { display: inline-flex; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill); padding: 4px; margin-top: 22px; }
.calc__cur-btn { padding: 9px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.7); transition: background var(--t-fast), color var(--t-fast); }
.calc__cur-btn.is-active { background: var(--color-accent); color: #fff; }

/* выпадающий список городов с поиском */
.calc { overflow: visible; }
.calc__result { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.combo { position: relative; }
.combo__input { padding-right: 40px; }
.combo__caret { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.5); pointer-events: none; transition: transform var(--t-fast); }
.combo__caret svg { width: 16px; height: 16px; transform: rotate(90deg); }
.combo.is-open .combo__caret { transform: translateY(-50%) rotate(180deg); }
.combo__panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; max-height: 244px; overflow-y: auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; }
.combo__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--color-foreground); font-size: .95rem; }
.combo__opt:hover { background: var(--color-muted); }
.combo__km { color: var(--color-muted-foreground); font-size: .78rem; flex: none; }
.combo__empty { padding: 14px; color: var(--color-muted-foreground); font-size: .9rem; text-align: center; }

@media (max-width: 1024px) {
  .calc__result { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

/* фильтры каталога: селекты и диапазоны */
.filters .fg-title { display: block; }
.f-select, .f-input {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; background: var(--color-surface); color: var(--color-foreground);
  transition: border-color var(--t-fast);
}
.f-select { appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.f-select:focus, .f-input:focus { outline: none; border-color: var(--color-accent); }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-row .f-input::-webkit-outer-spin-button,
.range-row .f-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* пагинация */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.pg-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--color-border);
  background: var(--color-surface); color: var(--color-primary); font-weight: 700; font-size: .98rem;
  display: inline-flex; align-items: center; justify-content: center; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.pg-btn svg { width: 18px; height: 18px; }
.pg-btn:hover:not(:disabled):not(.is-active) { border-color: var(--color-primary); }
.pg-btn.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-dots { min-width: 28px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-secondary); font-weight: 700; }
.catalog-layout--full { grid-template-columns: 1fr; }

/* аукционный лист */
.lot-block { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; }
.lot-table { width: 100%; border-collapse: collapse; }
.lot-table td { padding: 11px 0; border-bottom: 1px solid var(--color-border); font-size: .98rem; }
.lot-table td:first-child { color: var(--color-muted-foreground); width: 46%; }
.lot-table td:last-child { font-weight: 600; color: var(--color-primary); }
.lot-table .lot-accent { color: var(--color-accent); }
.lot-scores { display: flex; flex-direction: column; gap: 8px; }
.lot-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius); }
.lot-score span { color: var(--color-secondary); font-weight: 500; }
.lot-score b { min-width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--color-primary); color: #fff; font-size: 1.05rem; }
.lot-score:first-child b { background: var(--color-accent); }

/* состояние лота */
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cond-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.cond-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.cond-card__head h3 { font-size: 1.15rem; }
.cond-score { background: var(--color-muted); color: var(--color-primary); font-weight: 700; font-size: .85rem; padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap; }
.cond-items { width: calc(100% - 36px); border-collapse: collapse; margin: 0 18px 16px; }
.cond-items td { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; vertical-align: top; }
.cond-items td:first-child { color: var(--color-secondary); }
.cond-items td:last-child { text-align: right; padding-left: 12px; }
.cond-items .ci-ok { color: var(--color-muted-foreground); }
.cond-items .ci-note { color: var(--color-accent); font-weight: 600; }
.cond-notes { list-style: none; margin: 0; padding: 6px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.cond-notes li { position: relative; padding-left: 16px; font-size: .9rem; line-height: 1.45; color: var(--color-foreground); }
.cond-notes li::before { content: "•"; position: absolute; left: 0; color: var(--color-accent); }
.cond-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 18px; }
.cond-chip { font-size: .82rem; padding: 5px 11px; border-radius: 8px; background: var(--color-background); border: 1px solid var(--color-border); color: var(--color-accent); }

/* мини-слайдер (состояние/видео) */
.minislider { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-muted); }
.minislider__track { display: flex; height: 100%; transition: transform .4s var(--ease); }
.minislider__slide { min-width: 100%; height: 100%; }
.minislider__slide img, .minislider__slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.minislider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--color-primary); box-shadow: var(--shadow-sm); z-index: 2; }
.minislider__nav svg { width: 18px; height: 18px; }
.minislider__nav--prev { left: 8px; } .minislider__nav--next { right: 8px; }
.minislider__dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.minislider__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.minislider__dot.is-active { background: #fff; width: 18px; border-radius: 4px; }

/* видео */
.vid-wrap { max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.vid-wrap .minislider { aspect-ratio: 16/10; background: #0b1220; }
.vid-wrap .minislider__slide { position: relative; }
/* видео жёстко прибито к рамке слайда — нативный плеер не «съезжает» и не уменьшается даже без загруженного источника */
.vid-wrap .minislider__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1220; }

@media (max-width: 1024px) { .cond-grid { grid-template-columns: repeat(2, 1fr); } .lot-block { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cond-grid { grid-template-columns: 1fr; } }

/* табы: характеристики / описание */
.tabs { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.tabs__nav { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--color-border); background: var(--color-background); }
.tabs__btn { padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: .98rem; color: var(--color-secondary); transition: background var(--t-fast), color var(--t-fast); }
.tabs__btn:hover { color: var(--color-primary); }
.tabs__btn.is-active { background: var(--color-primary); color: #fff; }
.tabs__panel { display: none; padding: 10px 24px 24px; }
.tabs__panel.is-active { display: block; }
.tabs .spec-table { margin-top: 4px; }

/* галерея: фиксированный размер слайдера */
.pd__grid { align-items: start; }
.pd__grid .gallery { max-width: 620px; }
.pd__grid .gallery .slider { width: 100%; aspect-ratio: 4 / 3; }

/* миниатюры — одна строка, скролл скрыт, drag-scroll */
.gallery__thumbs { display: flex; grid-template-columns: none; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 0; cursor: grab; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.gallery__thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.gallery__thumbs.is-dragging { cursor: grabbing; }
.gallery__thumb { flex: 0 0 84px; width: 84px; aspect-ratio: 1; }
.gallery__thumb img { pointer-events: none; }

/* курсор-зум на фото слайдеров */
.slider__slide img, .minislider__slide img { cursor: zoom-in; }

/* лайтбокс */
.lbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px; }
.lbox.is-open { display: flex; }
.lbox__scrim { position: absolute; inset: 0; background: rgba(15,23,42,.9); backdrop-filter: blur(4px); }
.lbox__img { position: relative; max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; }
.lbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; z-index: 2; }
.lbox__close:hover { background: rgba(255,255,255,.26); }
.lbox__close svg { width: 24px; height: 24px; }
.lbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; z-index: 2; }
.lbox__nav:hover { background: rgba(255,255,255,.26); }
.lbox__nav svg { width: 26px; height: 26px; }
.lbox__prev { left: 20px; } .lbox__next { right: 20px; }
.lbox--single .lbox__nav { display: none; }
@media (max-width: 560px) { .lbox { padding: 16px; } .lbox__nav { width: 44px; height: 44px; } }

/* мобильные доработки */
@media (max-width: 560px) {
  .hero--home { padding-bottom: 56px; }
  /* (7) уменьшаем плавающие блоки, чтобы не перекрывали фото */
  .hero__float { padding: 9px 12px; gap: 8px; border-radius: 12px; }
  .hero__float .ic { width: 32px; height: 32px; border-radius: 9px; }
  .hero__float .ic svg { width: 17px; height: 17px; }
  .hero__float .t1 { font-size: .82rem; }
  .hero__float .t2 { font-size: .7rem; }
  .hero__float--a { left: 4px; bottom: 14px; }
  .hero__float--b { right: 4px; top: 14px; }
  .slider__nav { width: 38px; height: 38px; }
}
