:root {
  --ink: #10243b;
  --ink-soft: #40546b;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-alt: #eef3ee;
  --accent: #137463;
  --accent-dark: #0d5a4d;
  --accent-soft: #dceee6;
  --gold: #d9a441;
  --line: #dce3dc;
  --danger: #a33232;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(16, 36, 59, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 17px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.brand-text small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-dark); }
.btn-block { width: 100%; }
.cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cta-sm { padding: 9px 18px; font-size: 0.92rem; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 32px; }
.hero-facts {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.32rem; color: var(--accent-dark); }
.hero-facts span { font-size: 0.82rem; color: var(--ink-soft); max-width: 16ch; }
.hero-media img,
.about-media img {
  width: 100%;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  background: var(--surface-alt);
}
.hero-media img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
section[id] { scroll-margin-top: 92px; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-sub { color: var(--ink-soft); margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c4d4c9;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--accent-dark);
  font-weight: 700;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Case */
.case-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.case-facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.case-facts li { color: var(--ink-soft); }
.case-facts strong { color: var(--ink); }
.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.quote p { font-family: Georgia, serif; font-size: 1.16rem; line-height: 1.5; }
.quote footer { color: var(--ink-soft); font-size: 0.9rem; }

/* Lead form */
.lead-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.lead-copy { position: sticky; top: 110px; }
.lead-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; }
.field label span { color: var(--danger); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cbd6ce;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 116, 99, 0.14);
}
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
textarea { resize: vertical; min-height: 90px; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.form-status { margin: 14px 0 0; min-height: 1.4em; font-size: 0.92rem; font-weight: 600; }
.form-status.is-ok { color: var(--accent-dark); }
.form-status.is-error { color: var(--danger); }

/* Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card h3 { font-size: 1rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Utility page (privacy, staff) */
.page {
  padding: clamp(36px, 6vw, 64px) 0 80px;
}
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; color: var(--ink-soft); }
.page li { margin-bottom: 0.5em; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero-grid, .about-grid, .case-grid, .lead-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .lead-copy { position: static; }
  .about-media { order: 0; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .header-inner { padding: 10px 0; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
  .site-nav .cta-sm { padding: 8px 14px; }
  .hero-facts { gap: 18px; }
  .hero-facts li { flex: 1 1 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
