/* ============================================================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --primary: #557a30;
  --primary-dark: #3d5a22;
  --accent: #6a9841;
  --text: #1a1a1a;
  --gray: #4a4a4a;
  --light: #f8f9fa;
  --white: #ffffff;
}

/* ============================================================
   СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
  line-height: 1.2;
}

h2 {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: var(--gray);
  font-size: 1.15rem;
}

/* ============================================================
   ХЕДЕР
   ============================================================ */
.site-header {
  background: var(--accent);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 4px 0;
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    margin-left: auto;
  }

  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin-top: 0.8rem;
    padding: 0.35rem 0;
    background: var(--accent);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  }

  .site-nav a {
    display: block;
    padding: 0.95rem 1.2rem;
  }

  .site-header.is-menu-open .site-nav ul {
    display: flex;
  }
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #557a30;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(106, 152, 65, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2a0e 0%, #0d0d0d 100%);
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
}
/* .hero {
  min-height: 90vh;
  background: linear-gradient(rgba(8, 8, 8, 1), rgba(8, 8, 8, 0.65)),
              url('https://images.unsplash.com/photo-1581092160607-798f9a0c9b8a?auto=format&fit=crop&q=80') center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
} */

.hero-vape {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80') center/cover;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.2rem;
}

.hero .subtitle {
  font-size: clamp(1.3rem, 4vw, 2rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero .highlight {
  color: var(--accent);
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  /* margin-top: 2.5rem; */
}

/* Внутренние страницы: кнопки слева, по сетке */
.hero.hero-vape .hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: start;
  width: min(560px, 100%);
}

.hero.hero-vape .hero-buttons .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero.hero-vape .hero-buttons {
    justify-content: center;
    margin: 0 auto;
  }
}

/* ============================================================
   ОБЩИЕ СЕКЦИИ
   ============================================================ */
.features,
.description,
.variants,
.contacts,
.comparison {
  padding: 100px 0;
}

.description {
  text-align: center;
}

.description-photo {
  display: block;
  width: 100%;
  max-width: var(--photo-max-width, 420px);
  max-height: var(--photo-max-height, 360px);
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.18));
  transform: translateX(var(--photo-offset-x, 0px));
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 1.8rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

/* ============================================================
   VARIANTS — карточки вариантов
   ============================================================ */
.variants {
  background: white;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.variant-card {
  background: var(--light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.variant-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(85, 122, 48, 0.15);
}

.variant-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: var(--primary-dark);
}

.variant-desc {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  min-height: 80px;
}

/* Иконка-обёртка */
.variant-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.variant-icon-wrap--blue {
  background: #eef4e6;
  color: var(--primary);
}

.variant-icon-wrap--orange {
  background: #eef4e6;
  color: var(--accent);
}

/* Бейджи */
.variant-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 0.9rem;
}

.variant-badge--blue {
  color: var(--primary);
  background: #eef4e6;
}

.variant-badge--orange {
  color: var(--accent);
  background: #eef4e6;
}

/* Плашки параметров */
.variant-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.6rem;
}

.variant-spec {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.variant-spec__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #eef4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 2px;
}

.variant-spec__label {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 400;
}

.variant-spec__val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Чеклист */
.variant-checklist {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-checklist li {
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--gray);
  line-height: 1.5;
}

.variant-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   ЦЕПОЧКА СИСТЕМЫ (детектор → ... → пульт)
   ============================================================ */
.variant-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.variant-chain__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.variant-chain__box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.variant-chain__label {
  font-size: 0.7rem;
  color: var(--gray);
  line-height: 1.3;
  text-align: center;
}

/* Обычная стрелка */
.variant-chain__arrow {
  flex-shrink: 0;
  color: var(--accent);
  padding: 0 2px;
  margin-bottom: 20px;
}

/* Радио / PoE / Wi-Fi — подписанные соединения */
.variant-chain__radio,
.variant-chain__poe,
.variant-chain__wifi {
  flex-shrink: 0;
  padding: 0 2px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--accent);
}

.variant-chain__radio span,
.variant-chain__poe span,
.variant-chain__wifi span {
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================================================
   AURA-VAPE — плашки времени реакции
   ============================================================ */
.vape-reaction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.6rem;
}

.vape-react {
  background: white;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vape-react__time {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 3px;
}

.vape-react__label {
  font-size: 0.72rem;
  color: var(--gray);
  line-height: 1.3;
}

/* ============================================================
   ТАБЛИЦА СРАВНЕНИЯ
   ============================================================ */
.comparison {
  background: white;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
  text-align: center;
}

.comparison-table td {
  background: var(--light);
  color: var(--gray);
  font-size: 1rem;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
  background: white;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  text-align: center;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: #f0f4f8;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts {
  background: var(--light);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.1rem;
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  min-width: 50px;
}

.contacts-info a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.contacts-info a:hover {
  text-decoration: underline;
}

.extra-info {
  margin-top: 1rem;
  color: var(--gray);
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 122, 48, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.2rem;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero.hero-vape .hero-buttons {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
/* ===== ПРОЕКТЫ ===== */
.projects {
  padding: 100px 0;
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--light);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(85,122,48,0.12);
}

.project-card--cta {
  background: linear-gradient(135deg, #eef4e6, #f4f8ee);
  border: 2px dashed rgba(85,122,48,0.25);
}

.project-icon-wrap {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(85,122,48,0.12);
}

.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.project-card p {
  font-size: 0.97rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
}

.project-count {
  margin-top: 1.5rem;
  padding: 0.45rem 1.1rem;
  background: white;
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--gray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.project-count strong {
  color: var(--accent);
  font-size: 1rem;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  padding: 100px 0;
  background: var(--light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(85,122,48,0.12);
}

.review-stars {
  color: #f5a623;
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.review-pdf iframe {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 12px;
  background: white;
}

.review-text {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid #eee;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.review-meta strong {
  display: block;
  font-size: 0.97rem;
  color: var(--text);
  font-weight: 600;
}

.review-meta span {
  font-size: 0.84rem;
  color: var(--gray);
}

/* Адаптив */
@media (max-width: 768px) {
  .projects-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== HERO SLIDER ===== */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-slider {
  flex: 0 0 340px;
  position: relative;
  height: 380px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 16px;
}

.slide-label {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
}

.hero-dot.active {
  background: var(--accent);
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-slider {
    flex: none;
    width: 100%;
    max-width: 320px;
    height: 280px;
  }
}
