:root {
  --red: #ea0812;
  --red-deep: #c0070f;
  --ink: #080808;
  --ink-2: #151515;
  --ink-3: #252525;
  --muted: #707377;
  --line: #e3e3e3;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --hero-h: min(92vh, 820px);
  --header-h: 0px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px rgba(8, 8, 8, 0.18);
  --font-ui: "Montserrat", system-ui, sans-serif;
  --font-display: "Syne", "Montserrat", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(234, 8, 18, 0.08), transparent 55%),
    linear-gradient(180deg, #f6f6f7 0%, #ffffff 38%, #fafafa 100%);
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.container {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.page-glow {
  position: fixed;
  inset: auto auto 10% -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 8, 18, 0.16), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(8, 8, 8, 0.06);
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.topbar {
  border-bottom: 1px solid rgba(8, 8, 8, 0.06);
  background: var(--paper-2);
}

.topbar__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.city-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.city-btn__pin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(234, 8, 18, 0.15);
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-right: auto;
}

.topbar__nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--ink);
}

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar__phone {
  font-weight: 700;
  white-space: nowrap;
}

.topbar__meta {
  color: var(--muted);
  white-space: nowrap;
}

.header-main__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 142px;
}

.logo img {
  width: 126px;
  height: auto;
  transform-origin: left center;
}

.catalog-nav {
  flex: 1 1 auto;
}

.catalog-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
}

.catalog-nav__item {
  position: relative;
}

.catalog-nav__item > button {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.catalog-nav__item:hover > button,
.catalog-nav__item:focus-within > button {
  background: rgba(8, 8, 8, 0.05);
}

.catalog-nav__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 190px;
  padding: 0.55rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid rgba(8, 8, 8, 0.06);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 20;
}

.catalog-nav__item:hover .catalog-nav__dropdown,
.catalog-nav__item:focus-within .catalog-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.catalog-nav__dropdown a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-3);
}

.catalog-nav__dropdown a:hover,
.catalog-nav__dropdown a:focus-visible {
  background: rgba(234, 8, 18, 0.06);
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(8, 8, 8, 0.05);
}

.icon-btn__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.85rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.btn--callback,
.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--callback:hover,
.btn--primary:hover,
.btn--callback:focus-visible,
.btn--primary:focus-visible {
  background: var(--red-deep);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(8, 8, 8, 0.18);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--ink);
  background: rgba(8, 8, 8, 0.04);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
  border-radius: 50%;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ========== Hero — showroom ========== */
.hero {
  --hero-h: calc(100vh - 120px);
  position: relative;
  z-index: 1;
  min-height: max(560px, var(--hero-h));
  max-height: 920px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, #f3f4f6 0%, #eceef2 42%, #f7f1f2 100%);
}

.hero__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0;
}

.hero__orb--a {
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  right: -8%;
  top: 8%;
  background: radial-gradient(circle, rgba(234, 8, 18, 0.22), transparent 68%);
}

.hero__orb--b {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  left: 8%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(8, 8, 8, 0.1), transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(8, 8, 8, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 8, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 72%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: max(560px, var(--hero-h));
  max-height: 920px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vh, 2.5rem) 0;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-block: 1rem;
}

.hero__city {
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__city-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(234, 8, 18, 0.14);
}

.hero__brand {
  margin-bottom: 1.35rem;
}

.hero__brand-logo {
  width: clamp(168px, 22vw, 240px);
  height: auto;
  transform-origin: left center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--red);
}

.hero__lead {
  margin: 1.2rem 0 0;
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__rail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero__arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero__arrow--dark {
  color: var(--ink);
  border: 1px solid rgba(8, 8, 8, 0.14);
  background: rgba(255, 255, 255, 0.55);
}

.hero__arrow--dark:hover,
.hero__arrow--dark:focus-visible {
  background: #fff;
  border-color: rgba(8, 8, 8, 0.35);
}

.hero__counter {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 96px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hero__counter-line {
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: rgba(8, 8, 8, 0.15);
  position: relative;
  overflow: hidden;
}

.hero__counter-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  background: var(--red);
}

.hero__gallery {
  position: relative;
  min-height: min(520px, 62vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  perspective: 1200px;
}

.hero__caption {
  margin-bottom: 1rem;
  min-height: 4.5rem;
  width: min(100%, 560px);
}

.hero__progress {
  width: min(100%, 560px);
}

.hero__caption-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.hero__caption-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__caption-text {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-swiper {
  width: min(100%, 560px);
  margin-left: auto;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border-radius: 22px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 28px 56px rgba(8, 8, 8, 0.18);
}

.hero-swiper:active {
  cursor: grabbing;
}

.hero-swiper .swiper-slide {
  height: auto;
  background: #0a0a0a;
}

.hero-panel {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 40%, rgba(234, 8, 18, 0.35), transparent 42%),
    linear-gradient(145deg, #141414 0%, #0a0a0a 55%, #1c1012 100%);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transform: scale(1.04);
  transition: transform 5.2s linear;
}

.hero-swiper .swiper-slide-active .hero-panel img {
  transform: scale(1);
}

.hero-panel__labels {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.6rem);
  width: min(48%, 240px);
  color: #fff;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 70%, transparent 100%);
}

.hero-panel__label-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-panel__labels ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hero-panel__labels li {
  position: relative;
  padding-left: 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.6vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-panel__labels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.hero__progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.08);
  overflow: hidden;
}

.hero__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff5a61);
}

.hero__progress-bar.is-running {
  animation: hero-progress 5.2s linear forwards;
}

.hero__counter-line.is-running::after {
  animation: hero-progress 5.2s linear forwards;
}

@keyframes hero-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(4px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(340px, 88vw);
  height: 100%;
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.2);
}

.mobile-menu__city {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

.mobile-menu nav {
  display: grid;
  gap: 0.35rem;
}

.mobile-menu nav a {
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(8, 8, 8, 0.06);
  font-weight: 600;
}

/* Entrance helpers */
.site-header .topbar,
.site-header .logo,
.site-header .catalog-nav__item,
.site-header .header-actions > * {
  opacity: 0;
}

@media (max-width: 1100px) {
  .catalog-nav {
    display: none;
  }

  .topbar__nav {
    display: none;
  }

  .burger {
    display: grid;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1240px, calc(100% - 1.25rem));
  }

  .topbar__meta {
    display: none;
  }

  .btn--callback span {
    display: none;
  }

  .btn--callback {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23fff' stroke-width='1.8' stroke-linecap='round' d='M6.5 5.5c.6 3.8 3.2 7.2 6.8 9.5l1.7-1.7c.3-.3.7-.4 1.1-.2 1.1.4 2.3.7 3.4.7.5 0 1 .4 1 1V20c0 .6-.4 1-1 1C11.3 21 3 12.7 3 2.5c0-.6.4-1 1-1H8c.6 0 1 .4 1 1 0 1.1.2 2.3.6 3.4.1.4 0 .8-.3 1.1L7.6 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }

  .hero {
    --hero-h: auto;
    max-height: none;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    gap: 1.25rem;
    padding: 1.25rem 0 2rem;
    width: min(1240px, calc(100% - 1.25rem));
  }

  .hero__copy {
    order: 1;
    padding-block: 0.25rem;
  }

  .hero__gallery {
    order: 2;
    min-height: 0;
  }

  .hero__lead {
    max-width: 40ch;
  }

  .hero__rail {
    margin-top: 1.5rem;
  }

  .hero-swiper {
    width: 100%;
    margin-inline: auto;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-header .topbar,
  .site-header .logo,
  .site-header .catalog-nav__item,
  .site-header .header-actions > * {
    opacity: 1;
  }
}
