/* Палитра проекта и базовые переменные */
:root {
  --bg: #070b10;
  --bg-contrast: #0d1219;
  --surface: rgba(15, 22, 31, 0.85);
  --surface-solid: #101823;
  --gold: #c9a857;
  --gold-soft: rgba(201, 168, 87, 0.25);
  --text: #edf2ff;
  --text-muted: #9aa6bf;
  --border: rgba(255, 255, 255, 0.08);
  --success: #48c774;
  --error: #ff6b6b;
  --transition: 0.3s ease;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Унифицированный box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Общие настройки документа */
html {
  scroll-behavior: smooth;
  /* Safari fallback */
  -webkit-overflow-scrolling: touch;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Skip link для навигации с клавиатуры */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--gold);
  color: #111;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

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

video, iframe {
  max-width: 100%;
}

/* Градиентный фон страницы */
.page {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #06080d 0%, #0c151f 45%, #151e29 100%);
}

/* Контейнер, ограничивающий ширину контента */
.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Главный экран (hero) */
.hero {
  position: relative;
  padding: 24px 0 160px;
  overflow: hidden;
}

/* Градиентные пятна позади hero */
.hero-background .gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(201, 168, 87, 0.25), transparent 45%),
    radial-gradient(circle at bottom right, rgba(201, 168, 87, 0.2), transparent 55%);
  opacity: 0.8;
  z-index: 0;
  animation: gradientPulse 12s ease-in-out infinite alternate;
}

/* Сетка поверх градиента */
.hero-background .grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mix-blend-mode: screen;
  opacity: 0.35;
  z-index: 0;
}

/* Анимированные светящиеся круги */
.glow {
  position: absolute;
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.glow-one {
  background: rgba(201, 168, 87, 0.35);
  top: -10vw;
  right: -14vw;
}

.glow-two {
  background: rgba(87, 178, 201, 0.15);
  bottom: -16vw;
  left: -14vw;
  animation-delay: 4s;
}

/* Навигационная панель */
.navbar {
  position: sticky;
  top: 16px;
  margin: 0 auto;
  width: min(1120px, calc(100% - 48px));
  padding: 18px 24px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  background: rgba(9, 14, 20, 0.75);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  z-index: 10;
}

/* Логотип */
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.8;
}

.brand:focus-visible,
.brand:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-mark.gold {
  color: var(--gold);
}

/* Список ссылок навигации */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  position: relative;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
}

.navbar-links a:focus-visible,
.navbar-links a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.navbar-links a:hover,
.navbar-links a:focus-visible,
.navbar-links a:focus {
  color: var(--text);
}

.navbar-links a:hover::after,
.navbar-links a:focus-visible::after,
.navbar-links a:focus::after {
  transform: scaleX(1);
}

.navbar-links a.active {
  color: var(--gold);
  font-weight: 600;
}

.navbar-links a.active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 4px;
}

.navbar-toggle:focus-visible,
.navbar-toggle:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition);
}

/* Сетка hero-секции: текст + визуал */
.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  width: min(1120px, calc(100% - 48px));
  margin: 120px auto 0;
  position: relative;
  z-index: 1;
}

/* Текстовый блок героя */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  max-width: 560px;
  width: 100%;
}

/* Основной заголовок */
.hero-text h1 {
  font-size: clamp(1.5rem, 5vw, 3.3rem);
  line-height: 1.12;
  margin: 0;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Подзаголовок */
.hero-text p {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 87, 0.15);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Кнопки на первом экране */
.hero-actions {
  display: flex;
  gap: clamp(12px, 4vw, 16px);
  margin-top: 24px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
}

/* Базовый вид кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
}

.btn:focus-visible,
.btn:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #c9a857 0%, #d6ba74 100%);
  color: #111;
  box-shadow: 0 15px 35px rgba(201, 168, 87, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(201, 168, 87, 0.45);
}

.btn-outline {
  border: 1px solid rgba(201, 168, 87, 0.4);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline:focus {
  background: rgba(201, 168, 87, 0.12);
  color: var(--gold);
}

.btn.full-width {
  width: 100%;
}

/* Визуальная секция с изображением завода */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

/* Премиальное свечение вокруг изображения завода */
.plant-glow {
  position: absolute;
  inset: -60px;
  z-index: 0;
  background: 
    radial-gradient(ellipse at center, rgba(201, 168, 87, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse at 30% 40%, rgba(201, 168, 87, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 168, 87, 0.2) 0%, transparent 50%);
  filter: blur(60px);
  animation: plantGlowPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Контейнер для изображения завода */
.plant-image-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  filter: drop-shadow(0 30px 80px rgba(201, 168, 87, 0.3));
  transition: transform 0.6s ease;
}

.plant-image-wrapper:hover {
  transform: scale(1.02);
}

.plant-image {
  width: 100%;
  height: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

@keyframes plantGlowPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 32px;
}

.hero-hotspot {
  --hotspot-x: 50%;
  --hotspot-y: 50%;
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle, rgba(201, 168, 87, 0.6) 0%, rgba(201, 168, 87, 0.1) 70%);
  box-shadow: 0 0 25px rgba(201, 168, 87, 0.45);
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0;
  animation: heroHotspotFadeIn 0.6s ease-out forwards;
}

.hero-hotspot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.hero-hotspot::before,
.hero-hotspot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 87, 0.65);
  animation: heroPulse 3s ease-out infinite;
}

.hero-hotspot::after {
  animation-delay: 1.5s;
}

.hero-hotspot .hero-hotspot-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fffbe6;
  box-shadow: 0 0 15px rgba(255, 255, 230, 0.7);
}

.hero-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 10px) scale(0.9);
  width: min(260px, 44vw);
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(10, 14, 22, 0.92);
  border: 1px solid rgba(201, 168, 87, 0.3);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

.hero-hotspot-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  border: 10px solid transparent;
  border-top-color: rgba(10, 14, 22, 0.92);
}

.hero-hotspot-tooltip strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.hero-hotspot-tooltip p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hero-hotspot.active {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 0 32px rgba(201, 168, 87, 0.6);
}

.hero-hotspot.active .hero-hotspot-tooltip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@keyframes heroPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.85);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroHotspotFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .hero-hotspot {
    width: 36px;
    height: 36px;
    font-size: 0.55rem;
  }

  .hero-hotspot-tooltip {
    width: min(240px, 80vw);
    padding: 14px 16px;
  }
}

/* Карточка оборудования */
.machine-card {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(4, 7, 12, 0.6);
  backdrop-filter: blur(14px);
  width: clamp(260px, 28vw, 320px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.machine-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.machine-header strong {
  font-size: 1.6rem;
  color: var(--gold);
}

.machine-body ul {
  margin: 14px 0 0;
  padding: 0 0 0 20px;
  color: var(--text-muted);
}

.machine-footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Блок с ключевыми цифрами */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 80px auto 0;
  width: min(960px, calc(100% - 48px));
  position: relative;
  z-index: 1;
}

.stat {
  padding: 24px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(5, 9, 15, 0.45);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Базовые параметры секций */
.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Темный фон для контрастных блоков */
.section.contrast {
  background: var(--bg-contrast);
}

.section-heading {
  text-align: center;
  max-width: 720px;
}

.section-heading h2 {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

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

/* Карточки преимуществ компании */
.about-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.about-card {
  padding: 32px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(4, 7, 12, 0.35);
  transition: transform var(--transition), border-color var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 87, 0.35);
}

.about-card p {
  color: var(--text-muted);
}

/* Панель фильтра каталога */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.filter-group select {
  background: rgba(7, 12, 18, 0.85);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  transition: border var(--transition), box-shadow var(--transition);
}

.filter-group select:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(201, 168, 87, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 168, 87, 0.15);
}

.filter-group select option.selected {
  background: rgba(201, 168, 87, 0.2);
  color: var(--gold);
  font-weight: 600;
}

.filter-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 420px;
}

/* Сетка каталога */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-empty {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  border-radius: 18px;
  background: rgba(7, 12, 18, 0.75);
  border: 1px dashed rgba(201, 168, 87, 0.35);
  color: var(--text-muted);
}

/* Продуктовая карточка */
.product-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 15px 45px rgba(5, 9, 15, 0.45);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  outline: none;
}

.product-card:focus-visible,
.product-card:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(201, 168, 87, 0.5);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 87, 0.5);
  box-shadow: 0 18px 50px rgba(201, 168, 87, 0.15);
}

.product-card.active {
  border-color: rgba(201, 168, 87, 0.75);
  box-shadow: 0 22px 55px rgba(201, 168, 87, 0.25);
}

/* Бейджи продуктов */
.product-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.product-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-badge-top {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
}

.product-badge-new {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: #fff;
}

/* Превью изображения */
.product-preview {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(7, 12, 18, 0.5);
  margin-bottom: 8px;
  position: relative;
}

.product-preview img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-preview img {
  transform: scale(1.05);
}

/* CTA кнопка в карточке */
.product-card-cta {
  margin-top: auto;
  padding: 12px 20px;
  background: linear-gradient(135deg, #c9a857 0%, #d6ba74 100%);
  color: #111;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 168, 87, 0.4);
}

.product-card-cta:focus-visible,
.product-card-cta:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Кнопка "Что входит в комплекс" */
.product-card-includes-btn {
  margin-top: 12px;
  padding: 10px 18px;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 87, 0.4);
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.product-card-includes-btn:hover {
  background: rgba(201, 168, 87, 0.1);
  border-color: rgba(201, 168, 87, 0.6);
  transform: translateY(-1px);
}

.product-card-includes-btn:focus-visible,
.product-card-includes-btn:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Индикатор "Выбрано" */
.product-selected-indicator {
  position: absolute;
  top: 16px;
  left: 16px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(201, 168, 87, 0.2);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  z-index: 2;
  backdrop-filter: blur(8px);
}

.product-selected-indicator::before {
  content: '✓';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: var(--gold);
  color: #111;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-meta span {
  background: rgba(201, 168, 87, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.feature-list li::before {
  content: '•';
  color: var(--gold);
}

/* Секция услуг */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* Сетка карточек услуг */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Карточка услуги */
.service-card {
  padding: 26px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 87, 0.3);
}

.service-card p {
  color: var(--text-muted);
}


/* Call to action перед формой */
.cta {
  padding: 100px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(201, 168, 87, 0.15), rgba(201, 168, 87, 0.05));
  border: 1px solid rgba(201, 168, 87, 0.35);
  border-radius: 22px;
  padding: 48px 56px;
  box-shadow: 0 15px 55px rgba(201, 168, 87, 0.12);
}

.cta-text h2 {
  margin-top: 0;
}

/* Контактная секция: инфо + форма */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-list .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-list .value {
  font-size: 1rem;
  color: var(--text);
}

/* Форма обратной связи */
.contact-form {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 18px 45px rgba(4, 7, 12, 0.55);
}

.form-heading h3 {
  margin: 0 0 8px;
}

.form-heading p {
  margin: 0;
  color: var(--text-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -4px;
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group label {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(7, 12, 18, 0.85);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border var(--transition), box-shadow var(--transition);
}

/* Стрелочка только для select выбора комплекса */
.form-group select#productId,
.form-group select#productId-modal {
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c9a857' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--surface-solid);
  color: var(--text);
  padding: 10px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(201, 168, 87, 0.45);
  box-shadow: 0 0 0 3px rgba(201, 168, 87, 0.12);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: rgba(255, 107, 107, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-group.has-error label {
  color: var(--error);
}

.form-error {
  min-height: 0.9rem;
  font-size: 0.78rem;
  color: var(--error);
  margin: -4px 0 0;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.selected-product {
  border-radius: 14px;
  padding: 16px;
  background: rgba(201, 168, 87, 0.12);
  border: 1px dashed rgba(201, 168, 87, 0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-footnote {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.5;
}

.form-sla {
  margin: 12px 0 0;
  padding: 12px 16px;
  background: rgba(201, 168, 87, 0.1);
  border: 1px solid rgba(201, 168, 87, 0.3);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

.form-sla strong {
  color: var(--gold);
  font-weight: 600;
}

/* Индикатор отправки */
.submit-spinner {
  display: none;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}

.submit-spinner svg {
  width: 20px;
  height: 20px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Нижний колонтитул */
.footer {
  padding: 64px 0 32px;
  background: #05070c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: flex-start;
}

.footer p {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--gold);
}

/* Фиксированные световые формы */
.floating-shape {
  position: fixed;
  border-radius: 50%;
  background: rgba(201, 168, 87, 0.1);
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
  animation: drift 24s ease-in-out infinite;
}

.shape-one {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 6%;
}

.shape-two {
  width: 320px;
  height: 320px;
  bottom: 18%;
  right: 8%;
  animation-delay: 6s;
}

.shape-three {
  width: 180px;
  height: 180px;
  bottom: 30%;
  left: 18%;
  animation-delay: 3s;
}

/* Система уведомлений */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(5, 9, 15, 0.55);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 99;
}

.toast.success {
  border-color: rgba(72, 199, 116, 0.35);
  color: var(--success);
}

.toast.error {
  border-color: rgba(255, 107, 107, 0.35);
  color: var(--error);
}

.toast.info {
  border-color: rgba(201, 168, 87, 0.35);
  color: var(--gold);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Анимации подсветок */
@keyframes gradientPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -60px, 0) scale(1.08);
  }
}

/* Брейкпоинт для планшетов */
@media (max-width: 1024px) {
  .hero {
    padding-bottom: 120px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Основной мобильный брейкпоинт */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  /* Принудительное применение адаптивных размеров */
  body {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .container {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  .navbar {
    padding: 16px 20px;
    gap: 16px;
    width: calc(100% - 32px);
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-links {
    position: absolute;
    inset: 68px 16px auto 16px;
    padding: 18px 20px;
    flex-direction: column;
    background: rgba(7, 12, 18, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    transform: scale(0.98);
    transform-origin: top right;
    display: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .navbar-links[aria-hidden="false"],
  .navbar-links.is-open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 100px;
  }

  .hero-content {
    margin-top: 80px;
    gap: 40px;
    width: calc(100% - 32px);
  }

  .hero-text h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 60px;
  }

  .stat-value {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .cta-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .section-heading h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .section-heading p {
    font-size: 0.95rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-shape {
    display: none;
  }
}

/* Сильное сжатие (ширина до 600px) */
@media screen and (max-width: 600px) {
  html {
    font-size: 14px;
  }
  
  body {
    font-size: 14px;
  }

  .container {
    width: calc(100% - 32px);
    padding: 0 16px;
  }

  .hero-text {
    align-items: stretch;
    text-align: left;
    gap: 16px;
    max-width: 100%;
  }

  .hero {
    padding: 12px 0 80px;
  }

  .hero-content {
    margin-top: 72px;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: clamp(1.4rem, 5vw, 1.6rem);
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
    width: 100%;
    flex-direction: column;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.875rem;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
  }

  .hero-visual {
    justify-content: center;
    min-height: 350px;
  }

  .plant-image-wrapper {
    max-width: 100%;
    padding: 0 16px;
  }

  .plant-glow {
    inset: -40px;
    filter: blur(40px);
  }

  .section {
    padding: 80px 0;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .section-heading p {
    font-size: 0.95rem;
  }

  .catalog-controls {
    width: 100%;
    gap: 18px;
  }

  .filter-group select {
    width: 100%;
  }

  .filter-hint {
    font-size: 0.85rem;
  }

  .product-card {
    padding: 22px;
    gap: 16px;
  }

  .services-grid {
    gap: 32px;
  }

  .cta-content {
    padding: 36px 32px;
  }

  .contact-form {
    padding: 26px 24px;
    gap: 16px;
  }

  .footer {
    padding: 48px 0 24px;
  }
}

/* Компактные устройства, примерно iPhone SE */
@media (max-width: 440px) {
  html {
    font-size: 13px;
  }

  .navbar {
    padding: 14px 16px;
    width: calc(100% - 24px);
  }

  .brand-logo {
    height: 28px;
  }

  .navbar-links {
    inset: 62px 12px auto 12px;
    padding: 16px 18px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .tagline {
    font-size: 0.64rem;
    padding: 5px 10px;
  }

  .hero-text h1 {
    font-size: clamp(1.25rem, 5vw, 1.45rem);
    line-height: 1.18;
  }

  .hero-text h1 .gold {
    display: block;
  }

  .hero-text p {
    font-size: 0.72rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat {
    padding: 18px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .catalog-controls {
    gap: 12px;
  }

  .contact-form {
    padding: 22px 20px;
  }

  .selected-product {
    font-size: 0.85rem;
  }

  .hero-visual {
    margin-top: -8px;
    min-height: 280px;
  }

  .plant-image-wrapper {
    padding: 0 12px;
  }

  .plant-glow {
    inset: -30px;
    filter: blur(30px);
  }

  .cta-content {
    padding: 28px 20px;
  }

  .cta-text h2 {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }

  .section-heading p {
    font-size: 0.88rem;
  }
}

/* Минимальные ширины (<360px) */
@media (max-width: 360px) {
  html {
    font-size: 12px;
  }

  .navbar {
    padding: 12px 14px;
    width: calc(100% - 20px);
  }

  .container {
    width: calc(100% - 24px);
    padding: 0 12px;
  }

  .brand {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.6rem;
    padding: 4px 8px;
  }

  .hero {
    padding: 10px 0 70px;
  }

  .hero-content {
    margin-top: 60px;
    gap: 28px;
  }

  .hero-text h1 {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.8rem;
  }

  .btn {
    font-size: 0.8125rem;
    padding: 11px 16px;
    min-height: 42px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .section-heading h2 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .section-heading p {
    font-size: 0.85rem;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .cta-text h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
}

/* Модальное окно продукта */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Модальное окно формы (поверх модального окна продукта) */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.contact-modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.contact-modal.is-open .contact-modal-content {
  transform: scale(1);
}

.contact-modal-body {
  padding: 32px;
}

.contact-modal-body .modal-title {
  margin-bottom: 24px;
  font-size: 1.8rem;
}

.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.contact-modal-close:focus-visible,
.contact-modal-close:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .contact-modal-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    margin-top: auto;
  }

  .contact-modal-body {
    padding: 24px 20px;
  }

  .contact-modal-body .modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

/* Модальное окно комплектации */
.includes-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.includes-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.includes-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.includes-modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.includes-modal.is-open .includes-modal-content {
  transform: scale(1);
}

.includes-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.includes-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.includes-modal-close:focus-visible,
.includes-modal-close:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.includes-modal-body {
  padding: 48px 40px;
  overflow-y: auto;
  max-height: calc(90vh - 40px);
  scroll-behavior: smooth;
}

.includes-modal-title {
  margin: 0 0 40px;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.includes-modal-list {
  display: grid;
  gap: 28px;
  padding: 8px 0;
}

.include-detail-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(7, 12, 18, 0.8) 0%, rgba(9, 14, 20, 0.6) 100%);
  border: 1px solid rgba(201, 168, 87, 0.15);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.include-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 87, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.include-detail-card:hover {
  border-color: rgba(201, 168, 87, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 87, 0.2);
}

.include-detail-card:hover::before {
  opacity: 1;
}

.include-detail-card.highlighted {
  border-color: rgba(201, 168, 87, 0.7);
  background: linear-gradient(135deg, rgba(201, 168, 87, 0.15) 0%, rgba(201, 168, 87, 0.05) 100%);
  animation: highlightPulse 2s ease-in-out, cardGlow 3s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(201, 168, 87, 0.2), 0 0 0 1px rgba(201, 168, 87, 0.3);
}

@keyframes highlightPulse {
  0%, 100% {
    box-shadow: 0 16px 48px rgba(201, 168, 87, 0.2), 0 0 0 1px rgba(201, 168, 87, 0.3);
  }
  50% {
    box-shadow: 0 16px 48px rgba(201, 168, 87, 0.35), 0 0 0 1px rgba(201, 168, 87, 0.5);
  }
}

@keyframes cardGlow {
  0%, 100% {
    background: linear-gradient(135deg, rgba(201, 168, 87, 0.15) 0%, rgba(201, 168, 87, 0.05) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(201, 168, 87, 0.2) 0%, rgba(201, 168, 87, 0.1) 100%);
  }
}

.include-detail-image {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.include-detail-card:hover .include-detail-image {
  transform: scale(1.02);
}

.include-detail-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.include-detail-card:hover .include-detail-image img {
  transform: scale(1.05);
}

.include-detail-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.include-detail-card:hover .include-detail-image-overlay {
  opacity: 0.8;
}

.include-detail-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.include-detail-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.include-detail-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 87, 0.2) 0%, rgba(201, 168, 87, 0.1) 100%);
  border: 1px solid rgba(201, 168, 87, 0.3);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201, 168, 87, 0.15);
  transition: all 0.3s ease;
}

.include-detail-card:hover .include-detail-number {
  background: linear-gradient(135deg, rgba(201, 168, 87, 0.3) 0%, rgba(201, 168, 87, 0.2) 100%);
  border-color: rgba(201, 168, 87, 0.5);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(201, 168, 87, 0.25);
}

.include-detail-content h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}

.include-detail-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .includes-modal-body {
    padding: 24px 20px;
  }

  .includes-modal-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .include-detail-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .include-detail-image {
    height: 200px;
  }

  .include-detail-number {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .include-detail-content h3 {
    font-size: 1.2rem;
  }

  .include-detail-content p {
    font-size: 0.9rem;
  }
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.product-modal.is-open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-close:focus-visible,
.modal-close:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-height: calc(90vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-gallery {
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 500px;
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.gallery-main-image {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 12px;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  padding: 20px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: var(--gold);
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 5;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav:focus-visible,
.gallery-nav:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.modal-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  max-height: 100%;
  min-height: 0; /* Важно для правильной работы overflow в grid */
}

.modal-section-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Блок "Что входит в комплекс" */
.modal-includes {
  margin-top: 8px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.include-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(7, 12, 18, 0.6) 0%, rgba(9, 14, 20, 0.4) 100%);
  border: 1px solid rgba(201, 168, 87, 0.15);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.include-item:hover {
  border-color: rgba(201, 168, 87, 0.3);
  background: linear-gradient(135deg, rgba(7, 12, 18, 0.8) 0%, rgba(9, 14, 20, 0.6) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 87, 0.1);
}

.include-item-clickable {
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: none;
  background: linear-gradient(135deg, rgba(7, 12, 18, 0.6) 0%, rgba(9, 14, 20, 0.4) 100%);
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.include-item-clickable::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 87, 0.1), transparent);
  transition: left 0.5s ease;
}

.include-item-clickable:hover::before {
  left: 100%;
}

.include-item-clickable:hover {
  border-color: rgba(201, 168, 87, 0.5);
  background: linear-gradient(135deg, rgba(7, 12, 18, 0.9) 0%, rgba(9, 14, 20, 0.7) 100%);
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(201, 168, 87, 0.15);
}

.include-item-clickable:active {
  transform: translateX(3px);
}

.include-item-clickable:focus-visible,
.include-item-clickable:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: rgba(201, 168, 87, 0.6);
}

.include-arrow {
  margin-left: auto;
  color: var(--gold);
  opacity: 0.5;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.include-item-clickable:hover .include-arrow {
  opacity: 1;
  transform: translateX(6px);
  color: var(--gold);
}

.include-arrow svg {
  display: block;
  filter: drop-shadow(0 0 4px rgba(201, 168, 87, 0.3));
  transition: filter 0.3s ease;
}

.include-item-clickable:hover .include-arrow svg {
  filter: drop-shadow(0 0 8px rgba(201, 168, 87, 0.5));
}

.include-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(201, 168, 87, 0.1);
  border-radius: 8px;
  padding: 4px;
  transition: all 0.3s ease;
}

.include-item:hover .include-icon,
.include-item-clickable:hover .include-icon {
  background: rgba(201, 168, 87, 0.2);
  transform: scale(1.1);
}

.include-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.include-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
  transition: color 0.3s ease;
}

.include-item-clickable:hover .include-text {
  color: var(--gold);
}

/* Таблица параметров */
.modal-specs {
  margin-top: 8px;
}

.specs-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 12, 18, 0.6);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

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

.specs-table td {
  padding: 14px 18px;
  font-size: 0.9rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
  width: 50%;
}

.spec-value {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.specs-table tr:hover {
  background: rgba(201, 168, 87, 0.05);
}

.modal-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text);
}

.modal-meta {
  margin: -8px 0;
}

.modal-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 1.05rem;
}

.modal-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.modal-features-list li {
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(201, 168, 87, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 87, 0.15);
}

.modal-features-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.modal-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 200px;
}

.modal-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Адаптивность модального окна */
@media (max-width: 968px) {
  .modal-body {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }

  .modal-gallery {
    min-height: 300px;
    max-height: 400px;
  }

  .gallery-main {
    padding: 24px;
  }

  .includes-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .modal-info {
    padding: 32px 24px;
  }

  .specs-table-wrapper {
    font-size: 0.85rem;
  }

  .specs-table td {
    padding: 12px 14px;
  }

  .gallery-main-image {
    max-height: 300px;
  }

  .modal-info {
    padding: 32px 24px;
  }
}

/* Баннер консультации */
.consultation-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 999;
  max-width: 600px;
  width: calc(100% - 32px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Скрываем баннер консультации на мобильных устройствах */
@media (max-width: 768px) {
  .consultation-banner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.consultation-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.consultation-banner-content {
  background: linear-gradient(135deg, rgba(201, 168, 87, 0.15), rgba(201, 168, 87, 0.05));
  border: 1px solid rgba(201, 168, 87, 0.4);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.consultation-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.consultation-banner-text strong {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}

.consultation-banner-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.consultation-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.consultation-banner-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
  padding: 0;
}

.consultation-banner-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Кнопка "Наверх" */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a857 0%, #d6ba74 100%);
  border: none;
  color: #111;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 8px 24px rgba(201, 168, 87, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201, 168, 87, 0.5);
}

.back-to-top:focus-visible,
.back-to-top:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Чат-виджет */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a857 0%, #d6ba74 100%);
  border: none;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  box-shadow: 0 8px 24px rgba(201, 168, 87, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.chat-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(201, 168, 87, 0.5);
}

.chat-widget:focus-visible,
.chat-widget:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.chat-widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

@media (max-width: 600px) {
  .modal-content {
    border-radius: 16px;
    max-height: 95vh;
  }

  .consultation-banner {
    bottom: 80px;
    width: calc(100% - 24px);
  }

  .consultation-banner-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .consultation-banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .chat-widget {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .gallery-main {
    padding: 16px;
  }

  .gallery-main-image {
    max-height: 250px;
  }

  .gallery-thumbnails {
    padding: 12px;
    gap: 8px;
  }

  .gallery-thumb {
    width: 60px;
    height: 60px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }

  .modal-info {
    padding: 24px 20px;
    gap: 20px;
  }
}
