* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-behavior: smooth; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure { margin-top: 0; }
a { color: var(--c-ink); text-underline-offset: 4px; }
a:hover { color: var(--c-primary-hover); }
button { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; padding: 12px 20px; background: var(--c-paper); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* шапка и тёмные блоки с топографическим узором, как у ЭДО */
.site-header, .start-section, .site-footer { position: relative; isolation: isolate; background: var(--c-deep); color: #fff; }
.site-header::before, .start-section::before, .site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: var(--c-pattern); -webkit-mask-image: url('topography.svg'); mask-image: url('topography.svg'); opacity: .3; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 rgb(0 0 0 / 10%); }
.header-inner { min-height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; flex-shrink: 0; line-height: 1; }
.brand:hover { color: inherit; }
.brand-wordmark { font-family: 'DOC-V Wordmark', var(--sans); font-size: 31px; font-weight: 300; letter-spacing: .01em; white-space: nowrap; }
.brand-product { border-left: 1px solid currentColor; padding-left: 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #fff; text-decoration: none; }
.main-nav a:hover { text-decoration: underline; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.site-header :focus-visible, .start-section :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.theme-toggle, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: 6px 12px; color: #fff; background: transparent; border: 1px solid rgb(255 255 255 / 40%); border-radius: 8px; font-size: 14px; cursor: pointer; }
.theme-toggle:hover, .menu-toggle:hover { background: rgb(255 255 255 / 12%); }
.menu-toggle { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; line-height: 1.35; font-size: 16px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.button-primary { background: var(--c-primary); color: #fff; box-shadow: var(--c-shadow-sm); }
.button-primary:hover { background: var(--c-primary-hover); color: #fff; }
.button-outline { background: var(--c-paper); border-color: var(--c-line); color: var(--c-heading); box-shadow: var(--c-shadow-sm); }
.button-outline:hover { border-color: var(--c-accent); color: var(--c-heading); }
.button-white { background: #fff; color: #7c2d12; }
.button-white:hover { background: var(--c-pale); color: #7c2d12; }
.button-ghost { border-color: rgb(255 255 255 / 55%); color: #fff; }
.button-ghost:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.header-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; background: #fff; color: #7c2d12; }
.header-cta:hover { background: var(--c-pale); color: #7c2d12; }

.hero { position: relative; isolation: isolate; padding: 64px 0 28px; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c-pattern); -webkit-mask-image: url('topography.svg'); mask-image: url('topography.svg'); opacity: .05; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
.hero-copy { min-width: 0; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; margin-bottom: 20px; border-radius: 999px; background: var(--c-pale); color: var(--c-ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.hero-status > span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
h1, h2, h3 { color: var(--c-heading); font-weight: 700; letter-spacing: -.02em; }
h1 { margin-bottom: 22px; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; overflow-wrap: break-word; }
h1 em { color: var(--c-primary); font-style: normal; }
.lead { max-width: 560px; margin-bottom: 26px; font-size: 18px; color: var(--c-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { margin: 22px 0 0; color: var(--c-muted); font-size: 14px; }

.frame { margin: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-paper); box-shadow: var(--c-shadow); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--c-pale); border-bottom: 1px solid var(--c-line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); }
.frame-bar span { margin-left: 10px; color: var(--c-muted); font-size: 12px; }
.frame img { width: 100%; }
.frame figcaption { padding: 11px 16px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 13px; text-align: center; }
.img-dark { display: none; }
:root[data-theme="dark"] .img-light { display: none; }
:root[data-theme="dark"] .img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .img-light { display: none; }
  :root:not([data-theme="light"]) .img-dark { display: block; }
}
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.fact-strip p { display: grid; gap: 4px; margin: 0; padding: 18px 20px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow-sm); }
.fact-strip strong { font-size: 23px; color: var(--c-heading); letter-spacing: -.02em; }
.fact-strip span { font-size: 13px; color: var(--c-muted); }

.section { padding-block: 72px; }
h2 { font-size: clamp(28px, 2.8vw, 36px); line-height: 1.17; font-weight: 800; margin-bottom: 20px; }
h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.eyebrow { color: var(--c-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-intro { max-width: 800px; margin-bottom: 32px; }
.section-intro h2 { margin-bottom: 12px; }
.section-intro > p { margin-bottom: 0; color: var(--c-muted); font-size: 17px; }
.alt { background: var(--c-paper); border-block: 1px solid var(--c-line); }
.card-label { display: inline-block; margin-bottom: 16px; padding: 4px 9px; background: var(--c-pale); color: var(--c-ink); border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; }

.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { padding: 26px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow-sm); }
.card p { margin-bottom: 0; color: var(--c-secondary); font-size: 15px; }

.chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.chain li { position: relative; padding: 20px 16px 18px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow-sm); counter-increment: s; }
.chain li::before { content: counter(s, decimal-leading-zero); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; background: var(--c-pale); color: var(--c-ink); font-size: 13px; font-weight: 700; }
.chain li:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 28px; z-index: 1; color: var(--c-primary); font-weight: 700; background: var(--c-bg); border-radius: 50%; width: 18px; text-align: center; line-height: 18px; }
.alt .chain li:not(:last-child)::after { background: var(--c-paper); }
.chain h3 { font-size: 16px; margin-bottom: 8px; }
.chain p { margin: 0; font-size: 13.5px; color: var(--c-secondary); line-height: 1.5; }

.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.module { padding: 24px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow-sm); }
.module-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 11px; background: var(--c-pale); color: var(--c-ink); }
.module-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module h3 { font-size: 18px; margin-bottom: 8px; }
.module p { margin-bottom: 0; font-size: 14.5px; color: var(--c-secondary); }
.note { margin: 24px 0 0; padding: 18px 22px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-primary); border-radius: 8px; background: var(--c-paper); color: var(--c-secondary); font-size: 14px; }

.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role { padding: 22px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow-sm); }
.role h3 { font-size: 17px; margin-bottom: 8px; }
.role p { margin: 0; font-size: 14.5px; color: var(--c-secondary); }

.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.screens .frame-wide { grid-column: 1 / -1; }
.frame-wide img { aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.mobile-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.mobile-block p { color: var(--c-secondary); max-width: 520px; }
.mobile-block ul { padding-left: 20px; color: var(--c-secondary); }
.phones { display: flex; gap: 20px; justify-content: center; }
.phone { width: 214px; margin: 0; overflow: hidden; border: 6px solid var(--c-heading); border-radius: 30px; background: var(--c-paper); box-shadow: var(--c-shadow); }
.phone img { width: 100%; }

.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; }
.faq-intro { position: sticky; top: 98px; align-self: start; }
.faq-intro > p:not(.eyebrow) { color: var(--c-muted); }
details { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 10px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--c-heading); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--c-primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
.faq-answer { padding: 0 20px 16px; color: var(--c-secondary); font-size: 15px; }
.faq-answer p { margin-bottom: 10px; }

.start-section { padding: 64px 0; }
.start-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.start-section h2, .start-section .eyebrow { color: #fff; }
.start-section p { color: rgb(255 255 255 / 85%); }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.start-note { margin: 0; font-size: 13px; }

.site-footer { padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer p, .site-footer a, .site-footer small { color: rgb(255 255 255 / 85%); font-size: 14px; }
.site-footer a { display: block; margin-bottom: 6px; }
.footer-domain { font-size: 13px; color: rgb(255 255 255 / 65%); }
.legal-list { list-style: none; margin: 0; padding: 0; }
.legal-list li { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 20%); }
.footer-bottom p, .footer-bottom a { margin: 0; }

@media (max-width: 1000px) {
  .hero-grid, .faq-grid, .start-grid, .mobile-block, .request-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chain li:nth-child(3n)::after { display: none; }
  .modules, .what-grid, .roles, .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--c-deep); box-shadow: 0 12px 24px rgb(0 0 0 / 25%); }
  .main-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .header-tools { margin-left: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-block: 52px; }
  .hero { padding-top: 40px; }
  .fact-strip, .modules, .what-grid, .roles, .screens, .chain { grid-template-columns: 1fr; }
  .chain li:not(:last-child)::after { display: none; }
  .phones { gap: 12px; }
  .phone { width: 46%; border-width: 4px; border-radius: 22px; }
  .brand-wordmark { font-size: 27px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* Форма заявки */
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.lead-form { display: grid; gap: 14px; padding: 26px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--c-shadow-sm); }
.lead-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--c-heading); }
.lead-form input:not([type="checkbox"]), .lead-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; font: inherit; font-weight: 400; color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 8px; }
.lead-form input:not([type="checkbox"]):focus-visible, .lead-form textarea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 1px; }
.lead-form .req { color: var(--c-primary); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 400; font-size: 13.5px; color: var(--c-secondary); }
.lead-form .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-primary); }
.lead-form button { justify-self: start; cursor: pointer; font-family: inherit; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }
.lead-status { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--c-secondary); }
.lead-status.is-error { color: var(--c-warn); font-weight: 600; }
.lead-status.is-ok { color: var(--c-ink); font-weight: 600; }
@media (max-width: 1000px) { .request-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 640px) { .lead-form { padding: 18px; } .lead-form button { justify-self: stretch; } }
