:root {
  --green: #1E7A45;
  --green-dark: #166537;
  --green-soft: #E7F4EC;
  --text: #1C241E;
  --muted: #5B6A60;
  --line: #E2E8E4;
  --bg: #F6F8F6;
  --card: #fff;
  --shadow: 0 10px 30px rgba(20, 40, 28, 0.08);
  --radius: 18px;
  --font: "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(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--green); }

.hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 16, 0.72) 0%, rgba(10, 28, 16, 0.45) 48%, rgba(10, 28, 16, 0.2) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  max-width: 720px;
  margin-left: max(16px, calc((100% - 1120px) / 2));
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0;
  font-size: 18px;
  max-width: 520px;
  color: rgba(255,255,255,0.92);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
}
h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.02em; }
.lead { margin: 0 0 24px; color: var(--muted); }

.benefits { display: grid; gap: 14px; }
.benefit {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 18px 18px 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.benefit h3 { margin: 0 0 4px; font-size: 18px; }
.benefit p { margin: 0; color: var(--muted); font-size: 15px; }
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.icon-badge svg { width: 22px; height: 22px; }

.form-card {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
  position: sticky;
  top: 84px;
}
.form-card h2 { font-size: 22px; }
.form-card .lead { margin-bottom: 16px; font-size: 14px; }

.notice {
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
  font-size: 14px;
}
.notice.ok { background: var(--green-soft); color: var(--green-dark); }
.notice.err { background: #FDECEC; color: #8A1F1F; }
.notice[hidden] { display: none; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #F3F6F4;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 0 0 10px;
}
.field:focus-within { border-color: var(--green); background: #fff; }
.field .pic { color: var(--green); display: grid; place-items: center; }
.field .pic svg { width: 18px; height: 18px; }
.field .body { flex: 1; min-width: 0; }
.field .caption {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  padding: 2px 0 0;
  outline: none;
}
.field textarea { resize: vertical; min-height: 54px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.consent input { margin-top: 3px; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-max {
  background: var(--green);
  color: #fff;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-max:hover { background: var(--green-dark); }
.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.legal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 36px;
  max-width: 800px;
  margin: 32px auto 64px;
}
.legal h1 { margin: 0 0 16px; font-size: 28px; }
.legal h2 { margin: 24px 0 8px; font-size: 18px; }
.legal p, .legal li { color: #333; }
.legal .back { display: inline-block; margin-bottom: 12px; }

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: var(--muted); }

@media (max-width: 860px) {
  .nav { gap: 14px; font-size: 14px; }
  .hero { min-height: 300px; }
  .hero-inner { max-width: none; margin-left: auto; padding: 36px 0; }
  .page { grid-template-columns: 1fr; padding-top: 24px; }
  .form-card { position: static; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 56px; }
  .brand span { font-size: 16px; }
  .nav a:nth-child(3) { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 280px; }
  .hero p { font-size: 16px; }
}

.btn-tg {
  background: #2AABEE;
  color: #fff;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-tg[hidden], #after-send[hidden], form[hidden], #write-max[hidden] { display: none; }
.btn-tg:hover { background: #229ED9; }
#after-send { margin-top: 4px; }
