/* ev-gerasimov.ru — общие стили страниц /ozon-dostavka/woocommerce, /ozon-dostavka/demo и статей кластера /ozon-dostavka/<slug> (23.10.2026).
   Цвета, шрифты (Manrope + Unbounded), радиусы и кнопки — как на лендинге /ozon-dostavka.
   Сначала телефон: 320–480 px без горизонтальной прокрутки, отступы по бокам 16 px. */

:root {
    --ink: #080D1C;
    --ink2: #0F162B;
    --ink3: #18213C;
    --text: #0C1323;
    --muted: #5A6479;
    --line: #E3E8F1;
    --soft: #F3F5FA;
    --blue: #2457FF;
    --blue2: #5B83FF;
    --blue-soft: #EEF2FF;
    --ozon: #005BFF;
    --lime: #C6F36A;
    --green: #12A15E;
    --red: #D92D20;
    --warn-bg: #FFF7DD;
    --warn-text: #5E4A12;
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-h: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #1C4CF0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue2); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: 16px; }

.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -10000px; top: 8px; z-index: 200; background: #fff; color: var(--text); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }

/* ---------- header / footer ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; min-height: 60px; }
.top a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 700; }
.top a:hover { color: var(--blue); }
.top .brand { font-weight: 800; letter-spacing: -.01em; }
.top .top-link { color: var(--blue); }
/* Вход в кабинет — заметная кнопка в шапке (владелец, 24.10.2026) */
.top .top-login { gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--blue); border-radius: 10px; color: var(--blue); background: #fff; white-space: nowrap; transition: background .15s, color .15s; }
.top .top-login:hover, .top .top-login:focus-visible { background: var(--blue); color: #fff; }
.top .top-login-i { width: 18px; height: 18px; flex: 0 0 18px; }
@media (max-width: 480px) { .top-nav .top-opt { display: none; } }

.foot { border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ---------- headings & text ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(36, 87, 255, .15); flex: none; }
.dark .eyebrow, .hero .eyebrow { color: var(--lime); }
.dark .eyebrow::before, .hero .eyebrow::before { box-shadow: 0 0 0 4px rgba(198, 243, 106, .15); }

.h1, .h2 { font-family: var(--font-h); font-weight: 600; letter-spacing: -.02em; }
.h1 { font-size: clamp(25px, 3.6vw + 12px, 46px); line-height: 1.12; margin-top: 16px; }
.h2 { font-size: clamp(22px, 1.6vw + 14px, 34px); line-height: 1.18; margin-top: 10px; }
.h3 { font-size: 19.5px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin-top: 16px; max-width: 760px; }
.dark .lead, .hero .lead { color: #B4BDD2; }
.dark .lead b, .hero .lead b { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.55; }

.prose p { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }

.path {
    background: var(--soft);
    border-radius: 7px;
    padding: 1px 6px;
    font-weight: 700;
    font-size: .95em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    overflow-wrap: anywhere;
}
code {
    font-family: var(--mono);
    font-size: .86em;
    background: var(--soft);
    border-radius: 6px;
    padding: 1px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.codes code { font-size: 14px; padding: 4px 8px; border: 1px solid var(--line); background: #fff; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 26px;
    border: 0;
    border-radius: 16px;
    font: 800 16.5px/1.25 var(--font);
    text-align: center;
    text-decoration: none;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 34px rgba(36, 87, 255, .3);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #1C4CF0; color: #fff; transform: translateY(-1px); box-shadow: 0 18px 40px rgba(36, 87, 255, .4); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lime { background: var(--lime); color: #0B1220; box-shadow: 0 14px 34px rgba(198, 243, 106, .22); }
.btn-lime:hover { background: #D3F985; color: #0B1220; box-shadow: 0 18px 40px rgba(198, 243, 106, .32); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-line { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1.5px #CBD3E1; }
.btn-line:hover { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .7; cursor: progress; transform: none; }
.btn-lg { min-height: 62px; font-size: 18px; padding: 16px 30px; }

/* ---------- hero (dark) ---------- */
.dark { background: var(--ink); color: #E9EDF7; }
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 560px at 88% 0%, rgba(36, 87, 255, .42), transparent 62%),
        radial-gradient(700px 420px at -5% 105%, rgba(198, 243, 106, .12), transparent 60%),
        var(--ink);
    color: #EEF1F8;
    padding: 40px 0 60px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .h1 { max-width: 920px; }
.hero-note { margin-top: 18px; font-size: 15px; line-height: 1.55; color: #98A3BC; max-width: 760px; }
.hero-note b { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { font-size: 14px; font-weight: 700; line-height: 1.3; padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #DDE3F0; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; list-style: none; font-size: 14px; color: #98A3BC; margin-bottom: 18px; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #5F6A85; }
.crumbs a { color: #C9D1E3; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- guide layout ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding: 48px 0 16px; }
.toc-wrap { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.toc { font-size: 15px; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: 14px; background: var(--soft); font-weight: 800; font-size: 16px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 12px; height: 12px; border-right: 2.5px solid var(--text); border-bottom: 2.5px solid var(--text); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; flex: none; }
.toc[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.toc ol { list-style: none; counter-reset: toc; margin-top: 8px; }
.toc li { counter-increment: toc; }
.toc li a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; line-height: 1.35; }
.toc li a::before { content: counter(toc); flex: none; width: 20px; color: var(--muted); font-weight: 700; }
.toc li a:hover { background: var(--soft); color: var(--blue); }
.toc-cta { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--blue-soft); font-size: 14.5px; line-height: 1.45; }
.toc-cta .btn { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 15px; margin-top: 10px; box-shadow: none; }

.article { min-width: 0; max-width: 780px; }
.sec { margin-top: 56px; }
.sec:first-child { margin-top: 0; }
.sec-head { margin-bottom: 18px; }
.sec-head .lead { font-size: 17.5px; margin-top: 12px; }

/* ---------- blocks ---------- */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #fff; }
.card .h3 { display: flex; align-items: center; gap: 10px; }
.card .h3 svg { width: 22px; height: 22px; color: var(--ozon); }
.card .list { margin-top: 12px; }

.list { list-style: none; margin-top: 10px; }
.list li { position: relative; padding-left: 22px; margin-top: 8px; line-height: 1.55; }
.list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.olist { list-style: none; counter-reset: ol; margin-top: 12px; }
.olist > li { counter-increment: ol; position: relative; padding-left: 40px; margin-top: 12px; line-height: 1.55; }
.olist > li::before { content: counter(ol); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 14.5px; display: flex; align-items: center; justify-content: center; }

.checks { list-style: none; margin-top: 12px; }
.checks > li { position: relative; padding-left: 34px; margin-top: 12px; line-height: 1.55; }
.checks > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #E3F6EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.2' fill='none' stroke='%2312A15E' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
}
.checks .list li { margin-top: 4px; }

.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--blue-soft); font-size: 16px; line-height: 1.55; margin-top: 16px; }
.callout > svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--blue); }
.callout-warn { background: var(--warn-bg); color: var(--warn-text); }
.callout-warn > svg { color: #B7791F; }
.callout-warn a { color: inherit; }
.callout p + p { margin-top: 8px; }

.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.req { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.req dt { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.req dd { margin: 4px 0 0; line-height: 1.5; }
.req dd b { font-size: 17.5px; }
.req-wide { grid-column: 1 / -1; }

.step { border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-top: 14px; background: #fff; }
.step-n { display: inline-flex; align-items: center; font: 600 13px/1 var(--font-h); letter-spacing: .02em; color: var(--blue); background: var(--blue-soft); border-radius: 9px; padding: 7px 10px; }
.step .h3 { margin-top: 12px; }
.step .prose { margin-top: 8px; }
.step .sub { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.step .sub .h4 { font-size: 17px; font-weight: 800; line-height: 1.4; }

/* CTA strip in the middle of the guide */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 26px 28px; border-radius: 22px; background: var(--ink); color: #fff; }
.strip p { font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.strip p span { display: block; font-size: 16px; font-weight: 500; color: #A9B3C9; margin-top: 6px; letter-spacing: 0; line-height: 1.5; }
.strip .btns { margin-top: 0; flex-direction: column; flex: none; }
.strip .btn { min-height: 52px; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.price { background: var(--soft); border-radius: 18px; padding: 18px 18px 16px; }
.price span { display: block; font-size: 15px; font-weight: 700; color: var(--muted); }
.price b { display: block; font: 600 24px/1.15 var(--font-h); letter-spacing: -.02em; margin-top: 6px; white-space: nowrap; }
.price small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.turnkey { margin-top: 14px; padding: 24px; border-radius: 22px; color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgba(36, 87, 255, .5), transparent 65%), var(--ink); }
.turnkey .h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.turnkey .h3 b { font: 600 26px/1.1 var(--font-h); letter-spacing: -.02em; color: var(--lime); }
.turnkey p { color: #C9D1E3; margin-top: 10px; line-height: 1.55; }
.turnkey .btn { margin-top: 18px; }

/* FAQ */
.faq { margin-top: 12px; }
details.q { border-top: 1px solid var(--line); }
details.q:last-child { border-bottom: 1px solid var(--line); }
details.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 700; line-height: 1.4; min-height: 56px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%230C1323' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; transition: transform .25s; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q .a { padding: 0 48px 20px 0; color: var(--muted); line-height: 1.65; }

/* final */
.final { text-align: center; padding: 72px 0 48px; background: radial-gradient(800px 420px at 50% 0%, rgba(36, 87, 255, .4), transparent 65%), var(--ink); color: #fff; }
.final .h2, .final .lead { margin-left: auto; margin-right: auto; max-width: 820px; }
.final .btns { justify-content: center; }
.disc { max-width: 860px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13px; line-height: 1.6; color: #7C86A0; }

/* cookie banner */
.cookie {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 100;
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 14px 18px;
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 20px 50px rgba(12, 19, 35, .2), 0 0 0 1px var(--line);
    font-size: 14.5px;
    line-height: 1.45;
}
.cookie .btn { min-height: 48px; padding: 10px 22px; flex: none; width: auto; box-shadow: none; }

/* ---------- demo page ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 48px; align-items: start; padding: 44px 0 56px; }
.demo-info { min-width: 0; }
.get { list-style: none; margin-top: 16px; }
.get li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.get li:last-child { border-bottom: 1px solid var(--line); }
.get .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.get .ico svg { width: 21px; height: 21px; }
.get b { display: block; font-size: 17px; }
.get span { display: block; color: var(--muted); font-size: 15.5px; margin-top: 2px; }
.reqs-short { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.reqs-short li { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.45; }
.demo-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 22px; }
.demo-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.form-card { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(12, 19, 35, .12), 0 0 0 1px var(--line); }
.form-card .h3 { font-size: 21px; }
.form-card .sub-t { color: var(--muted); font-size: 15.5px; margin-top: 6px; line-height: 1.5; }
.form { margin-top: 20px; }
.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field > label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
.field > label i { font-style: normal; color: var(--red); }
.input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1.5px solid #CBD3E1;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: 500 16px/1.4 var(--font);
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder { color: #98A1B3; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 87, 255, .15); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }
.hint { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.f-err { font-size: 14.5px; line-height: 1.45; color: var(--red); font-weight: 700; margin-top: 6px; }
.checks-f { margin-top: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--blue); cursor: pointer; }
.check.is-invalid input { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #8F1D14; font-size: 15px; font-weight: 600; line-height: 1.5; }
.form .btn[type="submit"] { width: 100%; margin-top: 18px; }
.form-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; }

.done { outline: none; }
.done-ico { width: 52px; height: 52px; border-radius: 16px; background: #E3F6EC; color: var(--green); display: flex; align-items: center; justify-content: center; }
.done-ico svg { width: 28px; height: 28px; }
.done .h2 { margin-top: 16px; }
.done-msg { color: var(--muted); margin-top: 6px; }
.done .btn-lg { width: 100%; margin-top: 20px; }
.done-meta { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.done-meta li { background: var(--soft); border-radius: 12px; padding: 10px 14px; font-size: 15.5px; line-height: 1.45; }
.done-mail { margin-top: 14px; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.done-next { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.done-next .olist > li { font-size: 15.5px; }

.mobile-only { display: none; }

/* ---------- header nav, footer (общие для всех страниц кластера) ---------- */
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.top-nav a { min-height: 48px; }
.foot .wrap { display: block; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav + .foot-nav { border-top: 1px solid var(--line); margin-top: 4px; }
.foot .foot-nav a { min-height: 48px; }
.foot-req { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.foot .foot-req a { display: inline; min-height: 0; color: var(--muted); }

/* ---------- articles of the cluster ---------- */
.byline { margin-top: 18px; font-size: 14.5px; line-height: 1.55; color: #98A3BC; max-width: 760px; }
.byline a { color: #C9D1E3; }
.byline a:hover { color: #fff; }

.atext > * + * { margin-top: 14px; }
.atext > .h3 { margin-top: 30px; }
.atext > .h4 { margin-top: 22px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.atext > .h3 + *, .atext > .h4 + * { margin-top: 8px; }
.atext > .callout { margin-top: 18px; }
.atext > .faq { margin-top: 8px; }
.faq .a p + p { margin-top: 8px; }

.more { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.more a { font-weight: 700; }

.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.tbl thead th { border-top: 0; background: var(--soft); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tbl td:first-child { font-weight: 700; }

.rel { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rel li { min-width: 0; }
.rel a { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 48px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.rel a:hover { color: var(--text); border-color: var(--blue); box-shadow: 0 10px 28px rgba(36, 87, 255, .1); }
.rel b { font-size: 16.5px; line-height: 1.35; color: var(--blue); }
.rel span { font-size: 15px; line-height: 1.5; color: var(--muted); }

.hub-group { scroll-margin-top: 16px; }
.atext > .hub-group { margin-top: 34px; }
.atext > .hub-group:first-child { margin-top: 0; }
.hub-group .h3 { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.hub-group .h3 span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 48px; padding: 22px; border-radius: 20px; background: var(--soft); }
.author-ava { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--lime); font: 600 18px/56px var(--font-h); text-align: center; }
.author-body { min-width: 0; }
.author-body p { font-size: 16px; line-height: 1.55; }
.author-name { font-size: 18px; font-weight: 800; }
.author-body .author-name a { color: var(--text); text-decoration: none; }
.author-body .author-name a:hover { color: var(--blue); }
.author-body .author-role { font-size: 14.5px; color: var(--muted); margin: 2px 0 8px; }
.author-more { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; }
.author-more svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
    .toc-wrap { position: static; max-height: none; overflow: visible; }
    .toc-cta { display: none; }
    .article { max-width: none; }
}
@media (max-width: 900px) {
    .demo { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
    .mobile-only { display: block; }
}
@media (max-width: 720px) {
    .cols2, .reqs { grid-template-columns: 1fr; }
    .strip { flex-direction: column; align-items: stretch; padding: 22px 18px; }
    .strip .btns { flex: auto; }
    .prices { grid-template-columns: 1fr; }
    .price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 14px 16px; }
    .price b { margin-top: 0; font-size: 21px; }
    .price small { width: 100%; margin-top: 0; text-align: right; }
}
@media (max-width: 640px) {
    body { font-size: 16px; line-height: 1.55; }
    .wrap { padding: 0 16px; }
    .hero { padding: 28px 0 44px; }
    .lead { font-size: 17px; }
    .sec-head .lead { font-size: 16.5px; }
    .h3 { font-size: 18px; }
    .btns { flex-direction: column; }
    .btn { width: 100%; min-height: 52px; padding: 13px 18px; font-size: 16px; }
    .btn-lg { min-height: 58px; font-size: 17px; }
    .sec { margin-top: 44px; }
    .card { padding: 18px 16px; border-radius: 16px; }
    .step { padding: 18px 16px; border-radius: 16px; }
    .callout { padding: 14px; font-size: 15.5px; }
    .turnkey { padding: 20px 16px; }
    .reqs-short { grid-template-columns: 1fr; }
    details.q summary { font-size: 16.5px; }
    details.q .a { padding-right: 0; }
    .final { padding: 52px 0 40px; }
    .form-card { padding: 20px 16px; border-radius: 20px; }
    .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 12px 12px 12px 14px; font-size: 14px; }
    .cookie .btn { width: auto; min-height: 48px; padding: 10px 18px; }
    .top a { font-size: 15px; }
}
@media (max-width: 720px) {
    .rel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    /* таблицы статей на телефоне — карточками, без горизонтальной прокрутки */
    .tbl { border: 0; border-radius: 0; overflow: visible; }
    .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .tbl tr { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 12px; }
    .tbl tr + tr { margin-top: 10px; }
    .tbl td { border: 0; padding: 8px 0 0; font-size: 15.5px; }
    .tbl td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
    .tbl td:first-child { font-size: 16.5px; padding-top: 10px; }
    .tbl td:first-child::before { display: none; }
    .tbl .t2 td::before { display: none; }
    .tbl .t2 td + td { padding-top: 4px; }
    .author { padding: 18px 16px; }
    .rel a { padding: 14px 16px; }
}
@media (max-width: 560px) {
    .top .wrap { flex-direction: column; align-items: stretch; gap: 0; }
    .top-nav { justify-content: space-between; gap: 0 12px; border-top: 1px solid var(--line); }
    .foot-nav { gap: 0 18px; }
}
@media (max-width: 420px) {
    .author { flex-direction: column; gap: 12px; }
}
@media (max-width: 400px) {
    .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .top, .toc, .strip, .cookie, .final .btns, .btns { display: none !important; }
    .hero, .final { background: #fff; color: var(--text); }
}
/* hotfix-header-login 24.10.2026: на телефонах шапка в одну строку — имя слева, «Войти» справа; ссылки не дублируют хлебные крошки. */
@media (max-width: 560px) { .top .wrap { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; min-height: 60px; } .top-nav { border-top: 0; flex-wrap: nowrap; gap: 0; } .top-nav a:not(.top-login) { display: none; } .top .top-login { position: static; min-height: 40px; } }
