:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-2: #eef0fe;
  --text: #0f1238;
  --text-2: #4b5075;
  --line: #e2e4f6;
  --accent: #4f46e5;
  --accent-2: #9333ea;
  --accent-ink: #ffffff;
  --accent-soft: #eceafd;
  --highlight: #22d3ee;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #9333ea 100%);
  --logo-1: #4f46e5;
  --logo-2: #9333ea;
  --logo-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 18, 56, .05), 0 10px 30px rgba(79, 70, 229, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d24;
    --surface: #13163a;
    --surface-2: #1a1e4a;
    --text: #eef0ff;
    --text-2: #a5a9d0;
    --line: #262b5c;
    --accent: #818cf8;
    --accent-2: #c084fc;
    --accent-ink: #0b0d24;
    --accent-soft: #1d1f52;
    --grad: linear-gradient(135deg, #818cf8 0%, #a78bfa 60%, #c084fc 100%);
    --logo-1: #818cf8;
    --logo-2: #c084fc;
    --logo-ink: #0b0d24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; }
.wordmark { font-family: var(--mono); font-weight: 700; letter-spacing: -.04em; }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.curs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.curs[hidden] { display: none; }
.curs button { border: 0; background: none; font: inherit; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.curs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 860px) { .curs { margin-left: auto; } .curs:not([hidden]) + .langs { margin-left: 0; } }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langs a { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 860px) { .nav { display: none; } .langs { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(79, 70, 229, .28); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-sm { padding: 8px 16px; font-size: 15px; }

/* Sections */
section { padding: 88px 0; scroll-margin-top: 64px; }
section + section { border-top: 1px solid var(--line); }
@media (max-width: 600px) { section { padding: 56px 0; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 19px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 640px; margin: 0; }
.head { margin-bottom: 40px; }

/* Hero */
.hero { padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero-solo > * { max-width: 820px; }
.hero-solo .lead { max-width: 680px; }
.hero h1 { margin-bottom: 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.card-id {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow);
}
.card-id .who { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: 50% 20%;
  background: var(--accent-soft); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}
.who-bottom { margin: 18px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line); }
.who strong { display: block; font-size: 18px; }
.who span { color: var(--text-2); font-size: 14px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Hero headline: second line in accent */
.hero h1 span { display: block; color: var(--accent); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: .55em; line-height: 1.25; margin-top: 14px; letter-spacing: -.015em; }

/* How it works */
.sol-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.sol-icon svg { width: 26px; height: 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--text); }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.steps p { margin: 6px 0 0; color: var(--text-2); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Solutions */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.chip svg { width: 18px; height: 18px; color: var(--accent); }
.chip:hover { border-color: var(--accent); }
.sol { padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.sol-info { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 48px; margin-bottom: 28px; }
.sol-info > .sol-icon, .sol-info > .aud, .sol-info > h3, .sol-info > .sol-tag, .sol-info > p:not(.sol-note) { grid-column: 1; }
.sol-info > .points, .sol-info > .sol-note { grid-column: 2; }
.sol-info > .points { grid-row: 1 / span 5; align-self: end; margin: 0; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sol-info > .sol-note { grid-row: 6; margin-top: 10px; }
@media (max-width: 860px) { .sol-info { grid-template-columns: 1fr; } .sol-info > * { grid-column: 1 !important; grid-row: auto !important; } .sol-info > .points { margin: 8px 0 0; } }
.sol-info h3 { font-size: 26px; margin: 8px 0 6px; }
.sol-info p { margin: 0 0 12px; color: var(--text-2); font-size: 15.5px; }
.sol-info .sol-tag { color: var(--text); font-weight: 600; font-size: 17px; }
.aud { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.points { list-style: none; padding: 0; margin: 0 0 12px; }
.points li { position: relative; padding: 5px 0 5px 24px; font-size: 15.5px; }
.points li::before, .tier li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.sol-note { font-size: 14px !important; font-style: italic; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tier .tag { background: var(--grad) !important;  align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.tier h4 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.tier .who { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.tier .amount { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 14px 0 4px; line-height: 1.2; }
.tier .amount small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.tier ul { list-style: none; padding: 0; margin: 12px 0 20px; flex: 1; }
.tier li { position: relative; padding: 7px 0 7px 24px; font-size: 14.5px; border-top: 1px solid var(--line); line-height: 1.4; }
.tier li::before { top: 13px; }
.offer-note { margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* Home: product cards */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .pcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pcards { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; scroll-margin-top: 80px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pcard:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pcard-top .sol-icon { margin: 0; flex: none; }
.pcard h3 { font-size: 20px; line-height: 1.2; }
.pcard-sit { flex: 1; margin: 0 0 18px; color: var(--text-2); font-size: 16px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.pcard-price { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pcard-price small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.pcard-more { color: var(--accent); font-weight: 600; font-size: 15px; }
.banner { display: block; margin-top: 18px; padding: 18px 22px; border-radius: var(--radius); background: var(--accent-soft); }

/* Product page */
.card-id > .sol-icon { margin-bottom: 14px; }
.card-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.card-price > span:first-child { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.card-price small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pain h3 { position: relative; padding-left: 26px; }
.pain h3::before { content: "×"; position: absolute; left: 0; top: -1px; color: var(--accent-2); font-weight: 700; }
.compare-ours { margin: 18px 0 0; padding: 18px 22px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--surface); font-weight: 600; max-width: 860px; }
#compare .offer-note { border-top: 0; padding-top: 12px; }
@media (max-width: 640px) {
  table.agents.compare thead { display: none; }
  table.agents.compare tr { display: block; padding: 14px 18px; border-top: 1px solid var(--line); }
  table.agents.compare tbody tr:first-child { border-top: 0; }
  table.agents.compare th, table.agents.compare td { display: block; padding: 2px 0; border: 0; }
}

/* Order */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.order-panel { max-width: 760px; }
@media (max-width: 600px) { .panel { padding: 20px; } }
.field-label { display: block; font-weight: 600; font-size: 15.5px; margin: 0 0 6px; }
.field-label + select { margin-bottom: 20px; }
.panel select, .panel textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; background: var(--bg); color: var(--text); }
.panel textarea { resize: vertical; font-size: 15.5px; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.total-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.total-price { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.order-note { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }

/* Private AI page */
.sol-more { display: inline-block; margin-top: 4px; font-weight: 600; font-size: 15.5px; text-decoration: none; }
.sol-more:hover { text-decoration: underline; }
.card-title { font-size: 20px; margin: 0 0 12px; }
.card-id .points { margin: 0 0 14px; }
.card-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.aud-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .aud-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card { padding: 22px; border-radius: var(--radius); background: var(--accent-soft); }
.aud-card h3 { font-size: 17px; }
.aud-card p, .inc p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .inc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .inc-grid { grid-template-columns: 1fr; } }
.inc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.inc h3 { font-size: 17px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.agents { width: 100%; border-collapse: collapse; font-size: 15px; }
table.agents th, table.agents td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line); }
table.agents thead th { border-top: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: var(--surface-2); }
table.agents th[scope="row"] { white-space: nowrap; }
table.agents td.desc { color: var(--text-2); }
table.agents td.for { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { table.agents th[scope="row"], table.agents td.for { white-space: normal; } }
.tier .year { margin: 0; font-size: 14px; color: var(--text-2); }
.tier .year strong { color: var(--accent); font-weight: 600; }
.year-link { display: block; margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; }
.oneoff { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.oneoff h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 8px; }
.oneoff ul { list-style: none; padding: 0; margin: 0; }
.oneoff li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.oneoff li span { display: block; font-size: 14px; color: var(--text-2); }
.oneoff li b { white-space: nowrap; font-size: 17px; }
.oneoff > p { margin: 12px 0 0; font-size: 14px; color: var(--text-2); }
.limits { list-style: none; padding: 0; margin: 0; max-width: 860px; }
.limits li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.limits li strong { color: var(--text); }

/* About: expert profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; gap: 28px; } }
.profile-photo { margin: 0; position: sticky; top: 88px; }
@media (max-width: 860px) { .profile-photo { position: static; max-width: 300px; } }
.profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--radius-panel, 20px); box-shadow: var(--shadow); }
.profile-photo figcaption { margin-top: 14px; }
.profile-photo strong { display: block; font-size: 18px; }
.profile-photo span { color: var(--text-2); font-size: 14px; }
.profile-body h2 { max-width: 760px; }
.quote { margin: 26px 0; padding: 22px 26px; border-radius: var(--radius); background: var(--accent-soft);
  font-size: 21px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.quote::before { content: "“"; display: block; height: 22px; margin-bottom: 4px; font-size: 54px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 4px 0 28px; }
@media (max-width: 960px) { .about-points { grid-template-columns: 1fr; } }
.ap { padding-top: 16px; border-top: 2px solid var(--accent); }
.ap p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; }
.profile-body .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sub-title { margin: 64px 0 20px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: path; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }
.path li { position: relative; padding: 22px 0 0; border-top: 2px solid var(--line); }
.path li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.path li:last-child { border-top-color: var(--accent); }
.path li:last-child::before { background: var(--grad); box-shadow: 0 0 0 4px var(--accent-soft); }
.path h4 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.path p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr; } }
.cred { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cred h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-bottom: 10px; }
.cred ul { list-style: none; padding: 0; margin: 0; }
.cred li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 500; }
.cred li:first-child { border-top: 0; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case .kind { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.case p { margin: 8px 0 0; color: var(--text-2); font-size: 15.5px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--text-2); }

/* Contact */
.contact { background: var(--text); color: var(--bg); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.contact h2 { color: var(--bg); }
.contact p { margin: 0; opacity: .8; }
.contact .links { display: flex; flex-direction: column; gap: 12px; }
.contact .btn-primary { background: var(--grad); }
.contact .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Footer */
footer { padding: 40px 0 56px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer p { margin: 0; }

/* Back to home (inner pages) */
.back-home { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.back-home:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 600px) {
  .back-label { display: none; }
  .back-home { padding: 5px 9px; }
  .top .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .langs a, .curs button { padding: 3px 7px; }
}
/* Три валюты и три языка в шапке телефона: сжимаем отступы, на самых узких экранах прячем надпись логотипа */
@media (max-width: 420px) {
  .top .wrap { gap: 6px; }
  .langs a, .curs button { padding: 3px 5px; }
}
@media (max-width: 370px) {
  .top .back-home { padding: 5px 7px; }
  .top .brand .wordmark { display: none; }
}

/* Product pages: who it's for, shown above the problems */
.fit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -12px 0 28px; }
.fit > span { font-size: 14px; font-weight: 700; color: var(--text-2); }
.fit ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.fit li { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 14.5px; font-weight: 600; }

/* Prices: net + gross (VAT) */
.vat { font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.gross { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; line-height: 1.4; }
.vat-note { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }
.card-price { flex-wrap: wrap; }
.card-price > span:last-child { text-align: right; }

/* Order form: buyer type and consents */
.buyer { border: 0; padding: 0; margin: 0 0 20px; }
#order-country { margin-bottom: 6px; }
.country-note { margin: 0 0 20px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.buyer legend { padding: 0; }
.buyer label { display: inline-flex; align-items: center; gap: 8px; margin: 0 20px 6px 0; font-size: 15.5px; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check[hidden] { display: none; }
.check input, .buyer input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.total-net { display: block; font-size: 13px; color: var(--text-2); }
.btn.is-disabled { opacity: .5; box-shadow: none; }
.btn.is-disabled:hover { transform: none; }

/* Footer legal links */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal-links a, .linklike { color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }
.legal-links a:hover, .linklike:hover { color: var(--accent); }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; margin: 0; font-size: 14.5px; color: var(--text-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; }

/* Legal pages */
.legal { padding-top: 56px; }
.legal-wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.legal-meta, .legal-note { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.legal-note { padding: 14px 18px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text); }
.legal-sec h2 { font-size: 20px; margin: 0 0 10px; }
.legal-sec { margin-top: 32px; scroll-margin-top: 80px; }
.legal-sec p, .legal-sec li { color: var(--text-2); font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
/* Пункты документов с номерами как в шаблоне фонда: «1.», «a)», «A.» */
.legal-sec ol.lg, .legal-sec ul.lb { margin: 0; padding: 0; list-style: none; }
.legal-sec ol.lg li { position: relative; margin: 0 0 8px; padding-left: 30px; }
.legal-sec ol.lg ol.lg { margin-top: 8px; }
.legal-sec .n { position: absolute; left: 0; top: 0; min-width: 26px; font-weight: 600; color: var(--text); }
.legal-sec ul.lb li { position: relative; margin: 0 0 6px; padding-left: 20px; }
.legal-sec ul.lb li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.legal-sec .form-line { margin: 0 0 4px; }
.legal-sec h2 + .form-line { margin-top: 4px; }
.legal-toc { margin: 24px 0 8px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 28px; }
.legal-toc li { margin: 0 0 6px; font-size: 14.5px; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
/* Сводка заказа перед кнопкой и подпись об администраторе данных под ней */
.summary { margin: 22px 0 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.summary h3 { margin: 0 0 10px; font-size: 16px; }
.summary dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 34%) 1fr; gap: 8px 16px; font-size: 14.5px; line-height: 1.45; }
.summary dt { font-weight: 600; color: var(--text); }
.summary dd { margin: 0; color: var(--text-2); }
.summary dd ul { margin: 4px 0 0; padding-left: 18px; }
.summary [hidden] { display: none; }
.after-order { margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); }
@media (max-width: 600px) { .summary dl { grid-template-columns: 1fr; gap: 2px; } .summary dd { margin-bottom: 8px; } }
.admin-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
/* Форма отказа от договора */
.withdraw input:not([type="checkbox"]) { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; background: var(--bg); color: var(--text); margin-bottom: 18px; }
.withdraw textarea { margin-bottom: 18px; }
.withdraw input[readonly], .withdraw textarea[readonly] { background: var(--surface-2); }
.withdraw .req { font-weight: 400; color: var(--text-2); }
.withdraw .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.withdraw [hidden] { display: none; }
#w-statement { font-size: 16px; color: var(--text); }

/* Cookie consent: popup and settings dialog */
.cookie { max-width: 980px; align-items: flex-end; }
.cookie-body { flex: 1 1 380px; }
.cookie h2, .cookie-dialog h2 { font-size: 18px; margin: 0 0 6px; }
.cookie-body p { flex: none; }
.cookie-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.cookie-dialog::backdrop { background: rgba(11, 13, 36, .45); }
.cookie-dialog > p { margin: 0 0 16px; font-size: 14.5px; color: var(--text-2); }
.cookie-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cookie-x { border: 0; background: none; color: var(--text-2); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cookie-cats { list-style: none; padding: 0; margin: 0 0 20px; }
.cookie-cats li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-cats h3 { font-size: 16px; margin: 0 0 2px; }
.cookie-cats p { margin: 0; font-size: 14px; color: var(--text-2); }
.cookie-always { flex: none; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.switch { position: relative; flex: none; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s ease; }
.switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.switch input:checked + span[aria-hidden] { background: var(--accent); }
.switch input:checked + span[aria-hidden]::after { transform: translateX(18px); }
.switch input:focus-visible + span[aria-hidden] { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cookie-dialog .cookie-actions { justify-content: flex-end; }
