:root {
  --bg: #f5f3ee;
  --panel: #ffffff;
  --ink: #172022;
  --muted: #5c686a;
  --teal: #092f31;
  --teal-2: #0e4345;
  --gold: #c89a4b;
  --gold-2: #e2c06d;
  --line: rgba(23, 32, 34, 0.12);
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(9, 47, 49, 0.14);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  background: var(--gold);
  color: #111;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
}
.skip-link:focus { top: 12px; }

.section { padding: 96px 0; }
.section-dark {
  color: var(--white);
  background-color: var(--teal);
  background-image:
    linear-gradient(120deg, rgba(200,154,75,.22), transparent 26%, transparent 72%, rgba(226,192,109,.16)),
    radial-gradient(circle at 18px 18px, rgba(255,255,255,.055) 2px, transparent 2.5px),
    linear-gradient(30deg, rgba(255,255,255,.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.035) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.035) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.035) 87.5%);
  background-size: auto, 36px 36px, 56px 98px, 56px 98px;
}
.section-muted { background: #ebe8df; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(245, 243, 238, 0.92);
  box-shadow: 0 10px 32px rgba(9,47,49,.12);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; position: relative; }
.logo-light { display: block; }
.logo-dark { display: none; }
.site-header.is-solid .logo-light,
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-solid .logo-dark,
.site-header.is-scrolled .logo-dark { display: block; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255,255,255,.9);
  font-weight: 650;
  font-size: 14px;
}
.site-header.is-solid .main-nav,
.site-header.is-scrolled .main-nav { color: #163436; }
.main-nav a,
.header-phone {
  position: relative;
  opacity: .92;
}
.main-nav a::after,
.header-phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after,
.header-phone:hover::after { transform: scaleX(1); }
.header-phone {
  color: rgba(255,255,255,.94);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  padding: 10px;
}

.site-header.is-solid .header-phone,
.site-header.is-scrolled .header-phone { color: #163436; }
.site-header.is-solid .nav-toggle,
.site-header.is-scrolled .nav-toggle { background: rgba(255,255,255,.75); }

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--teal);
  border-radius: 999px;
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 140px 0 92px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  gap: 64px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin-bottom: 18px;
}
h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.lead {
  color: rgba(255,255,255,.82);
  max-width: 690px;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1f1a0f;
  box-shadow: 0 16px 36px rgba(200,154,75,.28);
}
.btn-outline {
  border-color: rgba(255,255,255,.42);
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.btn-full { width: 100%; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 44px 0 0;
}
.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.hero-stats dt {
  color: var(--gold-2);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}
.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 14px;
}
.hero-card {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226,192,109,.34);
}
.card-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(200,154,75,.15);
  color: #6c4b13;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.hero-card h2 { font-size: 32px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 13px;
  height: 8px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.trust-strip {
  padding: 20px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-head {
  max-width: 820px;
  margin-bottom: 44px;
}
.section:not(.section-dark) .eyebrow,
.section-muted .eyebrow { color: #9a6c24; }
.section-head p { color: var(--muted); font-size: 18px; }
.service-grid,
.case-grid,
.review-grid {
  display: grid;
  gap: 22px;
}
.service-grid { grid-template-columns: repeat(3, 1fr); }
.case-grid,
.review-grid { grid-template-columns: repeat(3, 1fr); }
.service-card,
.case-card,
.review-card,
.contact-card,
.contact-form,
.about-panel,
.quote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(9,47,49,.06);
}
.service-card {
  padding: 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.service-num {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .18em;
  margin-bottom: 18px;
}
.service-card p,
.case-card p,
.review-card p { color: var(--muted); }
.service-card a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 900;
}
.service-card a:hover { color: #8c651e; }

.about-grid,
.consultation-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  gap: 28px;
  align-items: start;
}
.about-panel,
.quote-card { padding: 36px; }
.about-panel p { color: var(--muted); font-size: 18px; }
.quote-card {
  background: var(--teal);
  color: var(--white);
  position: sticky;
  top: 100px;
}
.quote-card blockquote {
  margin: 0 0 22px;
  font-size: 25px;
  line-height: 1.32;
  letter-spacing: -.03em;
}
.quote-card cite {
  color: var(--gold-2);
  font-weight: 900;
  font-style: normal;
}
.case-card,
.review-card { padding: 28px; }

.process .section-head p,
.process li p { color: rgba(255,255,255,.72); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
}
.steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #16120a;
  font-weight: 950;
  margin-bottom: 18px;
}
.steps h3 { color: var(--white); }

.consultation-section code {
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(9,47,49,.08);
  color: var(--teal);
}
.contact-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.contact-shortcuts a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--teal);
  border: 1px solid rgba(9,47,49,.18);
  background: rgba(255,255,255,.72);
  font-weight: 850;
}
.contact-form { padding: 30px; }
.form-row { margin-bottom: 18px; }
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: block;
  color: #203639;
  font-weight: 850;
  margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(9,47,49,.18);
  border-radius: 14px;
  background: #fbfaf6;
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,154,75,.18);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 20px;
}
.consent input { width: auto; margin-top: 4px; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

.contacts-grid { align-items: stretch; }
.contact-card { padding: 30px; font-style: normal; }
.contact-card div + div { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  margin-bottom: 6px;
}
.contact-card a,
.contact-card p { font-size: 20px; font-weight: 850; margin: 0; }
.contact-card a { color: var(--teal); }

.site-footer { padding: 64px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .5fr .9fr;
  gap: 42px;
  align-items: start;
}
.footer-grid h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold-2);
  margin-bottom: 16px;
}
.footer-grid a { display: block; color: rgba(255,255,255,.78); margin: 8px 0; }
.footer-grid p { color: rgba(255,255,255,.72); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 42px;
  padding-top: 22px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

.legal-page { padding: 130px 0 80px; }
.legal-page h1 { font-size: clamp(40px, 6vw, 68px); color: var(--teal); }
.legal-page h2 { font-size: 28px; margin-top: 34px; }
.legal-page p { color: var(--muted); font-size: 18px; }
.legal-page a { color: var(--teal); font-weight: 850; }

.thanks-page { min-height: 100vh; }
.thanks-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
}
.thanks-card {
  width: min(720px, 100%);
  padding: 48px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.075);
  text-align: center;
  box-shadow: var(--shadow);
}
.thanks-card img { margin-inline: auto; margin-bottom: 30px; }
.thanks-card h1 { font-size: clamp(38px, 6vw, 66px); }
.thanks-card p { color: rgba(255,255,255,.76); font-size: 18px; }
.center-actions { justify-content: center; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(245,243,238,.98);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 14px; border-radius: 12px; color: var(--teal); }
  .main-nav a:hover { background: rgba(9,47,49,.06); }
  .header-phone { display: none; }
  .hero-grid,
  .about-grid,
  .consultation-grid,
  .contacts-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 120px; }
  .hero-stats,
  .service-grid,
  .case-grid,
  .review-grid,
  .steps,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-card { position: static; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero { padding-bottom: 70px; }
  .hero-card, .about-panel, .quote-card, .contact-form, .contact-card, .thanks-card { padding: 24px; border-radius: 22px; }
  .hero-stats,
  .service-grid,
  .case-grid,
  .review-grid,
  .steps,
  .footer-grid,
  .footer-bottom,
  .two-cols { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .strip-grid { grid-template-columns: 1fr; text-align: left; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-actions .btn { width: 100%; }
  .trust-strip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
