:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --paper-soft: #fbfaf7;
  --ink: #1c2528;
  --muted: #66777b;
  --line: #e5ded3;
  --brand: #183c45;
  --brand-2: #315e62;
  --accent: #b9824c;
  --accent-2: #e8d5bf;
  --success: #2f7b5f;
  --shadow: 0 24px 70px rgba(24, 60, 69, .13);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;

  /* Web-design typography scale: body stays readable, headings stop dominating. */
  --text-xs: .8125rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --text-h3: clamp(1.125rem, 1.35vw, 1.25rem);
  --text-h2: clamp(1.625rem, 2.55vw, 2.25rem);
  --text-h1: clamp(2rem, 3.7vw, 3rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: var(--text-base);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 14px; background: var(--brand); color: #fff; border-radius: 999px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); background: rgba(247,244,238,.9); border-bottom: 1px solid rgba(229,222,211,.75); }
.header__inner { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-weight: 800; letter-spacing: .03em; box-shadow: 0 10px 28px rgba(24,60,69,.22); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 190px; }
.brand__text strong { font-size: 16px; }
.brand__text small { color: var(--muted); font-size: 12px; }
.main-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.main-nav a { padding: 10px 12px; border-radius: 999px; color: #334246; text-decoration: none; font-size: 15px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { background: #ede6dc; color: var(--brand); outline: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.text-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--brand); border-radius: 999px; }
.section { padding: 78px 0; }
.section--soft { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.2)); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: var(--text-xs); }
h1, h2, h3, h4 { line-height: 1.16; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { max-width: 17ch; font-size: var(--text-h1); letter-spacing: -.034em; }
h2 { max-width: 20ch; font-size: var(--text-h2); letter-spacing: -.026em; }
h3 { font-size: var(--text-h3); letter-spacing: -.015em; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-top: 22px; }
p { margin: 0; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--text-md); margin-top: 14px; max-width: 64ch; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center h2, .section-head--center p:not(.eyebrow) { margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 12px 32px rgba(24,60,69,.2); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 16px 38px rgba(24,60,69,.28); background: #214f58; outline: none; }
.btn--secondary { background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.btn--secondary:hover { background: #f8f2ea; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.btn--small { min-height: 42px; padding: 10px 16px; font-size: 15px; }
.hero { padding: 66px 0 78px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(184,130,76,.22), transparent 65%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: 42px; align-items: center; position: relative; }
.hero__lead { margin-top: 20px; color: #405155; max-width: 62ch; font-size: var(--text-lg); line-height: 1.58; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facts li { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.facts strong, .facts span { display: block; }
.facts strong { color: var(--brand); font-size: var(--text-md); line-height: 1.2; }
.facts span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.hero-card { background: rgba(255,255,255,.82); border: 1px solid rgba(229,222,211,.9); border-radius: 34px; padding: 16px; box-shadow: var(--shadow); }
.portrait { background: linear-gradient(145deg, #eef1ee, #d9e0dd); border-radius: 26px; overflow: hidden; }
.hero-card__body { padding: 22px 6px 4px; }
.quote { font-size: var(--text-lg); line-height: 1.35; font-weight: 800; color: var(--brand); }
.mini-stats { display: grid; gap: 14px; margin: 18px 0 0; }
.mini-stats div { border-top: 1px solid var(--line); padding-top: 12px; }
.mini-stats dt { color: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.mini-stats dd { margin: 4px 0 0; color: var(--muted); }
.situations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.situation-card { min-height: 210px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 42px rgba(24,60,69,.06); display: flex; flex-direction: column; justify-content: space-between; }
.situation-card--wide { grid-column: span 2; }
.situation-card span { color: var(--accent); font-weight: 900; }
.situation-card p { font-size: var(--text-md); font-weight: 700; line-height: 1.4; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 16px 50px rgba(24,60,69,.06); display: flex; flex-direction: column; }
.service-card--primary { grid-column: span 2; background: linear-gradient(145deg, #fff, #f6eee4); border-color: #e4ceb8; }
.service-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: var(--accent-2); color: #744d27; font-size: 13px; font-weight: 800; }
.badge--muted { background: #edf0ef; color: var(--brand); }
.service-card__icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 24px; }
.service-card p { color: var(--muted); margin-top: 12px; }
.card-link { margin-top: auto; padding-top: 22px; color: var(--brand); font-weight: 900; text-decoration: none; }
.card-link::after { content: " →"; }
.risk { background: var(--brand); color: #fff; }
.risk h2, .risk h3, .risk p, .risk .eyebrow { color: #fff; }
.risk p { color: rgba(255,255,255,.78); margin: 18px 0 26px; max-width: 680px; }
.risk__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 40px; align-items: center; }
.risk-list { display: grid; gap: 14px; }
.risk-list article { display: flex; gap: 18px; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 18px; }
.risk-list span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.12); color: #f0d1ab; font-weight: 900; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; min-height: 250px; }
.steps span { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px; background: var(--accent-2); color: #754d28; font-weight: 900; font-size: 22px; }
.steps p { color: var(--muted); margin-top: 12px; }
.lead-magnet { background: linear-gradient(135deg, #eadbc9, #f8f4ed); }
.lead-magnet__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr); gap: 34px; align-items: center; }
.lead-magnet p:not(.eyebrow) { color: #526469; margin-top: 16px; font-size: var(--text-md); max-width: 64ch; }
.mini-form, .contact-form, .quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
label { display: grid; gap: 8px; color: #334246; font-weight: 750; }
label span { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #d9d2c7; border-radius: 14px; padding: 13px 14px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(49,94,98,.12); }
input[type="radio"], input[type="checkbox"] { width: auto; }
.checkbox { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 14px; font-weight: 500; }
.checkbox input { margin-top: 4px; }
.form-note, .small-note { color: var(--muted); font-size: 14px; line-height: 1.45; }
.form-status { margin-top: 12px; color: var(--success); font-weight: 700; }
.about__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr); gap: 34px; align-items: start; }
.about__grid p { color: var(--muted); margin-top: 16px; }
.trust-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trust-grid span { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-weight: 750; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 42px rgba(24,60,69,.06); }
.check-list { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: #405155; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px #f2dfc9; }
.check-list--muted li::before { background: var(--brand-2); box-shadow: inset 0 0 0 4px #dfe8e7; }
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-card p { margin-top: 14px; color: var(--muted); }
.prices { background: #fffaf2; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1eadf; color: var(--brand); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
td:nth-child(2) { font-weight: 900; color: var(--brand); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.quiz-section { background: linear-gradient(180deg, var(--brand), #244c54); color: #fff; }
.quiz-section h2, .quiz-section h3, .quiz-section p, .quiz-section .eyebrow { color: #fff; }
.quiz-section .check-list li { color: rgba(255,255,255,.82); }
.quiz__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(340px, .72fr); gap: 36px; align-items: start; }
.quiz { color: var(--ink); }
.quiz fieldset { display: none; border: 0; padding: 0; margin: 0; }
.quiz fieldset.is-active { display: grid; gap: 14px; }
.quiz legend { font-weight: 900; font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.25; margin-bottom: 14px; color: var(--brand); }
.quiz fieldset label:not(.checkbox) { grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; }
.quiz fieldset label:has(input[type="text"]), .quiz fieldset label:has(textarea), .quiz fieldset label:has(input[type="file"]) { display: grid; grid-template-columns: 1fr; align-items: stretch; }
.quiz__progress { height: 8px; background: #e9e1d6; border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.quiz__progress span { display: block; height: 100%; width: 16.6%; background: var(--accent); transition: width .25s; }
.quiz__controls { display: flex; gap: 12px; justify-content: space-between; margin-top: 22px; }
.quiz [data-quiz-submit] { display: none; }
.quiz.is-last [data-quiz-next] { display: none; }
.quiz.is-last [data-quiz-submit] { display: inline-flex; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .48fr) minmax(0, .72fr); gap: 36px; }
.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 850; color: var(--brand); }
details p { color: var(--muted); padding: 0 0 18px; }
.contacts { background: #fff; }
.contacts__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(340px, .58fr); gap: 38px; align-items: start; }
.contacts p { color: var(--muted); margin-top: 16px; }
.contact-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-cards a { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: var(--paper-soft); border: 1px solid var(--line); text-decoration: none; }
.contact-cards span { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.contact-cards strong { color: var(--brand); }
.contact-form { display: grid; gap: 16px; }
.contact-form h3 { color: var(--brand); }
.site-footer { padding: 48px 0; background: #142f36; color: rgba(255,255,255,.76); }
.footer__grid { display: grid; grid-template-columns: minmax(0, .9fr) auto auto; gap: 38px; align-items: start; }
.brand--footer .brand__mark { background: rgba(255,255,255,.14); box-shadow: none; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: rgba(255,255,255,.62); }
.site-footer p { margin-top: 16px; max-width: 620px; font-size: 14px; }
.site-footer nav { display: grid; gap: 8px; }
.site-footer a { color: #fff; }
.footer__legal { text-align: right; }
.cookie { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 110; width: min(960px, calc(100% - 24px)); padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.cookie p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.cookie .btn { flex: 0 0 auto; box-shadow: none; }
.cookie[hidden] { display: none; }
@media (max-width: 1100px) {
  .header-actions .text-link { display: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--primary { grid-column: span 2; }
  .situations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .header__inner { min-height: 68px; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { position: fixed; top: 69px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px; }
  .header-actions { display: none; }
  .hero__grid, .risk__grid, .lead-magnet__grid, .about__grid, .quiz__grid, .faq__grid, .contacts__grid, .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
  .hero { padding-top: 48px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 52px 0; }
  h1 { max-width: none; font-size: clamp(2rem, 8.2vw, 2.75rem); letter-spacing: -.032em; }
  h2 { max-width: none; font-size: clamp(1.625rem, 6.6vw, 2.125rem); letter-spacing: -.026em; }
  h3 { font-size: 1.1875rem; }
  .hero__lead, .section-head p:not(.eyebrow), .lead-magnet p:not(.eyebrow) { font-size: 1rem; line-height: 1.6; }
  .facts, .services-grid, .situations-grid, .steps, .cases-grid, .trust-grid, .contact-cards { grid-template-columns: 1fr; }
  .service-card--primary, .situation-card--wide { grid-column: auto; }
  .hero__cta, .quiz__controls { flex-direction: column; }
  .btn { width: 100%; }
  .brand__text { min-width: 0; }
  .brand__text small { display: none; }
  .hero-card { border-radius: 26px; }
  .mini-form, .contact-form, .quiz { padding: 18px; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
