:root {
  --bg: #f6f5f8;
  --surface: #ffffff;
  --ink: #25232b;
  --muted: #625b6c;
  --plum: #48243e;
  --plum-dark: #32162c;
  --amber: #f2b632;
  --gold-soft: #fff1bc;
  --line: #ded9e3;
  --green: #25d366;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(72, 36, 62, .09);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; text-rendering: optimizeLegibility; }
a { color: var(--plum); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: #7a3d68; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
img, svg { max-width: 100%; }
code { padding: .12rem .35rem; background: #eeeaf0; border-radius: 5px; font: .93em ui-monospace, SFMono-Regular, Consolas, monospace; }
h1, h2, h3 { margin: 0 0 .7rem; color: var(--ink); line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 18ch; font-size: clamp(2.45rem, 5.8vw, 5.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: .8rem 1rem; background: #fff; color: var(--plum); border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.independence-banner { position: relative; z-index: 20; color: #fff; background: var(--plum); border-bottom: 1px solid rgba(255,255,255,.16); }
.banner-inner { max-width: var(--max); min-height: 48px; margin: auto; padding: .65rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.banner-inner p { margin: 0; font-size: .9rem; }
.banner-inner a { color: #fff; }
.banner-close { display: none; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #fff; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.js-enabled .banner-close { display: inline-grid; place-items: center; }
.site-header { position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: rgba(246,245,248,.95); backdrop-filter: blur(14px); }
.header-inner { max-width: var(--max); min-height: 76px; margin: auto; padding: .75rem 1.25rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px 4px 12px 4px; color: var(--plum); background: var(--amber); font-weight: 900; font-size: 1.3rem; box-shadow: 4px 4px 0 var(--plum); }
.brand b, .brand small { display: block; }
.brand b { font-size: 1.16rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-menu { margin-left: auto; }
.nav-menu summary { display: none; min-height: 44px; align-items: center; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; }
.primary-nav { display: flex; gap: .3rem; align-items: center; }
.primary-nav a { padding: .65rem .75rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 650; }
.primary-nav a:hover { background: #ede8ef; }
.header-status { padding: .38rem .65rem; border: 1px solid #cabfc9; border-radius: 999px; color: var(--plum); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.page-shell { max-width: var(--max); margin: auto; padding: 1.8rem 1.25rem 5rem; }
.breadcrumbs { display: flex; gap: .55rem; align-items: center; margin: 0 0 2rem; color: var(--muted); font-size: .9rem; }

.eyebrow { margin-bottom: .8rem; color: #775e16; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding: 5.5rem 0 4rem; }
.hero-copy h1 { margin-bottom: 1.35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.25rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .78rem 1.05rem; border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-weight: 800; line-height: 1.25; }
.button-primary { color: #fff; background: var(--plum); box-shadow: 0 8px 22px rgba(72,36,62,.18); }
.button-primary:hover { color: #fff; background: #603552; }
.button-secondary { color: var(--plum); background: transparent; border-color: #aa9aaa; }
.button-secondary:hover { background: #eee9ef; }
.button-light { color: var(--plum); background: #fff; }
.safe-link { max-width: 660px; color: var(--muted); font-size: .92rem; }
.scope-card { position: relative; padding: 2rem; overflow: hidden; color: #fff; background: var(--plum); border-radius: 36px 10px 36px 10px; box-shadow: var(--shadow); }
.scope-card h2 { max-width: 12ch; color: #fff; }
.scope-card p { color: #e8dfe8; }
.scope-number { position: absolute; right: -.2rem; top: -2.2rem; color: rgba(255,255,255,.08); font-size: 11rem; font-weight: 900; line-height: 1; }
.scope-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 2rem; }
.scope-list span { padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; font-size: .9rem; }

.comparison-section, .three-domains, .quick-solutions, .faq { padding: 5.5rem 0; }
.section-heading { margin-bottom: 2.2rem; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.teaching-note { max-width: 480px; margin: 0; padding: .75rem 1rem; border-left: 4px solid var(--amber); color: var(--muted); background: #fff9df; font-size: .9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.comparison-table th, .comparison-table td { padding: 1.15rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.comparison-table thead th { color: var(--muted); background: #f0edf2; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
.comparison-table tbody th { width: 22%; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table tbody tr.is-selected > * { background: var(--gold-soft); }
.action-switch { display: none; min-height: 44px; padding: .65rem .8rem; border: 1px solid var(--plum); border-radius: 9px; color: var(--plum); background: #fff; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.js-enabled .action-switch { display: inline-block; }
.action-switch[aria-pressed="true"] { color: #fff; background: var(--plum); }
.action-results { margin-top: 1rem; }
.action-detail { display: grid; grid-template-columns: .7fr 1.15fr 1.25fr; gap: 2rem; padding: 2rem; border: 1px solid #d7ccaa; border-radius: var(--radius); background: #fffbeb; }
.action-detail + .action-detail { margin-top: 1rem; }
.js-enabled .action-detail { display: none; }
.js-enabled .action-detail.is-active { display: grid; }
.detail-label { display: block; margin-bottom: .45rem; color: #775e16; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.action-detail p { margin-bottom: .5rem; }
.text-link { font-weight: 800; }

.start-strip { margin: 3rem 0; padding: 2.5rem; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 2rem; align-items: center; color: #fff; background: var(--plum); border-radius: 10px 34px 10px 34px; }
.start-strip h2 { color: #fff; }
.start-strip .eyebrow { color: var(--amber); }
.mini-steps { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.mini-steps li { display: flex; gap: .7rem; align-items: center; color: #eee4ed; font-size: .92rem; }
.mini-steps span { color: var(--amber); font-weight: 900; }
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.domain-grid article { min-height: 280px; padding: 1.6rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.domain-grid article:nth-child(2) { transform: translateY(1.25rem); }
.domain-grid a { margin-top: auto; font-weight: 800; }
.domain-mark { width: 36px; height: 36px; margin-bottom: 2.4rem; display: grid; place-items: center; border-radius: 50%; color: var(--plum); background: var(--amber); font-weight: 900; }
.browser-explainer { margin: 4rem 0 2rem; padding: 3rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; border: 1px solid var(--line); border-radius: 30px; background: #fff; }
.browser-visual { min-height: 220px; padding: 1rem; display: flex; align-items: flex-start; gap: .45rem; border: 12px solid #2f2c33; border-radius: 18px; background: var(--gold-soft); box-shadow: 12px 14px 0 var(--amber); }
.browser-visual > span { width: 12px; height: 12px; border-radius: 50%; background: var(--plum); }
.browser-visual > div { align-self: center; width: 82%; margin-left: -2.8rem; padding: .75rem; border-radius: 8px; color: var(--muted); background: #fff; text-align: center; font: .8rem ui-monospace, monospace; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.solution-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.solution-grid span { color: #775e16; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.solution-grid p { color: var(--muted); }
.solution-grid a { font-weight: 800; }
.shared-device-warning { margin-top: 1rem; padding: 1.3rem 1.4rem; display: grid; grid-template-columns: .7fr 1.3fr; gap: 1rem; border: 1px solid #d7ccaa; border-radius: 14px; background: var(--gold-soft); }
.shared-device-warning p { margin: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-size: 1.08rem; font-weight: 800; }
.faq summary::after { content: "+"; color: var(--plum); font-size: 1.6rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 820px; padding: 0 0 1.4rem; color: var(--muted); }

.article-intro { max-width: 930px; padding: 5rem 0 2.5rem; }
.article-intro h1 { max-width: 19ch; font-size: clamp(2.4rem, 5.2vw, 4.8rem); }
.article-callout { margin-top: 2rem; padding: 1.25rem 1.4rem; border-left: 6px solid var(--amber); border-radius: 0 14px 14px 0; background: #fff9df; }
.article-callout.warning { border-color: #b84b36; background: #fff0ec; }
.article-callout p { margin: .25rem 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-body { max-width: 760px; }
.article-body > h2 { margin-top: 3.2rem; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.article-body > h2:first-child { margin-top: 0; }
.article-body p, .article-body li { color: #3e3945; }
.article-aside { position: sticky; top: 110px; padding: 1.4rem; border: 1px solid var(--line); border-top: 6px solid var(--amber); border-radius: 12px; background: #fff; }
.article-aside h2 { font-size: 1.12rem; }
.article-aside a { display: block; margin: .65rem 0; font-weight: 750; }
.article-aside hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.numbered-list { padding: 0; list-style: none; counter-reset: steps; }
.numbered-list li { position: relative; padding: 1rem 1rem 1rem 3.7rem; border-bottom: 1px solid var(--line); counter-increment: steps; }
.numbered-list li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: .5rem; top: .95rem; color: var(--plum); font-weight: 900; }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.process > div { padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.process span { color: #775e16; font-weight: 900; }
.process p { margin: 0; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compare-cards > div { padding: 1.35rem; border-radius: 14px; background: #ede8ef; }
.compare-cards p { margin: 0; }
.next-action { margin-top: 3.5rem; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: var(--radius); background: var(--gold-soft); }
.next-action p { margin: 0; font-weight: 800; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.5rem; margin: .55rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #257449; font-weight: 900; }
.arrow-list { padding: 0; list-style: none; }
.arrow-list li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid var(--line); }
.arrow-list li::before { content: "→"; position: absolute; left: 0; color: var(--plum); font-weight: 900; }
.plain-table { width: 100%; margin: 1.25rem 0 2rem; border-collapse: collapse; }
.plain-table th, .plain-table td { padding: .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.plain-table thead th { background: #ede8ef; }
.timeline { border-left: 3px solid var(--amber); }
.timeline > div { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline > div::before { content: ""; position: absolute; left: -8px; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--plum); }
.fake-qr { aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; border: 8px solid #fff; outline: 1px solid var(--line); background: #fff; }
.fake-qr span { background: var(--plum); }
.fake-qr span:nth-child(2), .fake-qr span:nth-child(4), .fake-qr span:nth-child(8) { background: var(--amber); }
.decision-list { display: grid; gap: 1rem; }
.decision-list > div { padding: 1.25rem; border-left: 6px solid var(--plum); background: #fff; box-shadow: 0 8px 25px rgba(37,35,43,.05); }
.decision-list span { color: #775e16; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.decision-list p { margin: 0; }
.mini-dl { margin: 0; }
.mini-dl dt { margin-top: .8rem; color: var(--plum); font-weight: 900; }
.mini-dl dd { margin: 0; color: var(--muted); }
.legal { max-width: 860px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 4rem; }
.contact-card { min-height: 260px; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card.featured { color: #fff; background: var(--plum); }
.contact-card.featured h2, .contact-card.featured a { color: #fff; }
.contact-card > span { color: #775e16; font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-card.featured > span { color: var(--amber); }
.contact-card dl { margin: 2rem 0 0; }
.contact-card dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.contact-card dt { color: #d9cbd7; }
.contact-card dd { margin: 0; }
.muted { color: var(--muted); }

.site-footer { color: #eee6ed; background: var(--plum-dark); }
.footer-main { max-width: var(--max); margin: auto; padding: 4rem 1.25rem; display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.1fr; gap: 2.5rem; }
.footer-main h2 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-main a { display: block; margin: .42rem 0; color: #fff; }
.footer-main p { color: #d2c5d0; font-size: .9rem; }
.brand-footer { color: #fff; }
.brand-footer small { color: #cfbdcb; }
.footer-bottom { max-width: var(--max); margin: auto; padding: 1.2rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.error-page main { max-width: 650px; }
.error-code { margin: 3rem 0 0; color: var(--amber); font-size: clamp(6rem, 20vw, 12rem); font-weight: 900; line-height: .9; }

@media (max-width: 920px) {
  .header-status { display: none; }
  .nav-menu { position: relative; }
  .nav-menu summary { display: flex; }
  .nav-menu:not([open]) .primary-nav { display: none; }
  .primary-nav { position: absolute; right: 0; top: 52px; min-width: 230px; padding: .5rem; display: grid; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 4rem; }
  .scope-card { max-width: 600px; }
  .split-heading { display: block; }
  .teaching-note { margin-top: 1rem; }
  .start-strip { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .domain-grid article:nth-child(2) { transform: none; }
  .browser-explainer { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(2.2rem, 11vw, 3.3rem); }
  .banner-inner { align-items: flex-start; }
  .banner-inner p { font-size: .82rem; line-height: 1.45; }
  .header-inner { min-height: 68px; gap: .75rem; padding-inline: .8rem; }
  .brand { gap: .5rem; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand b { font-size: .96rem; }
  .brand small { font-size: .64rem; }
  .page-shell { padding-top: 1rem; }
  .hero-grid { padding: 3rem 0 2rem; gap: 2rem; }
  .scope-card { padding: 1.5rem; border-radius: 24px 8px 24px 8px; }
  .comparison-section, .three-domains, .quick-solutions, .faq { padding: 3.5rem 0; }
  .table-wrap { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .comparison-table, .comparison-table thead, .comparison-table tbody, .comparison-table tr, .comparison-table th, .comparison-table td { display: block; min-width: 0; width: 100%; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .comparison-table tbody { display: grid; gap: .85rem; }
  .comparison-table tbody tr { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .comparison-table tbody tr.is-selected { border-color: #c79a1e; background: var(--gold-soft); }
  .comparison-table tbody tr > * { border: 0; padding: .35rem 0; background: transparent !important; }
  .comparison-table tbody th { font-size: 1.1rem; }
  .comparison-table td:nth-child(2)::before { content: "Меняется: "; color: var(--muted); font-weight: 700; }
  .comparison-table td:nth-child(3)::before { content: "Не подтверждает: "; color: var(--muted); font-weight: 700; }
  .action-switch { width: 100%; margin-top: .5rem; }
  .action-detail, .js-enabled .action-detail.is-active { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.25rem; }
  .start-strip, .browser-explainer { padding: 1.5rem; }
  .browser-explainer { border-radius: 20px; }
  .process, .compare-cards, .contact-grid { grid-template-columns: 1fr; }
  .shared-device-warning { grid-template-columns: 1fr; }
  .article-intro { padding-top: 3rem; }
  .next-action { align-items: stretch; flex-direction: column; }
  .plain-table, .plain-table thead, .plain-table tbody, .plain-table tr, .plain-table th, .plain-table td { display: block; width: 100%; }
  .plain-table thead { display: none; }
  .plain-table tr { margin-bottom: .8rem; border: 1px solid var(--line); }
  .plain-table th, .plain-table td { border: 0; border-bottom: 1px solid var(--line); }
  .plain-table th { background: #ede8ef; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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

@media print {
  .independence-banner, .site-header, .site-footer, .hero-actions, .action-switch { display: none !important; }
  body { color: #000; background: #fff; }
  .page-shell { max-width: none; padding: 0; }
  .action-detail { break-inside: avoid; }
}
