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

:root {
  --bg: #f6f5f1;
  --bg-card: #ffffff;
  --bg-dark: #1a1d23;
  --bg-accent: #2c5f2d;
  --bg-accent-light: #e8f0e4;
  --text: #2b2b2b;
  --text-light: #6b6b6b;
  --text-white: #f0f0f0;
  --accent: #2c5f2d;
  --accent-hover: #3a7a3b;
  --accent-warm: #c47b2b;
  --border: #e0ddd6;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Manrope', sans-serif;
  --font-display: 'Geologica', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--accent);
}
.logo-icon {
  width: 40px; height: 40px; background: var(--accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-light);
  transition: color 0.2s; position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transition: transform 0.25s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.header-phone svg { color: var(--accent); }
.btn-cta {
  background: var(--accent); color: #fff; border: none;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
  padding: 10px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.mobile-menu-btn {
  display: none; background: none; border: none; padding: 8px;
  color: var(--text);
}

/* ---- HERO ---- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-accent-light) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,95,45,0.08) 0%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(44,95,45,0.1); color: var(--accent);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 20px;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }
.hero h1 {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 20px;
  color: var(--bg-dark);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.12rem; color: var(--text-light); margin-bottom: 36px;
  max-width: 500px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent);
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }
.hero-image {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3;
  background: #ddd;
}
.hero-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #c5d5a5 0%, #8ba86a 50%, #5c7a3a 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-image-placeholder::after {
  content: '';
  width: 120px; height: 200px;
  border: 6px solid rgba(255,255,255,0.4);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  position: relative;
}
.hero-image-placeholder::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
}
.hero-image-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.95); padding: 10px 16px;
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.hero-image-tag span { color: var(--accent-warm); }

/* ---- SECTION COMMON ---- */
.section-label {
  font-size: 0.82rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  margin-bottom: 48px; line-height: 1.2;
}

/* ---- ADVANTAGES ---- */
.advantages { padding: 80px 0; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.adv-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.adv-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ---- CATALOG ---- */
.catalog { padding: 80px 0; background: var(--bg-card); }
.catalog-tabs {
  display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.catalog-tab {
  padding: 10px 24px; border: 1px solid var(--border);
  border-radius: 100px; background: transparent;
  font-size: 0.9rem; font-weight: 500; color: var(--text-light);
  transition: all 0.2s;
}
.catalog-tab:hover { border-color: var(--accent); color: var(--accent); }
.catalog-tab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--bg); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.product-img-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.5);
}
.product-img-bg.c1 { background: linear-gradient(135deg, #7a9a5a, #4a6a3a); }
.product-img-bg.c2 { background: linear-gradient(135deg, #8a7a5a, #5a4a3a); }
.product-img-bg.c3 { background: linear-gradient(135deg, #5a7a8a, #3a4a5a); }
.product-img-bg.c4 { background: linear-gradient(135deg, #6a6a7a, #3a3a4a); }
.product-img-bg.c5 { background: linear-gradient(135deg, #8a6a5a, #5a3a2a); }
.product-img-bg.c6 { background: linear-gradient(135deg, #5a8a6a, #2a5a3a); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-warm); color: #fff;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600;
}
.product-body { padding: 20px; }
.product-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.product-price small { font-size: 0.75rem; color: var(--text-light); font-weight: 400; }
.product-btn {
  padding: 8px 20px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; border: none;
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s;
}
.product-btn:hover { background: var(--accent-hover); }

/* ---- HOW IT WORKS ---- */
.how { padding: 80px 0; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.how-step { position: relative; }
.how-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  color: rgba(44,95,45,0.1); line-height: 1; margin-bottom: 16px; display: block;
}
.how-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.how-line {
  position: absolute; top: 30px; left: 100%; width: 100%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
}

/* ---- CALCULATOR ---- */
.calc {
  padding: 80px 0;
  background: var(--bg-dark); color: var(--text-white);
}
.calc .section-label { color: var(--accent-warm); }
.calc .section-title { color: #fff; }
.calc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.calc-field label {
  display: block; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 8px; color: rgba(255,255,255,0.7);
}
.calc-field select, .calc-field input {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.06);
  color: #fff; font-size: 0.95rem; font-family: var(--font);
  transition: border-color 0.2s;
}
.calc-field select option { background: var(--bg-dark); color: #fff; }
.calc-field select:focus, .calc-field input:focus {
  outline: none; border-color: var(--accent);
}
.calc-result {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px;
}
.calc-result-title { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.calc-result-price {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
  color: var(--accent-warm); margin-bottom: 20px;
}
.calc-result-details { list-style: none; }
.calc-result-details li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
}
.calc-result-details li span { color: #fff; font-weight: 600; }
.calc-result-btn { margin-top: 24px; width: 100%; }

/* ---- REVIEWS ---- */
.reviews { padding: 80px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.review-stars { color: var(--accent-warm); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.review-avatar.a1 { background: #5a8a6a; }
.review-avatar.a2 { background: #8a6a5a; }
.review-avatar.a3 { background: #5a6a8a; }
.review-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.78rem; color: var(--text-light); }

/* ---- FAQ ---- */
.faq { padding: 80px 0; background: var(--bg-card); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; background: none; border: none;
  font-size: 1.02rem; font-weight: 600; color: var(--text);
  text-align: left;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  transition: transform 0.3s; font-size: 1.2rem; color: var(--text-light);
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding-bottom: 22px; font-size: 0.92rem;
  color: var(--text-light); line-height: 1.7;
}

/* ---- CTA ---- */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent) 0%, #1a4a2e 100%);
  color: #fff; text-align: center;
}
.cta h2 {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  margin-bottom: 16px;
}
.cta p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 36px; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta .btn-cta {
  background: #fff; color: var(--accent); font-size: 1rem;
  padding: 16px 36px;
}
.cta .btn-cta:hover { background: #f0f0f0; transform: translateY(-2px); }

/* ---- FOOTER ---- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 0.88rem; line-height: 1.6; margin-bottom: 20px; }
.footer h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.88rem; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  font-size: 0.82rem;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 40px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
  transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.5rem;
  color: var(--text-light); padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  font-weight: 700; margin-bottom: 8px;
}
.modal p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 24px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form input, .modal-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: var(--font); transition: border-color 0.2s;
  background: var(--bg);
}
.modal-form input:focus, .modal-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.modal-form textarea { resize: vertical; min-height: 80px; }
.modal-form .btn-cta { width: 100%; padding: 14px; font-size: 1rem; }
.modal-form-note { font-size: 0.78rem; color: var(--text-light); text-align: center; }

/* ---- TOAST ---- */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: var(--accent); color: #fff; padding: 16px 24px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  font-size: 0.92rem; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px);
  transition: all 0.3s; display: flex;
  align-items: center; justify-content: center;
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-hover); }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: none; opacity: 0; transition: opacity 0.3s;
}
.mobile-nav.show { display: block; opacity: 1; }
.mobile-nav-inner {
  position: absolute; top: 0; right: 0; width: 300px; height: 100%;
  background: var(--bg-card); padding: 24px;
  transform: translateX(100%); transition: transform 0.3s;
}
.mobile-nav.show .mobile-nav-inner { transform: translateX(0); }
.mobile-nav-close {
  background: none; border: none; font-size: 1.5rem;
  color: var(--text-light); margin-bottom: 32px;
}
.mobile-nav a {
  display: block; padding: 14px 0; font-size: 1.05rem;
  font-weight: 500; border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav a:hover { color: var(--accent); }

/* ---- LEGAL PAGES ---- */
.legal-page { padding: 120px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  margin-bottom: 8px;
}
.legal-meta { font-size: 0.88rem; color: var(--text-light); margin-bottom: 40px; }
.legal-content h2 {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  margin-top: 36px; margin-bottom: 14px; color: var(--text);
}
.legal-content p {
  font-size: 0.94rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.75;
}
.legal-content ul {
  margin: 0 0 14px 24px; color: var(--text-light); font-size: 0.94rem; line-height: 1.75;
}
.legal-content ul li { margin-bottom: 6px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--accent);
  margin-bottom: 32px; transition: gap 0.2s;
}
.legal-back:hover { gap: 10px; }

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.5rem; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-line { display: none; }
  .calc-inner { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav, .header-phone { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .adv-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
