:root {
  --ink: #173230;
  --ink-soft: #526b68;
  --primary: #176d64;
  --primary-dark: #11534c;
  --mint: #dcefe8;
  --mint-soft: #f1f8f5;
  --sand: #f4eee6;
  --paper: #fffefd;
  --line: #d7e2de;
  --error: #a33131;
  --success: #116047;
  --shadow: 0 24px 70px rgba(26, 63, 58, 0.12);
  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--primary-dark);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 48px), var(--container));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 50, 48, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--primary);
  border-radius: 50% 50% 46% 54% / 47% 42% 58% 53%;
}
.brand-mark svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { font-size: 17px; letter-spacing: 0.035em; }
.brand-copy span { color: var(--ink-soft); font-size: 13px; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-nav a:hover { color: var(--primary); }

.hero {
  width: min(calc(100% - 48px), var(--container));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 72px;
  padding: 76px 0 92px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.hero .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #d97c55; box-shadow: 0 0 0 5px #f8e7df; }
h1, h2, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.052em;
}
.hero-text { max-width: 610px; margin-bottom: 34px; color: var(--ink-soft); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 21px;
  border: 0;
  border-radius: 14px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.button-primary { color: white; background: var(--primary); box-shadow: 0 12px 28px rgba(23, 109, 100, 0.22); }
.button-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.hero-note svg { width: 20px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 44px 44px 130px 44px;
  background: linear-gradient(145deg, #e4f2ec 0%, #cfebe0 100%);
}
.hero-visual::before { content: ""; position: absolute; width: 390px; height: 390px; border: 1px solid rgba(23, 109, 100, 0.17); border-radius: 50%; }
.hero-visual::after { content: ""; position: absolute; width: 285px; height: 285px; border: 1px solid rgba(23, 109, 100, 0.15); border-radius: 50%; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 160px; height: 160px; top: -42px; right: -20px; background: #f2c6ad; opacity: .75; }
.orb-two { width: 95px; height: 95px; left: 18px; bottom: 30px; background: #a9d6c6; }
.visual-card { position: absolute; z-index: 2; background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.visual-card-main { width: min(72%, 340px); min-height: 330px; padding: 34px; border-radius: 28px; transform: translate(-7%, -3%); }
.mini-label { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.phone-icon { width: 60px; height: 60px; display: grid; place-items: center; margin: 32px 0 28px; border-radius: 18px; color: white; background: var(--primary); }
.phone-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visual-card-main strong { display: block; margin-bottom: 9px; font-size: 25px; letter-spacing: -.03em; }
.visual-card-main p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.pulse-line { height: 28px; display: flex; align-items: center; gap: 7px; margin-top: 28px; }
.pulse-line span { width: 4px; height: 11px; border-radius: 4px; background: #a6d3c4; }
.pulse-line span:nth-child(2) { height: 24px; background: var(--primary); }
.pulse-line span:nth-child(3) { height: 17px; }
.pulse-line span:nth-child(4) { height: 8px; }
.visual-card-small { right: 20px; bottom: 48px; display: flex; align-items: center; gap: 12px; padding: 14px 17px; border-radius: 16px; }
.visual-card-small svg { width: 28px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visual-card-small span { display: flex; flex-direction: column; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.visual-card-small strong { color: var(--ink); font-size: 13px; }
.dot-grid { position: absolute; width: 78px; height: 78px; left: 32px; top: 38px; opacity: .25; background-image: radial-gradient(var(--primary) 1.4px, transparent 1.4px); background-size: 11px 11px; }

.steps { padding: 84px max(24px, calc((100% - var(--container)) / 2)); color: white; background: var(--ink); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.section-heading .eyebrow { color: #a9d6c6; }
.section-heading h2, .form-intro h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step-list li { min-height: 190px; padding: 27px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.035); }
.step-number { display: block; margin-bottom: 38px; color: #a9d6c6; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.step-list strong { display: block; margin-bottom: 6px; font-size: 20px; }
.step-list p { margin-bottom: 0; color: #b8c7c5; font-size: 14px; }

.form-section {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 116px 0;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
  gap: 80px;
}
.form-intro { position: sticky; top: 32px; }
.form-intro > p:not(.eyebrow) { max-width: 390px; margin: 24px 0 34px; color: var(--ink-soft); font-size: 18px; }
.privacy-promise { max-width: 400px; display: flex; gap: 14px; padding-top: 25px; border-top: 1px solid var(--line); }
.privacy-promise svg { flex: 0 0 28px; width: 28px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-promise div { display: flex; flex-direction: column; gap: 3px; }
.privacy-promise strong { font-size: 14px; }
.privacy-promise span { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.contact-form { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field-full { grid-column: 1 / -1; }
.field label, .signature-fieldset legend { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 740; }
.field label span, .signature-fieldset legend span, .consent-row label span { color: var(--error); }
.field input, .field select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #bdcdca;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder { color: #8ca09d; }
.field input:focus, .field select:focus, .signature-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23,109,100,.12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field-error { min-height: 18px; margin: 5px 0 -18px; color: var(--error); font-size: 12px; line-height: 1.35; }
.signature-fieldset { margin: 35px 0 0; padding: 0; border: 0; }
.signature-fieldset legend { padding: 0; }
.signature-fieldset > p { margin: -4px 0 12px; color: var(--ink-soft); font-size: 13px; }
.signature-wrap { position: relative; height: 180px; overflow: hidden; border: 1px dashed #9cb3ae; border-radius: 12px; background: #fbfdfc; transition: border-color 150ms ease, box-shadow 150ms ease; }
.signature-wrap.is-invalid { border-color: var(--error); }
#signaturePad { position: relative; z-index: 2; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; outline: none; }
.signature-line { position: absolute; z-index: 1; left: 34px; right: 34px; bottom: 44px; height: 1px; background: #cbd8d5; }
.signature-hint { position: absolute; left: 34px; bottom: 19px; color: #8ba09c; font-size: 11px; }
.signature-actions { min-height: 35px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.signature-actions .field-error { margin-bottom: 0; }
.text-button { min-height: 44px; padding: 5px 0 5px 12px; border: 0; color: var(--primary); background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.text-button:hover { color: var(--primary-dark); }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 20px; }
.consent-row input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.consent-row input:focus-visible { outline: 3px solid rgba(23,109,100,.25); outline-offset: 2px; }
.consent-row label { color: var(--ink-soft); font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent-error { margin-left: 34px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.form-footer p { max-width: 270px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.form-footer a { color: var(--primary); font-weight: 700; }
.submit-button { flex: 0 0 auto; min-width: 205px; }
.submit-button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { display: none; margin-top: 20px; padding: 14px 16px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.form-status.is-visible { display: block; color: var(--error); background: #fff1f0; }
.form-status.is-success { display: block; color: var(--success); background: #eaf7f1; }

.legal-note { width: min(calc(100% - 48px), 780px); margin: -40px auto 96px; padding: 27px 30px; border-radius: var(--radius-md); background: var(--mint-soft); }
.legal-note h2 { margin-bottom: 8px; font-size: 18px; }
.legal-note p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.site-footer { min-height: 165px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 34px max(24px, calc((100% - var(--container)) / 2)); color: #c6d3d1; background: #112b29; font-size: 13px; }
.footer-brand { display: flex; flex-direction: column; line-height: 1.4; }
.footer-brand strong { color: white; letter-spacing: .04em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }
.site-footer > p { margin: 0; text-align: right; }

:focus-visible { outline: 3px solid rgba(23,109,100,.38); outline-offset: 3px; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-visual { min-height: 440px; }
  .form-section { grid-template-columns: 1fr; gap: 45px; }
  .form-intro { position: static; }
  .form-intro > p:not(.eyebrow), .privacy-promise { max-width: 620px; }
}

@media (max-width: 760px) {
  .site-header { width: min(calc(100% - 32px), var(--container)); min-height: 78px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy span { font-size: 11px; }
  .header-nav { display: none; }
  .hero { width: min(calc(100% - 32px), var(--container)); min-height: auto; grid-template-columns: 1fr; padding: 58px 0 72px; }
  h1 { font-size: clamp(45px, 14vw, 62px); }
  .hero-text { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .hero-visual { min-height: 430px; margin-top: 18px; border-radius: 30px 30px 90px 30px; }
  .visual-card-main { width: 72%; padding: 27px; }
  .visual-card-small { right: 10px; bottom: 38px; }
  .steps { padding-top: 68px; padding-bottom: 68px; }
  .section-heading { grid-template-columns: 1fr; gap: 4px; margin-bottom: 34px; }
  .step-list { grid-template-columns: 1fr; }
  .step-list li { min-height: auto; display: grid; grid-template-columns: 52px 1fr; padding: 22px; }
  .step-number { margin: 2px 0 0; }
  .form-section { width: min(calc(100% - 32px), var(--container)); padding: 78px 0; }
  .contact-form { padding: 24px 20px; border-radius: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .field input, .field select { font-size: 16px; }
  .signature-wrap { height: 165px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .legal-note { width: min(calc(100% - 32px), 780px); margin-top: -20px; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer > p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
