/* ============================================================
   Вместе за родное — дизайн-система публичного сайта
   Гамма: глубокий синий (доверие) + терракотовый акцент (тепло)
   Полностью адаптивна: 1440 → 360px. Mobile-меню, кнопка «наверх».
   ============================================================ */

:root {
    /* Палитра */
    --c-ink:        #16243a;
    --c-navy:       #1f3a5f;
    --c-navy-700:   #16304f;
    --c-accent:     #d9663f;
    --c-accent-600: #c4552f;
    --c-bg:         #f7f5f1;
    --c-surface:    #ffffff;
    --c-muted:      #6b7280;
    --c-line:       #e7e2d9;

    /* Типографика (флюидная) */
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --fs-h1: clamp(30px, 5vw, 56px);
    --fs-h2: clamp(24px, 3.6vw, 40px);
    --fs-lead: clamp(16px, 2vw, 21px);

    /* Радиусы и тени */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --shadow:    0 6px 24px rgba(22, 36, 58, .08);
    --shadow-lg: 0 18px 48px rgba(22, 36, 58, .14);

    /* Сетка */
    --gap: clamp(16px, 2.5vw, 24px);
    --header-h: 72px;

    /* Единая система ширин — одна точка правды */
    --container:      1200px;   /* основной контент */
    --container-wide: 1320px;   /* для широких секций (hero, cta) */
    --container-narrow: 1100px;  /* для документов-«читалок» */

    /* Поля контейнера — флюидные */
    --container-pad: clamp(16px, 4vw, 32px);

    /* Общий потолок для широких мониторов (защита от «разъезжания») */
    --max-page: 1600px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--c-ink);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }
h1, h2, h3 { line-height: 1.2; color: var(--c-ink); margin: 0 0 .5em; font-weight: 800; }
ul { margin: 0; }
.muted { color: var(--c-muted); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Варианты ширин */
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* Доступность: фокус */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, label:focus-visible {
    outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 6px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--c-accent); color:#fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: var(--r-sm); }

/* ============================================================
   Header + навигация
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--c-ink); }
.brand__mark {
    width: 40px; height: 40px; display: grid; place-items: center; flex: none;
    background: var(--c-navy); color: #fff; border-radius: 12px;
    font-size: 20px; box-shadow: var(--shadow);
}
.brand__text { font-size: clamp(16px, 2.2vw, 18px); }
.brand__logo { display: block; width: 40px; height: 40px; flex: 0 0 auto; }

.site-nav__link {
    display: inline-block; padding: 10px 16px; border-radius: var(--r-sm);
    font-weight: 600; color: var(--c-ink);
}
.site-nav__link:hover { background: rgba(31,58,95,.07); }
.site-nav__link.is-active { color: var(--c-accent); background: rgba(217,102,63,.1); }

/* Бургер (анимированный, CSS-only через чекбокс) */
.nav-toggle { display: none; }
.nav-burger {
    display: none; flex-direction: column; gap: 6px; cursor: pointer;
    padding: 10px; border-radius: var(--r-sm); z-index: 60;
}
.nav-burger span {
    width: 26px; height: 3px; background: var(--c-ink); border-radius: 2px;
    transition: transform .3s ease, opacity .25s ease;
}
/* Превращение в крестик */
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Затемнение фона при открытом меню */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(22,36,58,.4);
    opacity: 0; visibility: hidden; transition: .3s; z-index: 40;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px; font-weight: 700;
    border: 2px solid transparent; cursor: pointer; transition: .2s;
    font-family: inherit; font-size: 16px; text-align: center;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-600); color:#fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--c-navy); color: var(--c-navy); }
.btn--ghost:hover { background: var(--c-navy); color: #fff; }
.btn--hero { border-color: #fff; color: #fff; }
.btn--hero:hover { background: #fff; color: var(--c-navy); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-700) 100%);
    color: #fff; overflow: hidden;
    padding: clamp(48px, 9vw, 120px) 0;
}
.hero::after {
    content:''; position:absolute; right:-120px; top:-120px;
    width: clamp(240px, 40vw, 420px); height: clamp(240px, 40vw, 420px); border-radius: 50%;
    background: radial-gradient(circle, rgba(217,102,63,.35), transparent 70%);
    pointer-events: none;
}
.hero h1 { color:#fff; font-size: var(--fs-h1); max-width: 16ch; }
.hero p { font-size: var(--fs-lead); max-width: 52ch; opacity: .92; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero--page { padding: clamp(40px, 7vw, 84px) 0; }
.hero--compact { padding: clamp(28px, 5vw, 56px) 0; }
.hero--page h1 { max-width: 22ch; }

/* ============================================================
   Секции
   ============================================================ */
.section { padding: clamp(44px, 7vw, 96px) 0; }
.section--soft { background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%); }
.section__head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 40px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section__eyebrow { color: var(--c-accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin: 0 0 8px; }
.hero .section__eyebrow { color: #f0b59e; }
.section h2 { font-size: var(--fs-h2); }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; font-size: 17px; }
.prose--section { max-width: 800px; margin-bottom: 30px; }

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

.card {
    background: var(--c-surface); border-radius: var(--r);
    box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s;
    border: 1px solid var(--c-line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.info-card { padding: 24px; max-width: 800px; margin-bottom: 30px; }
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Команда */
.team-card { display: flex; flex-direction: column; }
.team-card__photo { aspect-ratio: 1/1; background: var(--c-line); object-fit: cover; width: 100%; }
.team-card__photo--empty { display: grid; place-items: center; color: #fff; font-size: 42px; font-weight: 800;
    background: linear-gradient(135deg, var(--c-navy), var(--c-accent)); }
.team-card__body { padding: 20px; }
.team-card__name { font-size: 18px; margin: 0 0 4px; }
.team-card__role { color: var(--c-accent); font-weight: 600; font-size: 14px; margin: 0; }
.team-card__bio { font-size: 14px; margin: 8px 0; display: -webkit-box; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.team-card__email { font-size: 13px; font-weight: 600; }

/* ============================================================
   Home: статистика / преимущества / CTA
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.stat__num { display: block; font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--c-navy); }
.stat__label { color: var(--c-muted); font-size: 14px; }

.feature { padding: 28px; }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(217,102,63,.12); margin-bottom: 16px; }
.feature h3 { font-size: 20px; }

.cta__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
    background: linear-gradient(135deg, #fff, #fdf6f1);
    border: 1px solid var(--c-line); border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 56px); box-shadow: var(--shadow);
}
.cta h2 { margin-bottom: 6px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Реквизиты
   ============================================================ */
.requisites-table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--c-line); }
.requisites-table th, .requisites-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.requisites-table tr:last-child th, .requisites-table tr:last-child td { border-bottom: 0; }
.requisites-table th { width: 38%; color: var(--c-muted); font-weight: 600; }
.requisites-table td { font-weight: 600; word-break: break-word; }
.copy-btn { margin-left: 10px; }
.copy-note { display:inline-block; margin-left: 8px; color: var(--c-accent); font-size: 13px; font-weight: 700; opacity: 0; transition: .2s; }
.copy-note.is-shown { opacity: 1; }

/* ============================================================
   Контакты
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(31,58,95,.08); display: grid; place-items: center; font-size: 18px; }
.contact-list .lbl { display: block; font-size: 13px; color: var(--c-muted); }
.contact-list .val { font-weight: 700; }
.map-embed { aspect-ratio: 4/3; width: 100%; border-radius: var(--r); border: 1px solid var(--c-line); box-shadow: var(--shadow); background:
    repeating-linear-gradient(45deg, #eee 0 12px, #f4f4f4 12px 24px); display: grid; place-items: center; color: var(--c-muted); }
.map-embed--frame { margin-top: 24px; overflow: hidden; background: var(--c-surface); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }

.form { display: grid; gap: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea, .form select {
    width: 100%; box-sizing: border-box;
    font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--c-line);
    border-radius: var(--r-sm); background: #fff; color: var(--c-ink); transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--c-navy); outline: none; }
.form textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   Notice (partial)
   ============================================================ */
.notice { background: rgba(217,102,63,.1); border: 1px solid rgba(217,102,63,.3); color: var(--c-accent-600); padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; margin: 16px 0; }

.content-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.content-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}

.content-card h2,
.content-card h3 { margin: 0; }

.content-card p {
    margin: 0;
    color: var(--c-muted);
}

.content-card__eyebrow {
    color: var(--c-accent-600) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.content-card__more { font-weight: 800; }

.content-card__image,
.article-cover {
    width: 100%;
    border-radius: var(--r-sm);
    object-fit: cover;
}

.content-card__image {
    aspect-ratio: 16 / 9;
    margin-bottom: 4px;
}

.article-cover {
    max-height: 460px;
    margin-bottom: 24px;
}

.appeal-layout {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.appeal-help {
    background: linear-gradient(135deg, rgba(31,58,95,.08), rgba(217,102,63,.08));
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    padding: clamp(20px, 3vw, 30px);
}

.appeal-help h2 { margin-top: 0; }
.appeal-help li + li { margin-top: 8px; }
.appeal-form { gap: 18px; }

.check-row {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    font-weight: 500 !important;
}

.check-row input {
    width: auto;
    margin-top: 4px;
}

.form-hint {
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 500;
}

.form-error {
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.form-status {
    border-radius: var(--r-sm);
    padding: 14px 16px;
    font-weight: 700;
}

.form-status--success {
    background: rgba(22, 163, 74, .12);
    border: 1px solid rgba(22, 163, 74, .3);
    color: #166534;
}

.form-status--error {
    background: rgba(180, 35, 24, .1);
    border: 1px solid rgba(180, 35, 24, .25);
    color: #b42318;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--c-ink); color: #cdd5e0; margin-top: 80px; }
.site-footer a { color: #cdd5e0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.brand--footer .brand__text, .site-footer__title { color: #fff; }
.site-footer__title { font-size: 16px; margin-bottom: 16px; }
.site-footer__links, .site-footer__contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__social { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 14px; color: #8b96a8; }
.site-footer__tagline { color:#9aa6b8; margin-top: 12px; }

/* ============================================================
   Кнопка «Наверх»
   ============================================================ */
.to-top {
    position: fixed; right: clamp(16px, 4vw, 28px); bottom: clamp(16px, 4vw, 28px);
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--c-accent); color: #fff; border: none; cursor: pointer;
    display: grid; place-items: center; font-size: 22px; line-height: 1;
    box-shadow: var(--shadow-lg); z-index: 45;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-accent-600); transform: translateY(-3px); }

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшеты */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .stats   { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; }
    .appeal-layout { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
    .section__head--row { flex-direction: column; align-items: flex-start; }
}

/* Мобильное меню (выезжающая панель) */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .nav-burger { display: flex; }

    .site-nav {
        position: fixed; top: 0; right: 0; height: 100dvh; width: min(80vw, 320px);
        background: #fff; box-shadow: var(--shadow-lg);
        padding: calc(var(--header-h) + 16px) 20px 24px;
        transform: translateX(calc(100% + 24px));
        visibility: hidden;
        pointer-events: none;
        transition:
            transform .32s ease,
            visibility 0s linear .32s;
        z-index: 55; overflow-y: auto;
    }
    .site-nav ul { flex-direction: column; gap: 6px; }
    .site-nav__link { display: block; padding: 14px 16px; font-size: 17px; }

    .nav-toggle:checked ~ .site-nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition:
            transform .32s ease,
            visibility 0s;
    }
    .nav-toggle:checked ~ .nav-overlay { opacity: 1; visibility: visible; }

    /* блокируем скролл body когда меню открыто — через :has (с JS-фолбэком) */
    body:has(.nav-toggle:checked) { overflow: hidden; }
}

/* Телефоны */
@media (max-width: 600px) {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .cta__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .cta__inner .hero__actions { justify-content: center; }
    .hero__actions .btn { flex: 1 1 auto; }
    .requisites-table th { width: 42%; }
}

/* Маленькие телефоны */
@media (max-width: 380px) {
    .stats { grid-template-columns: 1fr; }
    .brand__text { display: none; }       /* оставляем только логотип-марку */
    .btn { padding: 12px 18px; }
    .requisites-table th, .requisites-table td { padding: 12px 14px; display: block; }
    .requisites-table th { width: auto; border-bottom: 0; padding-bottom: 2px; }
}

/* Уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
DOCS UI — строгий стиль с иконками
============================================================ */

/* Документ-читалка (оферта, политика) — узкая колонка для удобства чтения */
.doc {
    width: 100%;
    max-width: var(--container-narrow);   /* было 1100px — слишком широко для текста */
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Карточка документа */
.doc__shell {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Верх документа */
.doc__top {
    padding: clamp(24px, 4vw, 36px);
    background:
        linear-gradient(180deg, rgba(31,58,95,.06), rgba(31,58,95,.02)),
        var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    position: relative;
}

.doc__top::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 140px;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), transparent);
}

/* Заголовок и подзаголовок */
.doc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--c-accent);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.doc__eyebrow::before {
    content: "§";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(217,102,63,.12);
    color: var(--c-accent-600);
    font-size: 13px;
    font-weight: 900;
}

.doc__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    color: var(--c-ink);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.doc__lead {
    margin: 0;
    max-width: 72ch;
    color: var(--c-muted);
    font-size: 17px;
    line-height: 1.7;
}

/* Метаданные */
.doc__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--c-line);
}

.doc__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(31,58,95,.06);
    color: var(--c-ink);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(31,58,95,.08);
}

.doc__badge::before {
    content: "◼";
    color: var(--c-accent);
    font-size: 10px;
    line-height: 1;
}

.doc__badge--accent {
    background: rgba(217,102,63,.12);
    color: var(--c-accent-600);
    border-color: rgba(217,102,63,.18);
}

.doc__badge--accent::before {
    content: "★";
    color: var(--c-accent-600);
}

/* Служебное примечание */
.doc__note {
    margin: 0 0 28px;
    padding: 16px 20px;
    border: 1px solid rgba(31, 58, 95, .14);
    border-left: 4px solid var(--c-accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: linear-gradient(180deg, rgba(31, 58, 95, .04), rgba(31, 58, 95, .02));
    color: var(--c-ink);
    box-shadow: var(--shadow);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 54px;
}

.doc__note::before {
    content: "i";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    font-style: normal;
}

.doc__note strong {
    color: var(--c-navy);
    font-weight: 800;
}

.doc__note--soft {
    border-left-color: var(--c-navy);
    background: rgba(31,58,95,.04);
}

.doc__note--soft::before {
    content: "i";
    background: var(--c-navy);
}

.doc__note--warn {
    border-left-color: var(--c-accent-600);
    background: rgba(217,102,63,.08);
}

.doc__note--warn::before {
    content: "!";
    background: var(--c-accent-600);
}

.doc__note--success {
    border-left-color: #0f9d58;
    background: rgba(15,157,88,.08);
}

.doc__note--success::before {
    content: "✓";
    background: #0f9d58;
}

/* Оглавление */
.doc__toc {
    margin: 0 0 28px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.doc__toc-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc__toc-title::before {
    content: "☰";
    color: var(--c-accent);
    font-weight: 900;
}

.doc__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.doc__toc-item {
    margin: 0;
}

.doc__toc-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
    background: rgba(31,58,95,.02);
    border: 1px solid transparent;
    transition: .2s;
}

.doc__toc-link::before {
    content: "↳";
    color: var(--c-accent);
    font-weight: 900;
}

.doc__toc-link:hover,
.doc__toc-link:focus-visible {
    background: rgba(217,102,63,.08);
    border-color: rgba(217,102,63,.16);
    color: var(--c-accent-600);
}

/* Тело документа */
.doc__body.prose {
    padding: clamp(24px, 4vw, 40px);
    max-width: 100%;
    font-size: 17px;
    line-height: 1.75;
    color: var(--c-ink);
}

.doc__body.prose p {
    margin: 0 0 1em;
}

.doc__body.prose h2,
.doc__body.prose h3 {
    position: relative;
    scroll-margin-top: 100px;
}

.doc__body.prose h2 {
    margin-top: 2em;
    margin-bottom: .8em;
    padding-top: .1em;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.01em;
    padding-left: 18px;
}

.doc__body.prose h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 6px;
    height: 1.15em;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-600));
}

.doc__body.prose h2::after {
    content: "§";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    border-radius: 50%;
    background: rgba(31,58,95,.07);
    color: var(--c-navy);
    font-size: 13px;
    font-weight: 900;
    vertical-align: middle;
}

.doc__body.prose h3 {
    margin-top: 1.5em;
    margin-bottom: .6em;
    font-size: 19px;
    font-weight: 800;
    padding-left: 14px;
}

.doc__body.prose h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(217,102,63,.12);
}

.doc__body.prose ul,
.doc__body.prose ol {
    margin: 0 0 1em 1.25em;
    padding: 0;
}

.doc__body.prose li {
    margin-bottom: .45em;
}

.doc__body.prose li::marker {
    color: var(--c-accent);
    font-weight: 800;
}

/* Цитаты и выделения */
.doc__body blockquote {
    margin: 1.2em 0;
    padding: 16px 18px;
    border-left: 4px solid var(--c-navy);
    background: rgba(31,58,95,.04);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    color: var(--c-ink);
    font-style: italic;
}

.doc__body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(31,58,95,.06);
    color: var(--c-navy-700);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .95em;
}

.doc__body pre {
    margin: 1.2em 0;
    padding: 18px 20px;
    border-radius: var(--r);
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.doc__body pre strong {
    color: inherit;
    white-space: pre-wrap;
}

/* Таблицы в документах */
.doc__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.doc__body th,
.doc__body td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--c-line);
}

.doc__body th {
    background: rgba(31,58,95,.05);
    color: var(--c-navy);
    font-weight: 800;
}

.doc__body tr:last-child td,
.doc__body tr:last-child th {
    border-bottom: 0;
}

/* Ссылки в документах */
.doc__body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.doc__body a:hover {
    color: var(--c-accent-600);
}

/* Блок с реквизитами */
.doc__requisites {
    margin-top: 32px;
    padding: 20px 22px;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    background: linear-gradient(180deg, rgba(31,58,95,.03), rgba(31,58,95,.01));
    box-shadow: var(--shadow);
}

.doc__requisites-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
    color: var(--c-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc__requisites-title::before {
    content: "☍";
    color: var(--c-accent);
    font-size: 15px;
}

.doc__requisites pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: var(--c-ink);
}

/* Действия с документом */
.doc__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.doc__actions .btn {
    min-width: 180px;
}

/* Блок с PDF / печатью */
.doc__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.doc__tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--c-line);
    background: #fff;
    color: var(--c-ink);
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: .2s;
}

.doc__tool::before {
    content: "⇩";
    color: var(--c-accent);
    font-weight: 900;
}

.doc__tool:hover {
    transform: translateY(-2px);
    color: var(--c-accent-600);
    box-shadow: var(--shadow-lg);
}

/* Мягкая выделенная вставка */
.doc__callout {
    margin: 1.2em 0;
    padding: 16px 18px;
    border-radius: var(--r);
    border: 1px solid rgba(31,58,95,.12);
    background: rgba(31,58,95,.03);
    position: relative;
}

.doc__callout::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), transparent);
    border-radius: var(--r) var(--r) 0 0;
}

/* Scroll margin для якорей */
.doc__body h2[id],
.doc__body h3[id] {
    scroll-margin-top: 96px;
}

/* Адаптив */
@media (max-width: 768px) {
    .doc__body.prose {
        padding: 20px 18px;
        font-size: 16px;
    }

    .doc__top {
        padding: 20px 18px;
    }

    .doc__title {
        font-size: clamp(24px, 7vw, 34px);
    }

    .doc__lead {
        font-size: 16px;
    }

    .doc__note {
        padding: 14px 16px 14px 50px;
        font-size: 14px;
    }

    .doc__body.prose h2 {
        font-size: 22px;
    }

    .doc__body.prose h3 {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .doc__meta,
    .doc__actions,
    .doc__tools {
        gap: 8px;
    }

    .doc__badge,
    .doc__tool {
        width: 100%;
        justify-content: flex-start;
    }

    .doc__body th,
    .doc__body td {
        padding: 12px 13px;
    }

    .doc__toc {
        padding: 16px;
    }
}

/* ============================================================
   DOCS INDEX — список разделов и карточек документов
   ============================================================ */

/* Индексная страница документов (карточки) — может быть шире */
.doc--index {
    max-width: var(--container);
}

/* Контейнер шапки списка — слегка отличается от страницы документа */
.doc--index .doc__body {
    padding: clamp(20px, 3.5vw, 36px);
}

/* Секция (категория документов) */
.docs-section {
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.docs-section:last-child { margin-bottom: 0; }

.docs-section__title {
    position: relative;
    margin: 0 0 6px;
    padding-left: 18px;
    font-size: 22px;
    font-weight: 900;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}

.docs-section__title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em;
    width: 6px; height: 1.15em;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-600));
}

.docs-section__lead {
    margin: 0 0 18px;
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 72ch;
}

/* Счётчик в оглавлении */
.doc__toc-count {
    margin-left: auto;
    color: var(--c-muted);
    font-weight: 700;
    font-size: 13px;
}

.doc__toc-link { justify-content: flex-start; }
.doc__toc-link .doc__toc-count { margin-left: auto; }

/* ============================================================
   Сетка карточек
   ============================================================ */
.docs-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ============================================================
   Карточка документа
   ============================================================ */
.docs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.docs-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--c-accent), transparent);
    border-radius: var(--r) var(--r) 0 0;
    opacity: .55;
    transition: opacity .2s;
}

.docs-card--link:hover,
.docs-card--link:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 102, 63, .35);
}

.docs-card--link:hover::before,
.docs-card--link:focus-within::before { opacity: 1; }

/* Шапка карточки: иконка + бейдж */
.docs-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.docs-card__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(31, 58, 95, .07);
    color: var(--c-navy);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .04em;
}

.docs-card__icon::before {
    content: "DOC";
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.docs-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(217, 102, 63, .12);
    color: var(--c-accent-600);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(217, 102, 63, .18);
}

/* Заголовок */
.docs-card__title {
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--c-ink);
}

.docs-card__link {
    color: inherit;
    text-decoration: none;
}

.docs-card__link::after {
    /* делает всю карточку кликабельной */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}

.docs-card__link:hover { color: var(--c-accent-600); }

.docs-card__meta {
    margin: 0;
    color: var(--c-muted);
    font-size: 13px;
}

/* Действия (поверх «расширяющей» ссылки) */
.docs-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    position: relative;
    z-index: 2;
}

.docs-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    transition: .2s;
    white-space: nowrap;
}

.docs-card__btn--primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}

.docs-card__btn--primary:hover {
    background: var(--c-accent-600);
    border-color: var(--c-accent-600);
    color: #fff;
}

.docs-card__btn--pdf {
    background: #fff;
    color: var(--c-navy);
    border-color: var(--c-line);
}

.docs-card__btn--pdf::before {
    content: "⇩";
    color: var(--c-accent);
    font-weight: 900;
}

.docs-card__btn--pdf:hover {
    color: var(--c-accent-600);
    border-color: rgba(217, 102, 63, .35);
    background: rgba(217, 102, 63, .04);
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 600px) {
    .docs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .docs-card {
        padding: 16px;
    }

    .docs-section__title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
    .docs-card,
    .docs-card__btn,
    .docs-card::before {
        transition: none !important;
    }

    .docs-card--link:hover { transform: none; }
}

/* Уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
    .doc__tool,
    .doc__toc-link,
    .doc__badge,
    .doc__body a {
        transition: none !important;
    }
}

/* ---------- Многоуровневое меню: десктоп ---------- */
.site-nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav__item { position: relative; }

.site-nav__link {
    display: block;
    align-items: center;
    gap: 4px;
}
.site-nav__caret {
    font-size: .7em;
    transition: transform .2s;
}

/* выпадающее подменю */
.site-subnav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    /* скрыто, но доступно для построения; не display:none — чтобы работала анимация и фокус */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 60;
}

/* показ при наведении на пункт И при фокусе внутри (клавиатура) */
.site-nav__item.has-sub:hover > .site-subnav,
.site-nav__item.has-sub:focus-within > .site-subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav__item.has-sub:hover > .site-nav__link .site-nav__caret,
.site-nav__item.has-sub:focus-within > .site-nav__link .site-nav__caret {
    transform: rotate(180deg);
}

.site-subnav__link {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    white-space: nowrap;
    color: var(--c-ink);
    text-decoration: none;
}
.site-subnav__link:hover,
.site-subnav__link:focus-visible {
    background: var(--c-bg);
    color: var(--c-navy);
}
.site-subnav__link.is-active {
    background: var(--c-navy);
    color: #fff;
}

/* «мостик», чтобы подменю не закрывалось при переводе курсора вниз */
.site-nav__item.has-sub > .site-subnav::before {
    content: '';
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 8px;
}

/* ---------- Многоуровневое меню: мобайл ---------- */
@media (max-width: 768px) {
    .site-nav__list {
        flex-direction: column;
        gap: 0;
    }
    .site-nav__item { position: static; }

    /* подменю — обычный вложенный блок, всегда видим, с отступом */
    .site-subnav {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--c-line);
        border-radius: 0;
        margin: 0 0 4px 16px;
        padding: 0;
        background: transparent;
    }
    .site-subnav__link {
        padding: 10px 12px;
        font-size: .95em;
    }
    .site-nav__caret { display: none; } /* стрелка не нужна, всё раскрыто */
    .site-subnav::before { display: none; }
}

/* ---------- Хлебные крошки ---------- */
.crumbs { margin-bottom: 14px; }
.crumbs__list {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px; margin: 0; padding: 0; list-style: none;
    font-size: .85rem;
}
.crumbs__item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); }
.crumbs__item:not(:last-child)::after {
    content: '/'; color: rgba(255,255,255,.4);
}
.crumbs__item a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs__item a:hover,
.crumbs__item a:focus-visible { color: #fff; text-decoration: underline; }
.crumbs__item[aria-current="page"] { color: #fff; font-weight: 600; }

/* ============================================================
   Реквизиты — страница (общие сведения + банковские счета)
   ============================================================ */

/* --- Общий контейнер страницы --- */
.requisites-container { max-width: 1100px; }

/* Мягкий цвет «eyebrow» на тёмном hero */
.section__eyebrow--soft { color: #f0b59e; }

/* --- Карточка общих сведений --- */
.requisites-card {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / .05);
}
.requisites-card__title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* --- Список общих реквизитов --- */
.general-requisites-list { display: flex; flex-direction: column; }

.general-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.general-row--last { border-bottom: none; }

.gen-label {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.gen-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 2;
    min-width: 290px;
}
.gen-value-text {
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
    text-align: left;
}

.copy-wrap { position: relative; flex-shrink: 0; }
.copy-note--abs {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 11px;
    color: #10b981;
    display: none;
}
.copy-note--abs.is-shown { display: inline-block; }

/* --- Заголовок блока банков --- */
.banks-accordion-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.banks-title  { font-size: 22px; color: #1e293b; margin-bottom: 10px; }
.banks-subtitle { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.banks-list   { display: flex; flex-direction: column; gap: 16px; }

/* --- Аккордеон банка --- */
.bank-details-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgb(0 0 0 / .05);
    transition: border-color .2s;
}
.bank-details-wrapper:hover { border-color: #cbd5e1; }

.bank-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    font-weight: 600;
    color: #1e293b;
}
details summary::-webkit-details-marker { display: none; }

.accordion-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform .2s, color .2s;
}
details[open] .accordion-arrow { transform: rotate(180deg); color: #c2410c; }

/* --- Сетка содержимого банка --- */
.bank-content-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding: 20px;
    border-top: 1px dashed #e2e8f0;
}
.bank-info-col { flex: 1; min-width: 290px; }
.bank-qr-col   { flex-shrink: 0; width: 180px; margin: 0 auto; }

/* --- Адаптивные строки внутри банка --- */
.responsive-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}
.responsive-row--no-border { border-bottom: none; }

.row-label { color: #64748b; font-size: 14px; }

.row-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 1;
}
.mono-text {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: .5px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
}

/* --- QR-блок --- */
.qr-box {
    display: block;
    width: 100%;
    background: #f8fafc;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.qr-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / .05);
}
.qr-box img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 6px;
    border-radius: 4px;
}
.qr-box span { display: block; font-size: 11px; color: #64748b; }

/* --- Лайтбокс QR --- */
.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding-top: 100px;
    overflow: auto;
    background-color: rgba(15, 23, 42, .85);
    backdrop-filter: blur(4px);
}
.qr-modal[hidden] { display: none; }
.qr-modal.is-open { display: block; }

.qr-modal-content {
    display: block;
    margin: auto;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
    animation: qrZoomIn .25s ease-out;
}
@keyframes qrZoomIn {
    from { transform: scale(.8); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
.qr-modal-close {
    position: absolute;
    top: 30px;
    right: 35px;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color .2s;
}
.qr-modal-close:hover { color: #cbd5e1; }

/* --- Адаптив: планшеты и мобайл --- */
@media (max-width: 768px) {
    .general-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 0;
    }
    .gen-label { max-width: 100%; margin-bottom: 2px; }
    .gen-value-wrapper {
        width: 100%;
        min-width: 0;
        justify-content: space-between;
        align-items: flex-start;
    }
    .gen-value-text { font-size: 15px; padding-right: 10px; }
}

@media (max-width: 640px) {
    .responsive-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .row-value-wrapper { width: 100%; justify-content: space-between; }
    .bank-content-layout { padding: 10px; gap: 20px; }
    .bank-qr-col { width: 100%; max-width: 200px; }
    .qr-modal-content { width: 85%; }
}

/* ============================================================
   Универсальный тултип «Скопировано!» для кнопок копирования
   ============================================================ */

/* Кнопке нужен relative-контекст, чтобы тултип позиционировался от неё */
.copy-btn {
    position: relative;
}

/* Сам тултип — создаётся через ::after, текст берётся из data-tip */
.copy-btn::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 20;
    box-shadow: 0 4px 12px rgb(0 0 0 / .15);
}

/* Маленький «хвостик» снизу тултипа */
.copy-btn::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 20;
}

/* Состояние «показано» — добавляется через JS */
.copy-btn.is-copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.copy-btn.is-copied::before {
    opacity: 1;
}

/* Зелёная подсветка самой кнопки в момент копирования */
.copy-btn.is-copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
    transition: background .2s, color .2s, border-color .2s;
}

/* Вариант ошибки (если clipboard API упал) */
.copy-btn.is-copy-error::after {
    content: attr(data-tip-error);
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    background: #dc2626;
}
.copy-btn.is-copy-error::before {
    opacity: 1;
    border-top-color: #dc2626;
}

/* ============================================================
   FOOTER — правовая колонка
   ============================================================ */

.site-footer__links--legal a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-footer__links--legal a::before {
    content: "§";
    color: var(--c-accent);
    font-weight: 900;
}

/* ============================================================
   FOOTER BOTTOM — компоновка
   ============================================================ */

.footer-bottom-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
}

.footer-bottom-flex__left,
.footer-bottom-flex__right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.footer-bottom-flex__left p,
.footer-bottom-flex__right p {
    margin: 0;
}

/* Маленькая навигация по правовым документам в самом низу */
.footer-legal-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: .85;
}

.footer-legal-nav a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
    transition: color .2s, border-color .2s;
}

.footer-legal-nav a:hover,
.footer-legal-nav a:focus-visible {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
}

.footer-legal-nav span {
    opacity: .5;
}

/* ============================================================
   ВОЗРАСТНАЯ МАРКИРОВКА 18+
   ============================================================ */

.age-badge {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--c-accent), var(--c-accent-600));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    box-shadow:
        0 2px 4px rgba(217, 102, 63, .35),
        inset 0 0 0 1px rgba(255, 255, 255, .18);
    user-select: none;
    flex-shrink: 0;
}

/* Адаптив: на узких экранах подвал в один столбец */
@media (max-width: 640px) {
    .footer-bottom-flex {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-bottom-flex__left,
    .footer-bottom-flex__right {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-legal-nav a {
        transition: none;
    }
}

/* Реквизиты — той же ширины, что и основной контейнер */
.requisites-container,
.requisites-card,
.banks-accordion-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
}

/* Убираем двойные padding'и */
.banks-accordion-container { padding: 0; }

/* ============================================================
   Footer — адаптивная сетка под любое число колонок
   ============================================================ */
.site-footer__grid {
    display: grid;
    /* Колонки сами решают, помещаются ли они: минимум 220px, иначе перенос */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(24px, 3vw, 40px);
    padding: clamp(40px, 6vw, 56px) var(--container-pad);
}

/* Первая колонка (бренд) может быть чуть шире на десктопе */
@media (min-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    }
}

/* Колонка не должна «вылезать» */
.site-footer__col {
    min-width: 0;
}

/* Длинные ссылки в правовой колонке должны переноситься */
.site-footer__links--legal a {
    word-break: break-word;
    line-height: 1.4;
}

/* На планшетах — 2x2 */
@media (max-width: 1024px) and (min-width: 641px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* На мобильных — 1 колонка */
@media (max-width: 640px) {
    .site-footer {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ============================================================
   Защита от горизонтального скролла
   ============================================================ */

/* Длинные ссылки и слова в документах не должны выпирать */
.doc__body.prose,
.doc__body.prose p,
.doc__body.prose li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Таблицы документов — горизонтальный скролл вместо переполнения */
.doc__body .table-wrap,
.doc__body table {
    max-width: 100%;
}

.doc__body table {
    display: block;          /* на узких экранах */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .doc__body table {
        display: table;       /* на десктопе нормальная таблица */
    }
}

/* <pre> с реквизитами — обязательный перенос */
.doc__requisites pre,
.doc__body pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
}

/* Контейнеры карточек не должны схлопывать содержимое */
.docs-grid > *,
.stats > *,
.grid > * {
    min-width: 0;
}

.docs-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(12px, 2vw, 16px);
}

@media (max-width: 480px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

.hero .container,
.section .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.site-footer__bottom .container {
    max-width: var(--container);
    padding-inline: var(--container-pad);
}

.footer-bottom-flex {
    /* Уже было — но усилим */
    row-gap: 16px;
    column-gap: 24px;
}

/* Чтобы кредиты разработчика не растягивались бесконечно */
.developer-credits {
    max-width: 100%;
    font-size: 13px;
    opacity: .8;
}

/* ============================================================
   SOCIAL PROVIDER — поставщик соц. услуг
   ============================================================ */

.sp-card {
    padding: clamp(18px, 3vw, 28px);
    border-radius: var(--r);
}

/* ---- Аккордеон разделов ---- */
.sp-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sp-section {
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.sp-section[open] {
    box-shadow: var(--shadow);
    border-color: rgba(217, 102, 63, .3);
}

.sp-section__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: clamp(14px, 2.5vw, 20px);
    font-weight: 800;
    color: var(--c-ink);
    background: linear-gradient(180deg, rgba(31,58,95,.03), transparent);
    transition: background .2s;
}
.sp-section__summary:hover { background: rgba(217,102,63,.05); }
.sp-section__summary::-webkit-details-marker { display: none; }

.sp-section__title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(15px, 2vw, 18px);
    min-width: 0;
}

.sp-section__icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(31, 58, 95, .07);
    font-size: 18px;
    flex-shrink: 0;
}

.sp-section__arrow {
    color: var(--c-muted);
    font-size: 12px;
    transition: transform .25s, color .2s;
    flex-shrink: 0;
}
.sp-section[open] .sp-section__arrow {
    transform: rotate(180deg);
    color: var(--c-accent-600);
}

.sp-section__body {
    padding: clamp(14px, 2.5vw, 22px);
    border-top: 1px dashed var(--c-line);
}

/* ---- Строки внутри раздела ---- */
.sp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-bg);
}
.sp-row:last-child { border-bottom: 0; }

.sp-row__label {
    flex: 1 1 220px;
    min-width: 0;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 600;
}

.sp-row__value {
    flex: 2 1 320px;
    min-width: 0;
    color: var(--c-ink);
    font-weight: 500;
    overflow-wrap: anywhere;
}
.sp-row__value ul {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 6px;
}
.sp-row__value li::marker { color: var(--c-accent); }
.sp-row__value a { color: var(--c-navy); text-decoration: underline; text-underline-offset: 2px; }
.sp-row__value a:hover { color: var(--c-accent-600); }

/* Широкая строка (списки услуг) — лейбл сверху, значение во всю ширину */
.sp-row--wide {
    flex-direction: column;
    gap: 10px;
}
.sp-row--wide .sp-row__label {
    flex: 1 1 100%;
    color: var(--c-navy);
    font-weight: 800;
    font-size: 15px;
}
.sp-row--wide .sp-row__value { flex: 1 1 100%; }

/* ---- Карточки внешних ссылок (госуслуги и т.д.) ---- */
.sp-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.sp-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sp-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 102, 63, .35);
}
.sp-link-card__ic {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(217, 102, 63, .12);
    font-size: 22px;
    flex-shrink: 0;
}
.sp-link-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-link-card__text strong { color: var(--c-ink); font-size: 15px; }
.sp-link-card__text small { color: var(--c-muted); font-size: 13px; line-height: 1.4; }

/* ---- Адаптив ---- */
@media (max-width: 640px) {
    .sp-row {
        flex-direction: column;
        gap: 4px;
    }
    .sp-row__label,
    .sp-row__value { flex: 1 1 100%; }
    .sp-links-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-section, .sp-section__arrow, .sp-link-card { transition: none !important; }
    .sp-link-card:hover { transform: none; }
}

/* ============================================================
   SOCIAL PROVIDER — Государственные ресурсы (вертикальные карточки)
   ============================================================ */

.sp-gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(16px, 2vw, 20px);
    margin-top: 24px;
}

.sp-gov-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: clamp(24px, 3vw, 32px) clamp(20px, 2.5vw, 24px);
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
}

.sp-gov-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--c-accent), transparent);
    opacity: 0;
    transition: opacity .25s;
}

.sp-gov-card:hover,
.sp-gov-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 102, 63, .35);
}

.sp-gov-card:hover::before,
.sp-gov-card:focus-visible::before {
    opacity: 1;
}

/* Логотип — большой, квадратный контейнер */
.sp-gov-card__logo {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    padding: 16px;
    background: rgba(31, 58, 95, .04);
    border-radius: var(--r);
    border: 1px solid rgba(31, 58, 95, .08);
    transition: background .25s, border-color .25s;
}

.sp-gov-card:hover .sp-gov-card__logo,
.sp-gov-card:focus-visible .sp-gov-card__logo {
    background: rgba(217, 102, 63, .06);
    border-color: rgba(217, 102, 63, .12);
}

.sp-gov-card__logo img {
    width: 100%;
    max-width: 160px;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Плейсхолдер для логотипа, если его ещё нет */
.sp-gov-card__logo--placeholder {
    background: linear-gradient(135deg, rgba(31, 58, 95, .08), rgba(31, 58, 95, .04));
    border-color: rgba(31, 58, 95, .1);
}

.sp-gov-card__logo--placeholder span {
    font-size: 64px;
    opacity: .5;
}

/* Контент карточки */
.sp-gov-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sp-gov-card__title {
    margin: 0;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 800;
    color: var(--c-ink);
    line-height: 1.3;
    transition: color .25s;
}

.sp-gov-card:hover .sp-gov-card__title,
.sp-gov-card:focus-visible .sp-gov-card__title {
    color: var(--c-accent-600);
}

.sp-gov-card__subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-muted);
}

/* Стрелка — индикатор ссылки */
.sp-gov-card__arrow {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(31, 58, 95, .06);
    color: var(--c-navy);
    font-size: 18px;
    font-weight: 900;
    transition: background .25s, color .25s, transform .25s;
}

.sp-gov-card:hover .sp-gov-card__arrow,
.sp-gov-card:focus-visible .sp-gov-card__arrow {
    background: var(--c-accent);
    color: #fff;
    transform: translateX(4px);
}

/* ---- Адаптив ---- */
@media (max-width: 640px) {
    .sp-gov-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sp-gov-card {
        padding: 24px 20px;
    }

    .sp-gov-card__logo {
        max-width: 120px;
    }
}

/* На узких экранах (портретные телефоны) — карточки ещё компактнее */
@media (max-width: 380px) {
    .sp-gov-card__logo {
        max-width: 100px;
    }

    .sp-gov-card__title {
        font-size: 15px;
    }

    .sp-gov-card__subtitle {
        font-size: 12px;
    }
}

/* Уважение к настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
    .sp-gov-card,
    .sp-gov-card::before,
    .sp-gov-card__logo,
    .sp-gov-card__title,
    .sp-gov-card__arrow {
        transition: none !important;
    }

    .sp-gov-card:hover,
    .sp-gov-card:focus-visible {
        transform: none;
    }

    .sp-gov-card:hover .sp-gov-card__arrow,
    .sp-gov-card:focus-visible .sp-gov-card__arrow {
        transform: none;
    }
}
