:root {
  --page: #f5f1e9;
  --paper: #fffcf7;
  --ink: #232323;
  --muted: #646059;
  --coral: #ff886b;
  --coral-soft: #ffe1d7;
  --link: #8c2f24;
  --line: #d8d0c4;
  --phone: #237547;
  --mint: #dcebdc;
  --max: 1280px;
  --reading: 748px;
  --shadow: 0 18px 46px rgba(35, 35, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(35,35,35,.04) calc(100% - 1px)) 0 0 / 80px 100%,
    var(--page);
  font-family: Onest, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .15em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--phone); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 8px; transform: translateY(-160%); padding: 10px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.skip-link:focus { transform: none; }
.container { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.reading { width: min(var(--reading), 100%); }
.section { padding: 94px 0; }
.section-sm { padding: 58px 0; }
.section-rule { border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 18px; font-size: .8rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 6.2vw, 4.6rem); max-width: 1060px; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); max-width: 900px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); margin-bottom: 28px; }
h3 { font-size: clamp(1.16rem, 2vw, 1.45rem); margin-bottom: 12px; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.55; max-width: 820px; color: #383631; }
.muted { color: var(--muted); }
.tiny { font-size: .84rem; line-height: 1.5; }
.meta-line { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .88rem; margin-top: 24px; }

.status-strip { background: var(--ink); color: #fff9f2; }
.status-inner { min-height: 58px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; font-size: .88rem; line-height: 1.45; }
.status-inner p { margin: 0; }
.status-close { width: 44px; height: 44px; border: 0; color: #fff9f2; background: transparent; border-radius: 8px; cursor: pointer; font-size: 1.55rem; line-height: 1; }
.status-close:hover { background: rgba(255,255,255,.1); }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(245,241,233,.98); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { position: relative; width: 34px; height: 28px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 7px 7px 5px 5px; background: var(--paper); }
.brand-mark::before { content: ""; position: absolute; left: 5px; top: -7px; width: 15px; height: 7px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--coral); }
.brand-mark::after { content: "↗"; color: var(--phone); font-size: 16px; line-height: 1; font-weight: 900; }
.nav-toggle { display: none; min-width: 48px; min-height: 44px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 8px; cursor: pointer; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: 22px; font-size: .9rem; font-weight: 700; }
.site-nav > a, .site-nav summary { color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 4px; text-underline-offset: 7px; }
.nav-more { position: relative; }
.nav-more summary { cursor: pointer; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " +"; color: var(--link); }
.nav-more[open] summary::after { content: " −"; }
.nav-flyout { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); width: 260px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.nav-flyout a { display: block; padding: 9px 10px; color: var(--ink); text-decoration: none; border-radius: 7px; }
.nav-flyout a:hover { background: var(--coral-soft); }
.header-domain { font: 700 .78rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
.header-note { display: none; }

.hero { padding: 70px 0 76px; }
.hero-copy { display: grid; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 8px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 9px; background: var(--coral); color: var(--ink); text-decoration: none; font-weight: 850; box-shadow: 5px 5px 0 var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--ink); }
.button-dark { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--coral); }
.text-link { font-weight: 800; color: var(--ink); }
.official-line { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--link); font-weight: 800; }
.official-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--phone); }

.address-panel { position: relative; margin-top: 54px; padding: 54px 58px 42px; background: var(--ink); color: var(--paper); border-radius: 0 16px 16px 16px; box-shadow: var(--shadow); overflow: visible; }
.address-tab { position: absolute; left: 0; top: -34px; height: 34px; padding: 7px 18px 0; background: var(--ink); border-radius: 10px 10px 0 0; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.address-caption { color: #c8c3bb; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 17px; }
.address-main { font: 760 clamp(1.5rem, 5vw, 3.25rem)/1.12 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.045em; white-space: nowrap; }
.address-main .protocol { color: #aaa49c; font-size: .48em; letter-spacing: -.02em; }
.address-parts { display: grid; grid-template-columns: 1fr 1.15fr 2.1fr; margin-top: 28px; padding-top: 18px; border-top: 1px solid #55514c; color: #c8c3bb; font-size: .78rem; }
.address-parts span { position: relative; padding-top: 8px; }
.address-parts span::before { content: ""; position: absolute; top: -19px; width: 1px; height: 17px; background: var(--coral); }
.own-address { padding: 20px 0 0; color: #d7d2ca; font-size: .94rem; }
.own-address strong { color: var(--paper); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.task-index { border-top: 2px solid var(--ink); }
.task-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.task-row:hover .task-arrow { transform: translateX(5px); }
.task-num { font: 800 1rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--link); }
.task-title { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 830; letter-spacing: -.025em; }
.task-arrow { font-size: 1.7rem; transition: transform 160ms ease; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .76fr); gap: 72px; align-items: start; }
.tab-note { position: relative; padding: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 14px 14px 14px; }
.tab-note::before { content: attr(data-tab); position: absolute; left: -1px; top: -31px; height: 31px; padding: 5px 14px; background: var(--coral); border: 1px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; font-size: .73rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.domain-anatomy { background: var(--coral-soft); border-block: 1px solid #efb7a6; }
.domain-line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 30px 0 18px; font: 800 clamp(1.45rem, 4vw, 2.7rem)/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.domain-line span { border-bottom: 4px solid var(--ink); }
.domain-line .focus { border-color: var(--link); color: var(--link); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: .86rem; color: var(--muted); }

.steps { counter-reset: step; margin: 32px 0 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); width: 46px; height: 46px; display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 50%; font: 800 .82rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.step h3 { margin-top: 6px; }
.step p { color: #48453f; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin-top: 28px; }
.platform { padding: 25px; border-left: 5px solid var(--coral); background: var(--paper); }

.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.symptom { background: var(--paper); padding: 26px; }
.symptom .tag { display: inline-block; margin-bottom: 16px; font-size: .74rem; line-height: 1; text-transform: uppercase; letter-spacing: .08em; color: var(--link); font-weight: 850; }

.session-band { background: var(--ink); color: var(--paper); }
.session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #55514c; border: 1px solid #55514c; }
.session-item { background: var(--ink); padding: 34px; }
.session-item p { color: #d2cdc5; }
.session-item a { color: #ffb4a0; }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 48px 22px 0; list-style: none; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 13px; font-size: 1.65rem; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { max-width: 780px; padding: 0 48px 22px 0; color: #48453f; }

.breadcrumbs { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9a958c; }
.breadcrumbs a { color: var(--muted); }
.article-hero { padding: 58px 0 44px; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 260px; gap: 86px; align-items: start; }
.article-body h2 { margin-top: 64px; }
.article-body h3 { margin-top: 35px; }
.article-body ul, .article-body ol { padding-left: 1.25em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .6em; }
.toc { position: sticky; top: 108px; padding: 22px 0 22px 22px; border-left: 2px solid var(--line); font-size: .82rem; }
.toc strong { display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.toc a { display: block; margin: 9px 0; color: var(--muted); }
.notice { margin: 34px 0; padding: 24px 26px; border-left: 5px solid var(--coral); background: var(--paper); }
.notice-dark { background: var(--ink); color: var(--paper); border-left-color: var(--coral); }
.notice-dark a { color: #ffb4a0; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--phone); font-weight: 900; }
.related { margin-top: 70px; padding: 30px; background: var(--coral-soft); border: 1px solid #efb7a6; }
.related h2 { margin-top: 0; font-size: 1.5rem; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.related-links a { color: var(--ink); font-weight: 750; }

.tool-box { margin: 36px 0 42px; padding: 34px; background: var(--paper); border: 2px solid var(--ink); border-radius: 0 14px 14px 14px; box-shadow: 7px 7px 0 var(--coral); position: relative; }
.tool-box::before { content: "Локально в браузере"; position: absolute; left: -2px; top: -34px; height: 34px; padding: 6px 15px; background: var(--ink); color: var(--paper); border-radius: 8px 8px 0 0; font-size: .74rem; font-weight: 850; letter-spacing: .05em; }
.field-label { display: block; font-weight: 800; margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.field-row input { width: 100%; min-height: 52px; padding: 11px 14px; color: var(--ink); background: #fff; border: 2px solid #79746c; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.field-row button, .tool-actions button { min-height: 48px; padding: 10px 17px; border: 2px solid var(--ink); border-radius: 8px; background: var(--coral); color: var(--ink); cursor: pointer; font-weight: 850; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tool-actions .secondary { background: transparent; }
.help-text { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.tool-result { min-height: 132px; margin-top: 24px; padding: 22px; border: 1px dashed #9a958c; border-radius: 10px; background: var(--page); }
.tool-result:empty::before { content: "Здесь появится результат сравнения."; color: var(--muted); font-size: .9rem; }
.result-label { display: inline-block; padding: 4px 8px; margin-bottom: 12px; border-radius: 5px; background: var(--ink); color: var(--paper); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 850; }
.result-label.diff { background: var(--coral); color: var(--ink); }
.result-label.own { background: var(--phone); }
.tool-result h2 { font-size: 1.45rem; margin: 0 0 10px; }
.comparison { margin-top: 12px; padding: 12px; background: #fff; border-left: 3px solid var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; overflow-wrap: anywhere; }

.qr-diagram { width: min(460px, 100%); padding: 28px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; }
.qr-grid { width: 190px; aspect-ratio: 1; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(9,1fr); grid-template-rows: repeat(9,1fr); gap: 3px; padding: 10px; background: #fff; border: 2px solid var(--ink); }
.qr-grid i { background: transparent; }
.qr-grid i:nth-child(3n+1), .qr-grid i:nth-child(7n+2), .qr-grid i:nth-child(11n+4) { background: var(--ink); }
.qr-label { text-align: center; font-weight: 850; color: var(--link); }

.compare-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .92rem; }
.compare-table th, .compare-table td { padding: 15px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table th { background: var(--ink); color: var(--paper); }
.compare-table tr:nth-child(even) td { background: rgba(255,252,247,.7); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; margin-top: 34px; }
.contact-card { padding: 30px; background: var(--paper); border: 1px solid var(--line); }
.contact-card dl { margin: 0; }
.contact-card dt { margin-top: 20px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; overflow-wrap: anywhere; }

.site-footer { padding: 58px 0 30px; background: var(--ink); color: #d7d2ca; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 54px; }
.footer-brand { color: var(--paper); font-size: 1.45rem; font-weight: 850; }
.footer-grid h2 { font-size: .78rem; margin-bottom: 16px; color: #aaa49c; letter-spacing: .09em; text-transform: uppercase; }
.footer-grid a { color: var(--paper); }
.footer-links { display: grid; gap: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid #514e49; font-size: .77rem; color: #aaa49c; }

.not-found { min-height: 68vh; display: grid; align-items: center; }
.not-found-code { font: 850 clamp(5rem, 20vw, 12rem)/.8 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--coral); letter-spacing: -.08em; }

.js-only { display: none; }
.js .js-only { display: initial; }
.js .nav-toggle { display: none; }
.js .field-row.js-only { display: grid; }
.js .tool-actions.js-only { display: flex; }
.is-hidden { display: none !important; }

@media (max-width: 980px) {
  .container { width: min(var(--max), calc(100% - 48px)); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 68px; }
  .js .nav-toggle { display: inline-grid; place-items: center; }
  .header-domain { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 18px 24px 24px; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .site-nav summary { display: block; padding: 10px 0; }
  .nav-flyout { position: static; transform: none; width: 100%; margin: 4px 0 8px; box-shadow: none; }
  .header-note { display: block; padding: 7px 0; font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); }
  .split, .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .toc { position: static; order: -1; border-left: 0; border-top: 2px solid var(--ink); padding: 18px 0; }
  .symptoms { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 17px; background-image: none; }
  .container { width: min(100% - 34px, var(--max)); }
  .section { padding: 58px 0; }
  .section-sm { padding: 40px 0; }
  .status-inner { min-height: 0; padding: 10px 0; gap: 10px; font-size: .76rem; }
  .site-header { position: sticky; }
  .header-inner { min-height: 64px; }
  .brand { font-size: .96rem; }
  .hero { padding: 48px 0 54px; }
  .hero-copy { gap: 19px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .address-panel { margin-top: 48px; padding: 38px 18px 26px; border-radius: 0 11px 11px 11px; }
  .address-tab { top: -30px; height: 30px; padding: 5px 11px 0; font-size: .65rem; }
  .address-main { font-size: clamp(1.15rem, 6.5vw, 1.65rem); letter-spacing: -.06em; }
  .address-main .protocol { display: block; margin-bottom: 4px; }
  .address-parts { grid-template-columns: 1fr; gap: 9px; }
  .address-parts span { padding: 0 0 0 16px; }
  .address-parts span::before { left: 0; top: 5px; width: 8px; height: 1px; }
  .task-row { grid-template-columns: 54px 1fr auto; gap: 12px; padding: 22px 0; }
  .platforms, .session-grid, .related-links, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .tab-note { padding: 26px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .tool-box { padding: 26px 18px; }
  .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-grid { gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 360px) {
  .container { width: min(100% - 28px, var(--max)); }
  h1 { font-size: 2rem; }
  .brand-mark { width: 31px; }
  .task-row { grid-template-columns: 42px 1fr auto; }
}

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

@media print {
  .status-strip, .site-header, .site-footer, .button, .tool-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  a { color: #000; }
}
