/* ==========================================================================
   Moto Center Varna — one-page landing
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c20;
  --line: #2a2a30;
  --line-soft: rgba(255, 255, 255, 0.09);
  --fg: #ffffff;
  --muted: #9b9ba4;
  --accent: #ff4800;
  --accent-ink: #0a0a0b;
  --mobilebg: #1a73e8;
  --bazarbg: #e01b2b;
  --viber: #7360f2;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 64px;
  --container: 1240px;
  --gutter: 20px;

  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: orangered #141416;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--accent { color: var(--accent); }

.accent { color: var(--accent); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ff7d1f; }

.btn--mobilebg { background: var(--mobilebg); color: #fff; }
.btn--mobilebg:hover { background: #2b81f0; }

.btn--bazarbg { background: var(--bazarbg); color: #fff; }
.btn--bazarbg:hover { background: #f02a3a; }

.btn--viber { background: var(--viber); color: #fff; }
.btn--viber:hover { background: #8574f5; }

.btn--dark { background: var(--surface-2); border-color: var(--line); color: var(--fg); }
.btn--dark:hover { background: #26262c; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { background: var(--surface-2); border-color: #3a3a42; }

.btn--sm { padding: 9px 16px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.site-header.is-scrolled { background: rgba(10, 10, 11, 0.98); }

.site-header__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  min-height: var(--header-h);
  padding-right: 22px;
  padding-left: 22px;
  margin-right: 0;
  margin-left: 0;
} 

@media (max-width: 900px) {
  .site-header__inner {
    gap: 20px;
    padding-right: var(--gutter);
    margin-inline: auto;
  }
} 

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__img { display: block; width: auto; height: 36px; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.16s ease;
}
.nav__list a:hover { color: var(--accent); }
.nav__list a.is-active { color: var(--accent); }

.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.header-phone:hover { background: #ff7d1f; transform: translateY(-1px); }
.header-phone span { font-size: 16px; }
.header-phone .icon { color: var(--accent-ink); width: 16px; height: 16px; }

.header-call-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(255, 90, 0, 0.35);
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.header-call-btn:hover { transform: scale(1.05); }
.header-call-btn .icon { width: 18px; height: 18px; }

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.burger .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
	width: 100%;
	height: 620px;
	object-fit: cover;
	object-position: 50% 50%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: transparent;
  background-image: linear-gradient(54deg, rgba(0, 0, 0, 0.31) 0%, rgba(0, 0, 0, 0.55) 25%, rgba(10, 10, 11, 0.75) 40%, rgba(0, 0, 0, 0) 66%, #000000 100%, #000000 140%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  min-height: 600px;
  padding-block: 68px 20px;
  }

.hero__copy { max-width: 620px; }

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__title-line {
  display: block;
  font-family: var(--font-body);
  font-weight: 900;
}
.hero__title-line--accent {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 900;
}

.hero__lead {
  margin-top: 20px;
  max-width: 44ch;
  color: #d5d5da;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: pretty;
}

.blur-box {
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.perks {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 1020px;
  min-height: 75px;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: rgba(28, 28, 32, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-sizing: border-box;
}
.perks__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-right: 0;
  padding-left: 0;
  border-left: 1px solid var(--line-soft);
  color: #c9c9d0;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.perks__item:first-child { border-left: 0; padding-left: 0; }
#nachalo .perks__item:nth-child(1),
#nachalo .perks__item:nth-child(2),
#nachalo .perks__item:nth-child(3),
#nachalo .perks__item:nth-child(5) {
  align-items: center;
  padding-right: 0;
}
#nachalo .perks__item:nth-child(4) {
  align-items: center;
  justify-content: center;
  padding-right: 0;
}
.perks__item .icon { width: 30px; height: 50px; margin-top: 1px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 100px;
  line-height: 1;
  font-size: 18px;
  }
  
  .hero__actions-label {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.btn--logo {
  padding: 0;
  background: transparent;
  border: none;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.btn--logo:hover { transform: translateY(-1px); }
.hero__actions .btn--logo:nth-of-type(1) { width: 130px; height: 40px; }
.hero__actions .btn--logo:nth-of-type(2) { width: 125px; height: 36px; }
.btn--logo img {
  display: block;
  height: 100%;
  width: auto;
}
.hero__address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d5d5da;
  font-size: 1.075rem;
  font-weight: 500;
}

.hero__address--mobile { display: none; }

/* --------------------------------------------------------------- catalog */

.catalog { padding-block: 0 56px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

#motori .section-title {
  font-family: var(--font-body);
  font-weight: 800;
}

.section-meta { color: var(--muted); font-size: 0.875rem; }
.section-meta strong { color: var(--accent); font-weight: 600; font-size: 24px; }

.catalog__controls { display: none; }

.filters-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.filters-toggle:hover { border-color: #3a3a42; }
.filters-toggle__main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filters-toggle__main .icon { width: 16px; height: 16px; color: var(--accent); }
.filters-toggle__badge {
  margin-left: auto;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.filters-toggle__badge[hidden] { display: none; }
.filters-toggle__chevron {
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.filters-toggle[aria-expanded="true"] .filters-toggle__chevron {
  transform: rotate(180deg);
}

.filters {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) repeat(3, minmax(170px, 1.25fr)) auto;
  gap: 0;
  align-items: center;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.filter {
  position: relative;
  min-width: 0;
}

.filter:not(:first-child):not(.filter--reset) {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 16px;
}

.filter--reset {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
  margin-left: 16px;
}

.filter--reset:not(:has(.is-active)) { display: none; }

.filter__control {
  position: relative;
  width: 100%;
}

.filter select {
  width: 100%;
  height: 42px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.filter select:hover { border-color: #44444e; }
.filter select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 90, 0, 0.2);
  outline: none;
}
.filter select.is-active {
  border-color: var(--accent);
  color: #fff;
  background-color: rgba(255, 90, 0, 0.08);
}

.filter__chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.filter__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.filter__dash {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  user-select: none;
}
.filter__pair select {
  padding-inline: 10px 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 12px 12px;
}

.filter__clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.filter__clear-btn .icon { width: 16px; height: 16px; }
.filter__clear-btn.is-active {
  display: inline-flex;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.filter__clear-btn.is-active:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--fg));
  border-color: transparent;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.chip .icon { width: 18px; height: 18px; }
.chip:hover { color: var(--fg); background: var(--surface); }
.chip[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: #3d3d46; transform: translateY(-2px); }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #0e0e10;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 14px 14px 16px;
}

.card__title {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.card__brand { font-weight: 700; }
.card__model { color: var(--muted); }

.card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  color: var(--muted);
  font-size: 0.75rem;
}
.card__specs li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card__specs .icon { width: 15px; height: 15px; color: #6f6f79; }
.card__specs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card__cta { margin-top: auto; }

.empty {
  margin-top: 22px;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
}
.empty__text { margin: 8px 0 18px; color: var(--muted); font-size: 0.875rem; }

.catalog__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.catalog__updated { color: #6f6f79; font-size: 0.75rem; text-align: center; }

/* ------------------------------------------------------------------ live */

.live { padding-block: 8px 64px; }

.live__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
.live__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.6) 45%, rgba(10, 10, 11, 0.12) 100%);
}
.live__body { padding: 40px; max-width: 560px; }
.live__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}

#za-nas .live__title {
  font-family: var(--font-body);
  font-weight: 900;
}
.live__text { margin: 14px 0 22px; color: #d5d5da; font-size: 0.9375rem; text-wrap: pretty; }

/* -------------------------------------------------------------- features */

.features { padding-block: 0 64px; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 84px;
}
.feature img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
.feature__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px;
}
.feature__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
}
.feature__text { color: var(--muted); font-size: 0.875rem; text-wrap: pretty; }
.feature__body .btn { margin-top: auto; align-self: flex-start; }

/* -------------------------------------------------------------- contacts */

.contacts { padding-block: 0 72px; }

#kontakti .section-head {
  font-weight: 900;
}

#kontakti .section-title {
  font-family: var(--font-body);
  font-weight: 800;
}

#kontakti .section-title .accent {
  font-family: var(--font-body);
  font-weight: 800;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  align-items: stretch;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contacts__list { display: flex; flex-direction: column; gap: 16px; }
.contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.contacts__list .icon { width: 20px; height: 20px; margin-top: 2px; }
.contacts__list a { font-weight: 600; }
.contacts__list a:hover { color: var(--accent); }

.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.contacts__map {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.65) brightness(0.92) contrast(0.95);
}

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 32px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}
.logo--footer .logo__img { height: 30px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__nav a { color: var(--muted); font-size: 0.8125rem; }
.site-footer__nav a:hover { color: var(--fg); }
.site-footer__note { margin-left: auto; color: #6f6f79; font-size: 0.75rem; }
.site-footer__note a { color: var(--muted); white-space: nowrap; }
.site-footer__note a:hover { color: var(--accent); }

.noscript { padding-block: 24px; color: var(--muted); font-size: 0.875rem; }
.noscript a { color: var(--accent); text-decoration: underline; }

/* ------------------------------------------------------- detail overlay */

.detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.detail[hidden] { display: none; }

.detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, 0.88);
  backdrop-filter: blur(6px);
}

.detail__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(980px, 94vw);
  max-height: min(88vh, 800px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.detail__close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.detail__close:hover { border-color: var(--accent); color: var(--accent); }
.detail__close .icon { width: 18px; height: 18px; }

.detail__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.detail__top > * { min-width: 0; max-width: 100%; box-sizing: border-box; }

.detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  background: #0b0b0d;
  box-sizing: border-box;
}

.gallery__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  display: block;
  touch-action: pan-y;
  min-width: 0;
}
.gallery__stage img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  cursor: pointer;
}

.gallery__zoom {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.gallery__zoom:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.gallery__zoom .icon { width: 14px; height: 14px; }

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
  z-index: 3;
}
.gallery__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__nav .icon { width: 16px; height: 16px; }
.gallery__nav[hidden] { display: none; }

.gallery__counter {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.gallery__thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.gallery__thumbs[hidden] { display: none; }
.gallery__thumb {
  flex: none;
  width: 68px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #08080a;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current='true'] { opacity: 1; border-color: var(--accent); }

.detail__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  min-width: 0;
}

.detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  text-wrap: balance;
}
.detail__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.detail__specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail__specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84375rem;
  min-width: 0;
}
.detail__specs .spec__left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.detail__specs .icon { width: 16px; height: 16px; color: var(--accent); }
.detail__specs .spec__label { color: var(--muted); }
.detail__specs .spec__value { font-weight: 600; color: var(--fg); text-align: right; }

.detail__ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail__ctas .btn { padding: 9px 12px; font-size: 0.8125rem; }
.detail__ctas .detail__call { grid-column: 1 / -1; }

.tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.tabs__tab {
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.tabs__tab:hover { color: var(--fg); }
.tabs__tab[aria-selected='true'] { color: var(--fg); border-bottom-color: var(--accent); }

.tabs__panel { color: #c9c9d0; font-size: 0.8125rem; line-height: 1.55; }
.tabs__panel[hidden] { display: none; }
.tabs__panel a { color: var(--accent); font-weight: 600; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.feature-list li { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; }
.feature-list .icon { width: 14px; height: 14px; color: var(--accent); }

.detail__sticky { display: none; }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 4, 0.94);
  backdrop-filter: blur(10px);
}
.lightbox__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__close .icon { width: 20px; height: 20px; }

.lightbox__stage {
  position: relative;
  z-index: 2;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lightbox__nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__nav--prev { left: -16px; }
.lightbox__nav--next { right: -16px; }
.lightbox__nav .icon { width: 20px; height: 20px; }
.lightbox__nav[hidden] { display: none; }

.lightbox__counter {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(10, 10, 11, 0.8);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------- inquiry */

.inquiry {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.inquiry[hidden] { display: none; }
.inquiry__backdrop { position: absolute; inset: 0; background: rgba(4, 4, 5, 0.8); backdrop-filter: blur(4px); }
.inquiry__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.inquiry__close {
  position: absolute;
  top: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: pointer;
}
.inquiry__close:hover { border-color: var(--accent); color: var(--accent); }
.inquiry__close .icon { width: 16px; height: 16px; }
.inquiry__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}
.inquiry__text { margin: 8px 0 20px; color: var(--muted); font-size: 0.875rem; }
.inquiry__actions { display: grid; gap: 8px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter__submit { grid-column: span 3; }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--fg);
  }
  .burger { display: inline-flex; }
  .header-phone { display: none; }
  .header-call-btn { display: inline-flex; }
  .site-header__actions { margin-left: auto; gap: 10px; }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filter:not(:first-child):not(.filter--reset) {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 12px;
    margin-left: 0;
  }
  .filter:first-child { padding-top: 12px; }
  .filter--reset {
    grid-column: 1 / -1;
    padding-left: 0;
    margin-left: 0;
  }

  .detail__top { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; }
  .detail__gallery { padding: 12px; width: 100%; max-width: 100%; }
  .gallery__stage { flex: none; aspect-ratio: 16 / 10; max-height: 260px; min-height: 0; width: 100%; max-width: 100%; }
  .detail__info { padding: 16px 14px 20px; }
  .tabs { padding: 14px 14px 20px; }
}

@media (max-width: 900px) {
  .hero__inner { min-height: 0; padding-block: 48px 32px; }
  .perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    width: 100%;
    height: auto;
    padding: 16px;
  }
  .perks__item { border-left: 0; padding-inline: 0 14px; }
  .hero__address { margin-left: 0; width: 100%; }

  .features__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .live__body { padding: 28px; }
  .site-footer__note { margin-left: 0; }
}

@media (max-width: 760px) {
  .hero__copy { width: 100%; max-width: none; }
  .hero__lead {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 16px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 55%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--fg);
  }
  .hero__address--desktop { display: none; }
  .hero__address--mobile { display: inline-flex; }
  .hero__address {
    align-self: stretch;
    width: 100%;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--fg);
    font-weight: 600;
  }
  .hero__actions { width: 100%; flex-wrap: nowrap; gap: 16px; }
  .hero__actions .btn.btn--logo { flex: 1 1 0; min-width: 0; width: auto; height: 44px; }
  .hero__actions .btn--logo img { width: 100%; height: 100%; object-fit: contain; }
  #nachalo .perks__item.perks__item--featured {
    padding: 12px 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--fg);
    font-weight: 600;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #motori > .container { display: flex; flex-direction: column; }
  #motori .section-head { order: -3; }
  .chips {
    order: -2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
    margin-bottom: 16px;
  }
  .chip {
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 64px;
    gap: 6px;
    padding: 8px 4px;
    border-color: var(--line);
    background: var(--surface);
    color: var(--fg);
    font-size: 0.875rem;
    line-height: 1.2;
  }
  .chip .icon { width: 24px; height: 24px; color: var(--accent); }
  .chip[aria-pressed='true'] .icon { color: var(--accent-ink); }
  .catalog__controls { order: -1; display: flex; margin-bottom: 16px; }
  .filters-toggle { display: flex; width: 100%; min-height: 48px; gap: 8px; padding: 0 16px; margin-bottom: 0; font-size: 0.9375rem; }
  .filters-toggle__badge { margin: 0 0 0 auto; padding-inline: 6px; }
  .grid { margin-top: 16px; }
  .filters { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
  .filters.is-open { display: grid; }
  .filter--reset { grid-column: span 2; }
  .catalog { padding-block: 32px 40px; }
  .live { padding-block: 0 48px; }
  .features { padding-block: 0 48px; }
  .contacts { padding-block: 0 56px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .filter--reset { grid-column: span 1; }
  .hero__inner {
    gap: 20px;
    padding-block: 32px 24px;
  }
  .hero__media img { height: 100%; object-position: 68% center; }
  .hero__scrim {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 45%, transparent) 45%, var(--bg) 100%);
  }
  .hero__copy { display: flex; flex-direction: column; gap: 16px; }
  .hero__title {
		font-size: clamp(1.875rem, 11vw, 3.5rem);
		line-height: 1.44;
		letter-spacing: -0.025em;
		text-align: center;
  }
  .hero__lead {
    margin-top: 0;
    color: var(--fg);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;
  }
  .hero__address { font-size: 0.875rem; }
  .hero__actions { margin-top: 0; }
  .hero__actions .btn { min-height: 44px; }
  .perks {
    gap: 16px;
    margin-top: 0;
    padding: 16px;
    border-radius: var(--radius);
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
  }
  #nachalo .perks__item {
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    color: var(--fg);
    font-size: 0.875rem;
    line-height: 1.45;
  }
  .perks__item:nth-child(3) { grid-column: 1 / -1; }
  .perks__item .icon { width: 20px; height: 20px; margin-top: 0; }
  .perks__item br { display: none; }
  #motori .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
  #motori .section-title { font-size: clamp(1.75rem, 8vw, 2rem); line-height: 1.15; }
  #motori .section-title .accent { display: block; }
  #motori .section-meta { display: flex; align-items: baseline; gap: 6px; }
  #motori .section-meta { font-size: 1rem; }
  #motori .section-meta strong { font-size: 1.5rem; }
  #nachalo .perks__item.perks__item--featured { padding: 12px 16px; }
  .site-footer__inner { align-items: flex-start; gap: 16px; }
  .site-footer__nav { gap: 4px 16px; }
  .site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; }
  .site-footer__note { display: flex; flex-direction: column; gap: 4px; width: 100%; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
  .site-footer__separator { display: none; }
  .site-footer__note a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: var(--fg); }
  
  .detail { padding: 0; }
  .detail__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
  }
  .detail__scroll { padding-bottom: 74px; }
  .detail__gallery { padding: 10px; }
  .gallery__stage { max-height: 230px; }
  .gallery__thumb { width: 56px; }
  .detail__info { padding: 14px 12px 20px; }
  .tabs { padding: 12px 12px 20px; }
  .detail__specs { grid-template-columns: 1fr; }
  .detail__info .detail__ctas { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .detail__sticky {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(12, 12, 14, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
  }
  .detail__sticky .btn { flex: 1 1 0; min-width: 0; padding: 11px 4px; font-size: 0.6875rem; gap: 5px; }
  .detail__sticky .icon { width: 15px; height: 15px; }

  .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__counter { bottom: -24px; font-size: 0.75rem; }
}

@media (max-width: 400px) {
  .detail__ctas { grid-template-columns: 1fr; }
  .detail__sticky .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .card:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
}
