/* home.css – стили главной страницы с исправлениями */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

section {
  padding: 70px 0;
}
#home {
  padding-bottom: 40px;
}

#checkup .container,
#auto-from .container,
#autopodbor .container,
#realization .container {
  text-align: center;
}

.section-label {
  backdrop-filter: blur(16px);
  background: #0e162480;
  border: 1px solid #ffffff14;
  border: 1px solid lab(100% 0 0 / 0.08);
  display: inline-block;
  padding: 6px 20px;
  border-radius: 40px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

.centered-title {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: 'Space Grotesk', system-ui;
  color: var(--headers-color);
  margin-bottom: 16px;
}
.plain-title {
  background: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
}

.section-subtitle {
  font-size: 0.9rem;
  color: lab(67.45% -0.932187 -7.4149);
  max-width: 700px;
  margin: 0 auto 48px auto;
  line-height: 1.5;
}

.gradient-text {
  background: var(--btn-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ===== Блок проверки ===== */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.check-col {
  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;
}

/* ===== Карточки ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.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: 28px 24px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: left;
}
.card:hover {
  border-color: lab(65.9688% 57.7443 77.7888);
  transform: translateY(-5px);
}
.card i {
  font-size: 2rem;
  transition: transform 0.2s;
  color: lab(65.9688% 57.7443 77.7888);
}
.card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 12px 0;
  color: #f5f9fc;
}
.card p {
  color: #cbd5e6;
  line-height: 1.5;
  margin-bottom: 16px;
}
.plane-icon {
  color: lab(65.9688% 57.7443 77.7888);
}
.small-link {
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: lab(65.9688% 57.7443 77.7888);
  text-decoration: none;
  transition: transform 0.2s;
}
.small-link:hover {
  transform: translateX(4px);
}

/* ===== Кейсы (реальная экономия) ===== */
.case-grid {
  grid-template-columns: repeat(3, 1fr);
}
.case-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;
  overflow: hidden;
  transition: transform 0.2s;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}
.case-card:hover {
  transform: translateY(-4px);
}
.case-image {
  position: relative;
  height: 256px;
  overflow: hidden;
}
.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.case-card:hover .case-image img {
  transform: scale(1.03);
}
.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-align: left;
}
.case-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: lab(67.45% -0.932187 -7.4149);
  margin-bottom: 4px;
}
.case-client {
  font-size: 0.85rem;
  color: lab(97.6882% -0.8232 -1.65225);
}
.price-comparison {
  display: flex;
  gap: 12px;
  padding: 20px 20px 12px;
}
.price-without, .price-with {
  flex: 1;
  padding: 12px;
  border-radius: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
}
.price-without {
  background-color: color-mix(in oklab, var(--muted) 40%, transparent);
  color: lab(67.45% -0.932187 -7.4149);
}
.price-without span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: lab(67.45% -0.932187 -7.4149);
}
.price-with {
  background-color: color-mix(in oklab, lab(65.9688% 57.7443 77.7888) 10%, transparent);
  border: 1px solid color-mix(in oklab, lab(65.9688% 57.7443 77.7888) 30%, transparent);
  color: lab(67.45% -0.932187 -7.4149);
}
.price-with span {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: lab(65.9688% 57.7443 77.7888);
}
.saving-block {
  background: var(--btn-gradient);
  margin: 0 20px 20px;
  padding: 18px 16px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 80px;
}
.saving-block i {
  font-size: 1.3rem;
  font-weight: normal;
  color: #000000;
  background: none;
}
.saving-text {
  text-align: center;
  font-weight: 400;
  color: #000000;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.saving-text span {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 4px;
}
.case-stats {
  display: flex;
  gap: 16px;
  padding: 0 20px 24px;
  justify-content: space-between;
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: lab(67.45% -0.932187 -7.4149);
}
.stat i {
  font-size: 1.2rem;
  color: lab(65.9688% 57.7443 77.7888);
}
.stat div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat span {
  font-size: 1rem;
  font-weight: 700;
  color: lab(97.6882% -0.8232 -1.65225);
  margin-bottom: 2px;
}

/* ===== CTA блок ===== */
.cta-section {
  position: relative;
  border-radius: 48px;
  margin: 20px 0 60px;
  padding: 56px 40px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  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%);
  opacity: 0.1;
  z-index: -1;
  border-radius: inherit;
}
.cta-section h2,
.cta-section p,
.cta-section a {
  position: relative;
  z-index: 2;
}
.cta-section h2 {
  font-size: 3.75rem;
  font-weight: 700;
  color: lab(97.6882% -0.8232 -1.65225);
  margin-bottom: 16px;
}
.cta-section h2 .gradient-text {
  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%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.cta-description {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: lab(67.45% -0.932187 -7.4149);
}
.cta-button {
  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%);
  color: #000000 !important;
  font-weight: 500;
  padding: 14px 32px;
  box-shadow: 0 20px 60px -20px lab(65.9688% 57.7443 77.7888 / 0.5);
  border: none;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px -18px lab(65.9688% 57.7443 77.7888 / 0.7);
}

/* ===== Hero стили ===== */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 40px;
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--headers-color);
  font-family: 'Space Grotesk', system-ui;
}
.hero-description {
  font-size: 1.1rem;
  color: #cbd5e6;
  max-width: 90%;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,215,130,0.2);
  padding-top: 32px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--btn-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: 'Space Grotesk', monospace;
}
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Убираем overflow: hidden, чтобы свечение не обрезалось */
  overflow: visible;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  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%);
  opacity: 0.35;
  filter: blur(40px);
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.hero-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0e162480;
  border: 1px solid #ffffff14;
  border: 1px solid lab(100% 0 0 / 0.08);
  padding: 6px 14px;
  border-radius: 60px;
  font-size: 0.75rem;
  margin-bottom: 20px;
  color: var(--secondary-text);
}
.location-badge i {
  color: lab(65.9688% 57.7443 77.7888);
  font-size: 0.85rem;
}

/* Кнопка прокрутки вверх */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--btn-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: none;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top i {
  color: #0a0f1a;
  font-size: 1.4rem;
  transition: transform 0.2s;
}
.scroll-to-top:hover i {
  transform: translateY(-3px);
}

/* Адаптивные правки */
@media (max-width: 980px) {
  .hero-two-col, .check-grid {
    grid-template-columns: 1fr;
  }
  .grid-3, .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-section h2 {
    font-size: 2.5rem;
  }
  .hero-title {
    font-size: 3rem;
  }
}
@media (max-width: 760px) {
  .grid-3, .case-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .centered-title {
    font-size: 1.9rem;
  }
  .cta-section h2 {
    font-size: 1.8rem;
  }
  .hero-stats {
    justify-content: center;
    text-align: center;
  }
  .hero-stats .stat-item {
    text-align: center;
  }
  .price-comparison {
    flex-direction: column;
  }
  .case-stats {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-description {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .check-col {
    padding: 20px;
  }
  .check-col-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .check-list li {
    gap: 10px;
  }
  .card h3 {
    font-size: 1.4rem;
  }
  .case-image {
    height: 200px;
  }
  .saving-block {
    margin: 0 16px 16px;
  }
}