/*
 * Публичный сайт ServiceCenterSoft.
 *
 * Свои стили, без сторонних библиотек. Вид взят с действующего сайта и подтянут:
 * тёмная шапка с логотипом-шестерёнкой (при наведении шестерёнка меняется, как и было),
 * первый экран с фотографией и затемнением, чередование белых и серых секций,
 * круглые иконки у преимуществ, появление блоков при прокрутке, наведение на карточки.
 *
 * Шрифт — Fira Sans, тот же, что на действующем сайте.
 */

:root {
    --brand: #4a8fd4;
    --brand-dark: #2f6ea8;
    --brand-soft: #eaf2fb;
    --ink: #17202e;
    --ink-soft: #3b4658;
    --dark: #0b1117;
    --muted: #5d6877;
    --line: #e4e9f0;
    --bg-soft: #f5f8fc;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(23, 32, 46, .06), 0 8px 24px rgba(23, 32, 46, .06);
    --shadow-lg: 0 2px 6px rgba(23, 32, 46, .08), 0 18px 48px rgba(23, 32, 46, .12);
    --header-h: 68px;
    --wrap: 1180px;
    --font: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------------ основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    background: #fff;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(32px, 4.8vw, 50px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
h3 { font-size: clamp(19px, 2.2vw, 22px); }
p { margin: 0 0 1em; }

a { color: var(--brand-dark); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
code { background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 52px 0; }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 6px 14px;
    background: var(--brand-soft); color: var(--brand-dark);
    border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: .02em;
}

/* ------------------------------------------------------------------ кнопки */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(74, 143, 212, .35); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 10px 26px rgba(47, 110, 168, .45); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); box-shadow: var(--shadow); }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 18px; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ------------------------------------------------------------------ шапка */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 99;
    background: rgba(11, 17, 23, .9);
    backdrop-filter: saturate(160%) blur(8px);
    transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(11, 17, 23, .98); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.header-row { display: flex; align-items: center; gap: 26px; height: var(--header-h); }

/* Логотип как на действующем сайте: шестерёнка + название прописными,
   при наведении белая шестерёнка сменяется бело-синей */
.logo { position: relative; display: flex; align-items: center; padding-left: 52px; height: 40px; }
.logo:hover { text-decoration: none; }
.logo::before, .logo::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; margin: auto;
    width: 40px; height: 40px; background-repeat: no-repeat; background-position: center;
    background-size: contain; transition: opacity .3s ease;
}
.logo::before { background-image: url(/assets/img/logo-cogs-white.png); opacity: 1; }
.logo::after  { background-image: url(/assets/img/logo-cogs-blue.png); opacity: 0; }
.logo:hover::after { opacity: 1; }
.logo span {
    font-size: 21px; font-weight: 500; color: #fafafa; text-transform: uppercase;
    letter-spacing: .01em; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav > a {
    position: relative; color: rgba(255, 255, 255, .82); font-size: 16px; padding: 4px 0;
}
.nav > a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
    background: var(--brand); transition: right .25s ease;
}
.nav > a:hover { color: #fff; text-decoration: none; }
.nav > a:hover::after, .nav > a.active::after { right: 0; }
.nav > a.active { color: #fff; }

.langs { display: flex; gap: 2px; }
.langs a {
    padding: 4px 8px; border-radius: 6px; font-size: 13px; font-weight: 500;
    color: rgba(255, 255, 255, .6); text-transform: uppercase;
}
.langs a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.langs a.active { background: var(--brand); color: #fff; }

.nav-toggle { display: none; }
.nav-button {
    display: none; margin-left: auto; width: 42px; height: 42px; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
}
.nav-button span { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
.nav-button span::before, .nav-button span::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; transition: transform .25s;
}
.nav-button span::before { top: -6px; }
.nav-button span::after { top: 6px; }

/* ------------------------------------------------------------------ первый экран */
.hero {
    position: relative; display: flex; align-items: center;
    min-height: 640px; padding: calc(var(--header-h) + 60px) 0 70px;
    color: #fff; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    animation: hero-zoom 24s ease-in-out infinite alternate;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, rgba(11, 17, 23, .92) 0%, rgba(11, 17, 23, .78) 45%, rgba(11, 17, 23, .35) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 20px; max-width: 16em; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 20px; max-width: 36em; margin-bottom: 30px; }
.hero .eyebrow { background: rgba(74, 143, 212, .25); color: #cfe3f8; }
.hero-note { margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .6); max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; }
.hero-fact b { display: block; font-size: 30px; font-weight: 600; color: #fff; line-height: 1.1; }
.hero-fact span { font-size: 15px; color: rgba(255, 255, 255, .65); }

/* Полоса с фотографией у внутренних страниц */
.page-hero {
    position: relative; padding: calc(var(--header-h) + 54px) 0 46px; color: #fff; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(11, 17, 23, .93), rgba(11, 17, 23, .7));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 0; }
.page-hero .lead { color: rgba(255, 255, 255, .82); margin-top: 14px; margin-bottom: 0; max-width: 46em; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: rgba(255, 255, 255, .62); }
.page-hero .breadcrumbs a:hover { color: #fff; }

.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 8px; opacity: .6; }

/* ------------------------------------------------------------------ сетки и карточки */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; display: block; }
a.card:hover, .card-hover:hover {
    border-color: rgba(74, 143, 212, .5); box-shadow: var(--shadow-lg);
    transform: translateY(-4px); text-decoration: none;
}
a.card .more { display: inline-block; margin-top: 10px; color: var(--brand-dark); font-weight: 500; }
a.card:hover .more { text-decoration: underline; }

/* Круглая иконка — как у преимуществ на действующем сайте */
.icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; margin-bottom: 20px;
    background: var(--brand-soft); color: var(--brand-dark); border-radius: 50%;
    transition: background .25s, color .25s, transform .25s;
}
.icon svg { width: 30px; height: 30px; }
a.card:hover .icon, .card-hover:hover .icon { background: var(--brand); color: #fff; transform: scale(1.06); }

/* Блок «преимущество»: иконка слева, текст справа */
.advantage { display: flex; gap: 20px; margin-bottom: 30px; }
.advantage .icon { flex: 0 0 64px; margin-bottom: 0; }
.advantage h3 { margin-bottom: .3em; }
.advantage p { margin-bottom: 0; color: var(--muted); }

/* Шаги «как начать» */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 74px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: -6px;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: 22px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(74, 143, 212, .35);
}

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.checks li::before {
    content: ''; position: absolute; left: 5px; top: .5em;
    width: 13px; height: 7px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
    transform: rotate(-45deg);
}

/* Картинка в секции */
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.shot img { display: block; width: 100%; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------------ цены */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price-tag { font-size: 42px; font-weight: 600; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.price-tag small { font-size: 16px; font-weight: 400; color: var(--muted); }
.price-card .btn { margin-top: auto; }
.price-note { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------ призыв к действию */
.cta {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: linear-gradient(135deg, #1d4b77, var(--brand));
    color: #fff; padding: 56px; text-align: center;
}
.cta::after {
    content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px;
    border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); }
.cta .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.cta .btn-primary:hover { background: #eef5fc; color: var(--brand-dark); }
.cta .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------------------------ подвал */
.site-footer { background: var(--dark); color: #98a3b3; padding: 64px 0 28px; margin-top: 90px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer a { color: #98a3b3; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { position: relative; display: inline-flex; align-items: center; height: 36px; padding-left: 46px; margin-bottom: 16px; }
.footer-logo::before {
    content: ''; position: absolute; left: 0; top: 0; width: 36px; height: 36px;
    background: url(/assets/img/logo-cogs-blue.png) no-repeat center; background-size: contain;
}
.footer-logo span { color: #fff; font-weight: 500; text-transform: uppercase; font-size: 18px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}
.site-footer .langs a { color: rgba(255, 255, 255, .55); }
.site-footer .langs a.active { background: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ текстовые страницы */
.prose { font-size: 17px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 500; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--muted); }
.page-body { padding-bottom: 20px; }

/* Страница с оглавлением: текст слева, оглавление справа и держится при прокрутке.
   На узком экране оглавление прячем — там проще пролистать саму страницу. */
.page-layout {
    display: grid; grid-template-columns: minmax(0, 760px) 260px;
    gap: 56px; align-items: start; justify-content: center;
}
.page-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.page-toc-inner { padding: 20px 22px; background: var(--bg-soft); border-radius: var(--radius); }
.page-toc h4 {
    margin: 0 0 12px; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0 0 2px; }
.toc-list a {
    display: block; padding: 6px 10px; border-left: 2px solid var(--line);
    color: var(--ink-soft); font-size: 15px; line-height: 1.4;
    transition: border-color .2s, color .2s, background .2s;
}
.toc-list a:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; text-decoration: none; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* --------------------------------------------- снимки экрана и заготовки под них */
/* Пока снимка нет, на его месте стоит схема нужного экрана: серые полосы, из которых
   он узнаётся. Это честнее пустой рамки и не выглядит недоделкой (engine/modules/shots.php) */
.shot-figure { margin: 2em 0; }
.shot-figure img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.shot-figure figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.shot-figure figcaption b { color: var(--ink-soft); font-weight: 500; }
.shot-soon { white-space: nowrap; }
.shot-soon::before { content: '· '; }

.shot-stub .shot-skel {
    padding: 18px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.shot-skel span, .shot-skel-bar, .shot-skel-field, .shot-skel-btn {
    display: block; border-radius: 4px; background: #dde5ef;
}
.shot-skel-bar { height: 30px; margin-bottom: 14px; background: #cfdae8; }

.shot-skel-list .shot-skel-row {
    display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid #e6ecf4;
}
.shot-skel-list .shot-skel-row span { height: 10px; }
.shot-skel-list .shot-skel-row:first-child { border-top: 0; }

.shot-skel-form .shot-skel-fields {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.shot-skel-form .shot-skel-field { height: 34px; background: #fff; border: 1px solid #dde5ef; }
.shot-skel-form .shot-skel-btn { width: 120px; height: 34px; margin-top: 16px; background: #b9d2ec; }

.shot-skel-doc { background: #fff; }
.shot-skel-doc .shot-skel-lines { display: grid; gap: 11px; }
.shot-skel-doc .shot-skel-lines span { height: 10px; }
.shot-skel-doc .shot-skel-lines span:first-child { height: 16px; background: #cfdae8; }

/* ------------------------------------------------------------------ документация */
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 20px); }
.docs-menu, .docs-menu ul { list-style: none; margin: 0; padding: 0; }
.docs-menu li { margin: 2px 0; }
.docs-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-size: 16px; transition: background .2s, color .2s; }
.docs-menu a:hover { background: var(--bg-soft); text-decoration: none; color: var(--brand-dark); }
.docs-menu li.active > a { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.docs-menu ul { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--line); }
.docs-side-title {
    margin: 0 0 14px; font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--muted);
}
.docs-search { margin-bottom: 20px; }
.docs-search input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.docs-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.docs-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }

/* Поиск с кнопкой — на оглавлении и на странице результатов */
.docs-search-wide { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 36px; }
.docs-search-wide input { flex: 1 1 auto; }
.docs-search-wide button {
    flex: 0 0 auto; padding: 12px 26px; border: 0; border-radius: var(--radius-sm);
    background: var(--brand); color: #fff; font: inherit; font-weight: 500; cursor: pointer;
    transition: background .2s;
}
.docs-search-wide button:hover { background: var(--brand-dark); }

/* Карточки разделов в оглавлении документации */
.docs-cards .doc-card { padding-left: 84px; }
.doc-num {
    position: absolute; left: 26px; top: 28px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center; font-weight: 600;
    transition: background .25s, color .25s;
}
.doc-card:hover .doc-num { background: var(--brand); color: #fff; }
.doc-card h3 { margin-bottom: .35em; }
.doc-card h3 a { color: var(--ink); }
.doc-card h3 a:hover { color: var(--brand-dark); text-decoration: none; }
.doc-card-links { list-style: none; margin: 14px 0 0; padding: 0; }
.doc-card-links li { margin-bottom: .3em; }
.doc-card-links a { font-size: 15px; }
.doc-card .more { display: inline-block; margin-top: 16px; font-weight: 500; }

/* Найденные разделы */
.docs-results { display: grid; gap: 14px; }
.docs-found {
    display: block; padding: 22px 26px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.docs-found:hover { border-color: rgba(74, 143, 212, .5); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.docs-found h3 { margin-bottom: .3em; font-size: 19px; color: var(--brand-dark); }
.docs-found p { margin: 0; }

/* «Не нашли ответ» в конце раздела */
.docs-help { margin-top: 42px; padding: 26px 30px; background: var(--bg-soft); border-radius: var(--radius); }
.docs-help h3 { margin-bottom: .3em; }
.docs-help p { margin-bottom: 16px; }

/* ------------------------------------------------------------------ новости */
.news-card { display: block; }
.news-card h3 { margin-bottom: .35em; }
.news-date { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.news-date.light { color: rgba(255, 255, 255, .7); margin-top: 14px; }

/* Постраничный переход: номера страниц частью адреса (/news/page/2/) */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pager a, .pager span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink-soft); font-size: 16px; background: #fff;
    transition: border-color .2s, color .2s, background .2s;
}
.pager a:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.pager .pager-gap { border: 0; background: transparent; color: var(--muted); min-width: 24px; padding: 0; }

/* Пусто: раздела ещё нет или в нём пока ничего не опубликовано */
.empty-state { max-width: 620px; margin: 0 auto; padding: 56px 24px; text-align: center; }
.empty-state .icon { width: 76px; height: 76px; }
.empty-state .icon svg { width: 36px; height: 36px; }
.empty-state h2 { font-size: 26px; }
.empty-state .btn-row { justify-content: center; }

/* ------------------------------------------------------------------ вопросы */
.faq-group { font-size: 23px; margin: 40px 0 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer; padding: 18px 34px 18px 0; font-weight: 500; color: var(--ink);
    list-style: none; position: relative; transition: color .2s;
}
.faq-item summary:hover { color: var(--brand-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ''; position: absolute; right: 8px; top: 26px;
    width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ отзывы */
.reviews-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin: 26px 0; }
.review {
    margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review blockquote { margin: 0 0 16px; padding: 0; border: 0; color: var(--ink-soft); font-size: 17px; }
.review figcaption { color: var(--muted); font-size: 15px; }
.review-stars { color: #f0a500; letter-spacing: 3px; margin-bottom: 12px; }
.review-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; float: right; margin-left: 14px; }

/* ------------------------------------------------------------------ формы */
.feedback-form { max-width: 580px; }
.feedback-form .field { margin-bottom: 18px; }
.feedback-form label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 500; color: var(--ink); }
.feedback-form input, .feedback-form textarea, .feedback-form select {
    width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.feedback-form input:focus, .feedback-form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.feedback-form .field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-form button {
    padding: 15px 34px; border: 0; border-radius: var(--radius-sm); background: var(--brand);
    color: #fff; font: inherit; font-weight: 500; cursor: pointer;
    box-shadow: 0 6px 18px rgba(74, 143, 212, .35); transition: background .2s, transform .15s, box-shadow .2s;
}
.feedback-form button:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47, 110, 168, .45); }

.form-error, .form-ok { margin-bottom: 20px; padding: 15px 20px; border-radius: var(--radius-sm); font-size: 16px; }
.form-error { background: #fdecea; color: #8a1c13; }
.form-ok { background: #e7f6ec; color: #1b5e20; }

/* ------------------------------------------------------------------ мелочи */
.notice { padding: 15px 20px; border-radius: var(--radius-sm); background: #fff8e6; color: #92610a; margin-bottom: 22px; }
.error-page { padding: calc(var(--header-h) + 80px) 0 90px; text-align: center; }
.error-code { font-size: 120px; font-weight: 600; color: var(--brand-soft); line-height: 1; }
.impersonation-banner { position: relative; z-index: 100; background: #fff4de; color: #7a5b00; padding: 10px 0; font-size: 15px; }

/* Появление блоков при прокрутке (включает assets/site/site.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-bg { animation: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ планшет и телефон */
@media (max-width: 1100px) {
    /* Оглавление страницы — помощник, а не содержание: на узком экране убираем */
    .page-layout { display: block; max-width: 800px; }
    .page-toc { display: none; }
}

@media (max-width: 980px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-side { position: static; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .docs-search-wide { margin-bottom: 28px; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .section { padding: 56px 0; }
    .hero { min-height: 520px; padding: calc(var(--header-h) + 40px) 0 50px; }
    .hero-facts { gap: 26px; }
    .cta { padding: 36px 24px; }
    .logo span { font-size: 18px; }

    .nav-button { display: flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: var(--header-h);
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        margin: 0; padding: 14px 20px 22px;
        background: rgba(11, 17, 23, .98); box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
    }
    .nav > a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .nav .btn { margin-top: 14px; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .langs { margin-top: 14px; }

    .docs-search-wide { flex-wrap: wrap; }
    .docs-search-wide button { width: 100%; }
    .docs-cards .doc-card { padding-left: 26px; }
    .doc-num { position: static; margin-bottom: 14px; }
    .empty-state { padding: 36px 8px; }
}

@media (max-width: 460px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn, .btn-row .btn { width: 100%; }
    .step { padding-left: 0; padding-top: 66px; }
    .step::before { top: 0; }
}
