/* MotorCore — industrial / Weichai landing */
:root {
  --btn-kp:#37A4D2;
  --bg-dark: #121212;
  --bg-dark-2: #1a1a1a;
  --bg-muted: #ececec;
  --bg-card: #ffffff;
  --text-on-dark: #f4f4f4;
  --text-muted-dark: #b8b8b8;
  --text-on-light: #111111;
  --text-muted-light: #4a4a4a;
  --accent: #c8f542;
  --accent-hover: #d7ff5c;
  --accent-soft: #e8ffc0;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
  --container: min(1180px, 92vw);
  --font: "Commissioner", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font);
}

body {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-on-light);
  background: var(--bg-muted);
}

.span-accent{
  color: var(--accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 0;
  gap: 0.75rem 1rem;
}

.nav {
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--text-muted-dark);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switch__btn:hover {
  color: var(--text-on-dark);
}

.lang-switch__btn.is-active {
  background: var(--accent);
  color: #111;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.logo__accent {
  color: var(--accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav__list a {
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
}

.nav__list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark-2);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav__menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav__menu .lang-switch {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    width: 100%;
  }

  .header__inner {
    position: relative;
  }

  .nav {
    position: static;
  }

  .dir-screen__media--compact img{
    width: 100%;
    min-height: auto !important;
  }
  .hero__visual img{
    min-height: auto !important;
  }
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--bg-dark);
  background-image: url("../img/bg_01.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  padding: 2.5rem 0 0;
  overflow: hidden;
}

.hero__grid {
  padding-bottom: 4rem;
}

.hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: 52ch;
  color: var(--text-muted-dark);
  font-size: 1.02rem;
}

.hero__contacts {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.hero__phone {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-on-dark);
  text-decoration: none;
}

.hero__phone:hover {
  color: var(--accent);
  text-decoration: none;
}

.hero__social {
  display: flex;
  gap: 0.5rem;
}

.soc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.soc:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
  text-decoration: none;
}

.soc--wa::after {
  content: "WA";
  font-size: 0.65rem;
  font-weight: 800;
  color: #111;
}

.soc--tg::after {
  content: "TG";
  font-size: 0.65rem;
  font-weight: 800;
  color: #111;
}

.footer__social .soc {
  width: 40px;
  height: 40px;
}

.hero__feature {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .hero__feature {
    grid-template-columns: 1fr;
  }

  .hero__badges {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__contacts {
    text-align: left;
    align-items: flex-start;
  }
}

.lead-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.lead-form__title {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.field {
  display: block;
  margin-bottom: 0.9rem;
}

.field__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  margin-bottom: 0.35rem;
}

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-on-dark);
  font: inherit;
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--btn-kp);
  color: #111;
}

.btn--primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn--block {
  width: 100%;
}

.btn--ghost {
  background: #fff;
  color: #111;
}

.btn--ghost:hover {
  background: var(--bg-muted);
  text-decoration: none;
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-form__note {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted-dark);
}

.hero__visual {
  width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 280px;
  box-shadow: var(--shadow-soft);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.hero__badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge-card {
  background: var(--accent);
  color: #111;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.badge-card__icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.badge-card__text {
  margin: 0;
}

.hero__wave {
  color: var(--bg-muted);
  line-height: 0;
  margin-top: -1px;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 72px);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin: 0 0 2rem;
  max-width: 65ch;
  color: var(--text-muted-light);
}

/* Directions — full screens */
.directions {
  background: var(--bg-muted);
}

.dir-nav {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(236, 236, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dir-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dir-nav__inner::-webkit-scrollbar {
  display: none;
}

.dir-nav__link {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-light);
  background: var(--bg-card);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dir-nav__link:hover {
  text-decoration: none;
  background: #ddd;
}

.dir-nav__link.is-active {
  background: var(--accent);
  color: #111;
}

.dir-screen {
  padding: 0;
  scroll-margin-top: 120px;
  background: var(--bg-muted);
}

.dir-screen--combo {
  padding: 0;
}

.dir-block {
  padding: 3rem 0;
  scroll-margin-top: 120px;
}

.dir-block--alt {
  background: var(--bg-card);
}

.dir-block__head--stack {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.dir-block__intro {
  max-width: 56ch;
}

.dir-screen--alt {
  background: var(--bg-card);
}

.dir-screen--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3rem 0;
}

.dir-screen#dir-parts {
  padding: 3rem 0;
}

.dir-screen--dark .dir-screen__text,
.dir-screen--dark .dir-screen__note {
  color: var(--text-muted-dark);
}

.dir-screen--dark .dir-screen__num {
  color: var(--accent);
}

.dir-screen--dark .swap-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
}

.dir-screen--dark .swap-card p {
  color: var(--text-muted-dark);
}
.dir-bg-gray{
  background-color:var(--bg-dark-2);
}
.dir-screen__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.dir-screen__inner--reverse {
  direction: rtl;
}

.dir-screen__inner--reverse > * {
  direction: ltr;
}

.dir-screen__inner--stack {
  grid-template-columns: 1.2fr 0.8fr;
  margin-bottom: 2rem;
}

.dir-screen__content--wide {
  max-width: 56ch;
}

.dir-screen__num {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--bg-dark);
}

.dir-screen__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.dir-screen__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted-light);
  max-width: 52ch;
}

.dir-screen__list {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted-light);
}

.dir-screen__list li {
  margin-bottom: 0.35rem;
}

.dir-screen__note {
  margin: 0 0 1.25rem;
  color: var(--text-muted-light);
  font-size: 0.95rem;
}

.dir-screen__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.dir-screen__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  max-height: min(70vh, 520px);
}

.dir-screen__media--compact img {
  min-height: 220px;
  max-height: 380px;
}

.dir-cards,
.parts-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dir-cards__item,
.parts-highlight__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.dir-cards__item--accent,
.parts-highlight__card--accent {
  background: var(--accent);
  border-color: transparent;
  color: #111;
}

.dir-cards__item--accent p,
.parts-highlight__card--accent p {
  color: rgba(0, 0, 0, 0.65);
}

.dir-cards__label,
.parts-highlight__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-dark-2);
  margin-bottom: 0.5rem;
}

.dir-cards__label-accent{
  color: var(--accent);
}

.dir-cards__item--accent .dir-cards__label,
.parts-highlight__card--accent .parts-highlight__label {
  color: #111;
}

.dir-cards__item h3,
.parts-highlight__card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.dir-cards__item p,
.parts-highlight__card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

.dir-cards--on-dark .dir-cards__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  box-shadow: none;
}

.dir-cards--on-dark .dir-cards__item p {
  color: var(--text-muted-dark);
}

.dir-cards--on-dark .dir-cards__item--accent {
  background: var(--accent);
  color: #111;
  border-color: transparent;
}

.dir-cards--on-dark .dir-cards__item--accent p {
  color: rgba(0, 0, 0, 0.65);
}

.dir-cards--on-dark .dir-cards__item--accent .dir-cards__label {
  color: #111;
}

.dir-screen__note--steps-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.dir-steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.dir-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

.dir-steps__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 1);
}

.dir-block--alt .dir-steps__num {
  background: var(--bg-muted);
}

@media (max-width: 900px) {
  .hero{
    background-image:none;
  }
  .dir-screen__inner,
  .dir-screen__inner--stack,
  .dir-block__head--stack {
    grid-template-columns: 1fr;
  }

  .dir-screen__inner--reverse {
    direction: ltr;
  }

  .dir-cards,
  .parts-highlight {
    grid-template-columns: 1fr;
  }

  .dir-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dir-block {
    padding: 2.25rem 0;
  }
}

/* Slider / price cards */
.slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.slider::-webkit-scrollbar {
  height: 6px;
}

.slider::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 99px;
}

.price-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
}

.price-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.price-card__title {
  margin: 0;
  padding: 1rem 1rem 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.price-card__cta {
  margin: 0 1rem 1.25rem;
  width: calc(100% - 2rem);
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.slider-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.slider-btn:hover {
  background: var(--accent-hover);
}

.slider-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
}

.slider-btn--prev::after {
  transform: rotate(45deg);
  margin-left: 3px;
}

.slider-btn--next::after {
  transform: rotate(-135deg);
  margin-right: 3px;
}

@media (max-width: 600px) {
  .slider-btn {
    display: none;
  }
}

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }

}

.adv-card {
  background: var(--bg-dark-2);
  color: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.adv-card__icon {
  display: block;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.adv-card__stat {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
}

.adv-card__label {
  margin: 0.35rem 0 0;
  color: var(--bg-muted);
  font-size: 0.9rem;
}

/* Promo banner */
.promo {
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.promo__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  max-width: 14ch;
}

.promo__mid {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted-light);
}

.promo__mid strong {
  color: #111;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .promo {
    flex-direction: column;
    text-align: center;
  }

  .promo__title {
    max-width: none;
  }
}

/* Swap grid */
.swap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .swap-grid {
    grid-template-columns: 1fr;
  }
}

.swap-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.swap-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.swap-card p {
  margin: 0;
  color: var(--text-muted-light);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.steps__item {
  flex: 1 1 140px;
  max-width: 200px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.steps__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.65rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Gallery */
.section--gallery {
  padding-bottom: 3rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.gallery img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Video reviews */
.reviews__hint {
  margin-bottom: 1.25rem;
}

.video-reviews-wrap {
  gap: 0.75rem;
}

.video-reviews {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.video-reviews::-webkit-scrollbar {
  display: none;
}

.video-reviews .video-review {
  flex: 0 0 calc((100% - 3rem) / 4);
  width: calc((100% - 3rem) / 4);
  scroll-snap-align: start;
}

@media (max-width: 1100px) {
  .video-reviews .video-review {
    flex-basis: calc((100% - 1rem) / 2);
    width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 600px) {
  .video-reviews-wrap .slider-btn {
    display: grid;
    width: 36px;
    height: 36px;
  }

  .video-reviews .video-review {
    flex-basis: 100%;
    width: 100%;
  }
}

.video-review {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 10;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  text-decoration: none;
  text-align: left;
  font: inherit;
  color: var(--text-on-dark);
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
}

.video-review:not([data-video-url=""]):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.video-review:hover {
  text-decoration: none;
}

.video-review__poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2d2d2d 0%, #121212 55%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
}

.video-review__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-review__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.video-review__play {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.video-review__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #111;
}

.video-review__title,
.video-review__author {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.video-review__title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
  padding-top: 0.75rem;
}

.video-review__author {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  padding-bottom: 1rem;
}

.video-review[data-video-url=""] {
  cursor: default;
}

.video-review[data-video-url=""]:hover .video-review__play {
  transform: translate(-50%, -50%) scale(1);
}

/* Lead request modal */
body.is-lead-modal-open {
  overflow: hidden;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lead-modal[hidden] {
  display: none;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #fff;
  color: #111;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lead-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-muted);
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.lead-modal__close:hover {
  background: var(--accent);
}

.lead-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.lead-modal__form .field--light .field__label {
  color: #555;
}

.lead-modal__form .field--light .field__input {
  background: var(--bg-muted);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
}

.lead-modal__form .field--light .field__input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.lead-form__note--light {
  color: #666;
}

/* Video modal */
body.is-video-modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal.is-portrait .video-modal__dialog {
  width: min(420px, 100%);
}

.video-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.video-modal__close:hover {
  background: var(--accent);
  color: #111;
}

.video-modal__caption {
  margin: 0 2.5rem 0.75rem 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-on-dark);
}

.video-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(70dvh, 540px);
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-modal.is-portrait .video-modal__player {
  aspect-ratio: 9 / 16;
  max-height: min(78dvh, 720px);
  margin-inline: auto;
}

.video-modal__player iframe,
.video-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-review__thumb,
.video-modal__player video {
  -webkit-user-select: none;
  user-select: none;
}

.video-modal__player video::-webkit-media-controls-download-button,
.video-review__thumb::-webkit-media-controls-download-button {
  display: none;
}

.video-modal__player video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

@media (max-width: 700px) {
  .video-modal {
    padding: 0.75rem;
    align-items: center;
  }

  .video-modal.is-landscape .video-modal__dialog {
    width: min(96vw, 960px);
  }

  .video-modal.is-portrait .video-modal__dialog {
    width: min(92vw, 420px);
  }

  .video-modal.is-landscape .video-modal__player {
    aspect-ratio: 16 / 9;
    max-height: min(56dvh, 420px);
  }

  .video-modal.is-portrait .video-modal__player {
    aspect-ratio: 9 / 16;
    max-height: min(78dvh, 640px);
  }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer__muted {
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: var(--radius-md);
}

.footer__nav-title {
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.4rem;
}

.footer__links a {
  color: var(--text-on-dark);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__copy {
  text-align: center;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 300;
  max-width: min(360px, 90vw);
  font-size: 0.95rem;
}

.toast[hidden] {
  display: none;
}
