*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --black-border: #1e1e1e;
  --white: #ffffff;
  --gray: #a0a0a0;
  --gray-dark: #666666;
  --gold-light: #e8d5a3;
  --gold: #c9a84c;
  --gold-dark: #8b6914;
  --gold-gradient: linear-gradient(135deg, #f0e0b0 0%, #c9a84c 45%, #8b6914 100%);
  --gold-gradient-hover: linear-gradient(135deg, #f5e8c8 0%, #d4b55a 45%, #9a7520 100%);
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 72px;
  --radius: 12px;
  --transition: 0.25s ease;
  --container-padding-x: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--container-padding-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-padding-x), env(safe-area-inset-right, 0px));
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text--hero {
  background: linear-gradient(92deg, #ffffff 0%, #fff6e0 25%, #f0e0b0 50%, #e8d5a3 75%, #d4b55a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold-gradient);
  color: var(--black);
}

.btn--gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(201, 168, 76, 0.5);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black-border);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.header__brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
}

.header__logo-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.header__logo-slogan {
  display: block;
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Горизонтальная линия-ограничитель под текстом */
.text-rule::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 12px;
  margin-bottom: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 168, 76, 0.4) 65%, transparent 100%);
  border-radius: 1px;
}

.text-rule--short::after {
  max-width: 120px;
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
  white-space: nowrap;
}

.header__nav a:hover {
  color: var(--gold-light);
}

.header__nav-phones {
  display: none;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  transition: var(--transition);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--white);
}

.header__messengers {
  display: flex;
  gap: 8px;
}

.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.messenger-btn--tg {
  background: rgba(0, 136, 204, 0.15);
  color: #29b6f6;
}

.messenger-btn--tg:hover {
  background: #0088cc;
  color: var(--white);
}

.messenger-btn--max {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  width: auto;
  padding: 0 10px;
  border-radius: 18px;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.messenger-btn--max:hover {
  background: var(--gold-gradient);
  color: var(--black);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Герой — фон на весь экран, текст слева */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background: center center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  filter: brightness(1.2) contrast(1.05) saturate(1.08);
  will-change: opacity;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__slide--mountain {
  background-image: url('../images/hero-mountain.png');
  background-position: 72% center;
}

.hero__slide--trucks {
  background-image: url('../images/hero-trucks-city.png');
}

.hero__slide--gazelle {
  background-image: url('../images/hero-gazelle-movers.png');
}

.hero-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold-light);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.hero-carousel__btn:hover {
  background: var(--gold-gradient);
  color: var(--black);
  border-color: transparent;
}

.hero-carousel__btn--prev {
  left: max(var(--container-padding-x), 12px);
}

.hero-carousel__btn--next {
  right: max(var(--container-padding-x), 12px);
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }

  .hero__slide:not(.hero__slide--active) {
    display: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 35%, transparent 62%),
    linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 38%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 56px;
  padding-bottom: 88px;
  text-align: left;
  transform: translate(-50mm, -50mm);
}

.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(232, 213, 163, 0.6);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero__badge--top {
  position: absolute;
  top: calc(var(--header-h) + 12px);
  left: var(--container-padding-x);
  z-index: 3;
  margin: 0;
  white-space: nowrap;
  font-size: clamp(0.62rem, 1.35vw, 0.82rem);
  line-height: 1.3;
  border-radius: var(--radius);
  max-width: calc(100% - 2 * var(--container-padding-x));
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero__title-light {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.hero__title.text-rule::after {
  max-width: 100%;
}

.hero__title .gold-text--hero {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.85));
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: #ffffff;
  max-width: 520px;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 16px rgba(0, 0, 0, 0.75);
}

.hero__inner .text-rule::after {
  background: linear-gradient(90deg, #e8d5a3 0%, rgba(232, 213, 163, 0.7) 65%, transparent 100%);
  opacity: 1;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: flex-start;
}

.hero__actions .btn--gold {
  background: linear-gradient(180deg, #fff9ee 0%, #f0d78a 40%, #d4b55a 100%);
  color: #1a1200;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero__actions .btn--gold:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f5e4b8 45%, #e0c878 100%);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.6);
}

.hero__actions .btn--outline {
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-weight: 700;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: #ffffff;
}

.hero__phones {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-bottom: 8px;
}

.hero__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero__phone-link:hover {
  color: var(--gold-light);
}

/* Секции */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--black-soft);
}

.section__head {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 0;
}

.section__title--left {
  display: block;
  text-align: left;
  margin-bottom: 40px;
}

.section__title.text-rule::after,
.section__head .section__title.text-rule::after {
  margin-bottom: 0;
}

.section__eyebrow {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section--services .section__eyebrow,
.section--process .section__eyebrow {
  text-align: left;
}

.section__eyebrow.text-rule {
  display: inline-block;
  margin-bottom: 12px;
}

/* Автопарк — типы машин */
#fleet .section__eyebrow,
#fleet .section__eyebrow.text-rule {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#fleet .section__title {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

#fleet .section__head {
  max-width: 100%;
  overflow: hidden;
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vehicle-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.vehicle-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.vehicle-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black);
}

.vehicle-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.vehicle-card__note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.45;
}

.vehicle-card__specs {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vehicle-card__specs div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--black-border);
}

.vehicle-card__specs div:last-child {
  border-bottom: none;
}

.vehicle-card__specs dt {
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 500;
}

.vehicle-card__specs dd {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-align: right;
}

@media (max-width: 900px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Услуги */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Преимущества */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.advantage-card__num {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.advantage-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.advantage-card p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Как работаем */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
}

.process-step__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--gray);
  font-size: 0.85rem;
}

.review-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Отзывы */
.reviews-carousel {
  position: relative;
  margin-bottom: 48px;
}

.reviews-carousel__track {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.review-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .review-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .review-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
}

.review-card__stars {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card__text {
  color: var(--gray);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}

.review-card__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.reviews-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.reviews-carousel__btn:hover {
  background: var(--gold-gradient);
  color: var(--black);
  border-color: transparent;
}

.reviews-carousel__btn--prev {
  left: -22px;
}

.reviews-carousel__btn--next {
  right: -22px;
}

.reviews-empty {
  text-align: center;
  color: var(--gray);
  padding: 40px;
  width: 100%;
}

/* Форма отзыва */
.review-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 32px;
}

.review-form__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.review-form__group {
  margin-bottom: 20px;
}

.review-form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray);
}

.required {
  color: var(--gold);
}

.star-rating {
  display: flex;
  gap: 4px;
}

.star {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-dark);
  cursor: pointer;
  transition: var(--transition);
  padding: 0 2px;
  line-height: 1;
}

.star:hover,
.star.active {
  color: var(--gold);
  transform: scale(1.1);
}

.review-form__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-dark);
  margin-top: 6px;
}

.review-form__hint.error {
  color: #e57373;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  resize: vertical;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: rgba(201, 168, 76, 0.5);
}

.review-form .btn {
  width: 100%;
  margin-top: 8px;
}

.review-form__message {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.review-form__message.success {
  color: #81c784;
}

.review-form__message.pending {
  color: var(--gold-light);
}

.review-form__message.error {
  color: #e57373;
}

/* Контакты */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--black-border);
}

.contact-card__link {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: var(--transition);
}

.contact-card__link--phone {
  color: var(--gold-light);
}

.contact-card__link--phone:hover {
  color: var(--white);
}

.contact-card__note {
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-top: 12px;
}

.contact-card__messengers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-messenger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-messenger:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateX(4px);
}

.contact-messenger--tg {
  color: #29b6f6;
}

.contact-messenger--tg:hover {
  background: rgba(0, 136, 204, 0.1);
}

.contact-messenger--max {
  color: var(--gold-light);
}

.contact-messenger--max:hover {
  background: rgba(201, 168, 76, 0.08);
}

.contact-messenger__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 8px;
  background: var(--gold-gradient);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 6px;
}

/* Фотогалерея */
.photo-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.photo-gallery__column {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.photo-gallery__heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.photo-gallery__desc {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.5;
}

.photo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.photo-gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--black);
  aspect-ratio: 4 / 3;
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.photo-gallery__item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty {
  grid-column: 1 / -1;
  color: var(--gray);
  font-size: 0.9rem;
  padding: 16px 0;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--black-border);
  border-radius: 50%;
  background: var(--black-card);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-lightbox__close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.gallery-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

@media (min-width: 900px) {
  .photo-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .photo-gallery__column {
    padding: 24px 20px 20px;
  }
}

/* Подвал */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: inline-block;
}

.footer__brand strong {
  display: block;
  font-size: 0.95rem;
}

.footer__brand p {
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__phones a {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__phones a:hover {
  color: var(--white);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-dark);
  margin-top: 8px;
}

/* Плавающая кнопка — по центру снизу */
.fab-call {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 56px;
  height: 56px;
  padding: 0 20px;
  border-radius: 50px;
  background: var(--gold-gradient);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.fab-call__label {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.fab-call:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(201, 168, 76, 0.6); }
}

/* Адаптив */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    padding: 24px var(--container-padding-x);
    border-bottom: 1px solid var(--black-border);
    gap: 16px;
  }

  .header__contacts {
    display: none;
  }

  .header__nav-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--black-border);
    margin-top: 8px;
  }

  .header__nav-phones a {
    color: var(--gold-light);
    font-weight: 600;
  }

  .header__nav-messengers {
    display: flex;
    gap: 16px;
    margin-top: 8px;
  }

  .header__nav-messengers a {
    color: var(--gray);
    font-size: 0.85rem;
  }

  .reviews-carousel__btn--prev {
    left: 0;
  }

  .reviews-carousel__btn--next {
    right: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding-x: 32px;
    --hero-mobile-img-h: clamp(200px, 52vw, 300px);
  }

  .services-grid,
  .advantages-grid,
  .process-grid,
  .vehicles-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  /* Фото сверху, текст и кнопки — ниже на тёмном фоне */
  .hero {
    min-height: auto;
    display: block;
    overflow: hidden;
    padding-top: var(--header-h);
    align-items: stretch;
  }

  .hero__bg {
    position: relative;
    inset: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: var(--hero-mobile-img-h);
    margin: 0;
    overflow: hidden;
  }

  .hero__overlay {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: var(--hero-mobile-img-h);
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }

  .hero__slide {
    filter: brightness(1.1) contrast(1.05) saturate(1.05);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #0a0a0a;
  }

  .hero__slide--mountain {
    background-position: 80% center;
  }

  .hero__slide--trucks,
  .hero__slide--gazelle {
    background-position: 60% center;
  }

  .hero-carousel__btn {
    top: calc(var(--header-h) + var(--hero-mobile-img-h) / 2);
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .hero-carousel__btn--prev {
    left: 8px;
  }

  .hero-carousel__btn--next {
    right: 8px;
  }

  .hero__badge--top {
    font-size: clamp(0.5rem, 2.35vw, 0.68rem);
    white-space: nowrap;
    line-height: 1.3;
    max-width: calc(100% - 96px);
    top: calc(var(--header-h) + 8px);
    left: var(--container-padding-x);
    right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__inner {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    background: var(--black);
    padding-top: 24px;
    padding-bottom: 40px;
    transform: none;
  }

  #fleet .section__title {
    font-size: clamp(1.15rem, 5.2vw, 1.75rem);
    padding: 0 4px;
    line-height: 1.2;
  }

  .hero__phones {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  body {
    padding-bottom: 80px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__phones {
    align-items: center;
  }

  .fab-call__label {
    display: inline;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding-x: 36px;
    --hero-mobile-img-h: clamp(180px, 48vw, 260px);
  }

  .hero__inner {
    padding-bottom: 36px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .header__phone {
    font-size: 0.72rem;
  }

  .fab-call {
    width: calc(100% - 2 * var(--container-padding-x));
    max-width: 280px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 380px) {
  .header__logo-slogan {
    display: none;
  }

}
