/* Global Q Solutions
   Pattern: Trust & Authority + Conversion. Style: Accessible & Ethical, Swiss-minimal.
   Colour is semantic: red = debt, green = relief, gold = the action to take. */

:root {
  /* colour */
  --ink: #0f1e45;
  --ink-2: #1a2c5e;
  --ink-3: #2b3f78;
  --paper: #f4f6fa;
  --white: #ffffff;
  --line: #dce2ec;
  --line-ink: rgba(255, 255, 255, .14);
  --text: #121a33;
  --muted: #4a5670;
  --on-ink: #e7ecf6;
  --on-ink-muted: #b4bfd6;
  --debt: #c21f37;
  --debt-soft: #fbe9ec;
  --relief: #0b7556;
  --relief-soft: #e3f3ec;
  --gold: #a16207;
  --gold-hover: #8a5306;
  --gold-soft: #fbf1dd;
  --focus: #2563eb;

  /* type */
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* space (8pt) */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sheet: 0 1px 2px rgba(15, 30, 69, .05), 0 16px 40px -12px rgba(15, 30, 69, .08);
  --shadow-float: 0 2px 6px rgba(15, 30, 69, .06), 0 20px 48px -16px rgba(15, 30, 69, .08);

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 150ms;
  --t-med: 300ms;

  /* layers */
  --z-header: 40; --z-fab: 60; --z-chat: 70;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure { margin: 0; }
b, strong { font-weight: 600; }
mark.todo { background: var(--gold-soft); color: #6b4105; padding: 0 .35em; border-radius: 4px; font-size: .85em; font-weight: 600; }
svg.lucide { width: 1.25em; height: 1.25em; stroke-width: 2; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: var(--s2); }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 12px; border: 2px solid transparent; font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; transition: transform var(--t-fast) var(--ease-out); touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-hover); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--full { width: 100%; }

.btn--line-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* tooltips for icon-only buttons (hover and keyboard focus) */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 500 .875rem/1.2 var(--body); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--t-fast) var(--ease-out), translate var(--t-fast) var(--ease-out); }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; }
[data-tip-side="left"]::after { bottom: auto; top: 50%; left: auto; right: calc(100% + 10px); translate: 4px -50%; }
[data-tip-side="left"]:hover::after, [data-tip-side="left"]:focus-visible::after { translate: 0 -50%; }
[data-tip-side="below"]::after { bottom: auto; top: calc(100% + 8px); }
.chat__head [data-tip]::after { background: #fff; color: var(--ink); }

/* header */
.hdr { position: sticky; top: 0; z-index: var(--z-header); background: rgba(244, 246, 250, .94); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; }
.hdr.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .92); }
.hdr__in { display: flex; align-items: center; gap: var(--s3); height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; margin-right: auto; }
.logo__mark { width: 38px; height: 38px; color: var(--ink); }
.logo--light { color: #fff; }
.logo--light .logo__mark { color: #fff; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--ink); }
.menu a:hover { background: rgba(15, 30, 69, .06); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-sm); align-items: center; justify-content: center; color: var(--ink); }
.hdr__actions { display: flex; align-items: center; gap: var(--s2); }
.hdr__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; font-weight: 600; text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.hdr__phone:hover { text-decoration: underline; }

/* hero */
.hero { background: var(--paper); padding: var(--s6) 0 var(--s7); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s6); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; margin-bottom: var(--s4); }
.hero__line { display: block; }
.hero__line + .hero__line { color: var(--ink-3); }
.hero__lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 34em; margin-bottom: var(--s4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s3); }
.hero__assure { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 1rem; margin: 0; }
.hero__assure svg { color: var(--relief); }

/* statement sheet */
.stmt { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sheet); padding: var(--s4); font-variant-numeric: tabular-nums; position: relative; }
.stmt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); }
.stmt__head strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; }
.stmt__head span { color: var(--muted); font-size: .95rem; }
.stmt__replay { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--muted); }
.stmt__replay:hover { color: var(--ink); border-color: var(--ink); }
.stmt__rows { list-style: none; margin: 0; padding: 0; }
.stmt__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 1.05rem; transition: opacity var(--t-med) var(--ease-out); }
.stmt__row span { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stmt__row b { color: var(--debt); font-weight: 600; position: relative; white-space: nowrap; }
.stmt__row b::before { content: "−"; }
.stmt__row b::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease-out); }
.stmt__row.is-cleared { opacity: .42; }
.stmt__row.is-cleared b::after { transform: scaleX(1); }
.flag { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--debt); background: var(--debt-soft); padding: 2px 8px; border-radius: 999px; letter-spacing: .01em; }
.stmt__plan { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s2); padding: 14px 16px; border-radius: var(--r-md); background: var(--relief-soft); color: var(--relief); font-weight: 600; font-size: 1.05rem; }
.stmt__plan span { display: inline-flex; align-items: center; gap: 8px; }
.stmt__plan b { white-space: nowrap; }
.stmt__plan b::before { content: "−"; }
.stmt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s2); padding-top: var(--s2); border-top: 2px solid var(--ink); }
.stmt__total > span { font-weight: 600; color: var(--ink); }
.stmt__total b { white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 2.25rem; letter-spacing: -.03em; color: var(--debt); }
.stmt.is-done .stmt__total b { color: var(--relief); }
.stmt__note { margin-top: var(--s2); font-size: .85rem; color: var(--muted); }

/* proof */
.proof { background: var(--white); border-bottom: 1px solid var(--line); }
.proof__list { list-style: none; margin: 0 auto; padding: var(--s4) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.proof__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--muted); line-height: 1.45; }
.proof__list svg { color: var(--ink); width: 26px; height: 26px; margin-top: 1px; }
.proof__list strong { color: var(--ink); font-weight: 600; }

/* section scaffolding */
.sec { padding: var(--s8) 0; }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec--ink .sec__title, .sec--ink h3 { color: #fff; }
.sec--ink .sec__lede { color: var(--on-ink-muted); }
.sec__title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: var(--s2); max-width: 18ch; }
.sec__lede { font-size: 1.2rem; color: var(--muted); max-width: 65ch; margin-bottom: var(--s5); }

/* what changes */
.change { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4) var(--s6); align-items: start; }
.change__head { grid-column: 1 / -1; }
.change__head .sec__lede { margin-bottom: 0; }
.change__photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.ledger { border-top: 2px solid var(--ink); }
.ledger__head, .ledger__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.ledger__head { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.ledger__row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.ledger__row span { position: relative; padding-left: 30px; line-height: 1.5; }
.ledger__row span::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: center / 12px no-repeat; }
.ledger__row span:first-child { color: var(--muted); }
.ledger__row span:first-child::before { background-color: var(--debt-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c21f37' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.ledger__row span:last-child { color: var(--text); font-weight: 600; }
.ledger__row span:last-child::before { background-color: var(--relief-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7556' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* process */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.process__intro { position: sticky; top: 112px; }
.process__intro .sec__lede { margin-bottom: var(--s4); }
.process__photo { margin-top: var(--s5); }
.process__photo img { border-radius: var(--r-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s5) 88px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: #fff; background: var(--ink); z-index: 1; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line-ink); }
.steps h3 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 8px; font-weight: 500; }
.steps p { color: var(--on-ink-muted); margin: 0; max-width: 34em; }
.steps > li.steps__end { padding-bottom: 0; }
.steps > li.steps__end::before { background: var(--relief); border-color: var(--relief); }
.steps__photo { margin-top: var(--s3); border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; width: 100%; }

/* calculator */
.calc { display: grid; gap: var(--s5); }
.calc__intro .sec__lede { margin-bottom: 0; }
.calc__panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.calc__inputs { padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.slider { display: block; }
.slider__top { display: flex; justify-content: space-between; gap: var(--s2); margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.slider output { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--p) 100% no-repeat, var(--line); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 8px rgba(15, 30, 69, .25); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(37, 99, 235, .45); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(37, 99, 235, .45); }
.calc__out { background: var(--white); padding: var(--s5); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: var(--s2); }
.bar { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: var(--s2); }
.bar__label { font-weight: 600; color: var(--muted); font-size: 1rem; }
.bar__track { height: 40px; background: var(--paper); border-radius: 8px; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 8px; transform-origin: left; transform: scaleX(var(--s, 0)); transition: transform 300ms var(--ease-out); }
.bar__fill--debt { background: var(--debt); }
.bar__fill--plan { background: var(--relief); }
.bar b { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); min-width: 5.5ch; text-align: right; }
.calc__save { font-size: 1.25rem; margin: 0; color: var(--ink); }
.calc__save strong { font-family: var(--display); color: var(--relief); font-size: 1.6rem; font-weight: 600; white-space: nowrap; }
.calc__status { margin: 0; padding: 14px 16px; border-radius: var(--r-md); font-size: 1rem; font-weight: 600; background: var(--paper); color: var(--ink); border-left: 4px solid var(--ink-3); }
.calc__status.warn { background: var(--debt-soft); color: #8d1427; border-left-color: var(--debt); }
.calc__status.ok { background: var(--relief-soft); color: #075a42; border-left-color: var(--relief); }
.calc__out .btn { align-self: flex-start; }
.fine { font-size: .85rem; color: var(--muted); margin: 0; }

/* services */
.svc { border-top: 2px solid var(--ink); }
.svc__group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.svc__heading { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.3; font-weight: 500; max-width: 16ch; }
.svc ul { list-style: none; margin: 0; padding: 0; }
.svc li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 18px 0; border-top: 1px solid var(--line); }
.svc li:first-child { border-top: 0; padding-top: 0; }
.svc li strong { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }
.svc li p { margin: 0; color: var(--muted); max-width: 40em; }
.ask { flex: none; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--ink); }
.ask:hover { border-color: var(--ink); }

/* Q */
.q { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.q__list { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s2); }
.q__list li { display: flex; gap: 14px; align-items: flex-start; }
.q__list svg { color: var(--ink); margin-top: 3px; }
.q__demo { position: relative; }
.q__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); }
.q__thread { position: absolute; left: -40px; right: 40px; bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.q__bubble { max-width: 86%; background: var(--white); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 16px; font-size: 1rem; line-height: 1.45; box-shadow: var(--shadow-float); }
.q__bubble--me { align-self: flex-end; background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.q__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.q__chips span { background: var(--white); border: 1.5px solid var(--gold); color: var(--gold-hover); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-float); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
.about__photo img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; width: 100%; }
.about__body p { max-width: 68ch; color: var(--muted); }
.about__facts { margin: var(--s4) 0 0; border-top: 2px solid var(--ink); }
.about__facts div { display: grid; grid-template-columns: 180px 1fr; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--line); }
.about__facts dt { font-weight: 600; color: var(--ink); }
.about__facts dd { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 880px; }
.faq__list { border-top: 2px solid var(--ink); margin-top: var(--s5); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 72px; padding: 16px 0; font-family: var(--display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1e45' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 68ch; padding-bottom: var(--s3); margin: 0; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.contact .sec__lede { margin-bottom: var(--s4); }
.contact__list { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s2); }
.contact__list li { display: flex; gap: 14px; align-items: center; font-size: 1.1rem; }
.contact__list svg { color: var(--on-ink-muted); }
.contact__list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__alt { color: var(--on-ink-muted); margin: 0 0 12px; }
.contact .btn--line-light { margin-bottom: var(--s5); }
.contact__photo img { border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.contact__photo figcaption { margin-top: 10px; font-size: .95rem; color: var(--on-ink-muted); }
.form { background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-float); }
.form h3 { color: var(--ink); font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: var(--s3); }
.field { display: block; margin-bottom: var(--s3); }
.field > span { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 1rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid #c3ccdb; border-radius: var(--r-sm); background: var(--white); color: var(--text); font: inherit; font-size: 1.05rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.field input[aria-invalid="true"] { border-color: var(--debt); }
.field__help { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }
.field__err { display: block; color: var(--debt); font-size: .92rem; font-weight: 600; margin-top: 6px; }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--muted); margin-bottom: var(--s3); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form__msg { margin: var(--s2) 0 0; font-weight: 600; }
.form__msg:empty { display: none; }
.form__msg.ok { color: var(--relief); }
.form__msg.err { color: var(--debt); }

/* footer */
.ftr { background: #0a1533; color: var(--on-ink-muted); padding: var(--s6) 0 var(--s5); font-size: 1rem; }
.ftr__in { display: grid; grid-template-columns: 1fr auto; gap: var(--s4) var(--s5); align-items: start; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--on-ink); }
.ftr ul a:hover { text-decoration: underline; }
.ftr p { margin: var(--s2) 0 0; }
.ftr__legal { grid-column: 1 / -1; border-top: 1px solid var(--line-ink); padding-top: var(--s3); font-size: .9rem; }

/* floating actions */
.fab { position: fixed; right: 24px; z-index: var(--z-fab); display: grid; place-items: center; border: 0; border-radius: 50%; box-shadow: var(--shadow-float); transition: transform var(--t-fast) var(--ease-out); text-decoration: none; }
.fab:hover { transform: translateY(-2px); }
.fab--chat { bottom: 24px; width: 64px; height: 64px; background: var(--gold); color: #fff; border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-float); }
.fab--chat:hover { background: var(--gold-hover); }
.fab--chat svg { width: 28px; height: 28px; }
.fab--call { bottom: 100px; width: 52px; height: 52px; right: 30px; background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.fab--call.is-wa { background: #1f9d55; color: #fff; border-color: transparent; }
.fab .i--close { display: none; }
.fab[aria-expanded="true"] .i--open { display: none; }
.fab[aria-expanded="true"] .i--close { display: block; }
.fab__badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; }
.fab__badge[hidden] { display: none; }

/* chat */
.chat { position: fixed; right: 24px; bottom: 104px; z-index: var(--z-chat); width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 128px)); display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); box-shadow: 0 2px 6px rgba(15, 30, 69, .06), 0 24px 56px -12px rgba(15, 30, 69, .08); border: 1px solid var(--line); overflow: hidden; transform-origin: 100% 100%; animation: chat-in 200ms var(--ease-out); }
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; flex: none; }
.chat__who strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.chat__who small { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--on-ink-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.chat__close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.chat__close:hover { background: rgba(255, 255, 255, .2); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 1rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; animation: msg-in 200ms var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg--bot { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg a { color: var(--ink-3); font-weight: 600; }
.msg b { color: var(--ink); }
.msg--card { white-space: normal; border: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.msg--card h4 { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: 0 0 8px; color: var(--ink); }
.msg--card .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.msg--card .row span { color: var(--muted); }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8b97ad; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px 10px; background: var(--paper); }
.chat__chips:empty { display: none; }
.chat__chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--gold); background: var(--white); color: var(--gold-hover); font-weight: 600; font-size: .92rem; }
.chat__chips button:hover { background: var(--gold); color: #fff; }
.chat__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__input input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid #c3ccdb; border-radius: 999px; font: inherit; font-size: 1rem; }
.chat__input input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.chat__input button { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; }
.chat__input button:hover { background: var(--gold-hover); }
.chat__fine { margin: 0; padding: 0 14px 10px; font-size: .8rem; color: var(--muted); text-align: center; }

/* responsive */
@media (max-width: 1279.98px) {
  .hero__grid, .process, .q, .about, .contact { gap: var(--s5); }
  .hero__title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
  .menu a { padding: 0 10px; }
  .hdr__phone span { display: none; }
  .proof__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023.98px) and (min-width: 768px) {
  .menu-btn { display: inline-flex; }
  .menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .menu.is-open { display: flex; }
  .menu a { min-height: 52px; }
  .proof__list { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .stmt { max-width: 600px; }
}
@media (max-width: 767.98px) {
  .sec { padding: var(--s7) 0; }
  .hero { padding: var(--s5) 0 var(--s6); }
  .hero__grid, .change, .process, .q, .about, .contact, .calc__panel, .svc__group { grid-template-columns: 1fr; }
  .hero__grid, .process, .q, .about, .contact { gap: var(--s5); }
  .process__intro { position: static; }
  .change__photo { order: 2; }
  .change__photo img, .about__photo img { aspect-ratio: 3 / 2; }
  .calc__out { border-left: 0; border-top: 1px solid var(--line); }
  .svc__group { gap: var(--s2); }
  .q__thread { left: 16px; right: 16px; }
  .q__photo { aspect-ratio: 4 / 5; }
  .menu-btn { display: inline-flex; }
  .menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgba(15, 30, 69, .08); display: none; }
  .menu.is-open { display: flex; }
  .menu a { min-height: 52px; }
}
@media (max-width: 767.98px) {
  body { font-size: 1.0625rem; }
  .wrap { width: min(1200px, 100% - 32px); }
  .hdr__actions .btn { display: none; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero__cta .btn { width: 100%; }
  .stmt { padding: var(--s3); }
  .stmt__total b { font-size: 1.9rem; }
  .proof__list { grid-template-columns: 1fr; gap: var(--s2); }
  .ledger__head { display: none; }
  .ledger__row { grid-template-columns: 1fr; gap: 10px; }
  .calc__inputs, .calc__out, .form { padding: var(--s3); }
  .bar { grid-template-columns: 76px 1fr auto; gap: 10px; }
  .svc li { flex-direction: column; align-items: flex-start; gap: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .about__facts div { grid-template-columns: 1fr; gap: 2px; }
  .steps > li { padding-left: 72px; }
  .ftr__in { grid-template-columns: 1fr; }
  .fab { right: 16px; }
  .fab--call { right: 22px; }
  .chat { right: 12px; bottom: 96px; height: calc(100dvh - 112px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
