:root {
  --green: #297e4b;
  --green-deep: #0d4326;
  --green-soft: #e2f6e6;
  --ink: #122d1d;
  --muted: #5c7266;
  --line: #d5e6db;
  --bg: #ffffff;
  --surface: #f4faf6;
  --shadow: 0 10px 30px rgba(13, 67, 38, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
button, a, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green-deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--line);
}
h1, h2, .logo-name, .price {
  letter-spacing: -0.03em;
}
h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  font-weight: 800;
  color: var(--green-deep);
}
h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 800;
  color: var(--green-deep);
}
.lead { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section { padding: 64px 0; }
.surface { background: var(--surface); }
.band { border-block: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #f9fdfa; box-shadow: var(--shadow); }
.btn-primary:hover { background: #226b40; }
.btn-ghost {
  background: #fff;
  color: var(--green-deep);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--green-soft); border-color: var(--green); }
.btn-soft { background: var(--green-soft); color: var(--green-deep); border-color: var(--line); }
.btn-soft:hover { background: var(--green); color: #fff; }
.btn-wide { width: 100%; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(13, 67, 38, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.logo-name {
  display: block;
  max-width: 148px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--green-deep);
}
.logo-sub { display: none; color: var(--muted); font-size: 12px; }
.nav {
  display: none;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover { color: var(--green); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-phone, .header-wa { display: none; }
.header-phone {
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.hero-grid, .split, .contacts, .form-grid {
  display: grid;
  gap: 36px;
}
.hero { padding: 36px 0 56px; }
.badge {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.trust { display: grid; gap: 10px; margin-top: 28px; }
.trust li, .checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tick {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.tick::before {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-card {
  position: relative;
  width: 88%;
  margin: -36px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.hero-card strong { color: var(--green-deep); }
.hero-card p { margin-top: 4px; color: var(--muted); font-size: 13px; }

.cards, .steps, .docs { display: grid; gap: 16px; margin-top: 36px; }
.card, .doc, .extra, .contact-card, .form-card, .map-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(13, 67, 38, 0.04);
}
.card, .doc { padding: 24px; }
.card h3, .doc h3, .step h3 { color: var(--green-deep); font-size: 1.05rem; }
.card p, .doc p, .step p, .muted { color: var(--muted); }
.card p, .step p { margin-top: 8px; font-size: 14px; }
.ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 16px;
}
.ico svg, .mark svg { width: 24px; height: 24px; display: block; }
.mark { display: block; width: 28px; height: 28px; margin-bottom: 18px; color: var(--green); }
.mark svg { width: 28px; height: 28px; }
.prices .card { container-type: inline-size; padding: 22px 16px; }
.prices .card h3 { font-size: 1.15rem; }
.card p.price {
  margin-top: 14px;
  color: var(--green);
  font-size: 1.45rem;
  font-size: min(1.85rem, 13.2cqi);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.card p.note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.extra { margin-top: 16px; overflow: hidden; }
.extra h3 { padding: 20px 24px; border-bottom: 1px solid var(--line); color: var(--green-deep); font-size: 1.15rem; }
.extra li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.extra li:last-child { border-bottom: 0; }
.extra b { color: var(--green); font-size: 16px; }
.cta-row { margin-top: 28px; }

.steps {
  position: relative;
  display: grid;
  gap: 32px;
  margin-top: 36px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 1px;
  height: calc(100% - 48px);
  background: var(--line);
}
.step { position: relative; padding: 4px 0 0 72px; }
.num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--green);
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 67, 38, 0.06);
}
.checks { display: grid; gap: 10px; margin-top: 16px; }
.split img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 24px;
}
.form-card { padding: 22px; }
.fields { display: grid; gap: 14px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--green-deep); }
input, select, textarea {
  width: 100%;
  border: 1px solid #c9ddd2;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  outline: none;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(41, 126, 75, 0.15); }
.err { min-height: 0; margin: 6px 0 0; color: #b42318; font-size: 12px; }
.form-error { margin: 0; color: #b42318; font-size: 14px; }
.success { text-align: center; padding: 24px 8px; }
.success h3 { color: var(--green-deep); font-size: 1.35rem; }
.success p { margin: 10px auto 0; max-width: 360px; color: var(--muted); }
.success .actions { align-items: center; }
.hidden { display: none !important; }

.contacts { align-items: stretch; }
.contact-card, .map-card { padding: 24px; }
.contact-card h3 { color: var(--green-deep); font-size: 1rem; }
.addr { margin-top: 8px; color: var(--muted); }
.tel {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
  text-decoration: none;
}
.license { display: flex; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.map-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f9fdfa;
  background:
    linear-gradient(180deg, rgba(13, 67, 38, 0.15), rgba(13, 67, 38, 0.82)),
    radial-gradient(circle at 70% 30%, #3ea866, #0d4326 62%);
}
.map-card h3 { color: #fff; }
.map-card p { margin: 8px 0 16px; color: #e7f6ec; }
.map-card .btn { align-self: flex-start; background: #fff; color: var(--green-deep); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--green-deep); }
.faq p { margin-top: 8px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 28px; }
.footer h2 { margin: 0 0 12px; font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--green); }
.footer li + li { margin-top: 8px; }
.footer p { color: var(--muted); font-size: 14px; }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.fab {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.06); }
.fab-wa { right: 5%; background: #25d366; }
.fab-call { left: 5%; background: #2563eb; }
.fab-wa::after,
.fab-call::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.45;
  animation: fabPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.45); opacity: 0; }
}

@media (max-width: 1023px) {
  .header { display: none; }
  .fab-wa::after,
  .fab-call::after { display: none; }
  .footer { padding-bottom: 96px; }
}

@media (min-width: 640px) {
  .logo-name { max-width: 280px; font-size: 14px; }
  .logo-sub { display: block; }
  .hero .actions,
  .contact-card .actions,
  .success .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .header-wa { display: inline-flex; }
  .cards, .docs { grid-template-columns: 1fr 1fr; }
  .fields-2 { grid-template-columns: 1fr 1fr; }
  .hero-photo img { aspect-ratio: 3 / 2; }
}

@media (min-width: 1024px) {
  .section { padding: 88px 0; }
  .nav { display: flex; gap: 16px; }
  .logo-name { max-width: 200px; }
  .hero-grid, .split, .form-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
  .form-grid { align-items: start; }
  .contacts { grid-template-columns: 0.9fr 1.1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
  .prices { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before { top: 24px; left: 0; width: 100%; height: 1px; }
  .step { padding: 72px 12px 0 0; }
  .num { left: 0; top: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1200px) {
  .header-phone { display: inline-flex; }
  .logo-name { max-width: 280px; }
  .nav { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fab, .fab-wa::after, .fab-call::after { transition: none; animation: none; }
}
