:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-2: #e9f0ec;
  --ink: #18211d;
  --muted: #5f6b64;
  --line: #d6dfd9;
  --green: #15835f;
  --green-dark: #0f5f49;
  --red: #b94935;
  --amber: #c9832c;
  --blue: #286c92;
  --graphite: #24302c;
  --shadow: 0 18px 48px rgba(20, 38, 32, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(214, 223, 217, 0.82);
  background: rgba(244, 247, 243, 0.94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; }
.brand img, .site-footer img {
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { justify-self: center; display: flex; gap: 24px; font-size: 15px; }
.main-nav a:hover, .footer-layout a:hover { border-bottom: 1px solid currentColor; }
.header-phone { color: var(--green-dark); font-weight: 900; }
.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px 0 46px;
  color: #fff;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 24, 20, 0.95) 0%, rgba(16, 24, 20, 0.74) 50%, rgba(16, 24, 20, 0.22) 100%),
    linear-gradient(0deg, rgba(16, 24, 20, 0.82) 0%, transparent 42%);
}
.hero-content { position: relative; }
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: #80ddc2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 770px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.btn-primary { color: #fff; background: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.08); }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(980px, 100%);
  margin-top: 42px;
}
.hero-strip span {
  min-height: 72px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(8, 25, 20, 0.56);
  font-weight: 900;
}

.section { padding: 86px 0; }
.muted, .alert-band { background: var(--surface-2); }
.section-kicker { color: var(--green-dark); }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: 0; }
h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 36px); line-height: 1.14; }
h4 { margin: 0 0 12px; font-size: 18px; }
p { margin: 16px 0 0; }
.section-head { max-width: 850px; margin-bottom: 34px; }
.split, .checker-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: 54px;
  align-items: start;
}

.quick-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quick-steps li {
  padding: 18px 18px 18px 22px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.case-tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}
.case-tab.is-active {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}
.case-panel {
  display: none;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1fr);
  gap: 18px;
}
.case-panel.is-active { display: grid; }
.case-copy, .action-card, .letter-card, .checker-card, .lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.case-copy { padding: 32px; }
.case-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.danger-note {
  margin-top: 24px;
  padding: 16px;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff1ee;
  color: #7b2d20;
  font-weight: 900;
}
.action-card {
  padding: 28px;
  border-top: 5px solid var(--green);
}
.action-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding-left: 22px;
}
.action-card li::marker { color: var(--green-dark); font-weight: 900; }

.letter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.letter-card {
  min-height: 360px;
  padding: 26px;
}
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
}
.letter-card h3 { font-size: 22px; }
.letter-card p { color: var(--muted); }

.checker-section { background: var(--surface); }
.hint {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}
.hint button {
  padding: 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}
.checker-card, .lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.checker-card label, .lead-form label { display: grid; gap: 7px; font-weight: 900; }
.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.checker-card input, .lead-form input, .lead-form textarea, .lead-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
}
.checker-card input:focus, .lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: 3px solid rgba(21, 131, 95, .18);
  border-color: var(--green);
}
.check-result {
  min-height: 172px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-2);
}
.check-result p { margin: 0; }
.status-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.status-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 800;
}
.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.warn { background: var(--amber); }
.status-dot.bad { background: var(--red); }
.result-good { color: var(--green-dark); font-weight: 900; }
.result-warn { color: #8a571c; font-weight: 900; }
.result-bad { color: #7b2d20; font-weight: 900; }

.support-section { background: var(--graphite); color: #fff; }
.support-section .section-kicker { color: #93e2c9; }
.support-section p { color: rgba(255,255,255,.78); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-links a {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}
.lead-form { background: #f7faf8; color: var(--ink); }
.consent { grid-template-columns: 18px 1fr; align-items: start; color: var(--muted); font-size: 13px; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.form-note { min-height: 22px; margin: 0; color: var(--green-dark); font-weight: 900; }

.site-footer { padding: 36px 0; color: rgba(255,255,255,.82); background: #101815; }
.footer-layout { display: flex; justify-content: space-between; gap: 24px; }
.footer-layout > div { max-width: 620px; }
.footer-layout img { display: inline-block; margin-right: 10px; vertical-align: middle; }
.footer-layout p { margin-top: 8px; }
.footer-layout nav { display: flex; gap: 18px; align-items: start; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, .header-phone { display: none; }
  .split, .checker-layout, .contact-layout, .case-panel, .letter-grid { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { padding: 10px 14px; gap: 10px; }
  .brand { min-width: 0; }
  .brand small, .header-phone { display: none; }
  .hero { min-height: 86vh; padding: 100px 0 32px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn, .input-row .btn { width: 100%; }
  .hero-strip, .input-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .case-copy, .action-card, .letter-card, .checker-card, .lead-form { padding: 20px; }
  .footer-layout, .footer-layout nav { flex-direction: column; }
}
