:root {
  --bg: #f2f8f4;
  --surface: #ffffff;
  --text: #15202b;
  --muted: #546271;
  --line: #dbe7de;
  --green: #00a65a;
  --green-dark: #00824b;
  --green-soft: #d9f7e9;
  --dark: #102117;
  --anchor-offset: 160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, #d8f8e6, #cbf2dc);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #111; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff;
  font-size: 18px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; stroke-width: 2.3; }
.logo-text { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: 18px; font-weight: 800; line-height: 1.05; }
.logo-city { font-size: 12px; font-weight: 600; color: #4b5563; }

.menu { display: inline-flex; align-items: center; gap: 4px; }
.menu a { text-decoration: none; color: #1f2937; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { background: rgba(255, 255, 255, 0.5); }

.page { padding-top: 24px; padding-bottom: 44px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; }
.hero-offer {
  padding: 30px 32px; border-radius: 26px;
  background: radial-gradient(circle at 80% 10%, rgba(0, 166, 90, 0.24), transparent 40%), linear-gradient(135deg, #123225 0%, #0f261c 100%);
  color: #fff; box-shadow: 0 22px 42px rgba(14, 20, 31, 0.24);
}

.label {
  display: inline-flex; padding: 10px 18px; border-radius: 999px;
  background: rgba(115, 255, 179, 0.13); color: #8ff3bf; border: 1px solid rgba(143, 243, 191, 0.38);
  font-size: 17px; font-weight: 700;
}

h1 { margin: 16px 0 12px; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-offer p { margin: 0; max-width: 640px; color: #d5e4db; line-height: 1.5; }

.hero-points { margin-top: 18px; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.point {
  padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05); color: #c9dcd1; line-height: 1.35;
}
.point-icon {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px;
  background: rgba(143, 243, 191, 0.14); margin-bottom: 6px;
}
.point-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }
.point-title { display: block; color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.point-text { display: block; font-size: 13px; color: #c9dcd1; }

.hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 0; border-radius: 12px;
  background: var(--green); color: #fff; font-size: 15px; font-weight: 700; padding: 12px 18px; cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-small { padding: 10px 14px; font-size: 14px; background: var(--green-dark); }

.lead-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: 0 16px 34px rgba(13, 18, 31, 0.09);
}
.lead-card h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.lead-card p { margin: 8px 0 0; color: var(--muted); }
.lead-form { margin-top: 18px; display: grid; gap: 12px; }
#leadForm, #apply, #advantages, #requirements, #steps { scroll-margin-top: var(--anchor-offset); }

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #5a6270; }
input { width: 100%; border: 1px solid #cfd6e2; border-radius: 12px; padding: 13px 14px; font-size: 16px; outline: none; }
input:focus { border-color: #009b53; box-shadow: 0 0 0 4px rgba(0, 166, 90, 0.18); }
button {
  margin-top: 4px; border: 0; border-radius: 12px; padding: 14px;
  background: linear-gradient(90deg, #00a65a, #00c36a); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer;
}
button:hover { filter: brightness(0.96); }

.msg { min-height: 20px; margin-top: 2px; font-size: 14px; color: var(--muted); }
.msg-ok { color: #0f766e; }
.msg-error { color: #dc2626; }

.consent-row { margin-top: 4px; display: flex; align-items: flex-start; gap: 8px; }
.consent-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: #00a65a; }
.consent-label { margin: 0; font-size: 12px; line-height: 1.4; color: #5f6571; font-weight: 500; }
.consent-label a { color: inherit; text-decoration: underline; }

.section { margin-top: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
h3 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  min-height: 168px; border-radius: 16px; border: 1px solid #ddece3; padding: 14px; background: linear-gradient(180deg, #fff 0%, #f7fcf9 100%);
}
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 166, 90, 0.12); color: #0b7b45; border: 1px solid rgba(0, 166, 90, 0.35);
}
.icon svg { width: 22px; height: 22px; stroke-width: 2.1; }
.tile h4 { margin: 12px 0 6px; font-size: 18px; line-height: 1.2; }
.tile p { margin: 0; color: #5f6674; line-height: 1.4; }

.requirements-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.req-card { border-radius: 16px; border: 1px solid #e2e7f0; background: #fff; padding: 16px; }
.req-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center;
  background: #114a2f; color: #98f1c4; font-size: 12px; font-weight: 800;
}
.req-card p { margin: 10px 0 0; font-size: 16px; line-height: 1.3; }

.steps { background: linear-gradient(135deg, #d9f7e9, #c5f2dd); }
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steps-row {
  margin-top: 12px; border-radius: 18px; border: 1px solid rgba(0, 0, 0, 0.12); background: #fff;
  padding: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; position: relative;
}
.step {
  width: 300px; max-width: 100%; border-radius: 12px; border: 1px solid #e4ebe8; background: #fff;
  box-shadow: 0 6px 14px rgba(16, 20, 29, 0.08); padding: 12px; display: block; position: relative;
}
.step::after {
  content: "➜"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 999px; background: #114a2f; color: #98f1c4;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; z-index: 3;
}
.step:nth-child(3)::after, .step:nth-child(5)::after { display: none; }
.step-num {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
  background: #114a2f; color: #98f1c4; font-size: 13px; font-weight: 800; margin-bottom: 8px;
}
.step-icon {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px;
  background: rgba(0, 166, 90, 0.16); margin-left: 8px; margin-bottom: 8px;
}
.step-icon svg { width: 16px; height: 16px; stroke-width: 2.2; }
.step-text h4 { margin: 0 0 4px; font-size: 17px; color: #0f172a; line-height: 1.2; }
.step-text p { margin: 0; color: #334155; font-size: 14px; line-height: 1.45; }

.thanks-modal { position: fixed; inset: 0; display: none; z-index: 120; }
.thanks-modal.is-open { display: block; }
.thanks-modal__overlay { position: absolute; inset: 0; background: rgba(4, 10, 19, 0.58); }
.thanks-modal__dialog {
  position: relative; width: min(92vw, 460px); margin: 10vh auto 0; padding: 24px;
  border-radius: 16px; background: #fff; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}
.thanks-modal__close {
  position: absolute; right: 10px; top: 8px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: #64748b; cursor: pointer;
}
.thanks-modal__label {
  margin: 0 0 8px; color: #0b7b45; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.thanks-modal__title { margin: 0; font-size: 28px; line-height: 1.1; }
.thanks-modal__text { margin: 10px 0 0; color: #475569; line-height: 1.45; }
.thanks-modal__btn { margin-top: 16px; width: 100%; }

.footer { background: #0f1a14; color: #c4d3c9; }
.footer-inner { padding: 26px 20px 28px; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-inner > div:last-child { justify-self: end; text-align: right; }
.footer-title { margin: 0; color: #fff; font-weight: 700; }
.footer-text { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .requirements-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { justify-content: center; }
  .step::after { display: none; }
}

@media (max-width: 760px) {
  :root { --anchor-offset: 230px; }
  .topbar-inner { min-height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .menu { width: 100%; order: 3; overflow: auto; white-space: nowrap; }
  .page { padding-top: 14px; }
  .hero-offer, .lead-card, .section { padding: 18px; border-radius: 18px; }
  .hero-points { grid-template-columns: 1fr; }
  .tiles, .requirements-grid { grid-template-columns: 1fr; }
  .steps-head { flex-direction: column; align-items: flex-start; }
  .step { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 22px; }
  .footer-inner > div:last-child { justify-self: start; text-align: left; }
}
