/* ===== CSS Variables ===== */
:root {
  --primary:       #1b5e3b;
  --primary-light: #2e7d52;
  --primary-pale:  #e8f5ee;
  --accent:        #f97316;
  --accent-hover:  #ea6c0d;
  --text:          #111827;
  --text-muted:    #6b7280;
  --white:         #ffffff;
  --bg:            #f5fbf7;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 40px rgba(0,0,0,.12);
  --radius:        14px;
  --radius-sm:     8px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }

/* ===== Utilities ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 56px; max-width: 600px; margin-left: auto; margin-right: auto; }
.tag { display: inline-block; background: var(--primary-pale); color: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 100px; margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: all .25s;
}
.btn-primary   { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,.35); }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; letter-spacing: -.5px;
}
.logo-name { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  padding: 8px 16px; border-radius: 100px;
  font-size: .9rem; font-weight: 600; color: var(--text);
  transition: all .2s;
}
nav a:hover { background: var(--primary-pale); color: var(--primary); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f3d24 0%, #1b5e3b 50%, #2e7d52 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: block;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #a7f3d0;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero-desc { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 460px; }
.hero-price {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px 24px; border-radius: var(--radius);
  margin-bottom: 32px;
}
.price-num { font-size: 2.2rem; font-weight: 900; color: #fff; }
.price-unit { font-size: .95rem; color: rgba(255,255,255,.7); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-img-wrap {
  float: right;
  width: 44%;
  aspect-ratio: 1;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 24px;
  overflow: hidden;
  margin: 0 0 20px 40px;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 22px; }
.hero-content::after { content: ''; display: table; clear: both; }
.hero-img-placeholder-col { display: none; }
.hero-img-mobile { display: none; }
.hero-img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: .9rem;
}
.hero-img-placeholder .icon { font-size: 5rem; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .8rem;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }

/* ===== Features ===== */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-pale);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; color: var(--text); }
.feature-card p  { font-size: .9rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}
.about-img img { width: 100%; height: auto; object-fit: contain; display: block; }
.about-text .tag { margin-bottom: 12px; }
.about-text h2 { margin-bottom: 16px; }
.about-text p  { margin-bottom: 16px; line-height: 1.8; }
.details-box {
  background: var(--bg);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 24px;
}
.details-box p { font-size: .9rem; color: var(--text-muted); white-space: pre-line; }

/* ===== How to Use ===== */
.how { background: var(--primary); color: var(--white); }
.how h2, .how .section-subtitle { color: rgba(255,255,255,.9); }
.how .section-subtitle { color: rgba(255,255,255,.6); }
.steps { display: flex; flex-direction: column; gap: 0; max-width: 700px; margin: 0 auto; }
.step {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; color: #a7f3d0;
}
.step-text { color: rgba(255,255,255,.85); font-size: 1rem; padding-top: 10px; }

/* ===== Comments ===== */
.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.comment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.comment-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.comment-text { color: var(--text); font-size: .95rem; line-height: 1.7; margin-bottom: 16px; }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-pale);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary); font-size: .9rem;
}
.comment-name { font-weight: 700; font-size: .9rem; }
.comment-date { font-size: .8rem; color: var(--text-muted); }
.no-comments { text-align: center; color: var(--text-muted); padding: 40px; background: var(--bg); border-radius: var(--radius); }

/* Comment Form */
.comment-form-wrap {
  max-width: 640px; margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
}
.comment-form-wrap h3 { margin-bottom: 24px; color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
  color: var(--text);
}
.form-group input:not([type=radio]):not([type=checkbox]),
.form-group textarea {
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.rating-select { display: flex; gap: 8px; margin-top: 6px; }
.rating-select input[type=radio] { display: none; }
.rating-select label {
  cursor: pointer; font-size: 1.6rem; color: #d1d5db;
  transition: color .15s;
  font-weight: normal;
  margin: 0; padding: 0;
}
.rating-select label:hover,
.rating-select input:checked ~ label,
.rating-select label:hover ~ label { color: #f59e0b; }
/* reverse star trick (legacy) */
.stars-wrap { display: -webkit-inline-flex; display: inline-flex; flex-direction: row-reverse; justify-content: flex-start; width: -webkit-fit-content; width: fit-content; }
.stars-wrap label:hover,
.stars-wrap label:hover ~ label,
.stars-wrap input:checked ~ label { color: #f59e0b; }

/* ===== Сучасний rating-pick ===== */
.rating-pick {
  display: flex; flex-direction: row-reverse; align-items: center;
  gap: 4px; position: relative;
  padding: 5px 12px; background: #fffbeb; border: 2px solid #fde68a;
  border-radius: var(--radius-sm); width: fit-content;
  min-height: 46px; box-sizing: border-box;
}
.rating-pick input[type=radio] {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}
.rating-pick label {
  cursor: pointer; display: inline-flex; padding: 4px;
  color: #e5e7eb; transition: color .15s, transform .15s;
  margin: 0;
}
.rating-pick label svg { width: 28px; height: 28px; display: block; }
.rating-pick label:hover { transform: scale(1.15); }
.rating-pick label:hover,
.rating-pick label:hover ~ label,
.rating-pick input:checked ~ label { color: #f59e0b; }
.rating-pick input:focus-visible + label {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px;
}
.rating-pick-text {
  order: 99; margin-left: 10px; padding-left: 10px;
  border-left: 1px solid #fde68a;
  font-weight: 700; font-size: .9rem; color: #b45309;
  min-width: 80px;
}
@media (max-width: 480px) {
  .rating-pick { padding: 6px 10px; }
  .rating-pick label svg { width: 32px; height: 32px; }
  .rating-pick-text { min-width: 70px; font-size: .85rem; }
}

/* ===== Callback ===== */
.callback { background: var(--primary); }
.callback-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.callback-info h2 { color: var(--white); margin-bottom: 16px; }
.callback-info p  { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 1.05rem; }
.contact-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); margin-bottom: 12px; }
.contact-icon {
  width: 40px; height: 40px; background: rgba(255,255,255,.12); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.callback-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.callback-form h3 { margin-bottom: 24px; color: var(--primary); }

/* ===== Footer ===== */
footer {
  background: #0f1f18;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 28px;
  font-size: .9rem;
}
footer strong { color: rgba(255,255,255,.9); }

/* ===== Alerts ===== */
.alert { padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; display: none; }
.alert.success { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; display: block; }
.alert.error   { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; display: block; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }

  /* — Header / Nav — */
  nav a:not(.btn-primary) { display: none; }
  nav a.btn-primary { font-size: .82rem; padding: 9px 16px; }
  .burger { display: block; }

  /* Mobile dropdown panel */
  nav.open {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
    flex-direction: column;
    padding: 8px 0 12px;
    gap: 0;
    display: flex;
  }
  nav.open a:not(.btn-primary) {
    display: block;
    padding: 13px 24px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  nav.open a:not(.btn-primary):last-of-type { border-bottom: none; }
  nav.open a.btn-primary {
    display: flex;
    margin: 12px 20px 0;
    border-radius: 100px;
    justify-content: center;
    font-size: .95rem;
    padding: 12px 24px;
  }

  /* — Hero — */
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-desc { font-size: 1rem; margin-bottom: 24px; }
  .hero-img-wrap { float: none; width: 280px; max-width: 100%; margin: 8px auto 16px; display: block; }
  .hero-content::after { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { font-size: .9rem; padding: 12px 22px; }
  .hero-scroll { display: none; }

  /* — Features — */
  .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-card { padding: 20px 16px; }
  .feature-icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .feature-card h3 { font-size: 1rem; }

  /* — About — */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img { max-height: 260px; }

  /* — Comments — */
  .comments-grid { grid-template-columns: 1fr; }
  .comment-form-wrap { padding: 24px 16px; }

  /* — Callback — */
  .callback-inner { grid-template-columns: 1fr; gap: 28px; }
  .callback-form { padding: 24px 16px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-price { padding: 10px 16px; }
  .price-num { font-size: 1.8rem; }
}
