/* ===== Design tokens ===== */
:root {
  --green-900: #16320f;
  --green-800: #1c3e14;
  --green-700: #234a1a;   /* brand primary (logo) */
  --green-600: #2f5f23;
  --green-500: #3d7a2e;
  --green-400: #5c9a48;
  --gold: #d4a537;
  --gold-dark: #b98a22;
  --cream: #f6f4ec;
  --paper: #ffffff;
  --ink: #1b2417;
  --muted: #5d6b54;
  --line: #e4e6dd;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(20, 45, 12, .06);
  --shadow-md: 0 12px 40px rgba(20, 45, 12, .10);
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1); /* react-motion-style: лёгкий отскок */
}

/* Honeypot — скрытое поле-ловушка для спам-ботов */
.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  opacity: 0; pointer-events: none;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .3s var(--spring), background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn--ghost:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }
/* Ghost-кнопка на тёмном фоне hero — светлая, чтобы была читаема */
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn--ghost:hover { background: #fff; color: var(--green-800); border-color: #fff; }
.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo__img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--green-700); }
.nav__link:hover::after { width: 100%; }
.header__cta { margin-left: 4px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--green-800); border-radius: 2px; transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--green-900); color: #fff; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(92,154,72,.35), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(212,165,55,.18), transparent 55%),
    linear-gradient(160deg, var(--green-900), var(--green-800));
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/logo-mark.png");
  background-repeat: no-repeat; background-position: right -80px center;
  background-size: 520px auto; opacity: .06; mix-blend-mode: screen;
}
.hero__inner { position: relative; padding: 120px 0 110px; }
.hero__content { max-width: 720px; }
.hero__eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: rgba(212,165,55,.12); border: 1px solid rgba(212,165,55,.3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; }
.hero__title span { color: var(--green-400); }
.hero__text { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.82); margin: 22px 0 32px; max-width: 580px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 32px; font-weight: 800; color: #fff; }
.hero__stats span { font-size: 14px; color: rgba(255,255,255,.7); }

/* ===== Section heads ===== */
.section__eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.section__eyebrow--light { color: var(--gold); }
.section__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.section__title--light { color: #fff; }
.section__lead { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 640px; }
.section__head { max-width: 720px; margin-bottom: 52px; }

/* ===== About ===== */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__num { font-weight: 800; color: var(--gold); font-size: 14px; letter-spacing: .1em; }
.card h3 { font-size: 18px; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== Services ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px;
  background: var(--paper); transition: transform .35s var(--spring), box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  color: var(--green-700); background: var(--cream); border-radius: 14px; margin-bottom: 18px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.service__icon svg { width: 28px; height: 28px; }
.service:hover .service__icon { background: var(--green-700); color: #fff; }
.service h3 { font-size: 19px; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* ===== Advantages ===== */
.advantages { background: var(--green-800); color: #fff; position: relative; overflow: hidden; }
.advantages::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/logo-mark.png");
  background-repeat: no-repeat; background-position: left -120px bottom -120px;
  background-size: 460px auto; opacity: .05;
}
.advantages .container { position: relative; }
.advantages__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage { padding: 28px 22px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.advantage__big { font-size: 40px; font-weight: 800; color: var(--gold); display: block; line-height: 1; margin-bottom: 16px; }
.advantage h3 { font-size: 19px; margin-bottom: 8px; }
.advantage p { color: rgba(255,255,255,.72); font-size: 15px; }

/* ===== Process ===== */
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--green-700); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== CTA banner ===== */
.cta-banner { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 0; flex-wrap: wrap; }
.cta-banner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta-banner p { color: rgba(255,255,255,.85); margin-top: 8px; }

/* ===== Contacts ===== */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contacts__list { margin-top: 28px; display: grid; gap: 20px; }
.contacts__list li { display: grid; gap: 4px; }
.contacts__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.contacts__value { font-size: 17px; color: var(--ink); }
a.contacts__value:hover { color: var(--green-700); }

.requisites { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.requisites summary { cursor: pointer; font-weight: 700; padding: 14px 18px; user-select: none; }
.requisites summary::marker { color: var(--green-600); }
.requisites__list { padding: 4px 18px 18px; display: grid; gap: 10px; }
.requisites__list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 14px; }
.requisites__list dt { color: var(--muted); }
.requisites__list dd { color: var(--ink); font-weight: 600; }

.contacts__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.contacts__form h3 { font-size: 22px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); background: #fff; }
.field textarea { resize: vertical; }
.form__note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.form__status { font-size: 14px; font-weight: 600; margin-top: 12px; min-height: 1.2em; }
.form__status.is-ok { color: var(--green-600); }
.form__status.is-err { color: #c0392b; }

/* ===== Footer ===== */
.footer { background: var(--green-900); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 32px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 14px; }
.footer__brand p { font-size: 15px; max-width: 280px; }
.footer__nav { display: grid; gap: 12px; align-content: start; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: 12px; align-content: start; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; color: rgba(255,255,255,.6);
}

/* ===== Trust strip ===== */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 22px 0; }
.trust__item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); flex: 1 1 auto; }
.trust__item svg { width: 22px; height: 22px; color: var(--green-600); flex: none; }

/* ===== Focus & press states (доступность) ===== */
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px;
}
.btn:active { transform: scale(.97); }

/* ===== FAQ ===== */
.faq { background: var(--cream); }
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer; font-weight: 700; font-size: 17px; color: var(--ink);
  padding: 18px 34px 18px 0; list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; line-height: 1; color: var(--green-600);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { color: var(--muted); font-size: 15px; margin: 0; padding: 0 0 18px; }
@media (max-width: 520px) { .faq__item summary { font-size: 16px; } }

/* ===== Contacts (телефон + e-mail) ===== */
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 28px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 260px; padding: 28px 34px; text-align: center; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--spring), box-shadow .25s, border-color .25s;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.contact-card svg { color: var(--green-700); margin-bottom: 4px; }
.contact-card__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.contact-card__value { font-size: 20px; font-weight: 700; color: var(--ink); }
.contacts__meta { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.contacts__meta strong { color: var(--ink); }
.contacts .requisites { max-width: 560px; margin: 26px auto 0; }
@media (max-width: 520px) { .contact-card { min-width: 0; width: 100%; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .7s var(--spring); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
.nav__phone { display: none; }

@media (max-width: 960px) {
  .about__grid, .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__grid, .advantages__grid, .process__steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .header__cta { display: none; }
  .header__inner { height: 64px; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); margin: 0;
    padding: 8px 22px 18px; transform: translateY(-130%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-md); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__link::after { display: none; }
  .nav__phone {
    display: block; margin-top: 14px; text-align: center; font-weight: 700;
    color: #fff; background: var(--green-700); border-radius: 999px; padding: 14px 18px;
  }
  .burger { display: flex; }

  .hero__inner { padding: 64px 0 60px; }
  .hero__actions { gap: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 0; margin-top: 40px; padding-top: 26px; }
  .hero__stats li { flex: 1 1 33%; }
  .hero__stats strong { font-size: 26px; }

  .cta-banner__inner { padding: 44px 0; }
  .cta-banner .btn { width: 100%; }

  .about__grid, .contacts__grid { gap: 32px; }
  .section__head { margin-bottom: 36px; }
  .trust__inner { gap: 14px 22px; }
  .trust__item { font-size: 14px; flex: 1 1 42%; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .about__cards, .services__grid, .advantages__grid, .process__steps, .footer__inner { grid-template-columns: 1fr; }
  .requisites__list div { grid-template-columns: 1fr; gap: 2px; }

  /* Уплотнение под смартфоны: меньше пустот, компактнее заголовки */
  .section { padding: 50px 0; }
  .hero__inner { padding: 48px 0 50px; }
  .hero__title { font-size: clamp(27px, 8vw, 33px); }
  .hero__text { font-size: 16px; margin: 18px 0 26px; }
  .hero__eyebrow { margin-bottom: 18px; }
  .section__title { font-size: clamp(23px, 7vw, 29px); }
  .section__lead { font-size: 16px; }
  .section__head { margin-bottom: 26px; }
  .cta-banner h2 { font-size: 22px; }
  .cta-banner__inner { padding: 34px 0; gap: 18px; }
  .process__steps { gap: 10px; }
  .step__num { width: 44px; height: 44px; font-size: 18px; margin-bottom: 12px; }
  .step h3, .service h3, .advantage h3, .card h3 { font-size: 18px; }
  .service { padding: 24px 22px; }
  .service__icon { width: 50px; height: 50px; margin-bottom: 14px; }
  .service__icon svg { width: 26px; height: 26px; }
  .advantage { padding: 22px 20px; }
  .advantage__big { font-size: 34px; margin-bottom: 12px; }
  .card { padding: 22px 20px; }

  /* 16px inputs prevent iOS auto-zoom on focus */
  .field input, .field textarea { font-size: 16px; }
  .contacts__form { padding: 24px 20px; }

  .hero__stats { flex-wrap: wrap; gap: 20px 26px; }
  .hero__stats li { flex: 0 0 auto; max-width: 100%; }
  .hero__stats strong { font-size: 24px; }
  .hero__stats span { font-size: 13px; line-height: 1.3; }
  .trust__item { flex: 1 1 100%; }

  .footer { text-align: center; }
  .footer__brand p { margin: 0 auto; }
  .footer__logo { margin-left: auto; margin-right: auto; }
  .footer__nav, .footer__contact { justify-items: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
