:root {
  --ink: #0f171b;
  --ink-soft: #2f3d43;
  --muted: #647177;
  --brand: #4c6a76;
  --brand-dark: #314d58;
  --brand-light: #dce8eb;
  --paper: #ffffff;
  --mist: #f2f6f7;
  --line: #d7e0e3;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(14, 39, 48, 0.14);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.58; }
button, input, select, textarea { font: inherit; }
button, label, select, input[type="range"] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }

.announcement { color: #fff; background: var(--ink); font-size: 0.82rem; }
.announcement-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.announcement a { color: #fff; font-weight: 800; text-decoration: none; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px 14px 14px 4px; display: grid; place-items: center; color: #fff; background: var(--brand); font-weight: 950; letter-spacing: -0.05em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; line-height: 1.2; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 0.76rem; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 34px); }
.main-nav a { color: var(--ink-soft); font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover { color: var(--brand-dark); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; border: 1px solid transparent; border-radius: 13px; font-weight: 850; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-small { min-height: 44px; padding-inline: 17px; font-size: 0.88rem; }
.button-dark { color: #fff; background: var(--ink); box-shadow: 0 12px 26px rgba(15, 23, 27, 0.16); }
.button-dark:hover { box-shadow: 0 16px 32px rgba(15, 23, 27, 0.22); }
.button-light { color: var(--ink); background: #fff; border-color: var(--line); }
.button-white { color: var(--ink); background: #fff; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 3px; }

.hero { overflow: hidden; background: linear-gradient(135deg, #f2f6f7 0%, #e6eef0 55%, #f7f8f4 100%); }
.hero-grid { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, 0.85fr); gap: 76px; align-items: center; }
.eyebrow, .overline { margin: 0; color: var(--brand-dark); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.hero h1 { max-width: 730px; margin: 18px 0 25px; font-size: clamp(3.1rem, 6.5vw, 6.3rem); line-height: 0.94; letter-spacing: -0.065em; }
.hero-lead { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 11px 23px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--ink-soft); font-size: 0.88rem; font-weight: 700; }
.hero-checks li::before { content: "✓"; color: var(--brand-dark); margin-right: 7px; font-weight: 950; }
.hero-media { position: relative; align-self: stretch; min-height: 680px; }
.hero-media::after { content: ""; position: absolute; inset: 10% -28% -14% 38%; border: 1px solid rgba(76, 106, 118, 0.35); border-radius: 50%; }
.hero-media img { position: absolute; z-index: 1; inset: 52px 0 0; width: 100%; height: calc(100% - 52px); object-fit: cover; object-position: center; border-radius: 180px 24px 0 0; }
.hero-card { position: absolute; z-index: 2; left: -44px; bottom: 40px; width: min(330px, 85%); padding: 21px 23px; color: #fff; background: var(--brand-dark); border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow); }
.hero-card span, .hero-card small { display: block; color: rgba(255,255,255,.75); font-size: 0.78rem; }
.hero-card strong { display: block; margin: 3px 0; font-size: 1.12rem; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr); align-items: end; gap: 80px; margin-bottom: 56px; }
.section-heading.compact { grid-template-columns: minmax(0, 760px); }
.section-heading h2, .calculator-intro h2, .about h2, .contact h2 { margin: 14px 0 0; font-size: clamp(2.3rem, 4.7vw, 4.7rem); line-height: 1.02; letter-spacing: -0.055em; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 120px; padding: 24px 16px; border-bottom: 1px solid var(--line); transition: background 160ms ease, padding 160ms ease; }
.service-item:hover { padding-inline: 26px; background: var(--mist); }
.service-item.featured { background: var(--mist); }
.service-index { color: var(--brand); font-size: 0.82rem; font-weight: 900; }
.service-item h3 { margin: 0 0 4px; font-size: 1.38rem; letter-spacing: -0.025em; }
.service-item p { margin: 0; color: var(--muted); }
.service-item > a { color: var(--brand-dark); font-weight: 850; text-decoration: none; }

.about { color: #fff; background: var(--ink); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; align-items: start; }
.about .eyebrow { color: #a8c1ca; }
.about h2 { margin-top: 18px; color: #fff; }
.about-copy { padding-top: 10px; }
.about-copy p { max-width: 720px; color: #bcc6ca; }
.about-copy .about-lead { color: #fff; font-size: 1.38rem; line-height: 1.45; }
.principles { margin-top: 42px; border-top: 1px solid rgba(255,255,255,.16); }
.principles > div { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.principles strong { color: #a8c1ca; }

.calculator-section { background: linear-gradient(180deg, #edf3f5, #f9fbfb); }
.calculator-intro { max-width: 840px; text-align: center; }
.calculator-intro p:last-child { max-width: 700px; margin: 18px auto 0; color: var(--muted); font-size: 1.05rem; }
.product-shell { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr); align-items: start; gap: 56px; padding-top: 62px; }
.intro-panel { position: sticky; top: 28px; padding: 18px 0; }
.intro-panel h3 { max-width: 520px; margin: 15px 0 20px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.05em; }
.intro-copy { margin: 0 0 30px; color: var(--muted); }
.promise-list { border-top: 1px solid var(--line); }
.promise-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.promise-list p { margin: 0; color: var(--muted); }
.promise-list strong { color: var(--ink); }
.promise-number { color: var(--brand-dark); font-weight: 900; }
.trust-note { display: flex; align-items: center; gap: 12px; margin-top: 23px; padding: 15px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.trust-note p { margin: 0; font-size: 0.88rem; }
.trust-icon { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }

.calculator-card { min-height: 650px; overflow: hidden; background: rgba(255,255,255,.98); border: 1px solid rgba(15,23,27,.08); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.calculator-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 28px 32px 23px; border-bottom: 1px solid var(--line); }
.calculator-head h3 { margin: 3px 0 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.step-status { min-width: 112px; color: var(--muted); font-size: 0.82rem; text-align: right; }
.step-dots { display: flex; justify-content: flex-end; gap: 5px; margin-top: 9px; }
.step-dots i { width: 22px; height: 4px; border-radius: 99px; background: #dbe6ea; }
.step-dots i.active { background: var(--brand); }
.form-step { display: none; min-width: 0; margin: 0; padding: 30px 32px 32px; border: 0; }
.form-step.active { display: block; animation: step-in 220ms ease both; }
@keyframes step-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.form-step legend { padding: 0; font-size: 1.2rem; font-weight: 850; }
.field-help { margin: 4px 0 24px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-card { position: relative; min-height: 92px; display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: border 160ms ease, background 160ms ease, transform 160ms ease; }
.service-card:hover { transform: translateY(-1px); border-color: var(--brand); }
.service-card:has(input:checked) { border-color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 7%, white); box-shadow: inset 0 0 0 1px var(--brand-dark); }
.service-card input { position: absolute; opacity: 0; }
.service-card strong, .service-card small { display: block; }
.service-card small { margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.service-symbol { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--mist); border-radius: 12px; font-weight: 900; }
.service-card i { width: 18px; height: 18px; border: 2px solid #b9c8cf; border-radius: 50%; }
.service-card:has(input:checked) i { border: 5px solid var(--brand-dark); }
.area-control { margin-bottom: 18px; padding: 20px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-md); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; font-weight: 750; }
.area-value { display: flex; align-items: center; gap: 5px; font-size: 1.05rem; }
.area-value input { width: 78px; border: 0; border-bottom: 2px solid var(--brand-dark); background: transparent; color: var(--ink); font-weight: 850; text-align: right; }
input[type="range"] { width: 100%; height: 5px; accent-color: var(--brand-dark); }
.range-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 0.72rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-dark); }
.field.invalid input { border-color: var(--danger); }
.error-text, .consent-error { display: none; color: var(--danger); font-size: 0.78rem; font-weight: 650; }
.field.invalid .error-text, .consent-error.visible { display: block; }
.full-field { margin-top: 16px; }
.toggle-row, .consent-row { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.toggle-row { margin-top: 18px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row > span { width: 42px; height: 24px; padding: 3px; background: #c9d6dc; border-radius: 99px; transition: background 160ms ease; }
.toggle-row > span::after { content: ""; display: block; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(15,23,27,.18); transition: transform 160ms ease; }
.toggle-row:has(input:checked) > span { background: var(--brand-dark); }
.toggle-row:has(input:checked) > span::after { transform: translateX(18px); }
.consent-row { align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: 0.82rem; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-dark); }
.consent-row a { font-weight: 800; }
.step-actions, .result-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.step-actions.end { justify-content: flex-end; }
.step-actions .button { min-width: 126px; }
.result-panel { padding: 30px 32px 34px; animation: result-in 320ms ease both; }
@keyframes result-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--brand-dark); font-weight: 850; }
.result-topline span:last-child { padding: 5px 10px; color: var(--ink); background: var(--mist); border-radius: 99px; font-size: 0.78rem; }
.price-range { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 8px; }
.price-range strong { font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.06em; }
.price-range span, #resultExplanation { color: var(--muted); }
#resultExplanation { margin: 0 0 24px; }
.result-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid var(--line); }
.result-facts > div { padding: 16px 12px; border-right: 1px solid var(--line); }
.result-facts > div:first-child { padding-left: 0; }
.result-facts > div:last-child { border-right: 0; }
.result-facts dt { color: var(--muted); font-size: 0.74rem; }
.result-facts dd { margin: 3px 0 0; font-weight: 850; }
.result-note { margin-top: 20px; padding: 16px; background: #f5f6ee; border-left: 4px solid #a7b9a1; border-radius: 0 12px 12px 0; }
.result-note p { margin: 3px 0 0; color: var(--muted); font-size: 0.88rem; }
.result-actions .button-dark { flex: 1.35; }
.result-actions .button-light { flex: 1; }
.text-button { display: block; margin: 16px auto 0; padding: 4px; color: var(--brand-dark); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.direct-contact { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
.direct-contact a { color: var(--brand-dark); font-weight: 800; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.process-grid article { min-height: 260px; padding: 34px; border-right: 1px solid var(--line); }
.process-grid article:last-child { border-right: 0; }
.process-grid span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }
.process-grid h3 { margin: 48px 0 7px; font-size: 1.45rem; }
.process-grid p { margin: 0; color: var(--muted); }

.contact { color: #fff; background: var(--brand-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 90px; align-items: center; }
.contact .eyebrow { color: #bfd3da; }
.contact h2 { color: #fff; }
.contact-grid > div > p:not(.eyebrow) { max-width: 650px; color: #d5e0e4; font-size: 1.05rem; }
.contact-grid .button { margin-top: 16px; }
.contact-card { display: grid; gap: 0; padding: 10px 30px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-lg); font-style: normal; }
.contact-card > div { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-card > div:last-child { border-bottom: 0; }
.contact-card span { display: block; color: #bfd3da; font-size: 0.76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.contact-card a, .contact-card p { display: block; margin: 4px 0 0; color: #fff; font-size: 1.08rem; font-weight: 750; text-decoration: none; }

.site-footer { padding: 50px 0 24px; color: #d9e0e3; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 60px; }
.brand-footer strong { color: #fff; }
.brand-footer small { color: #9ba9af; }
.footer-contact, .footer-legal { display: flex; flex-direction: column; gap: 7px; }
.footer-contact a, .footer-legal a { color: #d9e0e3; text-decoration: none; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; color: #8f9ca2; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.8rem; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.legal-page { min-height: 100vh; background: var(--mist); }
.legal-header { background: #fff; border-bottom: 1px solid var(--line); }
.legal-header .site-header { min-height: 82px; }
.legal-content { max-width: 860px; padding-top: 78px; padding-bottom: 100px; }
.legal-content h1 { margin: 15px 0 36px; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.06em; }
.legal-content h2 { margin-top: 38px; font-size: 1.35rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content a { color: var(--brand-dark); }
.legal-note { margin-top: 38px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }

body.embedded { background: #edf3f5; }
body.embedded .announcement, body.embedded .site-header, body.embedded .hero, body.embedded .services, body.embedded .about, body.embedded .calculator-intro, body.embedded .process, body.embedded .contact, body.embedded .site-footer { display: none; }
body.embedded .calculator-section { padding: 18px 0; }
body.embedded .product-shell { display: block; padding-top: 0; }
body.embedded .intro-panel { display: none; }
body.embedded .calculator-card { width: min(760px, 100%); margin-inline: auto; }
body.embedded .shell { width: min(1180px, calc(100% - 24px)); }

@media (max-width: 980px) {
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr 0.78fr; gap: 44px; }
  .hero h1 { font-size: clamp(3rem, 8vw, 5rem); }
  .section-heading, .about-grid, .contact-grid { gap: 46px; }
  .product-shell { grid-template-columns: 1fr; }
  .intro-panel { position: static; max-width: 720px; }
  .promise-list { display: grid; grid-template-columns: repeat(3, 1fr); }
  .promise-list > div { display: block; padding-right: 16px; }
  .promise-number { display: block; margin-bottom: 6px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .announcement-inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header { min-height: 78px; }
  .brand-mark { width: 42px; height: 42px; }
  .main-nav { justify-content: flex-end; gap: 14px; }
  .main-nav a { display: none; }
  .main-nav a:last-child { display: inline; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 38px; padding-top: 72px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .hero-media { min-height: 460px; }
  .hero-media img { inset: 0; height: 100%; border-radius: 120px 20px 0 0; }
  .hero-card { left: 14px; bottom: 18px; }
  .section-heading, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 24px; margin-bottom: 38px; }
  .service-item { grid-template-columns: 42px 1fr; gap: 13px; padding-inline: 4px; }
  .service-item:hover { padding-inline: 4px; }
  .service-item > a { grid-column: 2; }
  .about-grid { gap: 36px; }
  .promise-list { grid-template-columns: 1fr; }
  .promise-list > div { display: grid; grid-template-columns: 42px 1fr; }
  .calculator-intro { text-align: left; }
  .product-shell { padding-top: 38px; }
  .calculator-head, .form-step, .result-panel { padding-left: 20px; padding-right: 20px; }
  .calculator-head { align-items: center; }
  .service-grid, .field-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; }
  .step-actions, .result-actions { flex-direction: column-reverse; }
  .step-actions.end { align-items: stretch; }
  .step-actions .button, .result-actions .button { width: 100%; }
  .result-facts { grid-template-columns: 1fr; }
  .result-facts > div { padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .result-facts > div:last-child { border-bottom: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid article:last-child { border-bottom: 0; }
  .process-grid h3 { margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 430px) {
  .announcement { display: none; }
  .hero h1 { font-size: 3.15rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-checks { display: grid; }
  .hero-media { min-height: 400px; }
  .calculator-card { border-radius: 20px; }
  .calculator-head { gap: 10px; }
  .step-status { min-width: 94px; }
  .price-range { align-items: flex-start; flex-direction: column; }
}

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