:root {
  --paper: #f7f4ee;
  --ink: #18201e;
  --muted: #61706b;
  --line: rgba(24, 32, 30, .14);
  --red: #bf3f37;
  --green: #637b4c;
  --blue: #3a6f88;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 32, 30, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section { scroll-margin-top: 86px; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(247, 244, 238, .92);
  border-bottom: 1px solid rgba(24, 32, 30, .08);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px rgba(24, 32, 30, .035);
}

.site-header.compact { position: sticky; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #46514d;
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.footer a,
.doc-links a { text-decoration: none; }

.nav a,
.footer a,
.doc-links a,
.header-action,
.button {
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav a:hover,
.footer a:hover,
.doc-links a:hover { color: var(--red); }

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 28px rgba(24, 32, 30, .055);
}

.header-action:hover {
  border-color: rgba(191,63,55,.38);
  color: var(--red);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 72px;
  background: #eef1ef;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247,244,238,.98) 0%, rgba(247,244,238,.88) 34%, rgba(247,244,238,.28) 67%, rgba(247,244,238,.05) 100%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 8vw, 118px);
  line-height: .92;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.lead {
  max-width: 620px;
  color: #39423f;
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button.primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(191,63,55,.16);
}

.button.primary:hover {
  background: #ad3832;
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: rgba(24, 32, 30, .22);
  background: var(--white);
  transform: translateY(-1px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip div {
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--white);
}

.strip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
}

.strip span {
  color: var(--muted);
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: 920px;
  margin-bottom: 38px;
}

.service-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service,
.price {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

.service p,
.price li,
.contacts p,
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.62;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 8px;
  background: #eef3ee;
  color: var(--green);
  font-weight: 900;
}

.section-muted {
  background: #e8ece8;
}

.price.featured {
  border-color: rgba(191,63,55,.5);
  box-shadow: var(--shadow);
}

.price-value {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
}

.price ul {
  margin: 0;
  padding-left: 19px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 3px solid var(--ink);
  padding-top: 20px;
}

.steps span {
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.steps p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.documents {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  background: var(--ink);
  color: var(--white);
}

.documents .eyebrow { color: #e48b80; }

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-links a {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
}

.contacts {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: start;
}

.contact-copy {
  max-width: 760px;
}

.contact-copy h2 {
  margin-bottom: 26px;
  line-height: 1.03;
}

.contact-copy p {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 17px;
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-panel a {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  text-decoration: none;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p { margin: 0; }

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-page {
  background: #faf8f2;
}

.legal {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.legal h1 {
  font-size: clamp(40px, 7vw, 78px);
}

.legal h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 28px;
}

@media (max-width: 920px) {
  .nav { display: none; }
  .strip,
  .service-grid,
  .price-grid,
  .contacts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .documents { align-items: start; flex-direction: column; }
  .hero-shade { background: rgba(247,244,238,.86); }
}

@media (max-width: 560px) {
  section { scroll-margin-top: 72px; }
  .site-header {
    padding: 12px 14px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
  .hero {
    min-height: 86vh;
    padding: 96px 18px 48px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .button {
    width: 100%;
  }
  .section {
    padding: 58px 18px;
  }
  .contact-copy h2 {
    margin-bottom: 14px;
  }
  .contact-copy p {
    font-size: 16px;
    line-height: 1.55;
  }
  .steps { grid-template-columns: 1fr; }
  .footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}
