/* autopodbor.css – полная версия с фоном на всю ширину без отступов */
:root {
  --spacing: 4px;
}

/* ========== ОТМЕНЯЕМ ГЛОБАЛЬНЫЙ overflow-x: hidden ТОЛЬКО ДЛЯ ЭТОЙ СТРАНИЦЫ ========== */
html, body {
  overflow-x: visible !important;
}

/* ========== ЦЕНТРИРОВАНИЕ SECTION-LABEL ========== */
.section-label {
  text-align: center;
  display: table;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(16px);
  background: #0e162480;
  border: 1px solid #ffffff14;
  padding: 6px 20px;
  border-radius: 40px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

/* ========== HERO СЕКЦИЯ – ФОН НА ВСЮ ШИРИНУ ========== */
.autopodbor-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow-x: clip;        /* предотвращает горизонтальный скролл, не обрезая фон */
}

.autopodbor-hero .container {
  max-width: 1280px;
  padding: 60px 24px 0 24px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#check-stages {
    margin-top: 80px;
}

/* Фон через псевдоэлемент – занимает ровно 100vw и центрируется */
.autopodbor-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 200px);
  background-image: url('../img/9.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.hero-autopodbor-content {
  position: relative;
  z-index: 1;
}

.hero-autopodbor-grid {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.back-to-home {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.back-to-home a {
  color: var(--secondary-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.2s;
}
.back-to-home a:hover {
  color: var(--active-tab);
}
.jp-flag-badge {
  background: #0e162480;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--active-tab);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jp-flag-badge i {
  color: lab(65.9688% 57.7443 77.7888);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--headers-color);
  font-family: 'Space Grotesk', system-ui;
}
/* Перенос слов "без рисков" на новую строку */
.hero-title .gradient-text {
  display: block;
}

.hero-description {
  font-size: 1.1rem;
  color: #cbd5e6;
  max-width: 90%;
  margin-bottom: 32px;
}

/* ========== 12 ЭТАПОВ ПРОВЕРКИ ========== */
.stages-checkup-section {
  padding: 120px 0 70px 0;
}

.centered-title {
  text-align: center;
}

.stages-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}
.check-col-technical,
.check-col-legal {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 32px;
  padding: 32px;
  border: 1px solid transparent;
}
.check-col-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.feature-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  background: var(--btn-gradient);
  border-radius: 60px;
  flex-shrink: 0;
}
.feature-icon i {
  font-size: 1.8rem;
  color: #000000;
}
.header-text h3 {
  font-size: 1.8rem;
  margin: 0 0 6px 0;
  color: #fff;
}
.badge-description {
  font-size: 0.85rem;
  color: var(--secondary-text);
}
.check-list {
  list-style: none;
}
.check-list li {
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 8px 8px 0;
  border-radius: 16px;
  transition: background 0.2s;
  cursor: default;
}
.check-list li:hover {
  background: rgba(255,255,255,0.03);
}
.check-list li:hover .icon-bg {
  background-color: color-mix(in oklab, lab(65.9688% 57.7443 77.7888) 40%, #1a1f2e);
}
.icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 5px;
  margin-left: 10px;
  background-color: color-mix(in oklab, var(--muted, #2a2e3f) 60%, transparent);
  border-radius: 35%;
  flex-shrink: 0;
  transition: background-color 0.2s;
}
.icon-bg i {
  font-size: 1.1rem;
  color: lab(65.9688% 57.7443 77.7888);
}
.check-list strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.check-list span {
  color: var(--secondary-text);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ========== ТАРИФЫ ========== */
.tariffs-section {
  padding: 70px 0;
}
.tariffs-section .centered-title,
.tariffs-section .section-subtitle {
  text-align: center;
}

/* Центрирование подзаголовка в секции 12 этапов проверки */
.stages-checkup-section .section-subtitle {
  text-align: center;
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.tariff-card {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 32px;
  padding: 40px 24px;
  text-align: center;
  border: 1px solid rgba(255,215,130,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.tariff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,215,130,0.3);
}
.tariff-card.highlight {
  background: linear-gradient(135deg, lab(65.9688% 57.7443 77.7888) 0%, lab(51.8127% 59.2393 -70.0043) 50%, lab(44.3191% 38.7476 -76.8339) 100%);
  box-shadow: 0 20px 60px -20px lab(65.9688% 57.7443 77.7888 / 0.5);
}
.tariff-card.highlight h3,
.tariff-card.highlight .tariff-desc {
  color: #0a0f1a;
}
.tariff-card.highlight .tariff-price {
  color: lab(2.42796 -0.0840873 -4.13788);
}
.tariff-card.highlight .tariff-btn {
  color: lab(2.42796 -0.0840873 -4.13788);
  background: transparent;
  border: 1px solid lab(2.42796 -0.0840873 -4.13788);
}
.tariff-card.highlight .tariff-btn:hover {
  background: rgba(0,0,0,0.05);
}

.tariff-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.tariff-desc {
  font-size: 0.9rem;
  color: lab(67.45% -0.932187 -7.4149);
  margin-bottom: 24px;
  line-height: 1.4;
}
.tariff-price {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.tariff-card:not(.highlight) .tariff-price {
  color: lab(97.6882 -0.8232 -1.65225);
}
.tariff-card:not(.highlight) .tariff-btn {
  background: transparent;
  color: lab(65.9688 57.7443 77.7888);
  border: 1px solid lab(65.9688 57.7443 77.7888);
}
.tariff-card:not(.highlight) .tariff-btn:hover {
  background: rgba(255,215,130,0.1);
}
.tariff-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  border-radius: 44px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 600;
}

/* ========== ГАРАНТИЯ ========== */
.guarantee-wrapper {
  margin: 40px auto;
}
.guarantee-block {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border: 1px solid rgba(255,215,130,0.2);
  border-radius: 32px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.guarantee-icon {
  font-size: 3rem;
  color: lab(65.9688% 57.7443 77.7888);
}
.guarantee-text {
  font-size: 1rem;
  color: var(--active-tab);
  line-height: 1.5;
}
.guarantee-text strong {
  font-size: 1.1rem;
}
.guarantee-text .gradient-text {
  font-weight: 700;
}

/* ========== CTA ========== */
.cta-autopodbor-container {
  margin: 20px auto 70px;
}
.cta-section-autopodbor {
  background: linear-gradient(145deg, lab(7.06747% -0.19002 -10.6574 / 0.9), lab(3.61341% -0.0697747 -6.86977 / 0.6));
  border-radius: 32px;
  border: 1px solid rgba(255, 215, 130, 0.1);
  padding: 50px 40px;
  text-align: center;
}
.cta-section-autopodbor h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}
.cta-button {
  background: var(--btn-gradient);
  border: none;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1100px) {
  .hero-title {
    font-size: 2.8rem;
  }
}
@media (max-width: 900px) {
  .stages-check-grid {
    grid-template-columns: 1fr;
  }
  .tariffs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .autopodbor-hero .container {
    padding-top: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }
  .check-col-technical,
  .check-col-legal {
    padding: 24px;
  }
  .header-text h3 {
    font-size: 1.4rem;
  }
  .feature-icon {
    width: 44px;
    height: 44px;
  }
  .feature-icon i {
    font-size: 1.4rem;
  }
  .check-list li {
    gap: 10px;
  }
  .icon-bg {
    width: 30px;
    height: 30px;
    margin-left: 5px;
  }
  .tariff-card {
    padding: 30px 20px;
  }
  .guarantee-block {
    flex-direction: column;
    padding: 24px;
  }
  .cta-section-autopodbor {
    padding: 30px 20px;
  }
  .cta-section-autopodbor h2 {
    font-size: 1.8rem;
  }
  .stages-checkup-section {
    padding: 90px 0 50px 0;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .check-col-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tariff-price {
    font-size: 1.8rem;
  }
  .guarantee-text {
    font-size: 0.9rem;
  }
}