:root {
  --bg-primary: #0A0E12;
  --bg-elevated: #121F28;
  --bg-card: #1A2832;
  --green-primary: #27874C;
  --green-light: #4C8B5E;
  --green-glow: #3DDC84;
  --text-primary: #FFFFFF;
  --text-secondary: #B8C5CE;
  --text-muted: #6B7D8A;
  --border: #2A3D4A;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(39, 135, 76, 0.45) 0%, rgba(39, 135, 76, 0.12) 40%, rgba(10, 14, 18, 0) 70%);
  --gradient-btn: linear-gradient(135deg, #4C8B5E 0%, #27874C 100%);
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Inter', 'Open Sans', Arial, sans-serif;
  --container: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-glow); }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--text-primary); }
h2 .accent { color: var(--green-primary); }
h3 { font-size: 1.25rem; font-weight: 600; }

.section { padding: 4rem 0; }
.section-title { margin-bottom: 2rem; }
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--green-primary), transparent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 31, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); }
.logo:hover { color: var(--text-primary); }
.logo svg { width: 48px; height: 48px; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.logo-sub { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; display: block; }

.nav-main { display: flex; gap: 1.5rem; align-items: center; }
.nav-main a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-main a:hover, .nav-main a.active { color: var(--text-primary); }

.header-phone { color: var(--text-primary); font-weight: 600; white-space: nowrap; font-size: 0.95rem; }
.header-phone:hover { color: var(--green-glow); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(39, 135, 76, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(61, 220, 132, 0.4); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--green-light);
  border: 1px solid var(--green-primary);
}
.btn-outline:hover { background: rgba(39, 135, 76, 0.15); color: var(--green-glow); }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.hero-waves {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50 Q25 30 50 50 T100 50' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 100px 100px;
}
.hero-orb {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(500px, 50vw);
  height: min(500px, 50vw);
  opacity: 0.6;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.18;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(39, 135, 76, 0.2);
  border: 1px solid var(--green-primary);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--green-glow);
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero-hook {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--green-glow);
  margin: 0 0 1rem;
  line-height: 1.45;
  max-width: 540px;
}
.hero-lead { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--green-primary); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.trust-strip {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.trust-strip-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.trust-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.trust-strip-items a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.trust-strip-items a:hover { color: var(--green-glow); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--green-primary); transform: translateY(-2px); }
.card-code {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); }
.card-link { display: block; color: inherit; }
.card-link:hover { color: inherit; }

.card-thumb {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--bg-primary);
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 0.5rem;
}
.card--with-img .card-code { margin-top: 0; }

.product-figure {
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.product-figure img {
  max-height: 360px;
  margin-inline: auto;
  object-fit: contain;
}
.content-figure {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.content-figure img { width: 100%; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.specs-table th, .specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.specs-table th { color: var(--text-muted); font-weight: 500; width: 40%; }
.specs-table td { color: var(--text-primary); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs span { margin: 0 0.35rem; }

/* Page header */
.page-header { padding: 3rem 0 2rem; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 0.75rem; }
.page-lead { color: var(--text-secondary); font-size: 1.1rem; max-width: 720px; }

/* Advantages */
.advantages { list-style: none; }
.advantages li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}
.advantages li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
}

/* CTA block */
.cta-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-block h2 { margin-bottom: 0.75rem; }
.cta-block p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green-primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Geo tags */
.geo-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.geo-tag {
  padding: 0.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.geo-tag:hover { border-color: var(--green-primary); color: var(--green-light); }

/* Two col layout */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

@media (max-width: 900px) {
  .nav-main { display: none; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-orb { opacity: 0.3; right: -10%; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
