:root {
  color-scheme: light dark;
  --canvas: #f3f7f8;
  --canvas-alt: #e9f0f2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #09233a;
  --ink-strong: #051725;
  --muted: #506577;
  --line: #cad7dc;
  --line-strong: #9eb2ba;
  --deep: #071a2a;
  --deep-raised: #0d283d;
  --deep-text: #f4f9fb;
  --deep-muted: #b8c8d2;
  --accent: #2bcac4;
  --accent-strong: #006b70;
  --signal: #ffb84d;
  --danger: #c53a46;
  --success: #167a65;
  --shadow-sm: 0 1px 2px rgba(5, 23, 37, 0.08), 0 10px 30px rgba(5, 23, 37, 0.06);
  --shadow-lg: 0 24px 70px rgba(5, 23, 37, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(7, 26, 42, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(7, 26, 42, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 55%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-strong);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 26, 42, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: auto; object-fit: contain; }
.brand-logo-header { height: 46px; max-width: 210px; }
.nav { display: flex; align-items: center; gap: 8px; color: var(--deep-text); font-size: 14px; font-weight: 650; }
.nav > a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 9px; transition: color 0.18s ease, background-color 0.18s ease; }
.nav > a:not(.btn):hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.nav > a[aria-current="page"]:not(.btn) { color: var(--accent); background: rgba(43, 202, 196, 0.1); }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  color: white;
  font-size: 0;
  cursor: pointer;
}
.nav-toggle::before,
.nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 6px auto; background: currentColor; transition: transform 0.18s ease; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-4px) rotate(-45deg); }

.btn {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--deep);
  font: inherit;
  font-weight: 820;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(43, 202, 196, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); background: #51d8d2; box-shadow: 0 14px 30px rgba(43, 202, 196, 0.24); }
.btn:active { transform: translateY(0); box-shadow: 0 5px 16px rgba(43, 202, 196, 0.16); }
.btn-secondary { border-color: rgba(255, 255, 255, 0.3); background: transparent; color: var(--deep-text); box-shadow: none; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.5); }
.btn-small { min-height: 42px; padding-inline: 16px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-strong); text-wrap: balance; }
h1 { max-width: 920px; margin-bottom: 22px; font-size: clamp(2.75rem, 5.2vw, 5.1rem); font-weight: 820; line-height: 0.98; letter-spacing: -0.052em; overflow-wrap: break-word; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.043em; }
h3 { margin-bottom: 10px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.018em; }
p { margin-bottom: 1em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.muted, .form-note { color: var(--muted); font-size: 0.875rem; }

.hero, .page-hero { position: relative; overflow: hidden; background: var(--deep); color: var(--deep-text); }
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(43, 202, 196, 0.17), transparent 28%),
    linear-gradient(115deg, transparent 58%, rgba(255, 255, 255, 0.035) 58%, rgba(255, 255, 255, 0.035) 58.5%, transparent 58.5%);
  pointer-events: none;
}
.hero { padding: clamp(76px, 9vw, 126px) 0 clamp(72px, 9vw, 116px); }
.page-hero { padding: clamp(64px, 7vw, 94px) 0 clamp(52px, 6vw, 76px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.72fr); gap: clamp(42px, 7vw, 88px); align-items: center; }
.hero h1, .hero h2, .page-hero h1 { color: var(--deep-text); }
.hero p, .page-hero p { max-width: 760px; color: var(--deep-muted); font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }
.hero-tagline { color: var(--accent) !important; font-size: clamp(1.12rem, 2vw, 1.35rem) !important; font-weight: 760; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(13, 40, 61, 0.84);
  color: var(--deep-text);
  box-shadow: var(--shadow-lg);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 34%;
  height: 2px;
  background: var(--accent);
  box-shadow: 58px 0 0 rgba(43, 202, 196, 0.35), 108px 0 0 rgba(43, 202, 196, 0.14);
}
.hero-card h2 { color: var(--deep-text); font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -0.035em; }
.diagnostic-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--deep-muted); font: 700 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.diagnostic-status strong { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font: inherit; }
.diagnostic-status strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(43,202,196,.12); }

.section { padding: clamp(74px, 8vw, 110px) 0; }
.section-light { background: var(--surface); color: var(--ink); }
.section-dark { background: var(--deep); color: var(--deep-text); }
.section-dark h2, .section-dark h3 { color: var(--deep-text); }
.section-dark p { color: var(--deep-muted); }
.section-heading { max-width: 780px; margin-bottom: 44px; }
.section-heading p, .section-light p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(42px, 8vw, 104px); align-items: start; }

.card, .offer-main, .contact-form, details, .article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}
.card { position: relative; min-height: 100%; padding: 28px; }
.card::before { content: ""; position: absolute; top: 0; left: 28px; width: 38px; height: 3px; background: var(--accent); }
.card p, .article-card p { color: var(--muted); }
.card a, .article-card a { color: var(--accent-strong); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card a:hover, .article-card a:hover { text-decoration: underline; }
.section-dark .card { border-color: rgba(255,255,255,.13); background: var(--deep-raised); box-shadow: none; }
.section-dark .card p { color: var(--deep-muted); }
.pill { display: inline-flex; margin-bottom: 14px; padding: 6px 10px; border: 1px solid #a4dcd9; border-radius: 999px; background: #e5f8f7; color: #075d60; font: 800 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.price { margin-bottom: 16px; color: var(--accent-strong); }
.price strong { font-size: 2rem; }

.check-list { margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 0; padding: 11px 0 11px 31px; border-top: 1px solid rgba(202, 215, 220, 0.55); color: var(--ink); }
.check-list li::before { content: ""; position: absolute; top: 18px; left: 3px; width: 10px; height: 6px; border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }
.hero-card .check-list li { border-color: rgba(255,255,255,.1); color: #dce7ec; }
.hero-card .check-list li::before { border-color: var(--accent); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.step { counter-increment: step; position: relative; padding: 28px 24px 0 0; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 6px var(--canvas); }
.step span { display: inline-block; margin-bottom: 38px; color: var(--accent-strong); font: 800 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.step p { color: var(--muted); font-size: 0.92rem; }
.section-dark .steps { border-color: rgba(255,255,255,.24); }
.section-dark .step::before { background: var(--accent); box-shadow: 0 0 0 6px var(--deep); }

.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(30px, 5vw, 52px); border: 1px solid rgba(43,202,196,.38); border-radius: var(--radius-lg); background: var(--deep); color: var(--deep-text); box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 260px; height: 260px; border: 1px solid rgba(43,202,196,.2); border-radius: 50%; box-shadow: 0 0 0 48px rgba(43,202,196,.04), 0 0 0 96px rgba(43,202,196,.025); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 760px; color: var(--deep-text); font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-band .muted { color: var(--deep-muted); }

.breadcrumbs { margin-bottom: 18px; color: var(--deep-muted); font-size: 0.82rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--deep-text); }
table { display: table; width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); border-collapse: separate; border-spacing: 0; background: var(--surface); box-shadow: var(--shadow-sm); }
th, td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; }
tr:last-child td { border-bottom: 0; }
th { background: #e8f4f4; color: #075d60; font: 800 0.76rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .07em; text-transform: uppercase; }
td { color: var(--ink); }
details { margin-bottom: 12px; padding: 20px 22px; }
details[open] { border-color: #79c9c6; }
summary { min-height: 28px; cursor: pointer; font-weight: 800; }
details p { margin: 14px 0 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(42px, 8vw, 92px); }
.contact-form { padding: clamp(24px, 4vw, 38px); }
.contact-form label { color: var(--ink-strong); font-size: 0.9rem; font-weight: 750; }
.form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.optional { color: var(--muted); font-size: .78rem; font-weight: 500; }
input, textarea { width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .88; }
textarea { resize: vertical; }
input:hover, textarea:hover { border-color: #6d8994; }
input:focus, textarea:focus { border-color: var(--accent-strong); outline: 3px solid rgba(43,202,196,.28); outline-offset: 1px; }
.form-status { min-height: 1.6em; margin-top: 14px; color: var(--success); font-weight: 700; }
.field-hint { color: var(--muted); font-size: .8rem; }
.field-error { min-height: 1.15em; color: var(--danger); font-size: .82rem; font-weight: 700; }
[aria-invalid="true"] { border-color: var(--danger); }
[aria-invalid="true"]:focus { border-color: var(--danger); outline-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.checkbox-label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 500 !important; }
.checkbox-label input { width: 22px; height: 22px; min-height: 22px; margin: 1px 0 0; accent-color: var(--accent-strong); }
.checkbox-label a { color: var(--accent-strong); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.submit-button { min-width: 184px; }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-button.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: contact-spin .7s linear infinite; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
@keyframes contact-spin { to { transform: rotate(360deg); } }
.article-list { display: grid; gap: 16px; }
.article-card { padding: 26px; }
.article-card small { color: var(--accent-strong); font: 800 0.72rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.knowledge-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.knowledge-intro { position: sticky; top: 104px; }
.knowledge-list { margin: 0; padding: 0; list-style: none; counter-reset: knowledge; }
.knowledge-list li { counter-increment: knowledge; display: grid; grid-template-columns: 46px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.knowledge-list li::before { content: counter(knowledge, decimal-leading-zero); grid-row: 1 / span 2; color: var(--accent-strong); font: 800 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.knowledge-list strong { color: var(--ink-strong); font-size: 1.05rem; }
.knowledge-list span { color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.legal-summary { position: sticky; top: 104px; }
.legal-summary h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
.legal-content { max-width: 760px; }
.legal-content section { padding: 0 0 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 12px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }
.legal-content a { color: var(--accent-strong); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { color: var(--muted); font-size: .86rem; }

footer { padding: 48px 0; border-top: 1px solid rgba(255,255,255,.1); background: #04111c; color: var(--deep-text); }
.footer-grid { display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; gap: 38px; align-items: center; }
.footer-brand { margin-bottom: 10px; }
.brand-logo-footer { height: 108px; max-width: 190px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; color: #d6e0e6; font-size: 0.86rem; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy, footer p { margin: 0; color: #99acb9; font-size: 0.82rem; }

@media (prefers-color-scheme: dark) {
  :root { --canvas: #071a2a; --canvas-alt: #0a2235; --surface: #0c263a; --surface-raised: #102d43; --ink: #e9f1f5; --ink-strong: #f7fbfd; --muted: #b7c7d1; --line: #29465a; --line-strong: #446276; --accent-strong: #53ddd6; --shadow-sm: 0 12px 34px rgba(0,0,0,.18); }
  body::before { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); }
  .section-light { background: #091f31; }
  .pill { border-color: #256c6d; background: #0d393f; color: #82e9e3; }
  .card::before { background: var(--accent); }
  .step::before { background: var(--accent); box-shadow: 0 0 0 6px var(--canvas); }
  th { background: #123943; color: #8de9e4; }
  .card a, .article-card a, .price, .eyebrow { color: var(--accent-strong); }
  input, textarea { background: #071a2a; }
}

@media (max-width: 980px) {
  .container { width: min(100% - 36px, var(--container)); }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 78px; left: 0; right: 0; display: grid; gap: 4px; padding: 16px 18px 22px; border-bottom: 1px solid rgba(255,255,255,.14); background: rgba(7,26,42,.985); box-shadow: 0 20px 42px rgba(0,0,0,.22); transform: translateY(-12px); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .nav.open { transform: translateY(0); visibility: visible; opacity: 1; pointer-events: auto; }
  .nav > a { min-height: 48px; padding-inline: 14px; }
  .nav .btn { margin-top: 6px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 680px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 5px; }
  .step { padding: 0 0 30px 30px; }
  .step::before { top: 8px; left: -5px; }
  .step span { margin-bottom: 12px; }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 42px; }
  .hero h1 { font-size: clamp(3.2rem, 5vw, 4.15rem); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-wrap { min-height: 76px; }
  .brand-logo-header { height: 48px; max-width: 210px; }
  .nav { top: 76px; }
  h1 { font-size: clamp(2.35rem, 7vw, 2.8rem); overflow-wrap: anywhere; hyphens: auto; }
  .hero { padding-top: 64px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 22px; border-radius: 22px; }
  .grid-3, .grid-2, .split, .contact-grid, .knowledge-layout, .legal-layout { grid-template-columns: 1fr; }
  .knowledge-intro, .legal-summary { position: static; }
  .section { padding: 68px 0; }
  .cta-band { align-items: stretch; flex-direction: column; }
  .cta-band .btn { width: 100%; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .brand-logo-footer { height: 92px; }
}

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

@media print {
  .site-header, .nav-toggle, footer, .hero-actions, .cta-band .btn { display: none !important; }
  body, .hero, .page-hero, .section-dark { background: white !important; color: black !important; }
  h1, h2, h3, .hero h1, .hero h2, .page-hero h1 { color: black !important; }
  .section { padding: 28px 0; }
}
