/* ==========================================================================
   АВТОПРОКАТ В ТБИЛИССКОЙ — СТИЛИ САЙТА-ВИЗИТКИ
   Светлый современный дизайн (Mobile First), адаптивность и оптимизация под Netlify
   ========================================================================== */

:root {
  /* Цветовая палитра — чистый светлый стиль */
  --bg-main: #ffffff;
  --bg-surface: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  --border-light: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Фирменные цвета */
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-subtle: #eff6ff;
  --primary-glow: rgba(29, 78, 216, 0.15);

  --accent-amber: #d97706;
  --accent-amber-subtle: #fffbeb;
  --accent-green: #059669;
  --accent-green-subtle: #ecfdf5;

  /* Брендовые цвета мессенджеров */
  --color-whatsapp: #22c55e;
  --color-whatsapp-hover: #16a34a;
  --color-max: #0284c7;
  --color-max-hover: #0369a1;

  /* Текст с максимальной контрастностью для чтения с телефона */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #ffffff;

  /* Радиусы скругления */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Тени */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 25px 50px -12px rgba(29, 78, 216, 0.15);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 76px;
}

/* Сброс и базовые настройки */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 72px; /* Место под фиксированную нижнюю панель на мобайле */
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

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

/* Типографика секций */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 12px 0 14px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .section-header h2 {
    font-size: 1.65rem;
  }
  .section-header p {
    font-size: 0.95rem;
  }
}

/* Бейджи */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.badge-amber {
  background: var(--accent-amber-subtle);
  color: var(--accent-amber);
  border: 1px solid #fde68a;
}

.badge-green {
  background: var(--accent-green-subtle);
  color: var(--accent-green);
  border: 1px solid #a7f3d0;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
}

.btn-max {
  background: var(--color-max);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

.btn-max:hover {
  background: var(--color-max-hover);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==================== ШАПКА САЙТА (HEADER) ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  min-height: 72px;
  height: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.header .container {
  max-width: 1400px;
  width: 100%;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  border: 2px solid #ffffff;
  background: #ffffff;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  margin: 2px 0 0;
  line-height: 1.2;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
}

@media (min-width: 992px) {
  .nav-links {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .nav-links {
    gap: 18px;
  }
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

@media (min-width: 992px) and (max-width: 1279px) {
  .nav-links .nav-extra {
    display: none;
  }
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone-box {
  text-align: right;
  display: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-phone-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }
}

.header-phone-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.3;
  margin-top: 1px;
}

.header-phone-link {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.header-phone-link:hover {
  color: var(--primary);
}

.header-wa-btn,
.trigger-max-modal {
  white-space: nowrap;
  padding: 8px 14px !important;
  font-size: 0.85rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 14px;
  }
  .logo-text p {
    font-size: 11px;
  }
  .logo-image {
    width: 38px;
    height: 38px;
  }
}

/* ==================== ГЛАВНЫЙ ЭКРАН (HERO) ==================== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 48px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }
}

.hero-content {
  max-width: 640px;
}

.hero-badge-wrap {
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1.18;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
}

@media (min-width: 640px) {
  .hero-trust-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.trust-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Карточка автомобиля в Hero с анимацией движения */
.hero-visual {
  position: relative;
}

.hero-car-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  /* Анимация плавного выезда авто на страницу */
  animation: carDriveIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes carDriveIn {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-car-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
}

.hero-car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-car-card:hover .hero-car-img-wrap img {
  transform: scale(1.02);
}

.hero-car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-car-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.hero-car-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-car-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-car-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-car-price-tag {
  text-align: right;
}

.hero-car-price-tag .val {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--primary);
}

.hero-car-price-tag .period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-car-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-feature-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==================== КАТАЛОГ АВТОМОБИЛЕЙ (4 КАРТОЧКИ) ==================== */
.catalog-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.cars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Карточка автомобиля */
.car-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-col: column;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

/* Галерея фотографий автомобиля */
.car-gallery {
  position: relative;
  background: var(--bg-subtle);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.gallery-slides-wrapper {
  position: absolute;
  inset: 0;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Статус-бейдж (В наличии) */
.car-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-green);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  z-index: 4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}

/* Счетчик фото (напр. 1 / 7) */
.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Стрелки навигации */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.gallery-nav-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn.prev {
  left: 10px;
}

.gallery-nav-btn.next {
  right: 10px;
}

/* Бейдж с названием ракурса / детали */
.gallery-label-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 4;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Точки пагинации (dots) */
.gallery-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 4;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 4px;
}

/* Тело карточки */
.car-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.car-main-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.2;
}

.car-trans-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-top: 4px;
}

.car-base-price {
  text-align: right;
}

.car-base-price .amount {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.car-base-price .period {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

/* Спецификации авто */
.car-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
}

.spec-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.spec-cell svg {
  color: var(--primary);
  flex-shrink: 0;
}

.car-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.car-tag-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Интерактивный калькулятор дней и суммы */
.car-calculator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.calc-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  box-shadow: var(--shadow-xs);
}

.calc-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.calc-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.calc-btn:active {
  transform: scale(0.9);
}

.calc-days-input {
  width: 38px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  border: none;
  background: transparent;
  outline: none;
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.calc-total-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calc-total-amount {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-primary);
}

/* Кнопки бронирования */
.car-actions-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

/* ==================== УСЛОВИЯ АРЕНДЫ И ПРАВИЛА ==================== */
.conditions-section {
  padding: 80px 0;
  background: #ffffff;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .conditions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.condition-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.25s ease;
}

.condition-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.condition-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}

.condition-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.condition-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Специальные блоки: Залог, Скидки, Правила */
.special-blocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .special-blocks-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.highlight-box {
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border-color);
}

.deposit-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.deposit-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.deposit-box p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 14px;
}

.discount-notice-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.discount-notice-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.discount-notice-box p {
  font-size: 0.95rem;
  color: #78350f;
  line-height: 1.65;
}

.rules-link-banner {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-xs);
}

.rules-link-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rules-link-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.rules-link-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== ТОПЛИВНЫЕ КАРТЫ ==================== */
.fuel-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.fuel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .fuel-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.fuel-visual {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.fuel-visual img {
  max-width: 260px;
  filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.08));
}

.fuel-info h3 {
  font-size: 2rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 12px 0 16px;
}

.fuel-info h3 span {
  color: var(--primary);
}

.fuel-info p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.fuel-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.fuel-perk-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.fuel-perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-green-subtle);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 2px;
}

.fuel-perk-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 700;
}

.fuel-perk-text span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==================== ГЕОГРАФИЯ И ПОДАЧА ==================== */
.delivery-section {
  padding: 80px 0;
  background: #ffffff;
}

.delivery-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

@media (min-width: 860px) {
  .delivery-box {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 48px;
  }
}

.delivery-content h3 {
  font-size: 1.85rem;
  font-weight: 850;
  color: var(--text-primary);
  margin: 10px 0 16px;
}

.delivery-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.towns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.town-tag {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.town-tag.primary {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: #bfdbfe;
  font-weight: 700;
}

.delivery-side-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.delivery-side-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.delivery-side-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==================== БЛОК FAQ (ЧАСТЫЕ ВОПРОСЫ) ==================== */
.faq-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-icon-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  background: var(--primary-subtle);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==================== КОНТАКТЫ И ЯНДЕКС КАРТА ==================== */
.contacts-section {
  padding: 80px 0;
  background: #ffffff;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 960px) {
  .contacts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.contact-info-block {
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.contact-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.contact-text .val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.big-phone-link {
  font-size: 1.55rem;
  font-weight: 850;
  color: var(--primary);
  display: inline-block;
  letter-spacing: -0.02em;
}

.big-phone-link:hover {
  color: var(--primary-hover);
}

.contact-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Карта */
.map-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.map-header-title strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.map-header-title span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.map-frame-wrap {
  flex-grow: 1;
  min-height: 380px;
  background: #e2e8f0;
  position: relative;
}

.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
  display: block;
}

/* ==================== ПОДВАЛ (FOOTER) ==================== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 32px;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-brand p {
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-requisites-box {
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-requisites-box strong {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}

/* ==================== ЗАКРЕПЛЕННАЯ НИЖНЯЯ ПАНЕЛЬ ДЛЯ МОБИЛЬНЫХ ==================== */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .mobile-action-bar {
    display: none;
  }
}

.mobile-action-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  gap: 4px;
  text-decoration: none;
}

.mobile-bar-btn.btn-call {
  background: var(--primary);
}

.mobile-bar-btn.btn-wa {
  background: var(--color-whatsapp);
}

.mobile-bar-btn.btn-mx {
  background: var(--color-max);
}

/* ==================== МОДАЛЬНОЕ ОКНО MAX (КОПИРОВАНИЕ ЗАЯВКИ) ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.modal-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-green-subtle);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-card h3 {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-copied-text-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 20px;
  word-break: break-word;
}

.modal-phone-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.modal-phone-box span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e40af;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-phone-box strong {
  font-size: 1.4rem;
  font-weight: 850;
  color: #1d4ed8;
  letter-spacing: -0.01em;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== АНИМАЦИИ ПРИ СКРОЛЛЕ (REVEAL) ==================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Кнопка WhatsApp в шапке на десктопе */
.header-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #ffffff;
}

.header-wa-btn:hover {
  background: #22bf5b;
}

@media (max-width: 580px) {
  .header-wa-btn {
    display: none;
  }
}

/* ==================== СЕКЦИЯ ОТЗЫВОВ (REVIEWS) ==================== */
.reviews-section {
  padding: 80px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.reviews-stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 36px;
}

.reviews-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-write-review:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.rating-overall {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-num {
  font-size: 1.8rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
}

.reviews-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.review-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.review-author-info {
  flex-grow: 1;
}

.author-name {
  display: block;
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
}

.author-meta {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.review-badge-verified {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #a7f3d0;
  flex-shrink: 0;
}

.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  flex-grow: 1;
  margin-bottom: 14px;
}

.review-date {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-align: right;
}

.reviews-bottom-action {
  margin-top: 36px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.reviews-bottom-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reviews-bottom-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.reviews-bottom-text span {
  display: block;
  font-size: 0.9rem;
  color: #475569;
}

.btn-write-review-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-write-review-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

@media (max-width: 640px) {
  .reviews-bottom-content {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-write-review-large {
    justify-content: center;
    width: 100%;
  }
}
