/* --- RESET & ENHANCED VARIABLES --- */
:root {
  --bg-dark: #0d0e12;
  --bg-gray: #15171e;
  --bg-gray-alt: #1e212b;
  --accent: #FF5722;
  --accent-hover: #f44336;
  --accent-glow: rgba(255, 87, 34, 0.25);
  --accent-gradient: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
  --text: #f0f2f5;
  --text-muted: #9ea3b0;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 87, 34, 0.5);
  
  /* Брендовые цвета */
  --tg-color: #2AABEE;
  --wa-color: #25D366;
  --max-color: #7B1FA2;
  
  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* Типографика */
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Адаптивные отступы (Fluid Spacing) */
  --space-section: clamp(60px, 8vw, 100px);
  --space-element: clamp(20px, 4vw, 35px);
  
  /* Тени */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--accent-glow);
}

/* Accessibility */
.skip-link {
  position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; width: auto; height: auto;
  background: var(--accent); color: #fff; padding: 12px 20px;
  z-index: 9999; border-radius: var(--radius-sm); font-weight: 700;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: #0d0e12;
  /* Тонкая паттерн-сетка 40x40px */
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  margin: 0;
  /* Отступ под мобильное меню + Safe Area для iPhone */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; } /* Класс для блокировки скролла при открытом меню */

* { box-sizing: border-box; }

/* --- TYPOGRAPHY & LAYOUT --- */
.container {
  max-width: 1220px;
  margin: 0 auto;
}

section { 
  padding: var(--space-section) 0; 
  border-bottom: 1px solid var(--border); 
}

.section--dark {
  background-color: #13151c;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 87, 34, 0.05) 0%, transparent 70%);
}

h1, h2, h3 { 
  color: #ffffff; 
  margin-top: 0; 
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { 
  font-size: clamp(2rem, 4.5vw, 3.5rem); /* Адаптивный H1 */
  line-height: 1.15; 
  margin-bottom: clamp(16px, 3vw, 24px); 
}

h2 { 
  font-size: clamp(1.5rem, 3.5vw, 2.4rem); 
  margin-bottom: 20px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
}

p.section-desc {
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: var(--space-element);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

a { color: var(--accent); text-decoration: none; transition: all 0.25s ease; }
@media (hover: hover) { a:hover { opacity: 0.8; } } /* Ховеры только для ПК */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 87, 34, 0.12); color: var(--accent);
  padding: 8px 16px; border-radius: 30px;
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 20px; border: 1px solid rgba(255, 87, 34, 0.3);
}

.icon { width: 20px; height: 20px; fill: currentColor; vertical-align: middle; }

/* --- HEADER --- */
.header { 
  background: rgba(13, 14, 18, 0.9); 
  position: sticky; top: 0; z-index: 1000; 
  padding: 15px 0; border-bottom: 1px solid var(--border); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.header__inner { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 800; color: #fff; letter-spacing: 1px; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: 24px; }
.nav a { 
  color: var(--text-muted); font-weight: 600; text-transform: uppercase; 
  font-size: 0.85rem; letter-spacing: 0.5px; 
}
@media (hover: hover) { .nav a:hover { color: var(--accent); } }

.header__contacts { display: flex; gap: 8px; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 6px; padding: 10px; z-index: 1001; /* Touch-зона 44px */
}
.hamburger span {
  display: block; width: 26px; height: 2px; background-color: #fff;
  transition: all 0.3s ease; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- BUTTONS --- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; font-weight: 700; text-align: center; cursor: pointer; 
  border-radius: var(--radius-sm); border: none; text-transform: uppercase; 
  font-size: 0.85rem; letter-spacing: 0.5px; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 48px; /* Touch-friendly height */
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
}

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

.btn--header { padding: 10px 16px; font-size: 0.78rem; min-height: 40px; }
.btn--primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn--outline { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: var(--text); }
.btn--tg { background-color: var(--tg-color); color: #fff; }
.btn--wa { background-color: var(--wa-color); color: #fff; }
.btn--max { background-color: var(--max-color); color: #fff; }

/* --- HERO SECTION REFACTORED --- */
.hero { 
  padding: clamp(60px, 8vw, 110px) 0; 
  background: radial-gradient(circle at 85% 30%, rgba(255, 87, 34, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

/* Пульсирующий индикатор наличия */
.badge--live {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4CAF50;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  animation: pulseGreen 1.8s infinite;
  display: inline-block;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead { 
  font-size: clamp(1.05rem, 2vw, 1.25rem); 
  color: var(--text-muted); 
  margin-bottom: var(--space-element); 
  max-width: 650px;
  line-height: 1.6;
}

/* Факты в карточках */
.hero__facts { 
  list-style: none; 
  padding: 0; 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 14px; 
  margin-bottom: clamp(25px, 4vw, 40px); 
}

.hero__facts li { 
  background: rgba(255, 255, 255, 0.02); 
  padding: 14px 16px; 
  border-radius: var(--radius-md);
  border: 1px solid var(--border); 
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.hero__facts li:hover {
  background: var(--bg-gray-alt);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.fact-icon-wrap {
  width: 36px;
  height: 36px;
  background: rgba(255, 87, 34, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-fact {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.hero__facts strong { 
  display: block; 
  font-size: 1.15rem; 
  color: #fff; 
  line-height: 1.2;
}

.hero__facts span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Кнопки и микро-статус */
.hero__actions { 
  display: flex; 
  gap: 16px; 
  align-items: flex-start;
  flex-wrap: wrap; 
}

.hero__expert-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__micro-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
}

.dot-online {
  width: 6px;
  height: 6px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: inline-block;
}

/* --- VISUAL & FLOATING TAGS --- */
.hero__product-card {
  background: var(--bg-gray); 
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); 
  padding: clamp(24px, 4vw, 40px) 20px 20px;
  text-align: center; 
  position: relative; 
  box-shadow: var(--shadow-soft);
}

.hero__glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: var(--accent);
  opacity: 0.18;
  filter: blur(70px);
  border-radius: 50%;
  pointer-events: none;
}

.hero__product-img { 
  max-width: 85%; 
  height: auto; 
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); 
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.hero__product-card:hover .hero__product-img {
  transform: scale(1.04) translateY(-4px);
}

/* Плавающие плашки */
.hero__float-tag {
  position: absolute;
  z-index: 3;
  background: rgba(21, 23, 30, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  text-align: left;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.hero__float-tag--top {
  top: 25px;
  left: -20px;
}

.hero__float-tag--bottom {
  bottom: 60px;
  right: -15px;
  animation-delay: -2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.float-tag__icon {
  font-size: 1.3rem;
}

.float-tag__text strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.2;
}

.float-tag__text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero__price-tag {
  position: absolute; 
  top: -15px; 
  right: 20px; 
  background: var(--accent-gradient);
  color: #fff; 
  font-weight: 800; 
  font-size: 1.1rem;
  padding: 8px 20px; 
  border-radius: 30px; 
  box-shadow: var(--shadow-glow);
  z-index: 4;
}

.hero__product-caption {
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

/* --- MOBILE ADAPTIVE FOR HERO --- */
@media (max-width: 960px) {
  .hero__grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .badge--live { margin-left: auto; margin-right: auto; }
  .hero__micro-status { justify-content: center; }

  .hero__float-tag--top { left: 10px; top: 10px; }
  .hero__float-tag--bottom { right: 10px; bottom: 50px; }
}

@media (max-width: 600px) {
  .hero__facts { 
    grid-template-columns: 1fr; /* На мобилках факты в 1 колонку */
    gap: 10px; 
  }
  
  .hero__actions { 
    flex-direction: column; 
    width: 100%; 
  }
  
  .hero__actions .btn, .hero__expert-cta { 
    width: 100%; 
  }

  .hero__float-tag {
    padding: 8px 10px;
  }
  .float-tag__text strong { font-size: 0.75rem; }
  .float-tag__text span { font-size: 0.68rem; }
}

/* --- TRUST STRIP --- */
.trust-strip { padding: 30px 0; background: var(--bg-gray-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-strip__value { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--accent); }
.trust-strip__label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* --- APPLICATIONS GRID ENHANCED --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}

.app-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: var(--bg-gray-alt);
}

.app-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.app-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 87, 34, 0.1);
  border: 1px solid rgba(255, 87, 34, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.app-card__badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255, 87, 34, 0.12);
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Набор тегов параметров */
.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.app-tag {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Ссылка в калькулятор */
.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  transition: all 0.25s ease;
}

.app-card__link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.app-card:hover .app-card__link {
  color: #fff;
}

.app-card:hover .app-card__link svg {
  transform: translateX(5px);
  fill: #fff;
}

@media (max-width: 768px) {
  .app-card { padding: 22px; }
  .apps-grid { gap: 16px; }
}
/* --- ROUNDED CARDS SYSTEM --- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 28px;
}

/* Сама карточка-бокс */
.card-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 20px; /* Выразительное скругление карточки */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card-box:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  background: var(--bg-gray-alt);
}

/* Акцентная карточка (Хит продаж) */
.card-box--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 87, 34, 0.08) 0%, var(--bg-gray) 100%);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.15);
}

/* Верхняя плашка внутри карточки */
.card-box__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
}

.card-pill--accent {
  color: #fff;
  background: var(--accent-gradient);
  border: none;
  box-shadow: var(--shadow-glow);
}

.stock-pill {
  font-size: 0.72rem;
  color: #4CAF50;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Обертка картинки со скруглённым фоном */
.card-box__img-wrap {
  height: 190px;
  background: var(--bg-dark);
  border-radius: 14px; /* Скругление внутреннего блока с фото */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.card-box__img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.card-box:hover .card-box__img {
  transform: scale(1.06);
}

/* Контентная часть */
.card-box__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}

.card-box__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  min-height: 40px;
}

/* Чипсы-характеристики */
.card-box__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.chip-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 8px;
}

.chip-item strong {
  color: #fff;
}

.chip-item.highlight {
  background: rgba(255, 87, 34, 0.12);
  border-color: rgba(255, 87, 34, 0.3);
  color: var(--accent);
}

/* Футер карточки с ценой и кнопками */
.card-box__footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-box__price-group {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price-main {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.price-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-dark);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.price-sub--accent {
  color: var(--accent);
  border-color: rgba(255, 87, 34, 0.3);
  background: rgba(255, 87, 34, 0.08);
}

/* Кнопки заказа */
.card-box__btns {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-box__btns .btn {
  padding: 10px 14px;
  min-height: 42px;
  border-radius: 10px; /* Скругление кнопок */
  font-size: 0.8rem;
}

@media (max-width: 480px) {
  .card-box {
    padding: 16px;
    border-radius: 16px;
  }
  .price-main {
    font-size: 1.45rem;
  }
}

/* --- CALCULATOR --- */
#calc {
  position: relative;
}
#calc::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--accent);
  opacity: 0.06;
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.calc-wrapper { 
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 40px); 
  background: var(--bg-gray); padding: clamp(24px, 5vw, 40px); 
  border-radius: var(--radius-lg); border: 1px solid var(--border); 
}
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 10px; font-weight: 700; }
.field input[type="number"], .field input[type="text"], .field select { 
  width: 100%; padding: 16px; background: var(--bg-dark); border: 1px solid var(--border); 
  color: #fff; font-size: 16px; border-radius: var(--radius-sm); outline: none; 
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field.checkbox-container { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.field.checkbox-container input { width: 24px; height: 24px; accent-color: var(--accent); }

.calc-result { 
  background: var(--bg-dark); padding: clamp(20px, 4vw, 30px); border-radius: var(--radius-md);
  border: 1px solid rgba(255, 87, 34, 0.4); display: flex; flex-direction: column; justify-content: space-between;
}
.calc-result h3 { color: var(--accent); margin-bottom: 20px; }
.calc-result p { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.calc-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }

/* --- TABLES --- */
.table-wrapper { 
  overflow-x: auto; -webkit-overflow-scrolling: touch; 
  border-radius: var(--radius-md); border: 1px solid var(--border);
  /* Тень-подсказка скролла */
  background: linear-gradient(to right, var(--bg-gray) 30%, rgba(255,255,255,0)), linear-gradient(to right, rgba(255,255,255,0), var(--bg-gray) 70%) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.5), rgba(0,0,0,0)), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.5), rgba(0,0,0,0)) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
table { width: 100%; border-collapse: collapse; background: var(--bg-gray); min-width: 600px; }
th, td { padding: 16px 20px; border: 1px solid var(--border); text-align: left; }
th { background: var(--bg-gray-alt); color: #fff; font-weight: 800; font-size: 0.85rem; }
table td:nth-child(2) { background: rgba(255, 87, 34, 0.05); }

/* --- B2B & WHOLESALE ENHANCEMENT --- */
.b2b-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-bottom: 45px;
}

.b2b-tier-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.b2b-tier-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-gray-alt);
}

.b2b-tier-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 87, 34, 0.08) 0%, var(--bg-gray) 100%);
  box-shadow: 0 8px 30px rgba(255, 87, 34, 0.15);
}

.b2b-tier-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.b2b-tier-vol {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.b2b-tier-card__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.b2b-tier-card__price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.b2b-tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.b2b-tier-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-tier-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* Главный двухобъемный блок (Преимущества + Форма) */
.b2b-main-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 35px;
  align-items: start;
}

.b2b-benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.b2b-benefit-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: border-color 0.3s ease;
}

.b2b-benefit-box:hover {
  border-color: var(--border-hover);
}

.b2b-benefit-box__icon {
  font-size: 2rem;
  background: var(--bg-dark);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.b2b-benefit-box h4 {
  font-size: 1.05rem;
  margin: 0 0 6px 0;
  color: #fff;
}

.b2b-benefit-box p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Форма */
.b2b-form-card {
  background: var(--bg-gray);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-soft);
}

.b2b-form-card__header h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #fff;
}

.b2b-form-card__header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 24px;
}

.b2b-form-new .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.b2b-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.b2b-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.b2b-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.b2b-privacy-note {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 14px;
}

@media (max-width: 960px) {
  .b2b-main-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .b2b-form-new .field-row {
    grid-template-columns: 1fr;
  }
}

/* --- FAQ ACCORDION --- */
.faq-item { background: var(--bg-gray); margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.faq-q { padding: 20px 24px; cursor: pointer; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 1.5rem; color: var(--accent); }
.faq-a { padding: 0 24px 20px; display: none; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }
.faq-item.active .faq-a { display: block; }
.faq-item.active .faq-q { color: var(--accent); }

/* --- MOBILE STICKY BOTTOM BAR --- */
.mobile-sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(13, 14, 18, 0.95); border-top: 1px solid var(--border);
  z-index: 2000; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); /* Учет Safe Area */
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-sticky {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 2px; font-size: 0.7rem; font-weight: 700; color: #fff;
  border-radius: 6px; text-decoration: none; gap: 4px; text-align: center;
}
.btn-sticky .icon { width: 22px; height: 22px; }
.btn-sticky.btn--call { background: var(--accent-gradient); }

/* --- FOOTER --- */
/* --- FOOTER ENHANCED --- */
.footer {
  padding: 70px 0 30px;
  background: #08090b;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #8b90a0;
}

.footer__messengers {
  display: flex;
  gap: 10px;
}

.footer__social-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
}

.footer__social-btn:hover {
  border-color: var(--accent);
  background: var(--accent-gradient);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.footer__social-btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer__links a {
  color: #8b90a0;
  font-size: 0.88rem;
  transition: color 0.25s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__contacts-list p {
  margin: 0 0 12px 0;
  font-size: 0.88rem;
  color: #8b90a0;
  line-height: 1.5;
}

.footer__contacts-list strong {
  color: #fff;
}

.footer__phone {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent) !important;
}

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

.footer__info-list li {
  font-size: 0.88rem;
  color: #8b90a0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__info-list li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2rem;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pay-badge {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  color: #a0a5b5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Нижний копирайт */
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #6c7283;
}

.footer__bottom p {
  margin: 0;
}

.footer__disclaimer {
  font-size: 0.75rem;
}

/* Адаптив для футера */
@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 580px) {
  .footer {
    padding: 45px 0 25px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* =========================================
   📱 ПОЛНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ (МЕДИА-ЗАПРОСЫ)
   ========================================= */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__facts { justify-content: center; }
  .b2b-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .hamburger { display: flex; }
  
  /* Мобильное меню на весь экран */
  .nav {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark); flex-direction: column; justify-content: flex-start;
    padding: 30px 24px; gap: 0; border-top: 1px solid var(--border);
    transform: translateX(-100%); transition: transform 0.3s ease-in-out;
    z-index: 999; overflow-y: auto;
  }
  .nav.active { transform: translateX(0); }
  .nav a { 
    font-size: 1.25rem; padding: 20px 0; 
    border-bottom: 1px solid var(--border); width: 100%; display: block; 
  }

  /* Сетки для мобилок */
  .trust-strip__grid { grid-template-columns: 1fr 1fr; gap: 15px; } /* 2х2 вместо колонки */
  .b2b-form { grid-template-columns: 1fr; }
  .calc-wrapper { grid-template-columns: 1fr; }
  
  /* Кнопки на всю ширину на мобилке */
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Компактные таблицы для мобилок */
  th, td { padding: 12px 10px; font-size: 0.8rem; }
  
  /* Включаем нижнюю липкую панель */
  .mobile-sticky-bar { display: flex; gap: 6px; }
  .header__contacts { display: none; } /* Прячем в шапке, так как есть внизу */
  
  .footer__inner { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 480px) {
  /* Микро-твики для самых маленьких экранов (iPhone SE) */
  .hero__product-card { padding: 20px; }
  .btn-sticky span { font-size: 0.65rem; } /* Уменьшаем текст в липком меню, чтобы не ломался */
}
/* --- CALCULATOR ENHANCEMENTS --- */
.calc-presets {
  margin-bottom: 20px;
}

.calc-presets__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.calc-presets__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: #fff;
}

.field__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.field__header label {
  margin-bottom: 0;
}

.field__header input[type="number"] {
  width: 100px;
  padding: 6px 10px;
  text-align: right;
  font-weight: 700;
}

/* Ползунок RANGE */
.calc-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-dark);
  outline: none;
  margin-top: 10px;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-result__price-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed var(--accent-glow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-result__price-block strong {
  font-size: 1.6rem;
  color: #fff;
}

.highlight-text {
  color: var(--accent);
}

.calc-row--hidden {
  display: none !important;
}

/* Уведомление при копировании */
.toast-msg {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  z-index: 3000;
  animation: fadeInOut 2.5s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(10px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* --- FAQ GRID (2 COLUMNS ON DESKTOP) --- */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 колонки одинаковой ширины */
  gap: 18px; /* Отступ между карточками */
  align-items: start; /* Важно: чтобы раскрытый ответ не растягивал соседнюю карточку */
}

.faq-item {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Кнопка-заголовок */
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.faq-q__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.faq-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255, 87, 34, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border-radius: 50%;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}

/* Раскрытие через CSS Grid */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(0, 0, 0, 0.15);
}

.faq-item.active .faq-a {
  grid-template-rows: 1fr;
}

.faq-a__content {
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-a__content {
  padding: 0 24px 22px 24px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 16px;
}

.faq-a__content p {
  margin-top: 0;
  margin-bottom: 12px;
}

.faq-a__content ul, .faq-a__content ol {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.faq-a__content li {
  margin-bottom: 6px;
}

.faq-a__content code {
  background: var(--bg-dark);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Адаптив для планшетов и мобилок — сброс в 1 колонку */
@media (max-width: 960px) {
  .faq-list {
    grid-template-columns: 1fr; /* Возвращаем 1 колонку на экранах менее 960px */
    gap: 12px;
  }
  
  .faq-q {
    padding: 16px;
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .faq-q { padding: 16px; font-size: 0.98rem; }
  .faq-a__content { font-size: 0.9rem; }
}
/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 80px; /* Над мобильной нижней плашкой */
  left: 20px;
  right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(21, 23, 30, 0.95);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  z-index: 2500;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: none; /* Управляется из JS */
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner__content p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner__content a {
  color: var(--accent);
  text-decoration: underline;
}

.btn--cookie {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 0.78rem;
  align-self: flex-end;
}

@media (min-width: 769px) {
  .cookie-banner {
    left: 20px;
    right: auto;
    bottom: 20px;
  }
}