/* Публичные страницы демо-стенда. Шрифт Manrope лежит рядом (лицензия OFL),
   чтобы страницы не зависели от внешних серверов шрифтов. */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-cyrillic.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #1e88e5;
    --accent-dark: #1565c0;
    --accent-soft: #e3f2fd;
    --text: #363636;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f8f8f8;
    --border: #e6e8ec;
    --ok: #2e7d32;
    --warn: #c56a00;
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
[id] { scroll-margin-top: 84px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-right: auto; }
.nav a { color: var(--text); font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--accent-dark); text-decoration: none; }
.header-actions { display: flex; gap: 10px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-lg { padding: 13px 26px; font-size: 17px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--accent-soft); }

/* Первый экран */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lead { margin-top: 18px; font-size: 19px; color: #4b5563; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(30, 136, 229, .15); padding: 22px 24px; }
.hero-card-head { display: flex; align-items: center; gap: 10px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hero-card-head i { color: var(--accent); }
.tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-card-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.hero-card-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card-list span { color: var(--muted); }
.hero-card-list b { font-weight: 700; text-align: right; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin-top: 56px; }
.benefit { display: flex; gap: 14px; }
.benefit > i { flex: none; width: 24px; margin-top: 3px; font-size: 20px; text-align: center; color: var(--accent); }
.benefit h3 { font-size: 16px; }
.benefit p { margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Разделы и карточки */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { max-width: 70ch; color: var(--muted); font-size: 17px; }
.card-grid { display: grid; gap: 20px; margin-top: 32px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 16px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-row h3 { margin-top: 0; }
.card-row p { margin-top: 4px; }
.icon { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); font-size: 19px; }
.check-list { margin-top: 12px; }
.check-list li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 15px; color: #4b5563; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Шаги подключения */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.steps li { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.steps h3 { margin-top: 14px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Призыв */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: 28px; background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; }
.cta h2 { margin-bottom: 8px; }
.cta p { max-width: 62ch; opacity: .92; }

/* Подвал */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 24px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-footer { margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { color: var(--text); font-weight: 600; }
.footer-bottom { margin-top: 24px; font-size: 14px; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .benefit-grid, .card-grid-3, .card-grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hero { padding: 36px 0 44px; }
    .section { padding: 44px 0; }
    .benefit-grid, .card-grid-3, .card-grid-4, .steps { grid-template-columns: 1fr; }
    .header-actions { margin-left: auto; }
    .nav { order: 3; width: 100%; margin-right: 0; }
    .cta { padding: 28px 22px; }
    .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Внутренние страницы */
.page-head { padding: 48px 0 8px; background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%); }
.page-head .lead { margin-top: 14px; }
.cta-link { color: #fff; font-weight: 700; text-decoration: underline; }

/* Тарифы */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 20px 50px rgba(30, 136, 229, .15); }
.plan-badge { align-self: flex-start; margin-bottom: 10px; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.plan-note { margin-top: 4px; color: var(--muted); font-size: 15px; }
.plan-price { margin-top: 20px; font-size: 36px; line-height: 1.1; font-weight: 800; }
.plan-unit { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 3.1em; }
.plan .check-list { margin: 8px 0 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.plan .btn { margin-top: auto; }
.plan-disclaimer { margin-top: 20px; color: var(--muted); font-size: 14px; }
.service-list { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.service-list li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.service-list li:last-child { border-bottom: 0; }
.service-list p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.service-price { flex: none; font-weight: 700; color: var(--accent-dark); }
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { padding: 18px 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; color: #4b5563; }

/* О компании */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.prose p { margin-top: 14px; font-size: 17px; color: #4b5563; }
.prose p:first-child { margin-top: 0; }
.details { width: 100%; margin-top: 20px; border-collapse: collapse; }
.details th, .details td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 15px; }
.details th { width: 40%; padding-right: 16px; color: var(--muted); font-weight: 600; }
.contact-list li { display: flex; gap: 12px; margin-top: 12px; }
.contact-list i { flex: none; width: 20px; margin-top: 4px; text-align: center; color: var(--accent); }

@media (max-width: 980px) {
    .plan-grid, .about-grid { grid-template-columns: 1fr; }
    .plan-unit { min-height: 0; }
}
@media (max-width: 640px) {
    .service-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.block-title { margin-top: 40px; }
.block-action { margin-top: 24px; }

/* Документация */
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
a.card { display: block; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 12px 30px rgba(30, 136, 229, .12); }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 36px; padding-bottom: 64px; }
.doc-toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px; font-size: 15px; }
.doc-toc-title { margin-bottom: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc-toc ul ul { margin: 4px 0 6px 14px; }
.doc-toc li { margin-top: 6px; }
.doc-toc a { color: var(--text); }
.doc-toc ul ul a { color: var(--muted); }
.doc-toc a:hover { color: var(--accent-dark); text-decoration: none; }
.doc-body { min-width: 0; max-width: 860px; }
.doc-body h1 { margin-bottom: 18px; font-size: clamp(28px, 3.6vw, 40px); }
.doc-body h2 { margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 26px; }
.doc-body h3 { margin: 30px 0 10px; font-size: 20px; }
.doc-body p { margin: 12px 0; }
.doc-body ul, .doc-body ol { margin: 12px 0; padding-left: 24px; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin-top: 6px; }
.doc-body img { display: block; max-width: 100%; height: auto; margin: 18px 0 6px; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .07); }
.doc-body table { display: block; width: 100%; margin: 16px 0; border-collapse: collapse; overflow-x: auto; font-size: 15px; }
.doc-body th, .doc-body td { padding: 9px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc-body th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.doc-body code { padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .9em; }
.doc-body pre { margin: 16px 0; padding: 16px 18px; border-radius: 12px; background: #1f2733; color: #e6edf3; overflow-x: auto; font-size: 14px; line-height: 1.5; }
.doc-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

@media (max-width: 980px) {
    .doc-layout { grid-template-columns: 1fr; gap: 20px; }
    .doc-toc { position: static; max-height: none; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-alt); }
    .doc-cards { grid-template-columns: 1fr; }
}

/* Коды ОКВЭД на странице «О компании» */
.okved-list { margin-top: 16px; }
.okved-list li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); color: #4b5563; }
.okved-code { flex: none; min-width: 84px; padding: 3px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; text-align: center; }
