:root {
  /* Палитра по логотипу: фирменный зелёный #20523A + белый */
  --green: #20523a;
  --green-dark: #173d2b;
  --green-light: #2e6b4d;
  --sage: #a8bdb3;
  /* Золото: светлое — на зелёном фоне, тёмное — для текста на белом */
  --gold: #c9a45c;
  --gold-light: #dcbd7e;
  --gold-dark: #9a7632;
  --text: #1c2621;
  --muted: #5f6b65;
  --bg: #ffffff;
  --bg-alt: #f1f5f2;
  --line: #dde5e0;
  --radius: 10px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }

h1, h2, h3 { line-height: 1.2; color: var(--green); margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 5vw, 50px); color: #fff; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-light); }
.hero .btn--primary { background: var(--gold); color: var(--green-dark); }
.hero .btn--primary:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light { background: var(--gold); color: var(--green-dark); }
.btn--light:hover { background: var(--gold-light); }
.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header__logo img { height: 44px; width: auto; }
.header__brand { display: flex; flex-direction: column; line-height: 1.15; }
.header__name { font-weight: 800; font-size: 21px; letter-spacing: .02em; color: var(--green); }
.header__tagline { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--gold-dark); }
.header__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Первый экран ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #d3e0d9;
  padding: 96px 0 104px;
}
.hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero__text { max-width: 720px; }
.hero__logo { width: 300px; flex-shrink: 0; opacity: .95; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero__lead { font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Факты ---------- */
.facts { margin-top: -48px; }
.facts__grid {
  border-top: 3px solid var(--gold);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(23, 61, 43, .12);
  padding: 0;
}
.fact {
  padding: 28px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact:last-child { border-right: 0; }
.fact__num { font-size: 30px; font-weight: 700; color: var(--green); line-height: 1.1; }
.fact__text { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

/* ---------- Услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(23, 61, 43, .08); }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card__num { display: block; font-weight: 700; color: var(--gold-dark); margin-bottom: 14px; font-size: 14px; letter-spacing: .08em; }
.card--cta {
  background: var(--green);
  border-color: var(--green);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.card--cta h3 { color: #fff; }
.card--cta p { color: #c5d6cd; }
.card__link { margin-top: auto; padding-top: 18px; color: var(--gold); font-weight: 600; }

/* ---------- О компании ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Кому помогаем ---------- */
.clients {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.clients li {
  border-top: 3px solid var(--gold);
  background: var(--bg-alt);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clients strong { color: var(--green); font-size: 17px; line-height: 1.3; }
.clients span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ---------- CTA ---------- */
.cta { background: var(--green); color: #c5d6cd; padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { margin: 0; }
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}
.contacts__list { margin: 0 0 28px; }
.contacts__list dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 18px;
}
.contacts__list dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; }
.contacts__list dd a { text-decoration: none; }
.contacts__list small { color: var(--muted); font-size: 14px; font-weight: 400; }
.requisites {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  font-size: 15px;
  color: var(--muted);
  align-self: start;
}
.requisites strong { color: var(--text); }
.requisites p:last-child { margin: 0; }

/* ---------- Подвал ---------- */
.footer { background: var(--green-dark); color: #9fb6aa; font-size: 14px; padding: 24px 0; border-top: 3px solid var(--gold); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer__logo { height: 64px; width: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .header__phone { display: none; }
  .hero__logo { width: 220px; }
}

@media (max-width: 820px) {
  .nav-burger {
    display: block;
    margin-left: auto;
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
    content: "";
  }
  .nav-burger span { top: 10px; }
  .nav-burger span::before { top: -9px; }
  .nav-burger span::after { top: 9px; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-toggle:checked ~ .nav { display: flex; }

  .hero__logo { display: none; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
  .fact:last-child { border-bottom: 0; }

  .about, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__logo img { height: 38px; }
  .header__name { font-size: 18px; }
  .header__tagline { font-size: 10px; }
  .hero { padding: 64px 0 88px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .cta__actions { width: 100%; }
  .section { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .clients { grid-template-columns: 1fr; }
  .contacts__list dd { font-size: 17px; }
}

/* ---------- Ссылка на политику в подвале ---------- */
.footer__link { color: #9fb6aa; }
.footer__link:hover { color: var(--gold); }

/* ---------- Страница политики ---------- */
.policy { padding: 64px 0 88px; }
.policy .container { max-width: 820px; }
.policy h1 { color: var(--green); font-size: clamp(26px, 4vw, 38px); }
.policy h2 { font-size: 21px; margin-top: 36px; }
.policy ul { padding-left: 22px; margin: 0 0 1em; }
.policy li { margin-bottom: 6px; }
.policy__meta { color: var(--muted); font-size: 15px; }
.policy__back { display: inline-block; margin-top: 32px; }

/* ---------- Регионы (О компании) ---------- */
.regions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.regions__title { font-size: 17px; margin-bottom: 14px; }
.regions__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.regions__list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--green);
}
