:root {
  --yellow: #FFCC00;
  --yellow-dark: #E6B800;
  --primary: #B8860B;
  --primary-light: #D4AF37;
  --primary-dark: #8B6914;
  --slate: #B8860B;
  --slate-light: #D4AF37;
  --brown: #B8860B;
  --brown-light: #D4AF37;
  --dark: #4A3C10;
  --gray-bg: #FAF8F3;
  --section-bg-a: #FAF8F3;
  --section-bg-b: #F0EBE3;
  --gray-light: #FAFAFA;
  --gray-border: #E8E0D0;
  --text: #2C2416;
  --text-light: #6B5E4A;
  --white: #FFFFFF;
  --purple-bg: #F5F0E6;
  --green-bg: #FFF9E6;
  --container: 1200px;
  --radius: 8px;
  --radius-card: 20px;
  --transition: 0.3s ease;
  --header-h: 72px;
  --mobile-bar-h: 56px;
  --btn-brown: #4B3621;
  --btn-brown-hover: #5D4037;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--section-bg-a);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
input, button, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 8px) 0 12px;
  box-sizing: border-box;
}

.screen-section > .container {
  width: 100%;
  max-height: calc(100vh - var(--header-h) - 20px);
  max-height: calc(100dvh - var(--header-h) - 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section--bg-a { background: var(--section-bg-a); }
.section--bg-b { background: var(--section-bg-b); }

.section-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-align: center;
  flex-shrink: 0;
}

.section-title--left { text-align: left; font-size: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--brown,
.btn--primary,
.btn--yellow {
  background: var(--btn-brown);
  color: var(--white);
}

.btn--brown:hover,
.btn--primary:hover,
.btn--yellow:hover {
  background: var(--btn-brown-hover);
}

.btn--ghost {
  background: var(--gray-bg);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--section-bg-b);
}

.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--full { width: 100%; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__img {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo__text { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.header__logo .logo__text { text-transform: uppercase; }
.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__img { width: 32px; height: 32px; }
.logo--footer .logo__text { font-size: 14px; }
.logo--footer { gap: 8px; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  min-height: 68px;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  background: var(--gray-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger span {
  display: block;
  height: 2px;
  background: var(--brown);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__logo {
  justify-self: start;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  background: var(--yellow);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  flex-shrink: 0;
}

.header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.header__phone {
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.header__phone:hover {
  color: var(--brown);
}

.messenger-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.messenger-links--inline {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
}

.messenger-links--nav {
  justify-content: center;
  margin: 0;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.messenger-link:hover {
  transform: scale(1.08);
  opacity: 0.92;
}

.messenger-link--whatsapp { background: #25d366; }
.messenger-link--telegram { background: #229ed9; }
.messenger-link--viber { background: #7360f2; }

.messenger-links--compact .messenger-link {
  width: 28px;
  height: 28px;
}

.messenger-links--compact .messenger-link svg {
  width: 16px;
  height: 16px;
}

.contact-item [data-messenger-links] {
  margin-top: 8px;
}

.contact-item [data-messenger-links] .messenger-links {
  justify-content: flex-start;
}

.footer__contacts [data-messenger-links] {
  margin-top: 6px;
}

.footer__contacts .messenger-links {
  justify-content: flex-end;
}

.footer__contacts .messenger-links--compact .messenger-link {
  width: 26px;
  height: 26px;
}

/* Hero banner slideshow */
.hero-banner.screen-section {
  padding: var(--header-h) 0 0;
  justify-content: stretch;
  overflow: hidden;
}

.hero-banner-swiper {
  width: 100%;
  flex: 1;
  min-height: 0;
}

.hero-banner-swiper .swiper-slide {
  height: 100%;
}

.hero-banner__slide {
  position: relative;
  overflow: hidden;
  background: var(--gray-bg);
}

.hero-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 24px 56px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-banner__card {
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  background-color: var(--gray-bg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.hero-banner__card-inner {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vh, 48px) clamp(28px, 5vw, 64px);
  box-sizing: border-box;
}

.hero-banner__card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 40px);
  height: 100%;
}

.hero-banner__title {
  font-size: clamp(22px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  max-width: 100%;
}

.hero-banner__desc {
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.6;
  color: var(--text-light);
  max-width: 38ch;
}

.hero-banner__order {
  align-self: flex-start;
  padding: 14px 40px;
  font-size: 14px;
}

.hero-banner__card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.hero-banner__combo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  max-width: 100%;
  height: 100%;
}

.hero-banner__combo-plus {
  flex-shrink: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--btn-brown);
}

.hero-banner__equipment--addon {
  max-height: min(42vh, 300px);
}

.hero-banner__equipment {
  max-width: 100%;
  max-height: min(58vh, 480px);
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Убирает белый/светлый фон у локальных PNG/WebP на белой части карточки */
.hero-banner__equipment--knockout {
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    #000 42%,
    rgba(0, 0, 0, 0.75) 58%,
    rgba(0, 0, 0, 0.35) 72%,
    transparent 82%
  );
  mask-image: radial-gradient(
    ellipse 92% 88% at 50% 50%,
    #000 42%,
    rgba(0, 0, 0, 0.75) 58%,
    rgba(0, 0, 0, 0.35) 72%,
    transparent 82%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-banner__equipment--knockout.hero-banner__equipment--mask-wide-h {
  -webkit-mask-image: radial-gradient(
    ellipse 58% 90% at 50% 50%,
    #000 30%,
    rgba(0, 0, 0, 0.85) 46%,
    rgba(0, 0, 0, 0.5) 62%,
    rgba(0, 0, 0, 0.2) 76%,
    transparent 90%
  );
  mask-image: radial-gradient(
    ellipse 58% 90% at 50% 50%,
    #000 30%,
    rgba(0, 0, 0, 0.85) 46%,
    rgba(0, 0, 0, 0.5) 62%,
    rgba(0, 0, 0, 0.2) 76%,
    transparent 90%
  );
}

.hero-banner__controls {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-banner__pagination {
  position: static !important;
  width: auto !important;
  bottom: auto !important;
}

.hero-banner__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.4;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-banner__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--yellow);
  transform: scale(1.25);
  box-shadow: 0 0 0 2px var(--brown);
}

.hero-banner__nav {
  display: flex;
  gap: 8px;
}

.hero-banner__arrow {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-banner__arrow:hover {
  background: var(--yellow-dark);
  transform: scale(1.05);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.nav-mobile.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nav-mobile__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-mobile.is-open .nav-mobile__backdrop {
  opacity: 1;
}

.nav-mobile__panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  transform: translateX(calc(100% + 16px));
  transition: transform var(--transition);
}

.nav-mobile.is-open .nav-mobile__panel {
  transform: translateX(0);
}

.nav-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-border);
}

.nav-mobile__brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background: var(--gray-bg);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-mobile__close:hover {
  background: var(--section-bg-b);
}

.nav-mobile__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile__link {
  display: block;
  padding: 11px 10px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.nav-mobile__link:hover {
  background: var(--gray-bg);
}

.nav-mobile__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--gray-border);
}

.nav-mobile__call {
  margin-top: 0;
}

.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--mobile-bar-h);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  background: var(--btn-brown);
  color: var(--white);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

.mobile-call-bar__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  height: 100%;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--white);
}

.mobile-call-bar__phone:hover {
  color: var(--yellow);
}

body.nav-open {
  overflow: hidden;
}

/* Catalog */
.catalog.screen-section {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.catalog.screen-section > .container {
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
  padding-top: 8px;
  padding-bottom: 32px;
}

.catalog__title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 20px;
  text-align: center;
  flex-shrink: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  overflow: visible;
  flex: none;
  min-height: 0;
  align-items: stretch;
}

.product-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.product-card--equipment {
  background-color: var(--gray-bg);
  background-image: url('../images/BackCard.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-card--equipment .product-card__visual {
  padding: 20px 16px 8px;
}

.product-card--addon {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 14px;
}

.product-card--addon .product-card__image {
  height: 144px;
  margin-bottom: 10px;
}

.product-card--equipment .product-card__image {
  height: 187px;
}

.product-card__image {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  max-height: 185px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
}

.product-card--addon .product-card__image img {
  max-height: 142px;
}

/* Убирает белый/серый фон у фото техники на BackCard */
.product-card__image img.product-card__img--knockout {
  mix-blend-mode: multiply;
  filter: none;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 86% at 50% 48%,
    #000 38%,
    rgba(0, 0, 0, 0.8) 54%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 84%
  );
  mask-image: radial-gradient(
    ellipse 90% 86% at 50% 48%,
    #000 38%,
    rgba(0, 0, 0, 0.8) 54%,
    rgba(0, 0, 0, 0.4) 70%,
    transparent 84%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 14px 16px 18px;
  background: var(--white);
  min-height: 0;
}

.product-card--equipment .product-card__body {
  background: transparent;
  padding-top: 0;
}

.product-card__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-card__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  min-height: 2.7em;
}

.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.product-card__reg {
  font-size: 11px;
  font-weight: 700;
  color: var(--brown);
}

.product-card__driver {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.4;
}

.product-card__highlight {
  font-size: 11px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.35;
}

.product-card__region {
  font-size: 11px;
  color: var(--text-light);
}

.product-card__spec {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.45;
  margin: 0;
}

.product-card__price {
  font-size: 12px;
  font-weight: 800;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
}

.product-card--addon .product-card__body {
  padding: 0;
  background: transparent;
}

.product-card__actions .btn {
  width: 100%;
  padding: 10px 8px;
  font-size: 11px;
}

/* About */
.about-text.screen-section {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.about-text.screen-section > .container {
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
  padding-bottom: 40px;
}

.about-text__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  min-height: 360px;
  height: 100%;
  border-radius: var(--radius-card);
  background-color: var(--gray-bg);
  background-image: url('../images/BackText.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 8px 28px rgba(44, 36, 22, 0.1);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, 0.5);
  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(44, 36, 22, 0.14);
}

.about-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  gap: 14px;
  width: 100%;
  padding: clamp(28px, 3.5vw, 40px);
  text-align: center;
}

.about-card__title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--btn-brown);
  margin: 0;
  width: 100%;
  min-height: 3.2em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(75, 54, 33, 0.12);
}

.about-card__text {
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: #3d2e1a;
  max-width: 34ch;
  flex: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.about-card__text a {
  color: var(--btn-brown);
  font-weight: 800;
  text-decoration: none;
}

.about-card__text a:hover {
  color: var(--btn-brown-hover);
  text-decoration: underline;
  text-decoration-color: var(--btn-brown);
}

.about-card__text strong {
  font-weight: 800;
  color: #2a1f12;
}

.about-card .btn {
  align-self: center;
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Slider */
.slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.slider-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.reviews-swiper { flex: 1; overflow: hidden; }

/* Factory team */
.factory-video.screen-section {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: calc(var(--header-h) + 12px) 0 48px;
}

.factory-video.screen-section > .container {
  align-items: center;
  overflow: visible;
  max-height: none;
  justify-content: flex-start;
}

.factory-video__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
  gap: 12px;
}

.factory-video__drivers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

.factory-video__driver {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.factory-video__driver-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(44, 36, 22, 0.1);
  background: var(--section-bg-a);
}

.factory-video__driver-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.factory-video__driver-name {
  flex-shrink: 0;
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--text);
}

/* Compare: Почему мы — две карточки: фото сверху, список снизу */
.compare.screen-section {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.compare.screen-section > .container {
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 40px;
}

.compare__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.compare__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(44, 36, 22, 0.1);
}

.compare__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-bg);
  flex-shrink: 0;
}

.compare__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare__list--backtext {
  background-image: url('../images/BackText.webp');
}

.compare__list {
  position: relative;
  flex: 1;
  padding: clamp(22px, 3vw, 28px);
  border-radius: 0;
  background-color: var(--gray-bg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
}

.compare__list::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, 0.5);
  pointer-events: none;
}

.compare__list > * {
  position: relative;
  z-index: 1;
}

.compare__card-title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--btn-brown);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(75, 54, 33, 0.12);
}

.compare__items {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  max-width: 36ch;
  margin-inline: auto;
}

.compare__items li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 500;
  line-height: 1.6;
  color: #3d2e1a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.compare__items li:last-child {
  margin-bottom: 0;
}

.compare__items li strong {
  font-weight: 800;
  color: #2a1f12;
}

.compare__items--bad li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #c62828;
  font-weight: 700;
}

.compare__items--good {
  counter-reset: compare-reasons;
}

.compare__items--good li {
  counter-increment: compare-reasons;
  padding-left: 30px;
}

.compare__items--good li::before {
  content: counter(compare-reasons);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 20px;
}

/* Consultation */
.consultation.screen-section {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: calc(var(--header-h) + 12px) 0 48px;
}

.consultation.screen-section > .container {
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
}

.consultation__lead {
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.65;
  color: var(--text-light);
  text-align: center;
  max-width: 680px;
  margin: -4px auto 20px;
}

.consultation__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.consultation__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.consultation__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consultation__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--yellow);
  border-radius: var(--radius-card);
}

.consultation__form-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.consultation__form input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  outline: none;
  font-size: 14px;
}

.consultation__form input:focus {
  box-shadow: 0 0 0 2px var(--brown);
}

.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--gray-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  flex-shrink: 0;
}
.contact-item__label { font-size: 11px; text-transform: uppercase; color: var(--text-light); margin-bottom: 2px; }
.contact-item__value { font-size: 15px; font-weight: 600; }
a.contact-item__value:hover { color: var(--brown); }

.consultation__photo {
  min-height: 280px;
  max-height: calc(100vh - var(--header-h) - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.consultation__photo-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 12px 32px rgba(44, 36, 22, 0.1);
}

.consultation__photo-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--header-h) - 160px);
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.consultation__photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 18px 6px rgba(240, 235, 227, 0.22);
  background: radial-gradient(
    ellipse 98% 96% at 50% 40%,
    transparent 82%,
    rgba(240, 235, 227, 0.18) 94%,
    transparent 100%
  );
}

/* Site bottom: map + footer */
.site-bottom {
  padding: calc(var(--header-h) + 24px) 0 0;
}

.site-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 16px;
}

/* Map (Yandex) */
.map-section {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 24px;
}

.map-section__head {
  flex-shrink: 0;
  text-align: center;
  padding: 0 0 12px;
}

.map-section__title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.map-section__hint {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.map-section__map {
  width: 100%;
  min-height: 460px;
  height: min(58vh, 520px);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-section__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  padding: 24px;
  text-align: center;
  color: var(--text-light);
  background: var(--gray-bg);
}

.map-balloon {
  max-width: 260px;
  font-family: 'Montserrat', sans-serif;
}

.map-balloon__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.map-balloon__place {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.map-balloon__dates {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.footer {
  background: var(--btn-brown);
  color: var(--white);
  padding: 10px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding-bottom: 8px;
  align-items: center;
}

.footer__nav { display: flex; gap: 24px; justify-content: center; align-items: start; }
.footer__col h4 { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.footer__col ul li { margin-bottom: 2px; }
.footer__col--catalog ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 2px;
}
.footer__col ul li a { font-size: 10px; line-height: 1.3; color: rgba(255, 255, 255, 0.75); }
.footer__col ul li a:hover { color: var(--white); }
.footer__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__contacts { text-align: right; }
.footer__phone { font-size: 13px; font-weight: 700; display: block; margin-bottom: 0; line-height: 1.2; }
.footer__phone:hover { color: var(--yellow); }
.footer__manager { font-size: 10px; color: rgba(255, 255, 255, 0.7); margin: 0; line-height: 1.2; }
.footer__photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  display: block;
}
.footer__bottom {
  background: #3a2918;
  padding: 6px 12px;
  text-align: center;
  margin-top: 8px;
}

.footer__bottom p { font-size: 10px; color: rgba(255, 255, 255, 0.5); line-height: 1.3; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 44px 24px 24px;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: var(--gray-bg);
  font-size: 32px;
  font-weight: 400;
  cursor: pointer;
  line-height: 1;
  color: var(--text);
  transition: background var(--transition);
}

.modal__close:hover {
  background: var(--section-bg-b);
}

.modal__title { font-size: 16px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.modal__desc {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}
.modal__meta { font-size: 12px; color: var(--brown); margin-bottom: 4px; }
.modal__driver { font-size: 13px; margin-bottom: 16px; color: var(--text-light); }

.modal .specs {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-border);
  margin-bottom: 16px;
}

.modal .specs td {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-border);
}

.modal .specs tr:nth-child(odd) { background: var(--gray-light); }
.modal .specs td:first-child { font-weight: 700; color: var(--text-light); width: 45%; }
.modal .specs td:last-child { color: var(--text); }

.modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.modal__back {
  display: none;
}

.modal__dialog--order {
  max-width: 420px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-form__title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.order-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-form__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.order-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  outline: none;
  font-size: 14px;
  font-family: inherit;
}

.order-form input[readonly] {
  background: var(--gray-light);
  color: var(--text);
  cursor: default;
}

.order-form input:focus:not([readonly]) {
  border-color: var(--brown);
  box-shadow: 0 0 0 2px rgba(75, 54, 33, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .screen-section {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: calc(var(--header-h) + 20px) 0 40px;
  }
  .screen-section > .container { max-height: none; overflow: visible; }

  .factory-video.screen-section {
    padding: calc(var(--header-h) + 8px) 0 32px;
  }

  .factory-video__drivers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
  }

  .hero-banner__content {
    padding: 12px 16px 48px;
  }

  .hero-banner__card-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 24px 20px;
    text-align: center;
    gap: 16px;
  }

  .hero-banner__card-copy {
    align-items: center;
  }

  .hero-banner__desc {
    max-width: none;
    text-align: center;
  }

  .hero-banner__title { font-size: clamp(18px, 5.5vw, 28px); }

  .hero-banner__combo {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-banner__equipment--addon {
    max-height: min(28vh, 180px);
  }

  .hero-banner__combo-plus {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-banner__order { align-self: center; }

  .hero-banner__equipment {
    max-height: min(36vh, 220px);
  }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-text__grid { grid-template-columns: 1fr; }

  .about-card {
    min-height: 280px;
  }

  .about-card__text {
    max-width: none;
  }
  .compare__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .consultation.screen-section {
    padding: calc(var(--header-h) + 8px) 0 32px;
  }

  .consultation__lead {
    margin-bottom: 16px;
  }

  .consultation__inner {
    grid-template-columns: 1fr;
  }

  .consultation__photo {
    max-height: 360px;
    order: -1;
  }

  .consultation__photo-frame img {
    max-height: 360px;
  }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer__col--catalog ul { grid-template-columns: 1fr; }
  .footer__right { justify-content: center; }
  .footer__contacts { text-align: center; }
  .footer__contacts .messenger-links { justify-content: center; }
  .footer__photo { margin: 0; }
}

@media (max-width: 1024px) {
  .header__bar {
    grid-template-columns: auto 1fr auto;
    gap: 12px 16px;
    padding: 12px 16px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
  }

  .header__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .header__actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header__phone {
    font-size: 15px;
  }

  .header.header--hidden {
    transform: translateY(-100%);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--mobile-bar-h);
  }

  .mobile-call-bar {
    display: flex;
  }

  .header__actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .header__actions .btn--sm {
    display: none;
  }

  .header__contact {
    align-items: flex-end;
    gap: 4px;
  }

  .header__phone {
    font-size: 13px;
  }

  .header__contact .messenger-link {
    width: 28px;
    height: 28px;
  }

  .header__contact .messenger-link svg {
    width: 16px;
    height: 16px;
  }

  .logo__text {
    font-size: 16px;
  }

  .catalog-grid { grid-template-columns: 1fr; }
  .factory-video__drivers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 340px;
  }
  .consultation__form input {
    padding: 10px 12px;
  }
  .map-section__map {
    min-height: 320px;
    height: min(50vh, 400px);
  }

  .modal__actions {
    grid-template-columns: 1fr 1fr;
  }

  .modal__back {
    display: inline-flex;
  }
}
