/* =========================================
   Variables & Reset
   ========================================= */
:root {
  --bg-main: #121212;
  --bg-card: #242424;
  --bg-modal: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #bef264;
  --accent-hover: #a3e635;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-radius-pill: 999px;
  --border-radius-card: 24px;
  --border-radius-sm: 16px;
  --transition: all 0.3s ease;
  --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* =========================================
   Layout & Typography
   ========================================= */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
}

h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 40px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }

.subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.section-label::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* =========================================
   Components
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--border-radius-pill);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(190, 242, 100, 0.05);
}

.btn-outline-lime {
  border: 1px solid var(--accent);
  color: var(--accent);
  width: 100%;
}

.btn-outline-lime:hover {
  background-color: var(--accent);
  color: #000;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 0.8rem;
}

/* =========================================
   Header
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 32px;
}

.header .logo {
  gap: 16px;
}

.header-logo-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  text-align: center;
  flex-wrap: wrap;
}

.header-logo-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.header-logo-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0;
}

.header .logo img {
  height: 90px;
}

.main-nav {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  padding: 6px;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--border-color);
}

.main-nav a {
  padding: 10px 24px;
  border-radius: var(--border-radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a.active {
  background-color: var(--accent);
  color: #000;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding-top: 160px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}
.dot.active { background: var(--accent); }

/* =========================================
   Catalog Section
   ========================================= */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.product-img {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.02);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  overflow: visible;
}
.product-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  object-position: center;
}

.product-info { display: flex; flex-direction: column; flex-grow: 1; margin-bottom: 24px; }
.product-price { color: var(--accent); font-weight: 700; font-size: 1.125rem; margin-bottom: 8px; }
.product-desc { color: var(--text-muted); font-size: 0.875rem; flex-grow: 1; }
.product-weight { margin-top: 16px; font-size: 0.75rem; color: var(--text-main); background: rgba(255, 255, 255, 0.08); padding: 6px 10px; border-radius: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.product-weight::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* =========================================
   Comparison Section
   ========================================= */
.comparison-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab-item {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding-left: 24px;
  border-left: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.tab-item.active {
  color: var(--text-main);
  border-left-color: var(--accent);
  font-weight: 600;
}

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

.fact-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 24px;
}

.fact-card-wide {
  grid-column: span 2;
}

.fact-val { font-size: 2.5rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; line-height: 1;}
.fact-text { color: var(--text-muted); font-size: 0.875rem; }

/* =========================================
   Reviews Section
   ========================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
}

.review-author {
  font-weight: 600;
  color: var(--text-main);
}

/* =========================================
   Blog Section
   ========================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-img {
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-sm);
  background: rgba(255,255,255,0.02);
  margin-bottom: 20px;
  overflow: hidden;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-link { color: var(--accent); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 16px;}

.knowledge-video-grid {
  display: none;
}

.knowledge-video-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.knowledge-video-card video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

/* =========================================
   Inner Page Layout (Blog Article)
   ========================================= */
.inner-page-layout {
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 800px; /* Узкая колонка для чтения */
}

.content-richtext h1 { margin-bottom: 24px; }
.content-richtext h2 { font-size: 2rem; margin: 40px 0 20px; }
.content-richtext p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.125rem; }
.content-richtext img { border-radius: var(--border-radius-card); margin: 40px 0; }
.content-richtext ul { margin-bottom: 24px; padding-left: 20px; }
.content-richtext li { color: var(--text-muted); margin-bottom: 10px; list-style-type: disc; color: var(--accent); }
.content-richtext li span { color: var(--text-muted); }

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  margin-top: 60px;
}

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

.footer-left p { color: var(--text-muted); font-size: 0.875rem; margin-top: 16px; }
.footer-right { display: flex; gap: 32px; color: var(--text-muted); font-size: 0.875rem; }
.footer-right a:hover { color: var(--text-main); }
.footer-contacts { margin-top: 16px; color: var(--text-muted); font-size: 0.875rem; }
.footer-contacts span { display: block; margin-bottom: 4px;}

/* =========================================
   Modal Form
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-card);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover { color: var(--text-main); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 6px; }

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

textarea.form-control { resize: vertical; min-height: 80px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  margin-top: 1px;
  transition: var(--transition);
}

.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-checkbox input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--accent);
}

.form-checkbox a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1200px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero-inner, .comparison-inner { grid-template-columns: 1fr; text-align: center; }
  .subtitle { margin-left: auto; margin-right: auto; }
  .tabs { text-align: left; }
  .hero { padding-top: 150px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .header { padding: 12px 0; }
  .header-inner { flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
  .header-logo-title { font-size: 0.9rem; }
  .header-logo-subtitle { font-size: 0.75rem; }
  .header .logo img { height: 40px; }
  .header-center { order: 3; width: 100%; }
  .main-nav { 
    width: 100%; 
    justify-content: flex-start; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    padding: 6px; 
    gap: 6px;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 8px 16px; font-size: 0.85rem; white-space: nowrap; }
  .header .btn { display: none; }
  .hero { padding-top: 170px; }
  .inner-page-layout { padding-top: 170px; }
  .hero-inner, .comparison-inner { gap: 40px; }
  .blog-grid, .reviews-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; text-align: center; }
  .fact-card-wide { grid-column: auto; }
  .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer-right { flex-direction: column; gap: 16px; align-items: center; }
  .modal-content { padding: 24px; }
}

@media (max-width: 480px) {
  .section { padding: 50px 0; }
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.75rem !important; }
  .subtitle { font-size: 1rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 16px; }
  .product-price { font-size: 1rem; margin-bottom: 4px; }
  .product-info h3 { font-size: 1rem; margin-bottom: 4px; }
  .product-desc { font-size: 0.75rem; line-height: 1.4; }
  .btn-outline-lime { padding: 10px; font-size: 0.85rem; }
  .main-nav a { padding: 6px 12px; font-size: 0.8rem; }
  .btn { width: 100%; justify-content: center; }
  .fact-card { padding: 16px; }
  .fact-val { font-size: 1.75rem !important; }
}

@media (max-width: 360px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .header-logo-subtitle { display: none; }
}