/* ==============
   БАЗОВЫЕ НАСТРОЙКИ
   ============== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background-color: #050816;
  color: #f5f5f5;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

/* Сброс ссылок и картинок */

a {
  color: inherit;
  text-decoration: none;
}

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

/* Контейнер */

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

/* ==============
   ХЕДЕР
   ============== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}

/* Лого */

.logo-block {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

/* Навигация (мобилка: скрыта, открывается бургером) */

.main-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 10px 16px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.main-nav.main-nav-open {
  display: flex;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  color: #e5e7eb;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Блок с языком и бургером */

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Переключатель языка */

.lang-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
}

.lang-btn.lang-active {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #020617;
}

/* БУРГЕР */

.burger {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.burger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger:hover {
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

.burger.burger-open {
  background: rgba(15, 23, 42, 1);
}

.burger.burger-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.burger-open span:nth-child(2) {
  opacity: 0;
}

.burger.burger-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==============
   ГЕРОЙ-БЛОК
   ============== */

.hero {
  padding: 32px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.hero-content {
  flex: 1;
}

.hero-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  max-width: 420px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.8);
}

/* Заголовки в hero */

.hero h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.hero p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #e5e7eb;
}

.hero-note {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 6px;
}

/* Кнопки в hero */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ==============
   КНОПКИ
   ============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #020617;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(34, 197, 94, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* ==============
   СЕКЦИИ
   ============== */

.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section h2 {
  font-size: 22px;
  margin: 0 0 20px;
}

.section p {
  font-size: 14px;
}

/* ==============
   КАРТОЧКИ И СЕТКИ
   ============== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
}

.step-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.step-card p {
  margin: 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.step-row {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.step-row h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.step-row p {
  margin: 0;
}

.section-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.benefit-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.faq-item h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

/* Галерея отзывов */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.review-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.review-card img {
  border-radius: 12px;
  margin-bottom: 8px;
}

.review-card figcaption {
  font-size: 13px;
  color: #e5e7eb;
}

/* ==============
   ФУТЕР
   ============== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
  padding: 18px 0 22px;
}

.footer-inner {
  text-align: left;
}

.footer-text {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* ==============
   АДАПТИВ
   ============== */

/* ПЛАНШЕТЫ */

@media (min-width: 640px) {
  .hero {
    padding: 40px 0 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 15px;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 24px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ДЕСКТОПЫ */

@media (min-width: 900px) {
  .header-inner {
    padding: 14px 0;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border-bottom: none;
    padding: 0;
    gap: 16px;
  }

  .burger {
    display: none;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-actions {
    gap: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-inner {
    text-align: center;
  }
}

/* КОСМЕТИКА ДЛЯ data-lang */
[data-lang] {
  /* управляется JS */
}

/* ==============
   SLIDER
   ============== */

.slider {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  padding-bottom: 40px;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slide {
  min-width: 100%;
  padding: 20px;
  text-align: center;
}

.slide img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.slide-caption {
  font-size: 13px;
  color: #d1d5db;
}

/* Навигационные кнопки */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s ease;
}

.slider-btn:hover {
  background: rgba(34, 197, 94, 0.2);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* Точки */

.slider-dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  border: none;
  background: #475569;
  cursor: pointer;
  transition: 0.2s ease;
}

.slider-dots button.active {
  background: #22c55e;
}