:root {
  --bg-base: #F7F8F6;
  --bg-surface: #FFFFFF;
  --bg-forest: #1B3B2B;
  --bg-forest-dark: #132A1E;
  --text-primary: #141A18;
  --text-secondary: #525C58;
  --text-muted: #7C8782;
  --accent-orange: #F25C05;
  --accent-orange-hover: #D94E00;
  --border-light: #E2E6E3;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px rgba(20, 26, 24, 0.06);
  --shadow-hover: 0 12px 32px rgba(20, 26, 24, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-display {
  font-family: 'Manrope', -apple-system, sans-serif;
  letter-spacing: -0.02em;
}
.tabular { font-variant-numeric: tabular-nums; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-wrap img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone-link {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.msg-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  transition: border-color .2s, background .2s;
}
.msg-pill:hover { border-color: var(--bg-forest); background: #EFF3F0; }
.burger-btn { display: none; background: none; border: 1px solid var(--border-light); border-radius: 8px; padding: 8px 12px; font-size: 18px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}
.btn-primary { background: var(--accent-orange); color: #fff; }
.btn-primary:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }
.btn-forest { background: var(--bg-forest); color: #fff; }
.btn-forest:hover { background: var(--bg-forest-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-ghost { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-ghost:hover { border-color: var(--bg-forest); }

/* Layout */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-title { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.section-sub { color: var(--text-secondary); margin-bottom: 28px; max-width: 720px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-secondary); padding: 20px 0 12px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-orange); }

/* Hero */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--bg-forest-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
  margin-top: 20px;
}
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19,42,30,0.94) 0%, rgba(19,42,30,0.74) 55%, rgba(19,42,30,0.22) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 48px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-content h1 { font-size: 40px; line-height: 1.12; margin-bottom: 16px; font-weight: 800; }
.hero-content p { font-size: 17px; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 18px; font-size: 13px; }
.hero-stats strong { display: block; font-size: 20px; font-family: 'Manrope', sans-serif; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 20px; }
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #EAECE9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 26, 24, 0.84);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.card-tag.hit { background: var(--accent-orange); }
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-type { font-size: 12px; font-weight: 600; color: var(--bg-forest); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.card-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-now { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 18px; }
.price-old { display: block; font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

/* Filter Bar */
.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  align-items: end;
}
.filter-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.filter-field select, .filter-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg-base);
}

/* Calculator */
.calc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  box-shadow: var(--shadow-card);
}
.calc-group { margin-bottom: 20px; }
.calc-label { display: block; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-base);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pill-btn.active { background: var(--bg-forest); color: #fff; border-color: var(--bg-forest); }
.calc-range { width: 100%; accent-color: var(--accent-orange); }
.calc-result {
  background: var(--bg-forest);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-result small { color: rgba(255,255,255,0.72); font-size: 13px; }
.calc-big { font-family: 'Manrope', sans-serif; font-size: 32px; font-weight: 800; margin: 6px 0 18px; }
.calc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.18); }
.calc-metrics strong { display: block; font-size: 18px; font-family: 'Manrope', sans-serif; }

/* Product Detail */
.detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; margin-bottom: 48px; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: #EAECE9; border: 1px solid var(--border-light); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--accent-orange); }
.detail-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.spec-table td:first-child { color: var(--text-secondary); }
.spec-table td:last-child { text-align: right; font-weight: 600; }

/* Cross-linking & Comparison */
.compare-table { width: 100%; border-collapse: collapse; background: var(--bg-surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.compare-table th { background: var(--bg-forest); color: #fff; font-family: 'Manrope', sans-serif; }

/* Clients & FAQ */
.clients-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px 32px;
}
.clients-strip img { height: 42px; max-width: 150px; object-fit: contain; }
.faq-item { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq-item summary { padding: 16px 20px; font-weight: 700; font-family: 'Manrope', sans-serif; cursor: pointer; }
.faq-item div { padding: 0 20px 16px; color: var(--text-secondary); font-size: 15px; }

/* Footer */
.site-footer { background: var(--bg-forest-dark); color: rgba(255,255,255,0.85); padding: 56px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.78); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(255,255,255,0.6); }

/* Floating Widget & Modal */
.float-messengers { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-btn { padding: 11px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; text-decoration: none; color: #fff; box-shadow: var(--shadow-hover); }
.float-tg { background: #229ED9; }
.float-wa { background: #25D366; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(19,42,30,0.65); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal-card { background: var(--bg-surface); border-radius: var(--radius-md); max-width: 460px; width: 100%; padding: 28px; position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; background: none; border: none; font-size: 22px; cursor: pointer; }
.form-stack { display: grid; gap: 12px; margin-top: 16px; }
.form-stack input, .form-stack textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); font-size: 15px; }

@media (max-width: 920px) {
  .nav-links, .header-actions .msg-pill { display: none; }
  .burger-btn { display: inline-block; }
  .calc-box, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 28px; }
  .hero-content h1 { font-size: 28px; }
}
