/* ========== ТЗ: 1 страница — цвета и переменные ========== */
:root {
  --neon-green: #00e676;
  --neon-green-glow: rgba(0, 230, 118, 0.5);
  --dark-green: #0d5c2e;
  --dirty-white: rgba(255, 255, 255, 0.85);
  --white: #ffffff;
  --gold-frame: #e8dcc4;
  --gold-frame-light: #f5eedd;
  --blue-tg: #0088cc;
  --text-dark: #1a1a1a;
  --text-muted: rgba(255, 255, 255, 0.6);
  --gray-soft: #9ca3af;
  
  /* Новые цвета для кнопок */
  --btn-green-bg: linear-gradient(135deg, rgba(34, 51, 43, 0.85) 0%, rgba(99, 149, 96, 0.85) 100%);
  --btn-green-bg-hover: linear-gradient(135deg, rgba(34, 51, 43, 0.95) 0%, rgba(99, 149, 96, 0.95) 100%);
  --btn-green-border: rgba(99, 149, 96, 0.4);
  --btn-green-glow: rgba(232, 255, 217, 0.08);
  --btn-green-glow-hover: rgba(232, 255, 217, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  background: #0c0c0c;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Шапка ========== */
.site-header {
  position: relative !important;
  top: auto !important;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 3000;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  backface-visibility: visible;
  border-bottom: 1px solid transparent;
  transition: none;
}

.site-header.scrolled {
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  gap: 32px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dirty-white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-a-green {
  background: linear-gradient(110deg, var(--neon-green) 45%, var(--dirty-white) 45%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo-plus {
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--neon-green-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dirty-white);
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 40px;
  height: 20px;
  background: var(--neon-green);
  filter: blur(15px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.8;
}

.nav-sep {
  margin: 0 2px;
  opacity: 0.7;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--btn-green-bg);
  color: var(--white);
  border: 1px solid var(--btn-green-border);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 0 15px var(--btn-green-glow);
  transition: box-shadow 0.2s, background 0.2s;
}

.btn-header:hover {
  background: var(--btn-green-bg-hover);
  box-shadow: 0 0 25px var(--btn-green-glow-hover);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========== Hero: фон на весь экран (фон_главная.png) ========== */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px; /* Учитываем шапку, чтобы фон не уходил под неё и не обрезался */
  background-color: #0c0c0c;
}

.hero-bg-main {
  position: absolute;
  inset: 0;
  background-image: url('images/фон_главная.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  /* Плавный переход фона снизу */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.animated-car {
  position: absolute;
  bottom: 160px; /* Еще чуть выше */
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(0.9);
  z-index: 10;
  width: 100%;
  max-width: 800px; /* Увеличили максимальную ширину */
  pointer-events: none;
  opacity: 0;
  animation: driveIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes driveIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-150px) scale(0.3); /* Начинает дальше и меньше */
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(0.9); /* Подъезжает крупнее и останавливается */
  }
}

/* ========== Блок формы (фон1.png) ========== */
.form-section {
  position: relative;
  padding: 120px 0 100px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
}

.form-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  /* Плавный переход фона сверху и снизу */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.form-bg-1 {
  background-image: url('images/фон1.png');
}

.form-bg-2 {
  background-image: url('images/фон2.png');
}

.form-section .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Рамка формы: золотисто-белая, внутри полупрозрачная */
.form-frame {
  border: 2px solid var(--gold-frame);
  border-radius: 12px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(232, 220, 196, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.order-form .form-row {
  margin-bottom: 20px;
}

.order-form .form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.order-form .form-group {
  display: flex;
  flex-direction: column;
}

.order-form .form-group.full {
  width: 100%;
}

.order-form label {
  font-size: 0.9rem;
  color: var(--dirty-white);
  margin-bottom: 8px;
  font-weight: 500;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.order-form input::placeholder,
.order-form textarea::placeholder {
  color: var(--text-muted);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.order-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.order-form select option {
  background-color: #1a1a1a;
  color: #ffffff;
}

.order-form textarea {
  resize: vertical;
  min-height: 88px;
}

.form-submit {
  margin-top: 28px;
  text-align: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  background: var(--btn-green-bg);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--btn-green-border);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 24px var(--btn-green-glow);
  transition: box-shadow 0.2s, background 0.2s;
}

.btn-submit:hover {
  background: var(--btn-green-bg-hover);
  box-shadow: 0 0 32px var(--btn-green-glow-hover);
}

/* intl-tel-input: подгон под форму и тёмный выпадающий список стран */
.order-form .iti {
  width: 100%;
}
.order-form .iti .iti__tel-input {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}
.order-form .iti .iti__tel-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.order-form .iti .iti__tel-input.phone-invalid {
  border-color: #c53030;
  background: rgba(197, 48, 48, 0.08);
}
.order-form .iti .iti__tel-input.phone-valid {
  border-color: rgba(72, 187, 120, 0.6);
}
.order-form .iti .iti__flag-container {
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
}
.order-form .iti .iti__selected-dial-code {
  color: var(--text-muted);
}
.order-form .iti .iti__arrow {
  border-top-color: rgba(255, 255, 255, 0.7);
}
.iti__dropdown-content {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
.iti__country-list {
  background: #1a1a1a !important;
}
.iti__country {
  color: #e5e5e5 !important;
  padding: 8px 12px !important;
}
.iti__country:hover,
.iti__country.iti__highlight {
  background: rgba(255, 255, 255, 0.1) !important;
}
.iti__country-name {
  color: #e5e5e5 !important;
}
.iti__dial-code {
  color: var(--text-muted) !important;
}
.iti__search-input {
  background: #252525 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
  padding: 8px 12px !important;
}
.iti__search-input::placeholder {
  color: var(--text-muted);
}

/* ========== Контакты (фон2.png) ========== */
.contacts-section {
  position: relative;
  padding: 120px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contacts-section .form-section-bg {
  background-image: url('images/фон2.png');
  background-size: cover; 
  background-position: center;
  /* Плавный переход фона сверху, снизу можно оставить четким */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%);
}

.contacts-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.contacts-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}

.contacts-lead {
  font-size: 1.1rem;
  color: var(--dirty-white);
}

.highlight-minutes {
  color: var(--dark-green);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(13, 92, 46, 0.4);
}

.contacts-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--white);
}

.contact-icon-tg {
  background: var(--blue-tg);
  color: var(--white);
}

.contact-icon-clock {
  background: var(--btn-green-bg);
  border: 1px solid var(--btn-green-border);
  color: var(--white);
  box-shadow: 0 0 16px var(--btn-green-glow);
}

.contact-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-label-clock {
  color: var(--white);
  font-weight: 600;
}

.contact-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-tg);
  margin-bottom: 16px;
}

.contact-card-text {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-card-time {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-card-hours {
  font-size: 1rem;
  font-weight: 600;
  color: #639560;
  margin-bottom: 4px;
}

.contact-card-note {
  font-size: 0.9rem;
  color: var(--gray-soft);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: auto;
}

.btn-tg {
  background: var(--btn-green-bg);
  color: var(--white);
  border: 1px solid var(--btn-green-border);
  box-shadow: 0 0 16px var(--btn-green-glow);
}

.btn-tg:hover {
  box-shadow: 0 0 24px var(--btn-green-glow-hover);
  background: var(--btn-green-bg-hover);
  opacity: 1;
}

.btn-channel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-channel:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ========== Разделенный текст под контактами ========== */
.features-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
}

.f-icon {
  font-size: 1.2rem;
}

.f-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  background-color: #0c0c0c;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--white);
}

/* ========== Адаптив ========== */
@media (max-width: 1200px) {
  .contacts-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header .container {
    overflow: visible;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    max-height: none;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 3001;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }

  .nav.open {
    display: flex !important;
  }

  .btn-header {
    display: none; /* Скрываем кнопку рассчитать на мобилках, чтобы влез бургер и логотип */
  }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 101; /* Поверх всего в шапке */
    flex: 0 0 44px;
    margin-left: auto;
  }

  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .logo {
    min-width: 0;
    max-width: calc(100% - 56px);
    font-size: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .form-frame {
    padding: 24px 20px;
  }

  .order-form .form-row-double {
    grid-template-columns: 1fr;
  }

  .contacts-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-cards {
    grid-template-columns: 1fr;
  }

  .features-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .f-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .hero-full {
    min-height: 60vh;
  }
  .animated-car {
    max-width: 90%;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 10px;
  }

  .logo {
    font-size: 1.05rem;
  }

  .hero-full {
    min-height: 250px;
    padding: 0;
    margin-top: 72px;
  }
  .animated-car {
    display: none; /* Убираем фото авто на мобильных для удобства */
  }
  .hero-bg-main {
    background-position: center;
  }

  .form-section,
  .contacts-section {
    padding: 40px 0 60px;
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Фикс для карточек, чтобы не вылезали за экран */
  .car-card {
    margin: 0;
    width: 100%;
  }

  .steps-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* === СТРАНИЦА "АВТО ПОД ЗАКАЗ" === */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.car-card {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
}

.car-img {
  width: 100%;
  height: 240px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.car-card:hover .car-img img {
  transform: scale(1.05);
}

.car-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.car-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.spec-row span:first-child {
  color: var(--text-muted);
}

.spec-row span:last-child {
  color: var(--white);
  font-weight: 500;
  text-align: right;
}

.btn-outline {
  display: inline-block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--btn-green-border);
  border-radius: 8px;
  color: var(--white);
  background: var(--btn-green-bg);
  box-shadow: var(--btn-green-glow);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--btn-green-bg-hover);
  box-shadow: var(--btn-green-glow-hover);
}

@media (max-width: 768px) {
  .cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 480px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }
}

/* === БЛОК "КАК МЫ РАБОТАЕМ" === */
.how-section {
  padding-top: 40px;
  position: relative;
}

.how-steps-bg {
  position: relative;
  padding: 30px 0 450px 0; /* Сверху меньше — заголовок «Как мы работаем» выше */
  z-index: 1;
}

.how-steps-bg::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: 0;
  --how-bg-offset-y: 100px; /* Насколько опустить фон вниз (px): больше значение — фон ниже */
  /* Сверху чёрный, ниже плавно проявляется фото (не наложение) */
  background-image:
    linear-gradient(to bottom, #0a0a0a 0%, #0a0a0a 15%, rgba(10, 10, 10, 0) 45%),
    linear-gradient(rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.4)),
    url('images/фон_как работаем.png');
  background-size: cover, cover, cover;
  background-position: center, center, center var(--how-bg-offset-y);
  z-index: -1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
}

.steps-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  position: relative;
}

.step-card {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 149, 96, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--neon-green);
}

.step-title {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.step-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  padding: 0 5px;
}

.how-guarantees {
  padding: 60px 0;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guarantee-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.guarantee-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-green);
}

.g-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(34, 51, 43, 0.6) 0%, rgba(99, 149, 96, 0.3) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}

.g-title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.g-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-banner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta-banner-left {
  max-width: 60%;
}

.cta-banner-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-banner-subtitle {
  font-size: 1.2rem;
  color: var(--dirty-white);
}

.text-blue {
  color: #4a90e2;
  font-weight: 600;
}

.cta-banner-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.cta-banner-right .btn-outline {
  font-size: 1.1rem;
  padding: 16px 32px;
}

.cta-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* Адаптивность для блока "Как мы работаем" */
@media (max-width: 1024px) {
  .steps-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .step-card {
    min-width: 250px;
    flex: unset;
    width: calc(33.333% - 20px);
  }
  .step-arrow {
    display: none;
  }
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .how-steps-bg {
    padding-bottom: 250px; /* Уменьшаем отступ для машинки на планшете */
  }
  .step-card {
    width: calc(50% - 20px);
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .cta-banner-left {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .how-steps-bg {
    padding-bottom: 150px; /* Уменьшаем огромный отступ на телефоне */
  }
  .how-steps-bg::before {
    background-position: center bottom; /* На телефоне картинка поменьше */
    --how-bg-offset-y: 0px; 
  }
  .step-card {
    width: 100%;
  }
  .guarantees-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-right {
    flex-direction: column-reverse;
    gap: 20px;
  }
}

/* === СТРАНИЦА "ОТЗЫВЫ" === */
.reviews-section {
  padding-bottom: 80px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.review-card {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 149, 96, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.review-media {
  width: 100%;
  aspect-ratio: 9 / 16; /* Вертикальный формат для сторис/reels */
  background: #000;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.review-media img,
.review-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  pointer-events: none; /* Запрещаем обычные клики, чтобы срабатывал наш попап */
}

/* Иконка поверх фото/видео (Play или Лупа) */
.review-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.review-media:hover .review-icon-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.review-card:hover .review-media img,
.review-card:hover .review-media video {
  transform: scale(1.05); /* Эффект приближения при наведении */
}

.review-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО ДЛЯ ОТЗЫВОВ
   ========================================== */
.media-modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000; /* Поверх всего */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Темный фон с сильной прозрачностью */
  backdrop-filter: blur(10px); /* Эффект стекла на заднем фоне */
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.media-modal.show {
  display: flex;
  opacity: 1;
}

/* Кнопка закрытия (крестик) */
.media-modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

.media-modal-close:hover {
  color: var(--neon-green);
  transform: scale(1.1);
}

/* Контейнер для фото/видео внутри окна */
.media-modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стили для открытой картинки */
.media-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(99, 149, 96, 0.3); /* Легкое неоновое свечение */
}

/* Стили для открытого видео */
.media-modal-content video {
  max-width: 100%;
  max-height: 90vh;
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(99, 149, 96, 0.3);
}

/* Анимация появления контента */
.media-modal.show .media-modal-content {
  animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.review-author {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 5px;
  font-weight: 600;
}

.review-car {
  font-size: 0.9rem;
  color: var(--neon-green);
  margin-bottom: 15px;
  font-weight: 500;
}

.review-text {
  font-size: 0.95rem;
  color: var(--dirty-white);
  line-height: 1.5;
  font-style: italic;
  position: relative;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* === СТРАНИЦА "О НАС" === */
.about-hero-section {
  position: relative;
  padding: 60px 0 0;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  clip-path: inset(-2000px -2000px 0 -2000px); /* Позволяем голове вылезать наверх */
  z-index: 2; /* Повышаем приоритет первой секции над второй */
}

.about-bg-1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.85)), url('images/фон_онас.png');
  background-size: cover; /* Меняем с 100% auto на cover, чтобы фон не оставлял черных полос */
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  z-index: -1;
}

.about-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

.about-hero-top {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-top-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}

.about-hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-grow: 1;
}

.about-hero-left {
  flex: 1;
  max-width: 600px;
  padding: 30px;
  background: rgba(10, 10, 10, 0.5);
  border-left: 2px solid var(--neon-green);
  border-radius: 0 16px 16px 0;
  margin-bottom: 60px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-main-text {
  font-size: 1.1rem;
  color: var(--dirty-white);
  line-height: 1.6;
}

.about-hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  position: relative;
}

.about-person-img {
  /* =========================================================
     НАСТРОЙКИ ФОТО ЧЕЛОВЕКА 1 ("О НАС") 
     Теперь размер задается в пикселях, как у второго!
     ========================================================= */
  width: 480px;            /* Меняйте эту цифру (например: 700px, 800px), чтобы сделать его больше */
  height: auto;             
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast; 
  image-rendering: high-quality;
  
  /* Отвязываем от контейнера */
  position: absolute;
  
  /* --- ДВИГАЕМ ЧЕЛОВЕКА --- */
  right: -30%;              /* Сдвиг вправо/влево. 0% = прижат к правому краю блока. Отрицательные = уходит еще правее */
  bottom: -40px;           /* Сдвиг вниз. -50px или -100px опускают его ниже */
  z-index: 2; /* Чтобы голова была поверх обрезки */
}

/* Блок "Почему нам доверяют" */
.about-trust-section {
  position: relative;
  padding: 80px 0;
  min-height: 800px; 
  display: flex;
  align-items: center;
  /* Обрезаем ТОЛЬКО снизу (0px), чтобы человек не вылазил на следующий блок, но разрешаем вылезать сверху (-2000px) и по бокам */
  clip-path: inset(-2000px -2000px 0 -2000px);
  z-index: 1; /* Чтобы вторая секция была ниже первой по z-index */
}

.about-bg-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('images/фон_онас2.png'); /* Сделал затемнение чуть слабее (0.7 вместо 0.85), чтобы фон был ярче */
  background-size: cover; /* Вернул cover, чтобы он гарантированно заполнял всю секцию без черных полос */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  z-index: -1;
}

.about-trust-container {
  display: flex;
  justify-content: flex-end; /* Возвращаем к изначальному поведению, чтобы текст был справа */
  align-items: center; 
  position: relative; 
  min-height: 800px; /* Добавили минимальную высоту для контейнера, чтобы текст не сжимался */
}

.about-trust-left {
  /* Полностью переделываем логику второго человека, чтобы он не влиял на сетку текста */
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none; /* Чтобы он не мешал кликать по ссылкам или тексту */
  z-index: 1;
}

.about-person-img-2 {
  /* =========================================================
     НАСТРОЙКИ ФОТО ЧЕЛОВЕКА 2 ("Почему нам доверяют") 
     ========================================================= */

  /* 1. РАЗМЕР (ТЕПЕРЬ В ПИКСЕЛЯХ - так им управлять гораздо проще) */
  width: 1525px;            /* Меняйте эту цифру: 400px, 600px, 800px и он будет расти/уменьшаться */
  height: auto;            
  max-width: none;         
  max-height: none;        
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  
  /* Отвязываем от ограничений контейнера */
  position: absolute;
  
  /* --- ДВИГАЕМ ЧЕЛОВЕКА --- */
  /* Двигаем ВПРАВО (от левого края экрана/блока) */
  left: -26.8%;               /* 0% - прижат к левому краю, 20% - сильно вправо */
  
  /* Двигаем ВНИЗ/ВВЕРХ */
  bottom: -107px;           /* Отрицательные значения (например, -100px) опускают его вниз за границу блока */
}

.about-trust-content {
  flex: 0 0 55%; 
  max-width: 650px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2; 
  /* Отодвигаем от левого края, если наезжает на человека */
  margin-left: auto;
}

.about-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.about-subtitle {
  font-size: 1.2rem;
  color: var(--neon-green);
  font-weight: 600;
  margin-bottom: 24px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: var(--dirty-white);
  line-height: 1.5;
}

.about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--neon-green);
  font-size: 1.5rem;
}

.about-conclusion {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* Блок "История компании" */
.about-history-section {
  position: relative;
  padding: 80px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-bg-3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/фон_онас3.jpg'); /* Изменил на .jpg */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  z-index: -1;
}

.about-history-container {
  display: flex;
  justify-content: center;
}

.about-history-content {
  max-width: 900px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: justify;
}

.about-history-content p {
  font-size: 1.1rem;
  color: var(--dirty-white);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-history-content p:last-of-type {
  margin-bottom: 30px;
}

.about-history-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.6;
  text-align: center;
  border-top: 2px solid var(--neon-green);
  padding-top: 30px;
  margin-top: 10px;
}

.text-green {
  color: var(--neon-green);
}

@media (max-width: 992px) {
  .about-hero-content {
    flex-direction: column;
    align-items: center;
  }
  .about-hero-right,
  .about-person-img,
  .about-trust-left,
  .about-person-img-2 {
    display: none !important;
  }
  .about-hero-left {
    max-width: 100%;
    margin-bottom: 30px;
    border-left: none;
    border-top: 2px solid var(--neon-green);
    border-radius: 0 0 16px 16px;
  }
  .about-trust-container {
    flex-direction: column;
    align-items: center;
  }
  .about-trust-left {
    display: none; /* Скрываем второго человека на мобилках, чтобы не занимал весь экран */
  }
}




