:root {
    --primary: #1a2b4a;
    --primary-light: #243b61;
    --primary-dark: #0f1a2e;
    --accent: #c9a84c;
    --accent-light: #e8d5a0;
    --accent-bg: rgba(201,168,76,0.08);
    --red: #dc2626;
    --red-bg: #fef2f2;
    --green: #16a34a;
    --green-bg: #f0fdf4;
    --blue: #2563eb;
    --blue-bg: #eff6ff;
    --amber: #d97706;
    --amber-bg: #fffbeb;
    --purple: #7c3aed;
    --purple-bg: #f5f3ff;
    --cyan: #0891b2;
    --cyan-bg: #ecfeff;
    --bg: #f7f3eb;
    --page-photo: url('../img/2eac688c-58b7-4dc4-acb5-aa0ad1b150a8.jpg');
    --btn-photo: url('../img/574cf85b-41fd-406e-a115-87b2d408c7f4-sm.jpg?v=20260721perf1');
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --bottom-nav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --page-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: auto;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; }

/* ===== APP SHELL ===== */
.app { display: flex; min-height: 100vh; }
.page-view { display: none; }
.page-view.active { display: block; }
/* [СВО] 2026-07-19 — цельный фон всех публичных страниц: 2eac688c… */
#public-pages {
    min-height: 100vh;
    background-color: #f7f3eb;
    background-image:
        linear-gradient(180deg, rgba(255, 252, 247, 0.32) 0%, rgba(247, 243, 235, 0.42) 55%, rgba(240, 233, 220, 0.48) 100%),
        var(--page-photo);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
@media (max-width: 768px) {
    #public-pages {
        background-attachment: scroll;
    }
}

/* ===== HEADER (PUBLIC) ===== */
/* [СВО] 2026-07-06 — Шапка: светлый фон как на участниксво.рф. НЕ МЕНЯТЬ без проверки .hero */
.pub-header {
    background: #f5f4f0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.pub-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 72px;
    gap: 12px;
}
.pub-header .logo { justify-self: start; }
.pub-nav { justify-self: center; }
.header-actions { justify-self: end; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
/* [СВО] 2026-07-06 — Круглое лого (img/logo.png). В шапке — внутри .logo-mark */
.logo-img,
.leaders-logo {
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
}
.leaders-logo {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
/* [СВО] 2026-07-06 — Лого шапки: без обводки, только изображение */
.pub-header .logo {
    gap: 14px;
    transition: transform 0.25s ease;
}
.pub-header .logo:hover { transform: translateY(-1px); }
.pub-header .logo-mark {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    box-shadow: none;
}
.pub-header .logo:hover .logo-mark {
    transform: scale(1.03);
}
.pub-header .logo-mark::after {
    display: none;
}
.pub-header .logo-img {
    width: 52px;
    height: 52px;
    border: none;
    box-shadow: none;
}
.logo-text,
.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.15;
}
.pub-header .logo-text {
    gap: 0;
    position: relative;
    padding-left: 2px;
    color: #1e3a5f;
}
.pub-header .logo-text::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #c9a84c 0%, #e8d5a0 50%, #c9a84c 100%);
    opacity: 0.85;
}
/* [СВО] 2026-07-18 — шапка: Краевая Общественная Организация / Ветеранов Боевых Действий «Сибирь» */
.pub-header .logo-text__line--top {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.3;
    white-space: nowrap;
}
.pub-header .logo-text__line--bottom {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #1e3a5f;
    line-height: 1.2;
}
.pub-header .logo-text__svo {
    background: linear-gradient(135deg, #8a6d1f 0%, #c9a84c 38%, #f0dfa0 62%, #c9a84c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 900;
}

.footer .logo-text { color: #fff; }
.logo-text__line { display: block; white-space: nowrap; }
.logo-text--footer { font-size: 16px; gap: 3px; }
.logo-text__line span:not(.logo-text__svo),
.sidebar-logo-text span { color: var(--accent); }
.pub-nav { display: flex; gap: 0; flex-wrap: nowrap; flex: 1; justify-content: center; }
.pub-header .pub-nav a { color: #334155; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 500; transition: all 0.2s; cursor: pointer; white-space: nowrap; }
.pub-header .pub-nav a:hover { background: rgba(0, 0, 0, 0.05); color: #0f172a; }

/* [СВО] 2026-07-07 — Пункт «Ещё ...» в меню шапки + панель справа. НЕ МЕНЯТЬ без проверки togglePubMoreMenu() */
.pub-nav__more {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.pub-nav__more:hover,
.pub-nav__more[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}
.pub-nav__more[aria-expanded="true"] {
    color: #0078C1;
}
.header-actions--desktop { display: none; }

.pub-more-menu {
    position: fixed;
    inset: 0;
    z-index: 9050;
    display: none;
    pointer-events: none;
}
.pub-more-menu.active {
    display: block;
    pointer-events: auto;
}
.pub-more-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 26, 46, 0.42);
    backdrop-filter: blur(3px);
}
.pub-more-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    background: #fff;
    box-shadow: -12px 0 40px rgba(30, 58, 95, 0.14);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s ease;
}
.pub-more-menu.active .pub-more-menu__panel {
    transform: translateX(0);
}
.pub-more-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 22px 14px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}
.pub-more-menu__title {
    font-size: 18px;
    font-weight: 800;
    color: #1e3a5f;
}
.pub-more-menu__close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
}
.pub-more-menu__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 22px 28px;
    overflow-y: auto;
}
.pub-more-menu__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pub-more-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.pub-more-menu__link i {
    width: 20px;
    color: #0078C1;
    text-align: center;
}
.pub-more-menu__link:hover {
    background: rgba(0, 120, 193, 0.08);
}
.pub-more-menu__phone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(30, 58, 95, 0.08);
    text-decoration: none;
    color: inherit;
}
.pub-more-menu__phone i {
    font-size: 20px;
    color: #0078C1;
}
.pub-more-menu__phone span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pub-more-menu__phone strong {
    font-size: 18px;
    color: #1e3a5f;
}
.pub-more-menu__phone small {
    font-size: 12px;
    color: #64748b;
}
.pub-more-menu__cabinet {
    width: 100%;
    justify-content: center;
}
body.pub-more-open {
    overflow: hidden;
}

.header-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
/* [СВО] 2026-07-06 — Телефон в белой шапке */
/* [СВО] 2026-07-06 — Телефон в шапке: иконка слева, номер и подпись в 2 строки */
.header-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s;
}
.header-hotline:hover { opacity: 0.82; }
.header-hotline__icon {
    display: none; /* [СВО] 2026-07-21 — иконка телефона в шапке убрана */
}
.header-hotline__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
}
.pub-header .header-hotline__phone {
    color: #1e3a5f;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.2px;
    line-height: 1.15;
}
.header-hotline__phone-short {
    display: none;
}
/* [СВО] 2026-07-19 — при нехватке места номер укорачивается, полный — в попапе */
@media (max-width: 1360px) {
    .pub-header .header-hotline__phone-full {
        display: none;
    }
    .pub-header .header-hotline__phone-short {
        display: inline;
    }
    .pub-header .header-hotline__phone {
        font-size: 16px;
    }
    .pub-header .header-hotline__label {
        max-width: 9.5em;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.pub-header .header-hotline__label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.1px;
    line-height: 1.2;
}
.pub-header .btn-outline { background: transparent; color: #1e3a5f; border: 1.5px solid rgba(30, 58, 95, 0.22); }
.pub-header .btn-outline:hover { border-color: var(--accent); color: #8a6d1f; background: rgba(201, 168, 76, 0.08); }
/* [СВО] 2026-07-06 — Кнопка «Личный кабинет» (#0078C1 как на референсе) */
.pub-header .btn-cabinet {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.pub-header .btn-cabinet:hover {
    transform: translateY(-1px);
}
.pub-header .btn-cabinet i { font-size: 14px; opacity: 0.95; }
.pub-header .mobile-menu-btn { display: none; background: none; border: none; color: #1e3a5f; font-size: 24px; cursor: pointer; }

/* [СВО] 2026-07-06 — Шапка внутренних страниц (Помощь, Вступление). НЕ МЕНЯТЬ без проверки #view-join */
.pub-page-hero {
    margin-top: 72px;
    background: linear-gradient(145deg, #1e3a5f 0%, #2a4a7a 100%);
    padding: 60px 24px;
}
.pub-page-hero__inner { max-width: 800px; margin: 0 auto; text-align: center; }
.pub-page-hero__tag { color: var(--accent); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.pub-page-hero__title { color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.pub-page-hero__text { color: rgba(255, 255, 255, 0.7); font-size: 16px; max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* [СВО] 2026-07-19 — фото-шапки публичных страниц (единый --page-photo) */
#view-news .pub-page-hero--news,
#view-about .pub-page-hero--about,
#view-privacy .pub-page-hero--privacy,
#view-contacts .pub-page-hero--contacts,
#view-representatives .pub-page-hero--contacts,
#view-join .pub-page-hero--join,
#view-help .pub-page-hero--join,
#view-svoih-ne-brosaem .pub-page-hero--stub,
#view-reviews .pub-page-hero--stub {
    position: relative;
    overflow: hidden;
    padding: 52px 24px 48px;
    background:
        linear-gradient(165deg, rgba(255, 252, 247, 0.5) 0%, rgba(247, 243, 235, 0.62) 55%, rgba(240, 233, 220, 0.68) 100%),
        var(--page-photo) center / cover no-repeat;
}
#view-news .pub-page-hero--news .pub-page-hero__inner,
#view-about .pub-page-hero--about .pub-page-hero__inner,
#view-privacy .pub-page-hero--privacy .pub-page-hero__inner,
#view-contacts .pub-page-hero--contacts .pub-page-hero__inner,
#view-representatives .pub-page-hero--contacts .pub-page-hero__inner,
#view-join .pub-page-hero--join .pub-page-hero__inner,
#view-help .pub-page-hero--join .pub-page-hero__inner,
#view-svoih-ne-brosaem .pub-page-hero--stub,
#view-reviews .pub-page-hero--stub .pub-page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 28px 32px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 48px rgba(60, 48, 28, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#view-news .pub-page-hero--news .pub-page-hero__tag,
#view-about .pub-page-hero--about .pub-page-hero__tag,
#view-privacy .pub-page-hero--privacy .pub-page-hero__tag,
#view-contacts .pub-page-hero--contacts .pub-page-hero__tag,
#view-representatives .pub-page-hero--contacts .pub-page-hero__tag,
#view-join .pub-page-hero--join .pub-page-hero__tag,
#view-help .pub-page-hero--join .pub-page-hero__tag,
#view-svoih-ne-brosaem .pub-page-hero--stub,
#view-reviews .pub-page-hero--stub .pub-page-hero__tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 14px;
    background: rgba(201, 168, 76, 0.16);
    color: #8a6d1f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.45;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}
#view-news .pub-page-hero--news .pub-page-hero__title,
#view-about .pub-page-hero--about .pub-page-hero__title,
#view-privacy .pub-page-hero--privacy .pub-page-hero__title,
#view-contacts .pub-page-hero--contacts .pub-page-hero__title,
#view-representatives .pub-page-hero--contacts .pub-page-hero__title,
#view-join .pub-page-hero--join .pub-page-hero__title,
#view-help .pub-page-hero--join .pub-page-hero__title,
#view-svoih-ne-brosaem .pub-page-hero--stub,
#view-reviews .pub-page-hero--stub .pub-page-hero__title {
    margin: 0 0 12px;
    color: #1a2b4a;
    font-size: clamp(30px, 4.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
}
#view-news .pub-page-hero--news .pub-page-hero__text,
#view-about .pub-page-hero--about .pub-page-hero__text,
#view-privacy .pub-page-hero--privacy .pub-page-hero__text,
#view-contacts .pub-page-hero--contacts .pub-page-hero__text,
#view-representatives .pub-page-hero--contacts .pub-page-hero__text,
#view-join .pub-page-hero--join .pub-page-hero__text,
#view-help .pub-page-hero--join .pub-page-hero__text,
#view-svoih-ne-brosaem .pub-page-hero--stub,
#view-reviews .pub-page-hero--stub .pub-page-hero__text {
    color: #5a6478;
    max-width: 560px;
}

/* [СВО] 2026-07-07 — Страница новостей: фильтры + сетка 3 колонки. НЕ МЕНЯТЬ без проверки goNews() */
#view-news .news-page {
    padding: 28px 24px 40px;
    background: transparent;
}

#view-news .news-page__inner {
    max-width: 1200px;
    margin: 0 auto;
}

#view-news .news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 20px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.05);
}

#view-news .news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 320px;
}

#view-news .news-categories[hidden] {
    display: none !important;
}

#view-news button.news-category {
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #52607a;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

#view-news button.news-category:hover {
    border-color: #c9a84c;
    color: #1e3a5f;
    background: #fff;
}

#view-news button.news-category.active {
    border-color: #c9a84c;
    background: linear-gradient(135deg, #d4b85a 0%, #e8d5a0 100%);
    color: #1e3a5f;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.22);
}

#view-news .news-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
    width: 100%;
    margin-left: auto;
}

#view-news .news-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

#view-news .news-search__input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 14px 11px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#view-news .news-search__input:focus {
    border-color: #c9a84c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

#view-news .news-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

#view-news .news-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#view-news .news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: 0 16px 40px rgba(30, 58, 95, 0.1);
}

#view-news .news-card--featured {
    border-color: rgba(201, 168, 76, 0.35);
}

#view-news .news-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(30, 58, 95, 0.88) 0%, rgba(37, 99, 235, 0.75) 100%),
        /* [СВО] 2026-07-21 — лёгкий logo-ui вместо 1.7MB logo.png */
        url('../img/logo-ui.webp?v=20260721perf1') center / cover no-repeat;
}

#view-news .news-card__thumb picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

#view-news .news-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

#view-news .news-card:hover .news-card__img {
    transform: scale(1.05);
}

#view-news .news-card__img.news-img--brand,
.home-news__tile-img.news-img--brand,
#view-news-article .news-article__hero-img.news-img--brand {
    object-fit: contain;
    object-position: center;
    background: #0f2744;
    padding: 14% 18%;
    transform: none;
}
#view-news .news-card:hover .news-card__img.news-img--brand,
.home-news__tile:hover .home-news__tile-img.news-img--brand {
    transform: none;
}

#view-news .news-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: #c9a84c;
    color: #1e3a5f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#view-news .news-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
    flex: 1;
}

#view-news .news-card__date {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

#view-news .news-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.38;
    color: #1e3a5f;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#view-news .news-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

#view-news .news-card__more {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #b8942e;
}

#view-news .news-page__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
}

#view-news .news-page__count {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

#view-news .news-empty {
    grid-column: 1 / -1;
    padding: 56px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
}

#view-news .news-empty i { font-size: 36px; color: #c9a84c; margin-bottom: 12px; }
#view-news .news-empty p { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #1e3a5f; }
#view-news .news-empty span { font-size: 14px; color: #64748b; }

@media (max-width: 1024px) {
    #view-news .news-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    #view-news .pub-page-hero {
        padding: 28px 16px 24px;
    }

    #view-news .pub-page-hero__title {
        font-size: 28px;
    }

    #view-news .news-page {
        padding: 16px max(14px, env(safe-area-inset-left)) 32px max(14px, env(safe-area-inset-right));
    }

    #view-news .news-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }

    #view-news .news-categories {
        flex: none;
        width: 100%;
        min-height: 0;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #view-news .news-categories::-webkit-scrollbar { display: none; }

    #view-news button.news-category {
        flex: 0 0 auto;
        align-self: auto;
        height: auto;
        min-height: 0;
    }

    #view-news .news-search {
        flex: none;
        width: 100%;
        max-width: none;
    }

    #view-news .news-feed {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #view-news .news-card__title {
        font-size: 15px;
    }
}

/* ===== BUTTONS ===== */
.btn { padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { transform: translateY(-1px); }
/* [СВО] 2026-07-18 — единый фото-фон основных кнопок */
.btn-primary,
.home-btn--primary,
.pub-header .btn-cabinet,
.pub-mobile-menu__link--cabinet,
.home-leader-card__btn:not(.home-leader-card__btn--ghost),
.join-choice-btn--primary {
    background-color: #1e4a9e;
    background-image:
        linear-gradient(90deg, rgba(16, 42, 110, 0.4) 0%, rgba(28, 55, 130, 0.18) 55%, transparent 100%),
        var(--btn-photo);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 40, 110, 0.28);
}
.btn-primary:hover,
.home-btn--primary:hover,
.pub-header .btn-cabinet:hover,
.pub-mobile-menu__link--cabinet:hover,
.home-leader-card__btn:not(.home-leader-card__btn--ghost):hover,
.join-choice-btn--primary:hover {
    filter: brightness(1.07);
    color: #fff;
    box-shadow: 0 6px 18px rgba(30, 40, 110, 0.36);
}
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--text-muted); }
.btn-large { padding: 14px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-red { background: var(--red-bg); color: var(--red); }
.btn-green { background: var(--green-bg); color: var(--green); }
.btn-blue { background: var(--blue-bg); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-block { width: 100%; justify-content: center; }

/* [СВО] 2026-07-19 — фон страниц: один слой на #public-pages (2eac688c), views прозрачные */
#view-home,
#view-news,
#view-news-article,
#view-about,
#view-contacts,
#view-representatives,
#view-privacy,
#view-help,
#view-join,
#view-join-choice,
#view-svoih-ne-brosaem,
#view-reviews,
#view-thanks,
#view-siberia-ai,
#view-charity,
#view-bratskoe-serdtse,
#view-dobrovolets,
#view-museum,
.home-page {
    background: transparent;
}

/* [СВО] 2026-07-06 — Hero: белая карточка + изогнутые слои снизу. НЕ МЕНЯТЬ без проверки .hero--centered */
.hero {
    margin-top: 72px;
    background: transparent;
    position: relative;
    overflow: visible;
    padding: 36px 24px 0;
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: #8a6d1f;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.12);
}
.hero h1 { color: #1e3a5f; font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px; }
.hero h1 span {
    color: #c9a84c;
    background: linear-gradient(135deg, #c9a84c 0%, #e8c96a 50%, #a8842e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-inner p { color: #475569; font-size: 17px; line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
/* [СВО] 2026-07-06 — Кнопки hero: увеличенная высота, белый текст на золотой */
.hero-buttons .btn-large { padding: 18px 36px; font-size: 17px; min-height: 56px; }
.hero .btn-primary { color: #fff; box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35); }
.hero .btn-primary:hover { color: #fff; background: #d4b85a; }
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.85);
    color: #1e3a5f;
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}
.hero .btn-outline:hover {
    background: #fff;
    border-color: var(--accent);
    color: #8a6d1f;
}
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(201, 168, 76, 0.25); flex-wrap: wrap; }
.hero-stat { min-width: 140px; }
.hero-stat-value { font-size: 32px; font-weight: 800; color: #c9a84c; letter-spacing: -0.5px; }
.hero-stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* [СВО] 2026-07-06 — Главный экран по центру: карточка + контент. НЕ МЕНЯТЬ без проверки index.html .hero--centered */
.hero--centered {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding: 36px 16px 40px;
}
.hero__card {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 72%, #f0ece4 100%);
    border-radius: 28px;
    padding: 44px 40px 48px;
    box-shadow: none;
    z-index: 2;
}
.hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    gap: 0;
}
/* [СВО] 2026-07-17 — Hero-лого средний размер (между 180 и 360) */
.hero-center__logo-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    flex-shrink: 0;
    overflow: visible;
}
/* [СВО] 2026-07-17 — Волны снаружи бордера; медленно и плавно */
.hero-center__logo-wrap::before,
.hero-center__logo-wrap::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.55);
    box-shadow: none;
    animation: heroLogoPulse 5.5s cubic-bezier(0.33, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
    transform-origin: center center;
    will-change: transform, opacity;
}
.hero-center__logo-wrap::after {
    animation-delay: 2.75s;
}
@keyframes heroLogoPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    70% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}
.hero-center__logo {
    position: relative;
    z-index: 2;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}
/* [СВО] 2026-07-18 — Слоган: ПК 4 строки, моб 5 строк (без дубля на экране) */
.hero--centered .hero-center__text {
    font-family: 'Russo One', sans-serif;
    color: #5e574e;
    font-size: clamp(15px, 2.4vw, 26px);
    font-weight: 400;
    line-height: 1.45;
    width: 100%;
    max-width: min(720px, 100%);
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 0;
    letter-spacing: 0.01em;
}
.hero-center__line {
    display: block;
    white-space: nowrap;
    max-width: 100%;
}
/* [СВО] 2026-07-18 — весь слоган одним серым, без тёмных strong */
.hero--centered .hero-center__text strong {
    color: inherit;
    font-weight: 400;
}
/* Важно: display только здесь — иначе оба блока видны */
.hero--centered .hero-center__text--pc {
    display: flex;
}
.hero--centered .hero-center__text--mob {
    display: none;
}
@media (max-width: 1024px) {
    .hero--centered .hero-center__text--pc {
        display: none;
    }
    .hero--centered .hero-center__text--mob {
        display: flex;
    }
    .hero--centered .hero-center__text {
        font-size: clamp(14px, 4.1vw, 22px);
        max-width: 100%;
        line-height: 1.45;
    }
}
/* [СВО] 2026-07-18 — CTA-группа: вступление + помощь */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin-top: 28px;
}
.hero-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 0;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: #0078C1;
    color: #fff;
    font-family: 'Russo One', sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 120, 193, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
/* [СВО] 2026-07-18 — компактная CTA, счётчики шире кнопки */
.hero-cta-btn--join {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: 380px;
    min-height: 0;
    padding: 14px 24px 12px;
    border-radius: 22px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: #1e4a9e;
    background-image:
        linear-gradient(
            105deg,
            rgba(12, 36, 98, 0.55) 0%,
            rgba(24, 52, 125, 0.28) 48%,
            rgba(40, 45, 120, 0.12) 100%
        ),
        url('../img/574cf85b-41fd-406e-a115-87b2d408c7f4-sm.jpg?v=20260721perf1');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 14px 36px rgba(20, 35, 100, 0.4);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.hero-cta-btn--join::after {
    display: none;
}
.hero-cta-btn--join .hero-cta-btn__main {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.hero-cta-btn--join .hero-cta-btn__sub {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    opacity: 0.95;
}
.hero-cta-btn__main {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.38;
    text-align: center;
    letter-spacing: 0.02em;
}
.hero-cta-btn__sub {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.88;
    line-height: 1.25;
}
.hero-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 120, 193, 0.32);
}
.hero-cta-btn--join:hover {
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 12px 28px rgba(30, 40, 110, 0.42);
}
.hero-cta-btn:active {
    transform: translateY(0);
}
.hero-cta-btn--help {
    background: #a69f8f;
    color: #fff;
    box-shadow: 0 3px 12px rgba(90, 84, 72, 0.18);
}
.hero-cta-btn--help:hover {
    background: #958e7e;
    filter: none;
    box-shadow: 0 6px 20px rgba(90, 84, 72, 0.26);
}

/* [СВО] 2026-07-18 — счётчики: одна стильная текстовая строка */
.hero-reg-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 10px 14px;
    width: 100%;
    max-width: 520px;
    margin-top: 2px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.hero-reg-stats__item {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #64748b;
    white-space: nowrap;
}
.hero-reg-stats__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
    opacity: 0.7;
    flex-shrink: 0;
    align-self: center;
}
.hero-reg-stat__value {
    display: inline-block;
    margin-left: 6px;
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #1e4a9e;
    font-variant-numeric: tabular-nums;
    vertical-align: baseline;
}

/* [СВО] 2026-07-18 — выбор анкеты: фото-фон + премиум-кнопки */
#view-join-choice.join-choice-ready,
#view-join-choice {
    background-color: transparent;
}
#view-join-choice .join-choice-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 72px);
    margin-top: 72px;
    padding: 48px 20px 72px;
    box-sizing: border-box;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(255, 252, 247, 0.42) 0%, rgba(247, 243, 235, 0.55) 45%, rgba(240, 233, 220, 0.62) 100%),
        var(--page-photo) center / cover no-repeat;
}
#view-join-choice .join-choice-hero__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 32px 34px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 24px 60px rgba(60, 48, 28, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
#view-join-choice .join-choice-hero .pub-page-hero__tag {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(201, 168, 76, 0.16);
    color: #8a6d1f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
#view-join-choice .join-choice-hero .pub-page-hero__title {
    margin: 0 0 14px;
    color: #1a2b4a;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
#view-join-choice .join-choice-hero .pub-page-hero__text {
    margin: 0 auto;
    max-width: 420px;
    color: #5a6478;
    font-size: 15px;
    line-height: 1.65;
}
#view-join-choice .join-choice-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin: 28px auto 0;
}
.join-choice-btn {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border: none;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.join-choice-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-top: 2px;
    border-radius: 12px;
    font-size: 18px;
}
.join-choice-btn__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.join-choice-btn__main {
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.join-choice-btn__hint {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    opacity: 0.88;
}
.join-choice-btn__line {
    display: block;
}
.join-choice-btn__arrow {
    flex-shrink: 0;
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.join-choice-btn:hover .join-choice-btn__arrow {
    opacity: 1;
    transform: translateX(3px);
}
.join-choice-btn:active {
    transform: translateY(1px);
}
.join-choice-btn--primary {
    color: #fff;
}
.join-choice-btn--primary .join-choice-btn__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.join-choice-btn--primary:hover {
    transform: translateY(-2px);
}
.join-choice-btn--secondary {
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid rgba(30, 58, 95, 0.14);
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.08);
}
.join-choice-btn--secondary .join-choice-btn__icon {
    background: rgba(201, 168, 76, 0.14);
    color: #8a6d1f;
}
.join-choice-btn--secondary .join-choice-btn__hint {
    color: #64748b;
    opacity: 1;
}
.join-choice-btn--secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.55);
    background: #fff;
    box-shadow: 0 14px 30px rgba(30, 58, 95, 0.12);
}

.join-choice-btn--supporter {
    color: #1e3a5f;
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid rgba(30, 58, 95, 0.14);
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.08);
}
.join-choice-btn--supporter .join-choice-btn__icon {
    background: rgba(93, 140, 90, 0.14);
    color: #3d6b3a;
}
.join-choice-btn--supporter .join-choice-btn__hint {
    color: #64748b;
    opacity: 1;
}
.join-choice-btn--supporter:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 140, 90, 0.5);
    background: #fff;
    box-shadow: 0 14px 30px rgba(30, 58, 95, 0.12);
}

.supporter-events {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.supporter-event {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    background: #fff;
}
.supporter-event__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #1a2b4a;
}
.supporter-event__text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
}
.supporter-fund-req {
    margin: 0;
    display: grid;
    gap: 10px;
}
.supporter-fund-req > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f4ee;
}
.supporter-fund-req dt {
    font-size: 12px;
    font-weight: 700;
    color: #8a8174;
}
.supporter-fund-req dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b4a;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
body.cabinet-supporter-mode .nav-item--supporter {
    display: flex;
}

#view-join-choice .join-choice-hero-actions--3 {
    max-width: 680px;
}

@media (max-width: 640px) {
    #view-join-choice .join-choice-hero {
        min-height: calc(100vh - 56px - env(safe-area-inset-top, 0px));
        margin-top: calc(56px + env(safe-area-inset-top, 0px));
        padding: 28px 14px 56px;
    }
    #view-join-choice .join-choice-hero__panel {
        padding: 28px 18px 24px;
        border-radius: 20px;
    }
    .join-choice-btn {
        padding: 16px 14px;
        gap: 12px;
    }
    .join-choice-btn__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .join-choice-btn__main {
        font-size: 15px;
    }
    .join-choice-btn__hint {
        font-size: 12.5px;
        line-height: 1.5;
        gap: 4px;
    }
}

/* Шаги кабинета родственников — не зависят от membership showMembershipStep */
#view-help [data-help-step] {
    display: none !important;
}
#view-help [data-help-step].help-cab-step--active,
#view-help [data-help-step].mem-step--active {
    display: block !important;
}

/* [СВО] 2026-07-06 — Секции главной: карточки на общем фоне */
.home-page .home-section {
    padding: 24px 24px;
    background: transparent;
    position: relative;
    z-index: 3;
}
.home-page .home-section > .section-inner {
    max-width: 1120px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow:
        0 20px 50px rgba(30, 58, 95, 0.09),
        0 8px 24px rgba(30, 58, 95, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.9);
}
.home-section {
    padding: 72px 24px;
    background: #f6f5f1;
}
.home-section:nth-child(even) {
    background: #faf9f6;
}
.home-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.home-section__head--row {
    text-align: left;
    max-width: none;
    margin-bottom: 32px;
}
.home-section__title {
    font-size: 32px;
    font-weight: 800;
    color: #1e3a5f;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    line-height: 1.2;
}
.home-section__lead {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #64748b;
    text-wrap: balance;
}
.home-section__lead a {
    color: #0078C1;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* [СВО] 2026-07-06 — Ссылки в блоке сопредседателей: золотистый как на участниксво.рф */
.home-leaders .home-section__lead a {
    color: #a68d5d;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.home-leaders .home-section__lead a:hover {
    color: #8f7449;
}
.home-section__action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.home-section__action--split {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.home-btn--outline {
    background: transparent;
    color: #0078C1;
    border: 1.5px solid rgba(0, 120, 193, 0.35);
    text-decoration: none;
}
.home-btn--outline:hover {
    background: rgba(0, 120, 193, 0.06);
    transform: translateY(-1px);
}
.home-quote--governor {
    background: transparent;
    position: relative;
    z-index: 2;
}
.home-page .quote-section.home-quote {
    background: transparent;
    padding: 20px 24px 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.home-page .quote-section.home-quote#about {
    margin-top: 8px;
    padding-top: 28px;
}
.home-page .quote-section::before {
    display: none;
}
.home-page .quote-section > .section-inner {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    max-width: 1120px;
}
.home-page .quote-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}
.quote-card--reverse {
    grid-template-columns: 42% 1fr;
}
.quote-card--reverse .quote-card__photo {
    order: 0;
}
.home-faq__media--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    background-color: #0f1a2e;
    background-image: url('../img/7c696f43-f7aa-4486-84ae-82deae2aa08d.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 16px;
}
/* Эмблема уже на фото-фоне — отдельный logo.png скрываем */
.home-faq__media--logo .home-faq__logo {
    display: none;
}
.home-faq__logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}
.home-form__categories {
    border: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-form__categories legend {
    margin-bottom: 12px;
}
.home-form__cat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.home-form__cat:has(input:checked) {
    border-color: #0078C1;
    background: rgba(0, 120, 193, 0.04);
}
.home-form__cat input {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #0078C1;
}
.home-form__cat-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-form__cat-body strong {
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.35;
}
.home-form__cat-body small {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.home-form__upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    position: relative;
}
.home-form__upload i {
    font-size: 24px;
    color: #94a3b8;
}
.home-form__upload-link {
    color: #0078C1;
    cursor: pointer;
    text-decoration: underline;
}
.home-form__upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.home-contact__agree a {
    color: #0078C1;
}
.pub-mobile-menu__link--ext {
    text-decoration: none;
    color: var(--text);
}
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.home-btn--primary {
    color: #fff;
}
.home-btn--primary:hover {
    transform: translateY(-1px);
}
.home-btn--light {
    background: #fff;
    color: #0078C1;
}
.home-btn--light:hover {
    background: #f0f9ff;
}
.home-quote {
    background: transparent;
}
/* [СВО] 2026-07-07 — Блок новостей: две колонки, синяя панель справа */
.home-news__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: stretch;
}
.home-news__main,
.home-news__sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.home-news__main-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}
.home-news__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.home-news__sidebar-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1e4a9e;
    background-image: url('../img/7c696f43-f7aa-4486-84ae-82deae2aa08d.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 8px 22px 12px;
    overflow: hidden;
}
/* [СВО] 2026-07-07 — Карусель: 4 полных + 5-я наполовину, без затемнения */
.home-news__sidebar-viewport {
    --home-news-sidebar-item-h: 104px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(var(--home-news-sidebar-item-h) * 4.5);
    flex-shrink: 0;
}
.home-news__sidebar-track {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: homeNewsSidebarScroll 48s linear infinite;
    will-change: transform;
}
.home-news__sidebar-viewport:hover .home-news__sidebar-track,
.home-news__sidebar-viewport:focus-within .home-news__sidebar-track {
    animation-play-state: paused;
}
@keyframes homeNewsSidebarScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -50%, 0); }
}
.home-news__block-title--sidebar {
    margin-bottom: 18px;
}
.home-news__block-title {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.14);
    line-height: 1.2;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.home-news__tile {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-news__tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 58, 95, 0.16);
}
.home-news__tile--featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: 320px;
}
.home-news__tile--small {
    aspect-ratio: 4 / 3;
    min-height: 160px;
    height: auto;
}
.home-news__tile-bg,
.home-news__tile-img,
.home-news__tile picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.home-news__tile picture {
    display: block;
}
.home-news__tile-bg {
    background-color: #1e3a5f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}
.home-news__tile-img {
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}
.home-news__tile:hover .home-news__tile-bg,
.home-news__tile:hover .home-news__tile-img,
.home-news__tile:hover picture .home-news__tile-img {
    transform: scale(1.03);
}
.home-news__tile-overlay {
    display: none;
}
.home-news__tile-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 24px;
    color: #fff;
}
.home-news__tile-content::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.28) 68%, transparent 100%);
}
.home-news__tile--featured .home-news__tile-content::before {
    top: -110px;
}
.home-news__tile--small .home-news__tile-content::before {
    top: -84px;
}
.home-news__tile-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.92;
    margin-bottom: 8px;
}
.home-news__tile-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}
.home-news__tile--small .home-news__tile-title {
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
}
.home-news__sidebar-list,
.home-news__sidebar-track {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-news__sidebar-item {
    height: var(--home-news-sidebar-item-h, 104px);
    min-height: var(--home-news-sidebar-item-h, 104px);
    box-sizing: border-box;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: opacity 0.2s;
}
.home-news__sidebar-item:last-child {
    border-bottom: none;
}
.home-news__sidebar-item:hover {
    opacity: 0.88;
}
.home-news__sidebar-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 8px;
}
.home-news__sidebar-item-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}
.news-modal__date {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.news-modal__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}

/* [СВО] 2026-07-19 — intro новостей: лого + слоган строками (как на главной) */
.hero--news-intro {
    padding-bottom: 8px;
}

.hero--news-intro .hero__card {
    padding: 40px 40px 44px;
}

.hero--news-intro .hero-center__logo-wrap {
    margin-bottom: 32px;
}

.hero--news-intro .hero-center__logo {
    opacity: 1;
    filter: none;
}

.news-intro__prose {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: min(760px, 100%);
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
}

.news-intro__block {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2.1vw, 24px);
    line-height: 1.42;
    color: #5e574e;
    letter-spacing: 0.01em;
}

.news-intro__block--pc {
    display: flex;
}

.news-intro__block--mob {
    display: none;
}

.news-intro__line {
    display: block;
    white-space: nowrap;
    max-width: 100%;
}

.news-intro__block--body {
    font-size: clamp(15px, 1.85vw, 21px);
    color: #6a6359;
}

.news-intro__block--close {
    font-size: clamp(16px, 2.05vw, 23px);
    color: #4a453e;
}

.news-intro__rule {
    width: 48px;
    height: 2px;
    margin: 22px auto;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

/* [СВО] 2026-07-19 — заглушка «Сибирь ИИ» */
.siberia-ai__title {
    margin: 0;
    font-family: 'Russo One', sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    color: #1a2b4a;
    text-align: center;
}

.siberia-ai__status {
    margin: 0;
    font-family: 'Russo One', sans-serif;
    font-size: clamp(16px, 2.1vw, 24px);
    font-weight: 400;
    line-height: 1.4;
    color: #5e574e;
    text-align: center;
}

.siberia-ai__note {
    margin: 20px auto 0;
    max-width: 560px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #6a6359;
    text-align: center;
}

/* [СВО] 2026-07-21 — кнопка скачивания Android APK */
.siberia-ai__app-cta {
    margin: 22px auto 0;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.siberia-ai__app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(26, 43, 74, 0.22);
}
.siberia-ai__app-btn:hover {
    background: var(--primary-light);
}
.siberia-ai__app-hint {
    font-size: 12px;
    color: #8a8278;
    text-align: center;
    line-height: 1.35;
}

/* [СВО] 2026-07-19 — стили фондов вынесены в css/fund.css */

.hero--news-intro--article .hero-center__logo-wrap {
    width: 180px;
    height: 180px;
    margin-bottom: 22px;
}

.hero--news-intro--article .hero-center__logo {
    width: 180px;
    height: 180px;
}

.hero--news-intro--article .news-intro__block {
    font-size: clamp(14px, 1.7vw, 18px);
}

.hero--news-intro--article .news-intro__block--body {
    font-size: clamp(13px, 1.55vw, 16px);
}

.hero--news-intro--article .news-intro__block--close {
    font-size: clamp(14px, 1.65vw, 17px);
}

.hero--news-intro--article .news-intro__rule {
    margin: 16px auto;
}

@media (max-width: 1024px) {
    .news-intro__block--pc {
        display: none;
    }

    .news-intro__block--mob {
        display: flex;
    }

    .news-intro__block {
        font-size: clamp(14px, 3.6vw, 17px);
        line-height: 1.4;
    }

    .news-intro__block--body {
        font-size: clamp(13px, 3.3vw, 15px);
    }

    .news-intro__block--close {
        font-size: clamp(14px, 3.5vw, 16px);
    }

    .news-intro__line {
        white-space: nowrap;
    }

    .news-intro__rule {
        margin: 16px auto;
    }
}

@media (max-width: 768px) {
    .hero--news-intro .hero__card {
        padding: 28px 16px 30px;
    }

    .hero--news-intro .hero-center__logo-wrap {
        margin-bottom: 20px;
    }

    .hero--news-intro--article .hero-center__logo-wrap {
        width: 140px;
        height: 140px;
        margin-bottom: 14px;
    }

    .hero--news-intro--article .hero-center__logo {
        width: 140px;
        height: 140px;
    }

    .news-intro__prose {
        padding: 0 2px;
    }
}

/* [СВО] 2026-07-07 — Страница полной новости (#view-news-article). НЕ МЕНЯТЬ без проверки openNewsItem() */
#view-news-article {
    padding-top: 0;
}

#view-news-article .news-article {
    padding-bottom: 48px;
}

#view-news-article .news-article__inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 8px 24px 72px;
}

#view-news-article .news-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(30, 58, 95, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#view-news-article .news-article__back:hover {
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}

#view-news-article .news-article__panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(30, 58, 95, 0.08);
}

#view-news-article .news-article__hero {
    width: 100%;
    min-height: 220px;
    max-height: 480px;
    overflow: hidden;
    background: #e8e4db;
}

#view-news-article .news-article__hero[hidden] {
    display: none;
}

#view-news-article .news-article__hero picture,
#view-news-article .news-article__hero > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 480px;
}

#view-news-article .news-article__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
}

#view-news-article .news-article__main {
    padding: 28px 30px 32px;
}

#view-news-article .news-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #64748b;
}

#view-news-article .news-article__region {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1e3a5f;
}

#view-news-article .news-article__region i { color: #c9a84c; }

#view-news-article .news-article__title {
    margin: 0 0 20px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.25;
    color: #1e3a5f;
}

#view-news-article .news-article__content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

#view-news-article .news-article__content p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

#view-news-article .news-article__content p:last-child { margin-bottom: 0; }

/* [СВО] 2026-07-19 — теги новости из /postadminnews */
#view-news-article .news-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px !important;
}
#view-news-article .news-article__tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(30, 58, 95, 0.08);
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
}

#view-news-article .news-article__subheading {
    margin: 22px 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e3a5f;
}

#view-news-article .news-article__gallery {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
}

#view-news-article .news-article__gallery[hidden] {
    display: none;
}

#view-news-article .news-article__media-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: #1a2b4a;
    letter-spacing: -0.01em;
}

#view-news-article .news-article__media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#view-news-article .news-article__media-grid--video {
    grid-template-columns: 1fr;
}

#view-news-article .news-article__gallery-item {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 95, 0.08);
    background: #f3f0ea;
    cursor: zoom-in;
}

#view-news-article .news-article__gallery-item--video,
#view-news-article .news-article__gallery-item--embed {
    cursor: default;
    background: #0f1a2e;
    border-color: rgba(15, 26, 46, 0.35);
    box-shadow: 0 16px 40px rgba(15, 26, 46, 0.18);
}

#view-news-article .news-article__video-wrap {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

#view-news-article .news-article__gallery-item img,
#view-news-article .news-article__gallery-img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

#view-news-article .news-article__gallery-item:hover img {
    transform: scale(1.03);
}

#view-news-article .news-article__gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#view-news-article .news-article__media-caption {
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #e8eef6;
    background: linear-gradient(135deg, #1a2b4a, #243b61);
}

#view-news-article .news-article__embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f1a2e;
}

#view-news-article .news-article__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#view-news-article .news-article__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(26, 43, 74, 0.78);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

#view-news-article .news-article__gallery-item:hover .news-article__zoom,
#view-news-article .news-article__gallery-item:focus-within .news-article__zoom {
    opacity: 1;
}

.news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    background: rgba(10, 16, 28, 0.92);
    backdrop-filter: blur(6px);
}

.news-lightbox[hidden] {
    display: none !important;
}

.news-lightbox__figure {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
}

.news-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.news-lightbox__close,
.news-lightbox__nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.news-lightbox__close:hover,
.news-lightbox__nav:hover {
    background: rgba(201, 168, 76, 0.55);
}

.news-lightbox__close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.news-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.news-lightbox__nav--prev { left: 16px; }
.news-lightbox__nav--next { right: 16px; }

#view-news .news-card__thumb[style*="background-image"] {
    background-color: #e2e8f0;
}

#view-news .news-card__thumb:has(.news-card__img) {
    background: #e2e8f0;
}

@media (max-width: 1024px) {
    #view-news-article .news-article__hero,
    #view-news-article .news-article__hero picture,
    #view-news-article .news-article__hero > img,
    #view-news-article .news-article__hero-img {
        min-height: 180px;
        max-height: 300px;
    }

    #view-news-article .news-article__inner {
        padding: 4px 16px 88px;
    }

    #view-news-article .news-article__main {
        padding: 20px 18px 24px;
    }

    #view-news-article .news-article__media-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #view-news-article .news-article__gallery-item img,
    #view-news-article .news-article__gallery-img {
        height: 200px;
    }

    .news-lightbox {
        padding: 56px 12px 24px;
    }

    .news-lightbox__nav {
        display: none;
    }
}

/* [СВО] 2026-07-18 — карточки команды на общем фото-фоне главной */
.home-page .home-leaders,
.home-leaders {
    background: transparent;
}
.home-leaders__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.home-leaders__grid--single {
    grid-template-columns: minmax(240px, 320px);
    justify-content: center;
}
.home-leaders__grid--duo {
    grid-template-columns: repeat(2, minmax(240px, 320px));
    justify-content: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.home-leaders__grid--trio {
    grid-template-columns: repeat(3, minmax(240px, 310px));
    justify-content: center;
    gap: 24px;
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}
/* [СВО] 2026-07-18 — председатель: фото сверху, текст по центру под ним */
.home-leaders__featured {
    display: flex;
    justify-content: center;
    margin: 0 auto 28px;
    max-width: 380px;
    width: 100%;
}
.home-leaders__grid--team {
    display: flex;
    justify-content: flex-start;
    gap: 22px;
    max-width: none;
    margin: 0;
}
/* [СВО] 2026-07-18 — слайдер команды (замы): peek + градиент + свайп */
.home-leaders-slider {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 48px 8px;
    box-sizing: border-box;
}
.home-leaders-slider__viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.home-leaders-slider__viewport.is-dragging {
    cursor: grabbing;
}
.home-leaders-slider__viewport::before,
.home-leaders-slider__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: min(72px, 18%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.home-leaders-slider__viewport::before {
    left: 0;
    background: linear-gradient(to right, #fff 8%, rgba(255, 255, 255, 0) 100%);
}
.home-leaders-slider__viewport::after {
    right: 0;
    background: linear-gradient(to left, #fff 8%, rgba(255, 255, 255, 0) 100%);
}
.home-leaders-slider:not(.is-at-start) .home-leaders-slider__viewport::before {
    opacity: 1;
}
.home-leaders-slider:not(.is-at-end) .home-leaders-slider__viewport::after {
    opacity: 1;
}
.home-leaders-slider__track {
    display: flex;
    gap: 22px;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-leaders-slider__track.is-dragging {
    transition: none;
}
.home-leaders-slider__slide {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
}
.home-leaders-slider__slide .home-leader-card {
    height: 100%;
    pointer-events: auto;
}
.home-leaders-slider__nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(30, 58, 95, 0.14);
    border-radius: 50%;
    background: #fff;
    color: #1e3a5f;
    box-shadow: 0 8px 22px rgba(15, 26, 46, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.home-leaders-slider__nav:hover:not(:disabled) {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}
.home-leaders-slider__nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.home-leaders-slider__nav--prev { left: 0; }
.home-leaders-slider__nav--next { right: 0; }
.home-leaders-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.home-leaders-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.22);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.home-leaders-slider__dot.is-active {
    background: #c9a84c;
    transform: scale(1.2);
}
.home-leader-card--featured {
    width: 100%;
}
.home-leader-card--featured .home-leader-card__body {
    text-align: center;
    align-items: center;
    padding: 22px 20px 24px;
}
.home-leader-card--featured .home-leader-card__name {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f1a2e;
}
.home-leader-card--featured .home-leader-card__post {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #8a6d1f;
}
.home-leader-card--featured .home-leader-card__facts {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.home-leader-card--featured .home-leader-card__facts li {
    width: 100%;
    margin: 0;
    padding: 8px 6px;
    border: none;
    border-left: none;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
    font-size: 13px;
    line-height: 1.4;
    color: #3a4a63;
    text-align: center;
}
.home-leader-card--featured .home-leader-card__facts li:first-child {
    border-top: none;
    padding-top: 0;
}
.home-leader-card--featured .home-leader-card__email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 14px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 95, 0.12);
    background: rgba(30, 58, 95, 0.04);
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    word-break: break-all;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.home-leader-card--featured .home-leader-card__email i {
    flex-shrink: 0;
    color: #c9a84c;
    font-size: 14px;
}
.home-leader-card--featured .home-leader-card__email:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.45);
    color: #0f1a2e;
}
.home-leader-card--featured .home-leader-card__btn {
    align-self: center;
    width: auto;
    min-width: 180px;
    margin: 0;
    padding: 12px 28px;
}
.home-leader-card--featured .home-leader-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}
.home-leader-card__btn--vk {
    background: #0077ff;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.28);
}
.home-leader-card__btn--vk:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(0, 119, 255, 0.34);
}
/* [СВО] 2026-07-19 — цитата председателя: фото + градиент снизу вверх */
.home-leaders__quote {
    position: relative;
    max-width: 820px;
    margin: 8px auto 36px;
    padding: 32px 36px 28px;
    border-radius: 20px;
    color: #e8eef6;
    background-color: #0f1a2e;
    background-image:
        linear-gradient(
            to top,
            rgba(10, 18, 32, 0.94) 0%,
            rgba(15, 26, 46, 0.72) 45%,
            rgba(30, 58, 95, 0.4) 100%
        ),
        url('../img/574cf85b-41fd-406e-a115-87b2d408c7f4-sm.jpg?v=20260721perf1');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 18px 48px rgba(15, 26, 46, 0.28);
    overflow: hidden;
}
.home-leaders__quote::before {
    content: '„';
    position: absolute;
    top: 8px;
    left: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 96px;
    line-height: 1;
    color: rgba(201, 168, 76, 0.28);
    pointer-events: none;
}
.home-leaders__quote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a6d1f 0%, #c9a84c 50%, #e8d5a0 100%);
}
.home-leaders__quote-kicker {
    display: inline-block;
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background-color: #1e4a9e;
    background-image:
        linear-gradient(90deg, rgba(16, 42, 110, 0.4) 0%, rgba(28, 55, 130, 0.18) 55%, transparent 100%),
        var(--btn-photo);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow: 0 3px 10px rgba(30, 40, 110, 0.28);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.home-leaders__quote-text {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
}
.home-leaders__quote-text p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.65;
    font-style: italic;
    color: rgba(232, 238, 246, 0.92);
}
.home-leaders__quote-text p:last-child {
    margin-bottom: 0;
}
.home-leaders__quote-thanks {
    margin-top: 18px !important;
    font-weight: 600;
    font-style: normal !important;
    color: #e8d5a0 !important;
}
.home-leaders__quote-author {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 168, 76, 0.28);
}
.home-leaders__quote-name {
    font-size: 15px;
    font-weight: 800;
    color: #c9a84c;
    letter-spacing: 0.02em;
}
.home-leaders__quote-role {
    font-size: 12px;
    color: rgba(232, 238, 246, 0.65);
}
.home-section__head--team {
    margin: 8px auto 28px;
    text-align: center;
}
.home-leader-card--lukyanov .home-leader-card__photo img,
.home-leader-card--mandzhiev .home-leader-card__photo img,
.home-leader-card--mandzhieva .home-leader-card__photo img,
.home-leader-card--khromchenko .home-leader-card__photo img,
.home-leader-card--gerikhanov .home-leader-card__photo img,
.home-leader-card--khestanov .home-leader-card__photo img,
.home-leader-card--gorshanov .home-leader-card__photo img,
.home-leader-card--aliev .home-leader-card__photo img,
.home-leader-card--blinov .home-leader-card__photo img,
.home-leader-card--poluektov .home-leader-card__photo img,
.home-leader-card--apushnikov .home-leader-card__photo img,
.home-leader-card--bachurin .home-leader-card__photo img {
    object-position: center top;
}
.home-leader-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(30, 58, 95, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 12px 36px rgba(15, 26, 46, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.home-leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a6d1f 0%, #c9a84c 45%, #e8d5a0 70%, #c9a84c 100%);
    z-index: 3;
}
.home-leader-card:hover {
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 18px 44px rgba(15, 26, 46, 0.16);
    transform: translateY(-4px);
}
.home-leader-card__photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0f1a2e;
    flex-shrink: 0;
}
.home-leader-card__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 26, 46, 0.88) 0%,
        rgba(15, 26, 46, 0.25) 38%,
        transparent 62%
    );
    pointer-events: none;
    z-index: 1;
}
.home-leader-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.home-leader-card:hover .home-leader-card__photo img {
    transform: scale(1.04);
}
.home-leader-card__badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.home-leader-card__label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #c9a84c 0%, #a8883a 100%);
    color: #1a2b4a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(15, 26, 46, 0.35);
}
.home-leader-card__body {
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.home-leader-card__name {
    font-size: 17px;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.home-leader-card__name-br {
    display: none;
}
.home-leader-card__post {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e3a5f;
}
.home-leader-card__role {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
    flex: 1;
}
.home-leader-card__facts {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.home-leader-card__facts li {
    position: relative;
    padding: 8px 0 8px 12px;
    border-left: 2px solid rgba(201, 168, 76, 0.55);
    font-size: 12.5px;
    line-height: 1.45;
    color: #5b6b7c;
}
.home-leader-card__facts li + li {
    border-top: 1px dashed rgba(30, 58, 95, 0.08);
}
.home-leader-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e8edf3 0%, #d1dae6 100%);
    color: #94a3b8;
}
.home-leader-card__photo--placeholder i {
    font-size: 64px;
    opacity: 0.55;
}
.home-leader-card__channel {
    color: #64748b;
    word-break: break-all;
}
.home-leader-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.home-leader-card__btn:hover {
    color: #fff;
}
.home-leader-card__btn--ghost {
    background: transparent;
    background-image: none;
    color: #1e3a5f;
    border: 1.5px solid rgba(30, 58, 95, 0.28);
    box-shadow: none;
    filter: none;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(30, 58, 95, 0.15);
}
.home-leader-card__btn--ghost:hover {
    background: rgba(201, 168, 76, 0.12);
    background-image: none;
    border-color: #c9a84c;
    color: #1e3a5f;
    box-shadow: none;
    filter: none;
}
.home-leader-card--simchuk .home-leader-card__photo img {
    object-position: center top;
}
.home-leader-card--simchuk .home-leader-card__photo img {
    object-position: center top;
}
.home-faq__layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}
.home-faq__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 520px;
    background-color: #1e3a5f;
}
/* [СВО] 2026-07-18 — FAQ: фото эмблемы вместо сплошного синего */
.home-faq__media.home-faq__media--logo {
    background-color: #0f1a2e;
    background-image: url('../img/7c696f43-f7aa-4486-84ae-82deae2aa08d.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.home-faq__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}
.home-faq__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #fff;
}
.home-faq__media-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c9a84c;
    margin-bottom: 8px;
}
.home-faq__media-overlay p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}
.home-faq__content .home-section__title {
    text-align: left;
    margin-bottom: 20px;
}
.home-faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.home-faq__item {
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 12px;
    overflow: hidden;
}
.home-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    text-align: left;
    cursor: pointer;
}
.home-faq__question i {
    color: #c9a84c;
    font-size: 12px;
    transition: transform 0.2s;
}
.home-faq__item.open .home-faq__question i {
    transform: rotate(45deg);
}
.home-faq__answer {
    display: none;
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
}
.home-faq__item.open .home-faq__answer {
    display: block;
}
.home-contact {
    background: #fff;
}
.home-contact__inner {
    max-width: 860px;
}
.home-contact__form {
    background: #faf9f6;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 20px;
    padding: 28px;
}
/* [СВО] 2026-07-18 — вместо формы: инструкция обращений через ЛК */
.home-contact__info {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.92) 100%),
        #f8fafc;
    border: 1px solid rgba(30, 58, 95, 0.1);
    border-radius: 22px;
    padding: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
    box-shadow: 0 10px 28px rgba(30, 58, 95, 0.07);
}
.home-contact__info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #0078C1 0%, #1e4a9e 100%);
}
.home-contact__info-top {
    padding: 28px 32px 8px 36px;
}
.home-contact__info p {
    margin: 0 0 14px;
}
.home-contact__info-lead {
    margin-bottom: 10px !important;
    font-family: 'Russo One', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    color: #1e3a5f;
}
.home-contact__info-intro {
    max-width: 62ch;
    color: #475569;
}
.home-contact__info-steps-block {
    margin: 8px 20px 20px 24px;
    padding: 20px 20px 8px;
    background: rgba(0, 120, 193, 0.04);
    border: 1px solid rgba(0, 120, 193, 0.1);
    border-radius: 16px;
}
.home-contact__info-steps-title {
    margin: 0 0 16px !important;
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
}
.home-contact__steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-contact__step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.home-contact__step-item--cta {
    align-items: stretch;
}
.home-contact__step-num {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-top: 2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #0078C1;
    box-shadow: 0 4px 12px rgba(0, 120, 193, 0.28);
}
.home-contact__step-item--cta .home-contact__step-num {
    margin-top: 14px;
    background: linear-gradient(145deg, #1e4a9e 0%, #0078C1 100%);
}
.home-contact__step-body {
    flex: 1;
    min-width: 0;
}
.home-contact__step-text {
    display: block;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.4;
}
.home-contact__join-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 72px;
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff !important;
    text-decoration: none !important;
    background-color: #1e4a9e;
    background-image:
        linear-gradient(
            105deg,
            rgba(12, 36, 98, 0.55) 0%,
            rgba(24, 52, 125, 0.28) 48%,
            rgba(40, 45, 120, 0.12) 100%
        ),
        var(--btn-photo);
    background-size: cover, cover;
    background-position: center, center;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 10px 24px rgba(20, 35, 100, 0.35);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.home-contact__join-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 14px 30px rgba(20, 35, 100, 0.42);
}
.home-contact__join-btn-main {
    font-family: 'Russo One', sans-serif;
    font-size: 17px;
    line-height: 1.28;
    letter-spacing: 0.01em;
}
.home-contact__join-btn-arrow {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 700;
    opacity: 0.9;
}
.home-contact__info-why-block {
    margin: 0 20px 20px 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 16px;
}
.home-contact__info-why-block p {
    margin: 0 0 12px;
    color: #475569;
}
.home-contact__info-why-block p:last-child {
    margin-bottom: 0;
}
.home-contact__info-why {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
}
.home-contact__info-thanks {
    margin: 0 !important;
    padding: 18px 32px 24px 36px;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    border-top: 1px solid rgba(30, 58, 95, 0.08);
    background: linear-gradient(90deg, rgba(0, 120, 193, 0.06), transparent 70%);
}
.home-contact__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.home-contact__step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
}
.home-contact__step.is-active {
    background: #0078C1;
    color: #fff;
}
.home-contact__step-line {
    width: 48px;
    height: 2px;
    background: #e2e8f0;
}
.home-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.home-field--wide { grid-column: span 1; }
.home-field--full { grid-column: 1 / -1; }
.home-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.home-field__label span { color: #dc2626; }
.home-field__input,
.home-field__textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s;
}
.home-field__input:focus,
.home-field__textarea:focus {
    outline: none;
    border-color: #0078C1;
}
.home-field__textarea { resize: vertical; min-height: 100px; }
.home-contact__agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}
.home-contact__submit {
    display: flex;
    justify-content: flex-end;
}
.home-partners__track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 8px;
}
.home-partners__card {
    flex: 0 1 220px;
    width: 220px;
    max-width: 100%;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.08);
    border-radius: 14px;
    padding: 22px 16px 20px;
    text-align: center;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.home-partners__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30, 58, 95, 0.1);
}
.home-faq__answer a {
    color: #0078C1;
    text-decoration: underline;
}
.home-partners__logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(30, 58, 95, 0.1);
}
.home-partners__name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}
.home-course {
    background: linear-gradient(135deg, #0078C1 0%, #1e3a5f 100%);
    padding: 56px 24px;
}
.home-course__inner {
    max-width: 900px;
}
.home-course__title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.25;
}
.home-course__text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 640px;
}
.home-footer,
.pub-footer {
    margin-top: 0;
    /* фон задаётся в footer.pub-footer / #pubFooter */
}

@media (max-width: 1280px) {
    .home-news__layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    .home-news__main,
    .home-news__sidebar {
        width: 100%;
    }
    .home-leaders__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-leaders__grid--trio {
        grid-template-columns: repeat(2, minmax(220px, 300px));
        max-width: 680px;
        justify-content: center;
    }
    .home-leaders-slider {
        padding: 0 44px 8px;
    }
    .home-leaders__featured {
        max-width: 340px;
    }
    .home-leaders__quote {
        margin: 8px 0 28px;
        padding: 26px 22px 22px;
    }
    .home-leaders__quote-text p {
        font-size: 15px;
    }
}

/* [СВО] 2026-07-06 — Блок лидеров под hero */
.section--leaders {
    padding: 0 24px 72px;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 246, 253, 0.5) 100%);
}
.section--leaders .section-inner {
    max-width: 440px;
    margin: 0 auto;
}
.section--leaders .hero-card-wrap {
    margin-top: 0;
}

/* [СВО] 2026-07-06 — Hero-карточка: подъём + 2 косых слоя-тени сзади. НЕ МЕНЯТЬ без проверки .hero-card-wrap */
.hero-card-wrap {
    position: relative;
    margin-top: 12px;
    align-self: start;
    width: 100%;
    isolation: isolate;
}
.hero-card-wrap::before,
.hero-card-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
}
.hero-card-wrap::before {
    background: rgba(37, 99, 235, 0.1);
    transform: translate(11px, 13px) skewX(-2.5deg) skewY(1.5deg);
    z-index: 0;
}
.hero-card-wrap::after {
    background: rgba(201, 168, 76, 0.12);
    transform: translate(24px, 30px) skewX(-4deg) skewY(2.5deg);
    z-index: -1;
}
.hero-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.1), 0 8px 24px rgba(201, 168, 76, 0.08);
}
/* [СВО] 2026-07-06 — Слайдер «Лидеры Ассоциации». НЕ МЕНЯТЬ без проверки ASSOCIATION_LEADERS в main.js */
.hero-card--leaders { padding: 28px 28px 24px; }
.leaders-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
/* [СВО] 2026-07-06 — Круглое лого в блоке лидеров (img/logo.jpg). Стили общие с .logo-img */
.leaders-logo { width: 80px; height: 80px; }
.leaders-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; letter-spacing: -0.3px; }
.leaders-slider {
    height: 300px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.leaders-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: leadersScroll 28s linear infinite;
    will-change: transform;
}
.leaders-slider:hover .leaders-track { animation-play-state: paused; }
@keyframes leadersScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.leader-slide {
    display: flex;
    gap: 16px;
    padding: 18px 4px;
    min-height: 150px;
    align-items: flex-start;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.leader-slide:last-child { border-bottom: none; }
.leaders-slider:hover .leader-slide:hover { background: rgba(201, 168, 76, 0.06); border-radius: 12px; }
.leader-photo {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
}
/* [СВО] 2026-07-06 — Значки на фото лидеров: звезда (Ликонцев), лого (Симчук). НЕ МЕНЯТЬ без обновления ASSOCIATION_LEADERS */
.leader-star {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
    pointer-events: none;
}

.leader-star--hero {
    width: 30px;
    height: 30px;
    bottom: -8px;
    right: -8px;
}

.leader-star--simchuk {
    width: 26px;
    height: 26px;
    bottom: -5px;
    right: -5px;
}

.leader-star--deputy {
    width: 26px;
    height: 26px;
    bottom: -5px;
    right: -5px;
}
.leader-photo--1 { background: linear-gradient(145deg, #1e3a5f, #2563eb); }
.leader-photo--2 { background: linear-gradient(145deg, #14532d, #16a34a); }
.leader-photo--3 { background: linear-gradient(145deg, #7c2d12, #ea580c); }
.leader-photo--4 { background: linear-gradient(145deg, #581c87, #9333ea); }
/* [СВО] 2026-07-06 — Фото лидера вместо инициалов */
.leader-photo--img { padding: 0; background: #f1f5f9; overflow: visible; }
.leader-photo__img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.leader-info { flex: 1; min-width: 0; }
.leader-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.leader-role { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.leader-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.leader-link:hover { text-decoration: underline; color: #a88a2e; }
.leader-link i { font-size: 11px; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.status-green { background: #dcfce7; color: #166534; }
.status-blue { background: #dbeafe; color: #1e40af; }
.status-amber { background: #fef3c7; color: #92400e; }

/* ===== QUICK ACCESS ===== */
.quick-access { position: relative; z-index: 10; margin-top: -60px; padding: 0 24px; }
.quick-access-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card { background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); transition: all 0.3s; cursor: pointer; border: 2px solid transparent; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.quick-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.quick-icon.blue { background: #eff6ff; color: #2563eb; }
.quick-icon.green { background: #f0fdf4; color: #16a34a; }
.quick-icon.amber { background: #fffbeb; color: #d97706; }
.quick-icon.red { background: #fef2f2; color: #dc2626; }
.quick-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.quick-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== SECTIONS ===== */
.section { padding: 80px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag { display: inline-block; background: var(--accent-bg); color: var(--accent); padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; color: var(--primary); }
.section-header p { font-size: 17px; color: var(--text-secondary); line-height: 1.7; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.feature-list { margin-top: 16px; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); padding: 6px 0; }
.feature-list i { color: var(--accent); font-size: 12px; }

/* Stats Section */
.stats-section { background: var(--primary); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.stats-section .section-header h2, .stats-section .section-header p { color: #fff; }
.stats-section .section-header p { opacity: 0.7; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.stat-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 36px; text-align: center; transition: all 0.3s; }
.stat-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.stat-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(201,168,76,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--accent); margin: 0 auto 16px; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.7); }

/* Steps */
.steps { display: flex; gap: 32px; position: relative; }
.steps::before { content: ''; position: absolute; top: 40px; left: 60px; right: 60px; height: 2px; background: var(--border); z-index: 0; }
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-number { width: 80px; height: 80px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--accent); margin: 0 auto 24px; box-shadow: var(--shadow); }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* [СВО] 2026-07-06 — Блок цитаты с фото img/1.jpg. Слои как у .hero-card-wrap */
.quote-section {
    background: linear-gradient(145deg, #ffffff 0%, #f5f0e6 45%, #eef4fc 100%);
    position: relative;
    overflow: hidden;
}
.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
/* [СВО] 2026-07-06 — Упрощённый блок «Единство и поддержка» на главной */
.quote-section--intro {
    padding: 72px 24px 96px;
}
.quote-section--intro .section-header--centered {
    margin-bottom: 0;
    max-width: 720px;
}
.quote-section--intro .section-header h2 {
    font-size: 32px;
    margin-bottom: 14px;
}
.quote-section--intro .section-header p {
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
}
.quote-card-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    isolation: isolate;
}
.quote-card-wrap::before,
.quote-card-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
}
.quote-card-wrap::before {
    background: rgba(37, 99, 235, 0.08);
    transform: translate(7px, 8px) skewX(-2deg) skewY(1deg);
    z-index: 0;
}
.quote-card-wrap::after {
    background: rgba(201, 168, 76, 0.09);
    transform: translate(14px, 16px) skewX(-3deg) skewY(1.5deg);
    z-index: -1;
}
.quote-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 42%;
    min-height: 340px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(30, 58, 95, 0.1), 0 8px 24px rgba(201, 168, 76, 0.08);
}
.quote-card__content {
    padding: 48px 40px 48px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.quote-card__accent {
    position: absolute;
    left: 32px;
    top: 48px;
    bottom: 48px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #c9a84c 0%, #e8d5a0 50%, #c9a84c 100%);
}
.quote-card__text {
    margin: 0 0 0 8px;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    font-weight: 400;
    color: #334155;
    border: none;
}
.quote-card__author {
    margin-top: auto;
    padding-top: 28px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    font-style: normal;
}
.quote-card__photo {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}
.quote-card__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.75) 18%, rgba(255, 255, 255, 0.2) 42%, transparent 62%);
    pointer-events: none;
    z-index: 1;
}
.quote-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 48%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 48%);
}
.quote-card__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.quote-card__play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, #c9a84c, #a8883a);
    color: #1a2b4a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 4px;
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.45), 0 0 0 10px rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quote-card__play:hover .quote-card__play-btn,
.quote-card__play:focus-visible .quote-card__play-btn {
    transform: scale(1.06);
    box-shadow: 0 14px 36px rgba(201, 168, 76, 0.55), 0 0 0 12px rgba(255, 255, 255, 0.28);
}
.quote-card__video {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f1a2e;
}
.quote-card__photo--playing::after {
    display: none;
}
.quote-card__photo--playing .quote-card__img {
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0;
}
.quote-card__photo--playing .quote-card__play {
    display: none;
}
.home-quote--memory .quote-card__text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 0;
    font-style: italic;
    font-weight: 400;
    color: #334155;
}
.home-quote--memory .quote-card__text p {
    margin: 0 0 16px;
    font-style: italic;
}
.home-quote--memory .quote-card__text p:last-child {
    margin-bottom: 0;
}
.home-quote--memory .quote-card__author {
    margin-top: 18px;
    font-style: normal;
}
.home-quote--memory .quote-card__content {
    padding-top: 28px;
    padding-bottom: 28px;
}
/* [СВО] 2026-07-18 — блок музея под цитатой о памяти */
.quote-card__museum {
    margin: 4px 0 0 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(30, 58, 95, 0.1);
}
.quote-card__museum-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a6d1f;
    background: rgba(201, 168, 76, 0.14);
}
.quote-card__museum-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1.3;
    font-style: normal;
}
.quote-card__museum-text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    font-style: normal;
}
.quote-card__museum-facts {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.quote-card__museum-facts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-style: normal;
}
.quote-card__museum-facts i {
    color: #c9a84c;
    width: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}
.quote-card__museum-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #1e3a5f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.quote-card__museum-btn:hover {
    background: #2a4a7a;
}
.quote-card__museum-btn:active {
    transform: scale(0.98);
}
/* [СВО] 2026-07-18 — затемнённое фото; градиент слабее, фото читаемее */
.home-quote--memory .quote-card__img {
    filter: brightness(0.62) contrast(1.06);
    object-position: center 28%;
}
.home-quote--memory .quote-card__photo::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.35) 12%,
        rgba(15, 26, 46, 0.12) 32%,
        rgba(15, 26, 46, 0.22) 100%
    );
}
@media (max-width: 1024px) {
    .home-quote--memory .quote-card__photo::after {
        background: linear-gradient(
            to top,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.4) 16%,
            rgba(15, 26, 46, 0.18) 48%,
            rgba(15, 26, 46, 0.22) 100%
        );
    }
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--border); }
.testimonial-card::before { content: '"'; position: absolute; top: 20px; right: 24px; font-size: 80px; color: var(--accent); opacity: 0.15; font-family: Georgia, serif; line-height: 1; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 16px; }
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-secondary); }

/* CTA */
.cta-section { padding: 0 24px 80px; }
.cta-box { max-width: 1280px; margin: 0 auto; background: var(--primary); border-radius: 32px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.cta-box h2 { color: #fff; font-size: 36px; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,0.7); font-size: 17px; max-width: 560px; margin: 0 auto 32px; position: relative; z-index: 1; }

/* Footer — фотофон + проф. вёрстка */
footer.pub-footer,
#pubFooter {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #0c1524;
    background-image:
        linear-gradient(165deg, rgba(10, 18, 34, 0.58) 0%, rgba(12, 24, 44, 0.64) 45%, rgba(8, 14, 26, 0.72) 100%),
        url('../img/574cf85b-41fd-406e-a115-87b2d408c7f4-sm.jpg?v=20260721perf1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgba(255, 255, 255, 0.78);
    padding: 40px 24px 32px;
}
footer.pub-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold, #c9a84c) 20%, #e8d48b 50%, var(--gold, #c9a84c) 80%, transparent);
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}
.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr));
    gap: 40px 36px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: start;
}
.footer-column {
    position: relative;
    padding-left: 20px;
    padding-top: 0;
}
.footer-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.35), transparent);
}
.footer-brand {
    padding-left: 0;
}
.footer-brand::before {
    display: none;
}
.footer-brand .logo-text { margin-bottom: 16px; display: inline-block; }
.footer-brand__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand__logo {
    /* [СВО] 2026-07-21 — крупнее, без лишнего «воздуха» сверху */
    width: 120px;
    height: 120px;
    object-fit: contain;
    object-position: top left;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
    display: block;
    margin: 0;
}
.footer-brand__head .logo-text {
    margin-bottom: 0;
    display: block;
    max-width: 300px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.footer-brand__head .logo-text__line--footer {
    white-space: normal;
    line-height: 1.3;
    font-size: 15px;
}
.footer-brand__head .logo-text__line--footer span {
    color: var(--gold, #c9a84c);
}
.footer-brand__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.68);
}
.footer-column h4 {
    position: relative;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold, #c9a84c), transparent);
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-nav a,
.footer-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    padding: 8px 0;
    border: none;
    background: none;
    text-align: left;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.footer-nav a:hover,
.footer-nav__item:hover {
    color: #fff;
    transform: translateX(3px);
}
.footer-nav__item i {
    width: 16px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--gold, #c9a84c);
    opacity: 0.9;
}
.footer-nav__item--muted {
    cursor: default;
    color: rgba(255, 255, 255, 0.55);
}
.footer-nav__item--muted:hover {
    transform: none;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.footer-copy {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    max-width: 720px;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.footer-social a,
.footer-social__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.footer-social a:hover,
.footer-social a:focus-visible,
.footer-social__btn:hover,
.footer-social__btn:focus-visible {
    color: #fff;
    border-color: rgba(201, 169, 110, 0.55);
    background: rgba(201, 169, 110, 0.2);
    transform: rotate(12deg) scale(1.06);
    outline: none;
}
.footer-social a .fab {
    font-size: 18px;
    width: auto;
    height: auto;
    line-height: 1;
}
.footer-social__max-logo {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    opacity: 0.9;
    filter: invert(1);
}
.footer-social a:hover .footer-social__max-logo {
    opacity: 1;
    filter: invert(1) brightness(1.1);
}

/* Окно звонка с ПК — единая линия */
.hotline-call-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 18, 34, 0.62);
    backdrop-filter: blur(4px);
}
.hotline-call-overlay.active {
    display: flex;
}
.hotline-call {
    position: relative;
    width: min(420px, 100%);
    padding: 32px 28px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
    box-shadow: 0 24px 64px rgba(8, 14, 28, 0.35);
    text-align: center;
}
.hotline-call__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(30, 58, 95, 0.06);
    color: #1e3a5f;
    cursor: pointer;
    font-size: 16px;
}
.hotline-call__close:hover {
    background: rgba(30, 58, 95, 0.12);
}
.hotline-call__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.08));
    color: #a8883a;
    font-size: 22px;
}
.hotline-call__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #1e3a5f;
}
.hotline-call__hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #64748b;
}
.hotline-call__phone {
    display: block;
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1e3a5f;
    text-decoration: none;
    line-height: 1.2;
}
.hotline-call__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hotline-call__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}
.hotline-call__btn--primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #152a45 100%);
    color: #fff;
}
.hotline-call__btn--primary:hover {
    transform: translateY(-1px);
}
.hotline-call__btn--ghost {
    background: transparent;
    color: #1e3a5f;
    border: 1.5px solid rgba(30, 58, 95, 0.2);
    text-decoration: none;
}
.hotline-call__btn--ghost:hover {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.1);
}

/* ===== MODALS ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15,26,46,0.7); z-index: 2000; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border-radius: 24px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal-header { padding: 28px 32px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 22px; font-weight: 800; }
.modal-close { width: 36px; height: 36px; border-radius: 10px; border: none; background: var(--surface-hover); color: var(--text-secondary); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 24px 32px 32px; }
.modal-large { max-width: 720px; }

/* [СВО] 2026-07-19 — модалка входа: CTA вступления и блокировка скролла */
body.modal-open {
    overflow: hidden;
}
.modal-join-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    line-height: 1.25;
    text-align: center;
}
.modal-join-cta__text {
    display: inline-block;
}
#modal-login {
    border: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 24px 64px rgba(15, 26, 46, 0.28);
}
#modal-login .modal-title {
    color: #1e3a5f;
    letter-spacing: -0.02em;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }

/* [СВО] 2026-07-20 — адресный suggest */
.addr-suggest {
    position: relative;
    width: 100%;
}
.addr-suggest__list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 80;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(30, 58, 95, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 26, 46, 0.14);
}
.addr-suggest__list--portal {
    position: fixed;
    right: auto;
    top: 0;
    left: 0;
    z-index: 10050;
}
.addr-suggest__list[hidden] {
    display: none !important;
}
.addr-suggest__item {
    margin: 0;
    padding: 10px 14px;
    cursor: pointer;
    color: #1e3a5f;
    font-size: 14px;
    line-height: 1.4;
}
.addr-suggest__item:hover,
.addr-suggest__item:focus {
    background: rgba(201, 168, 76, 0.14);
    outline: none;
}
.addr-suggest__item-text {
    display: block;
}

/* Wizard: не обрезать подсказки */
.mem-anketa-wiz,
.mem-anketa-wiz-body,
.mem-anketa-wiz-host,
.mem-anketa-wiz-step,
.mem-card,
.mem-step {
    overflow: visible !important;
}
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label .required { color: var(--red); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); transition: all 0.2s; outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.form-check label { font-size: 13px; color: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.form-check label a { color: var(--accent); text-decoration: none; }
.form-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-muted); font-size: 13px; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* [СВО] 2026-07-19 — выбор кабинета при одном PIN на несколько профилей */
.login-cabinet-choice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.login-cabinet-choice__btn {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}
.form-error { color: var(--red); font-size: 12px; margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ===== SIDEBAR (DASHBOARD) ===== */
.sidebar { width: 280px; background: var(--primary); position: fixed; height: 100vh; left: 0; top: 0; z-index: 100; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.sidebar-logo-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); }
.sidebar-logo-text { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.15; gap: 2px; }
.sidebar-logo-text span { color: var(--accent); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 8px; }
.nav-section-title { color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 16px 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: var(--accent); color: var(--primary); font-weight: 600; }
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; min-width: 20px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.05); cursor: pointer; transition: all 0.2s; }
.sidebar-user:hover { background: rgba(255,255,255,0.1); }
.sidebar-user-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 14px; border: 2px solid var(--accent); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,0.45); font-size: 12px; margin-top: 1px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.active { display: block; }

/* ===== DASHBOARD MAIN ===== */
.main { flex: 1; margin-left: 280px; min-height: 100vh; display: flex; flex-direction: column; }
.dash-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.dash-header-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--text); cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; }
.menu-toggle:hover { background: var(--bg); }
.dash-title { font-size: 20px; font-weight: 700; color: var(--text); }
.dash-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.dash-breadcrumb i { font-size: 10px; }
.dash-header-right { display: flex; align-items: center; gap: 8px; }
.dash-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; font-size: 16px; }
.dash-btn:hover { background: var(--surface-hover); border-color: var(--text-muted); }
.dash-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--surface); }
.dash-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid var(--border); }
.content { flex: 1; padding: 28px 32px; max-width: 1400px; }

/* ===== CARDS & GRID ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-title-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.card-actions { display: flex; gap: 8px; }
.card-action-btn { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.card-action-btn:hover { background: var(--surface-hover); border-color: var(--text-muted); }
.card-action-btn.primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.card-action-btn.primary:hover { background: var(--accent-light); }
.card-body { padding: 24px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge-gray { background: #f3f4f6; color: #6b7280; }

.progress-wrap { margin-top: 16px; }
.progress-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.progress-bar { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 1s ease; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--surface); background: var(--accent); box-shadow: 0 0 0 2px var(--border); }
.timeline-dot.green { background: var(--green); }
.timeline-dot.red { background: var(--red); }
.timeline-dot.blue { background: var(--blue); }
.timeline-content { background: var(--surface-hover); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--border-light); }
.timeline-date { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.timeline-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.award-item { text-align: center; padding: 24px 16px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); transition: all 0.2s; }
.award-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.award-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent); margin: 0 auto 12px; }
.award-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.award-date { font-size: 12px; color: var(--text-muted); }
.award-desc { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.4; }

.payment-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.payment-row:last-child { border-bottom: none; padding-bottom: 0; }
.payment-row:first-child { padding-top: 0; }
.payment-info { display: flex; align-items: center; gap: 12px; }
.payment-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.payment-name { font-size: 14px; font-weight: 600; }
.payment-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.payment-amount { text-align: right; }
.payment-sum { font-size: 15px; font-weight: 700; }
.payment-sum.positive { color: var(--green); }
.payment-sum.pending { color: var(--amber); }

.case-item { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); margin-bottom: 12px; }
.case-item:last-child { margin-bottom: 0; }
.case-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.case-number { font-size: 13px; font-weight: 700; color: var(--primary); }
.case-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.case-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.case-meta span { display: flex; align-items: center; gap: 4px; }

.appeal-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.appeal-item:last-child { border-bottom: none; padding-bottom: 0; }
.appeal-item:first-child { padding-top: 0; }
.appeal-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-bg); display: flex; align-items: center; justify-content: center; color: var(--purple); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.appeal-content { flex: 1; min-width: 0; }
.appeal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.appeal-author { font-size: 14px; font-weight: 600; }
.appeal-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.appeal-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.appeal-footer { display: flex; gap: 12px; }
.appeal-action { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.2s; }
.appeal-action:hover { color: var(--accent); }

.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); cursor: pointer; transition: all 0.2s; }
.doc-item:hover { border-color: var(--accent); background: var(--surface); }
.doc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.doc-action { color: var(--text-muted); font-size: 16px; padding: 8px; border-radius: 8px; transition: all 0.2s; }
.doc-item:hover .doc-action { color: var(--accent); background: var(--accent-bg); }

.privacy-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.privacy-item:last-child { border-bottom: none; padding-bottom: 0; }
.privacy-item:first-child { padding-top: 0; }
.privacy-info { display: flex; align-items: center; gap: 12px; }
.privacy-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; }
.privacy-label { font-size: 14px; font-weight: 600; }
.privacy-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.toggle { width: 44px; height: 24px; border-radius: 12px; background: var(--border); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle.active { background: var(--accent); }
.toggle-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.toggle.active .toggle-knob { transform: translateX(20px); }

.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.quick-stat { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.quick-stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quick-stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.quick-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.quick-stat-value { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.quick-stat-change { font-size: 12px; font-weight: 600; }
.quick-stat-change.up { color: var(--green); }

.profile-card { display: flex; gap: 24px; align-items: flex-start; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 100px; height: 100px; border-radius: var(--radius); background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 40px; border: 3px solid var(--accent); }
.profile-avatar-status { position: absolute; bottom: -4px; right: -4px; width: 28px; height: 28px; background: var(--green); border: 3px solid var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-rank { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-bg); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.profile-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.profile-detail { display: flex; flex-direction: column; gap: 2px; }
.profile-detail-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.profile-detail-value { font-size: 14px; font-weight: 600; color: var(--text); }

.medical-item { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); margin-bottom: 12px; }
.medical-item:last-child { margin-bottom: 0; }
.medical-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.medical-content { flex: 1; min-width: 0; }
.medical-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.medical-title { font-size: 14px; font-weight: 700; }
.medical-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.medical-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-hover); border-radius: 12px; margin-bottom: 20px; width: fit-content; }
.tab { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; border: none; background: none; transition: all 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 1px solid var(--border); background: var(--surface-hover); }
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--surface-hover); }
.data-table tr:last-child td { border-bottom: none; }

.chat-container { display: flex; flex-direction: column; gap: 16px; max-height: 400px; overflow-y: auto; padding-right: 8px; }
.chat-message { display: flex; gap: 12px; max-width: 80%; }
.chat-message.incoming { align-self: flex-start; }
.chat-message.outgoing { align-self: flex-end; flex-direction: row-reverse; margin-left: auto; }
.chat-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-message.incoming .chat-bubble { background: var(--surface-hover); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
.chat-message.outgoing .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.chat-input-wrap { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.chat-input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-family: inherit; outline: none; transition: all 0.2s; }
.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

.setting-group { margin-bottom: 32px; }
.setting-group:last-child { margin-bottom: 0; }
.setting-group-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.setting-row:last-child { border-bottom: none; }
.setting-info { display: flex; align-items: center; gap: 12px; }
.setting-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; }
.setting-label { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.setting-control { display: flex; align-items: center; gap: 12px; }
.setting-value { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

.empty-state { text-align: center; padding: 48px 24px; }
.empty-state-icon { width: 80px; height: 80px; border-radius: 24px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--text-muted); margin: 0 auto 20px; }
.empty-state-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; color: var(--text-secondary); max-width: 400px; margin: 0 auto 20px; line-height: 1.6; }

.welcome-banner { background: var(--primary); border-radius: var(--radius); padding: 32px; color: #fff; margin-bottom: 28px; position: relative; overflow: hidden; }
.welcome-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: var(--accent); opacity: 0.08; border-radius: 50%; }
.welcome-banner::after { content: ''; position: absolute; bottom: -30%; right: 10%; width: 300px; height: 300px; background: var(--accent); opacity: 0.05; border-radius: 50%; }
.welcome-content { position: relative; z-index: 1; }
.welcome-greeting { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.welcome-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.welcome-subtitle { color: rgba(255,255,255,0.6); font-size: 15px; max-width: 600px; }
.welcome-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-welcome { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-welcome-primary { background: var(--accent); color: var(--primary); }
.btn-welcome-primary:hover { background: var(--accent-light); }
.btn-welcome-outline { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-welcome-outline:hover { background: rgba(255,255,255,0.15); }

.help-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.help-cat { padding: 20px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: all 0.2s; text-align: center; }
.help-cat:hover, .help-cat.active { border-color: var(--accent); background: var(--accent-bg); }
.help-cat i { font-size: 24px; color: var(--accent); margin-bottom: 8px; }
.help-cat-title { font-size: 14px; font-weight: 700; }
.help-cat-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--primary); color: #fff; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn 0.3s ease; max-width: 400px; }
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast-close { background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 14px; margin-left: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .awards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: flex; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card-wrap { margin-top: 24px; }
    .leaders-slider { height: 300px; }
    .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-access-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .steps { flex-direction: column; }
    .steps::before { display: none; }
    .quote-card { grid-template-columns: 1fr; min-height: auto; }
    .quote-card__photo { min-height: 260px; order: -1; }
    /* [СВО] 2026-07-06 — Мобильный градиент снизу вверх: лицо сверху видно, снизу плавный переход к тексту */
    .quote-card__photo::after {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.55) 22%, transparent 48%);
    }
    .quote-card__img {
        object-position: center top;
        -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 42%);
        mask-image: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.35) 18%, #000 42%);
    }
    .quote-card__content { padding: 32px 28px 36px 44px; }
    .quote-card__accent { left: 24px; top: 32px; bottom: 36px; }
    .pub-nav { display: none; }
    .pub-header .mobile-menu-btn { display: block; }
    .pub-header .header-actions { display: none; }
}
@media (max-width: 768px) {
    .content { padding: 20px 16px; }
    .dash-header { padding: 0 16px; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .quick-stats { grid-template-columns: 1fr; }
    .profile-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-details { grid-template-columns: 1fr; text-align: left; }

    .hero {
        margin-top: calc(56px + env(safe-area-inset-top, 0px));
        padding: 32px max(16px, env(safe-area-inset-left, 0px)) 48px max(16px, env(safe-area-inset-right, 0px));
    }

    .hero--centered {
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 28px; }
    .pub-header .logo-mark { width: 48px; height: 48px; }
    .pub-header .logo-img { width: 42px; height: 42px; }
    .pub-header .logo-text__line--top { font-size: 7px; letter-spacing: 0.02em; }
    .pub-header .logo-text__line--bottom { font-size: 10px; }
    .pub-header .logo-text::before { left: -8px; width: 2px; }
    .features-grid, .testimonials-grid, .stats-grid, .quick-access-inner { grid-template-columns: 1fr; }
    .cta-box { padding: 48px 24px; }
    .cta-box h2 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-column { padding-left: 0; }
    .footer-column::before { display: none; }
    .footer-brand__head { gap: 8px; margin-bottom: 10px; }
    .footer-brand__logo { width: 104px; height: 104px; border-radius: 0; box-shadow: none; margin: 0; }
    .footer-brand__desc { max-width: none; }
    footer.pub-footer,
    #pubFooter { padding-top: 28px; padding-bottom: 28px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-copy { max-width: none; }
    .form-row { grid-template-columns: 1fr; }
    .help-categories { grid-template-columns: 1fr; }
    .modal { max-height: 95vh; }
}


/* ===== CABINET (participant dashboard) ===== */

.sidebar { width: 280px; background: var(--primary); position: fixed; height: 100vh; left: 0; top: 0; z-index: 100; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sidebar-logo-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--primary); }
.sidebar-logo-text { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.15; gap: 2px; }
.sidebar-logo-text span { color: var(--accent); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-section { margin-bottom: 8px; }
.nav-section-title { color: rgba(255,255,255,0.35); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 16px 12px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; cursor: pointer; border: none; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: var(--accent); color: var(--primary); font-weight: 600; }
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 20px; min-width: 20px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.05); cursor: pointer; transition: all 0.2s; }
.sidebar-user:hover { background: rgba(255,255,255,0.1); }
.sidebar-user-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 14px; border: 2px solid var(--accent); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { color: rgba(255,255,255,0.45); font-size: 12px; margin-top: 1px; }

/* ===== MAIN ===== */
.main { flex: 1; margin-left: 280px; min-height: 100vh; display: flex; flex-direction: column; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.header-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--text); cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; }
.menu-toggle:hover { background: var(--bg); }
.header-title { font-size: 20px; font-weight: 700; color: var(--text); }
.header-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.header-breadcrumb i { font-size: 10px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; font-size: 16px; }
.header-btn:hover { background: var(--surface-hover); border-color: var(--text-muted); }
.header-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--surface); }
.header-avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid var(--border); }

/* ===== CONTENT ===== */
.content { flex: 1; padding: 28px 32px; max-width: 1400px; }
.page-section { display: none; }
.page-section.active { display: block; }

/* ===== CARDS & GRID ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-title-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.card-actions { display: flex; gap: 8px; }
.card-action-btn { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.card-action-btn:hover { background: var(--surface-hover); border-color: var(--text-muted); }
.card-action-btn.primary { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.card-action-btn.primary:hover { background: var(--accent-light); }
.card-body { padding: 24px; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge-gray { background: #f3f4f6; color: #6b7280; }

/* ===== BUTTONS ===== */
.btn { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-primary {
    background-color: #1e4a9e;
    background-image:
        linear-gradient(90deg, rgba(16, 42, 110, 0.4) 0%, rgba(28, 55, 130, 0.18) 55%, transparent 100%),
        var(--btn-photo);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.07);
    color: #fff;
}
.btn-outline { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-red { background: var(--red-bg); color: var(--red); }
.btn-red:hover { background: #fee2e2; }
.btn-green { background: var(--green-bg); color: var(--green); }
.btn-green:hover { background: #dcfce7; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ===== WELCOME BANNER ===== */
.welcome-banner { background: var(--primary); border-radius: var(--radius); padding: 32px; color: #fff; margin-bottom: 28px; position: relative; overflow: hidden; }
.welcome-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: var(--accent); opacity: 0.08; border-radius: 50%; }
.welcome-banner::after { content: ''; position: absolute; bottom: -30%; right: 10%; width: 300px; height: 300px; background: var(--accent); opacity: 0.05; border-radius: 50%; }
.welcome-content { position: relative; z-index: 1; }
.welcome-greeting { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.welcome-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.welcome-subtitle { color: rgba(255,255,255,0.6); font-size: 15px; max-width: 600px; }
.welcome-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-welcome { padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-welcome-primary { background: var(--accent); color: var(--primary); }
.btn-welcome-primary:hover { background: var(--accent-light); }
.btn-welcome-outline { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-welcome-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== QUICK STATS ===== */
.quick-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.quick-stat { background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.quick-stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quick-stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.quick-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.quick-stat-value { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.quick-stat-change { font-size: 12px; font-weight: 600; }
.quick-stat-change.up { color: var(--green); }

/* ===== PROFILE ===== */
.profile-card { display: flex; gap: 24px; align-items: flex-start; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar { width: 100px; height: 100px; border-radius: var(--radius); background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 40px; border: 3px solid var(--accent); }
.profile-avatar-status { position: absolute; bottom: -4px; right: -4px; width: 28px; height: 28px; background: var(--green); border: 3px solid var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-rank { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-bg); color: var(--accent); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.profile-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.profile-detail { display: flex; flex-direction: column; gap: 2px; }
.profile-detail-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.profile-detail-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--surface); background: var(--accent); box-shadow: 0 0 0 2px var(--border); }
.timeline-dot.green { background: var(--green); }
.timeline-dot.red { background: var(--red); }
.timeline-dot.blue { background: var(--blue); }
.timeline-content { background: var(--surface-hover); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--border-light); }
.timeline-date { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.timeline-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.timeline-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.timeline-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* ===== AWARDS ===== */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.award-item { text-align: center; padding: 24px 16px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); transition: all 0.2s; }
.award-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.award-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-bg); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent); margin: 0 auto 12px; }
.award-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.award-date { font-size: 12px; color: var(--text-muted); }
.award-desc { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.4; }

/* ===== MEDICAL ===== */
.medical-item { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); margin-bottom: 12px; }
.medical-item:last-child { margin-bottom: 0; }
.medical-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.medical-content { flex: 1; min-width: 0; }
.medical-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.medical-title { font-size: 14px; font-weight: 700; }
.medical-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.medical-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===== PAYMENTS ===== */
.payment-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.payment-row:last-child { border-bottom: none; padding-bottom: 0; }
.payment-row:first-child { padding-top: 0; }
.payment-info { display: flex; align-items: center; gap: 12px; }
.payment-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.payment-name { font-size: 14px; font-weight: 600; }
.payment-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.payment-amount { text-align: right; }
.payment-sum { font-size: 15px; font-weight: 700; }
.payment-sum.positive { color: var(--green); }
.payment-sum.pending { color: var(--amber); }
.payment-sum.negative { color: var(--red); }

/* ===== PROGRESS ===== */
.progress-wrap { margin-top: 16px; }
.progress-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.progress-bar { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 1s ease; }

/* ===== LEGAL ===== */
.case-item { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); margin-bottom: 12px; }
.case-item:last-child { margin-bottom: 0; }
.case-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.case-number { font-size: 13px; font-weight: 700; color: var(--primary); }
.case-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.case-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.case-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== FAMILY APPEALS ===== */
.appeal-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.appeal-item:last-child { border-bottom: none; padding-bottom: 0; }
.appeal-item:first-child { padding-top: 0; }
.appeal-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--purple-bg); display: flex; align-items: center; justify-content: center; color: var(--purple); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.appeal-content { flex: 1; min-width: 0; }
.appeal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.appeal-author { font-size: 14px; font-weight: 600; }
.appeal-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.appeal-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.appeal-footer { display: flex; gap: 12px; }
.appeal-action { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; cursor: pointer; transition: color 0.2s; }
.appeal-action:hover { color: var(--accent); }

/* ===== DOCUMENTS ===== */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-hover); border: 1px solid var(--border-light); cursor: pointer; transition: all 0.2s; }
.doc-item:hover { border-color: var(--accent); background: var(--surface); }
.doc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.doc-action { color: var(--text-muted); font-size: 16px; padding: 8px; border-radius: 8px; transition: all 0.2s; }
.doc-item:hover .doc-action { color: var(--accent); background: var(--accent-bg); }

/* ===== PRIVACY ===== */
.privacy-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.privacy-item:last-child { border-bottom: none; padding-bottom: 0; }
.privacy-item:first-child { padding-top: 0; }
.privacy-info { display: flex; align-items: center; gap: 12px; }
.privacy-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; }
.privacy-label { font-size: 14px; font-weight: 600; }
.privacy-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.toggle { width: 44px; height: 24px; border-radius: 12px; background: var(--border); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.toggle.active { background: var(--accent); }
.toggle-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.toggle.active .toggle-knob { transform: translateX(20px); }

/* ===== SETTINGS ===== */
.setting-group { margin-bottom: 32px; }
.setting-group:last-child { margin-bottom: 0; }
.setting-group-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.setting-row:last-child { border-bottom: none; }
.setting-info { display: flex; align-items: center; gap: 12px; }
.setting-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; }
.setting-label { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.setting-control { display: flex; align-items: center; gap: 12px; }
.setting-value { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ===== TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 1px solid var(--border); background: var(--surface-hover); }
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); }
.data-table tr:hover td { background: var(--surface-hover); }
.data-table tr:last-child td { border-bottom: none; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-hover); border-radius: 12px; margin-bottom: 20px; width: fit-content; }
.tab { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; border: none; background: none; transition: all 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ===== CHAT ===== */
.chat-container { display: flex; flex-direction: column; gap: 16px; max-height: 500px; overflow-y: auto; padding-right: 8px; }
.chat-message { display: flex; gap: 12px; max-width: 80%; }
.chat-message.incoming { align-self: flex-start; }
.chat-message.outgoing { align-self: flex-end; flex-direction: row-reverse; margin-left: auto; }
.chat-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.chat-message.incoming .chat-bubble { background: var(--surface-hover); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
.chat-message.outgoing .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.chat-input-wrap { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.chat-input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-family: inherit; outline: none; transition: all 0.2s; }
.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .awards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: flex; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .content { padding: 20px 16px; }
    .header { padding: 0 16px; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .quick-stats { grid-template-columns: 1fr; }
    .profile-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-details { grid-template-columns: 1fr; text-align: left; }
    .welcome-title { font-size: 22px; }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .chat-message { max-width: 95%; }
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.sidebar-overlay.active { display: block; }


/* Empty state */

.empty-state { text-align: center; padding: 48px 24px; }
.empty-state-icon { width: 80px; height: 80px; border-radius: 24px; background: var(--surface-hover); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--text-muted); margin: 0 auto 20px; }
.empty-state-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state-desc { font-size: 14px; color: var(--text-secondary); max-width: 400px; margin: 0 auto 20px; line-height: 1.6; }

/* ===== MOBILE BOTTOM NAV (cabinet) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08);
    padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    min-width: 0;
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-item.active {
    color: var(--accent);
    background: var(--accent-bg);
}

.bottom-nav-item.active i {
    color: var(--accent);
}

.bottom-nav-item:active {
    transform: scale(0.96);
}

@media (max-width: 1024px) {
    #dashboard-app .header {
        height: auto;
        min-height: 56px;
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    #dashboard-app .header-left {
        flex: 1;
        min-width: 0;
        gap: 0;
    }

    #dashboard-app .menu-toggle {
        display: none;
    }

    #dashboard-app .header-title {
        font-size: 17px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #dashboard-app .header-breadcrumb {
        display: none;
    }

    #dashboard-app .header-right {
        flex-shrink: 0;
        gap: 6px;
    }

    #dashboard-app .header-btn:not(.cabinet-action-btn) {
        display: none;
    }

    #dashboard-app .header-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    #dashboard-app .content {
        padding-bottom: var(--page-bottom);
    }

    #dashboard-app .bottom-nav {
        display: grid;
    }

    #dashboard-app .tabs {
        width: 100%;
        max-width: 100%;
    }

    #dashboard-app .main {
        min-width: 0;
    }

    #dashboard-app .grid-3 {
        grid-template-columns: 1fr;
    }

    #dashboard-app .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #dashboard-app .card-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    #dashboard-app .content {
        padding: 16px 12px var(--page-bottom);
    }

    #dashboard-app .welcome-actions {
        flex-direction: column;
    }

    #dashboard-app .btn-welcome {
        width: 100%;
        justify-content: center;
    }

    #dashboard-app {
        overflow-x: hidden;
    }

    #dashboard-app .grid-3,
    #dashboard-app .grid-2,
    #dashboard-app .grid-4 {
        grid-template-columns: 1fr;
    }

    #dashboard-app .quick-stat-label {
        font-size: 11px;
        line-height: 1.3;
    }

    #dashboard-app .quick-stat-value {
        font-size: 22px;
        word-break: break-word;
    }

    #dashboard-app .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #dashboard-app .card-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    #dashboard-app .card-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
}

/* ===== PAYMENTS LIST ===== */
.payments-card-body {
    padding: 16px;
}

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card {
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.payment-card__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.payment-card__icon--green { background: var(--green-bg); color: var(--green); }
.payment-card__icon--blue { background: var(--blue-bg); color: var(--blue); }
.payment-card__icon--amber { background: var(--amber-bg); color: var(--amber); }
.payment-card__icon--purple { background: var(--purple-bg); color: var(--purple); }
.payment-card__icon--cyan { background: var(--cyan-bg); color: var(--cyan); }
.payment-card__icon--red { background: var(--red-bg); color: var(--red); }

.payment-card__content {
    flex: 1;
    min-width: 0;
}

.payment-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.payment-card__basis {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    word-break: break-word;
}

.payment-card__side {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.payment-card__date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.payment-card__sum {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.payment-card__sum--green { color: var(--green); }
.payment-card__sum--amber { color: var(--amber); }
.payment-card__sum--blue { color: var(--blue); }

.payment-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
    .payments-card-body {
        padding: 12px;
    }

    .payment-card__row {
        flex-wrap: wrap;
    }

    .payment-card__side {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px dashed var(--border-light);
    }

    .payment-card__sum {
        font-size: 17px;
    }
}

@media (min-width: 769px) {
    .payments-card-body {
        padding: 20px 24px;
    }

    .payment-card {
        padding: 16px 18px;
    }

    .payment-card__row {
        align-items: center;
    }

    .payment-card__footer {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        margin-left: auto;
        padding-left: 16px;
        gap: 12px;
    }

    .payment-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .payment-card__row {
        flex: 1;
    }
}

/* ===== MOBILE DEVICE FIXES (all pages) ===== */
#dashboard-app {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

#public-pages {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 1024px) {
    body.cabinet-mode {
        overflow-x: hidden;
    }

    body.cabinet-mode .bottom-nav {
        display: grid;
    }

    #dashboard-app .bottom-nav {
        display: grid;
    }

    input,
    select,
    textarea,
    .form-input,
    .form-select,
    .form-textarea,
    .chat-input {
        font-size: 16px !important;
        max-width: 100%;
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus,
    .chat-input:focus {
        box-shadow: 0 0 0 2px var(--accent-bg);
    }

    .modal-overlay {
        padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        align-items: flex-start;
        padding-top: max(24px, env(safe-area-inset-top, 0px));
    }

    .modal {
        max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        margin: auto 0;
    }

    .modal-body {
        padding: 20px 20px 24px;
    }

    .modal-header {
        padding: 20px 20px 0;
    }

    .pub-header {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .pub-header-inner {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        min-height: 56px;
        height: auto;
    }

    .hero {
        margin-top: calc(56px + env(safe-area-inset-top, 0px));
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .section,
    .quick-access,
    .footer {
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
    }

    .hero h1 {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .hero-buttons .btn {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat {
        min-width: 0;
        flex: 1 1 40%;
    }

    body.cabinet-mode .toast-container {
        bottom: calc(var(--page-bottom) + 12px);
        right: max(12px, env(safe-area-inset-right, 0px));
        left: max(12px, env(safe-area-inset-left, 0px));
    }

    body.cabinet-mode .toast {
        max-width: 100%;
    }
}

/* [СВО] 2026-07-06 — Мобильная адаптация публичной части (app-like). НЕ МЕНЯТЬ без проверки #pubHeader, .hero, togglePubMobileMenu() */
.pub-bottom-nav {
    display: none;
}

.pub-mobile-menu__links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pub-mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.2s;
}

.pub-mobile-menu__link i {
    width: 22px;
    text-align: center;
    color: #c9a84c;
    font-size: 17px;
    flex-shrink: 0;
}

.pub-mobile-menu__link:active {
    background: var(--surface-hover);
}

.pub-mobile-menu__link--cabinet {
    margin-top: 6px;
    color: #fff;
    justify-content: center;
    font-weight: 700;
}

.pub-mobile-menu__link--cabinet i {
    color: #fff;
}

.pub-mobile-menu__link--cabinet:active {
    background: #006aad;
}

.pub-mobile-menu__divider {
    height: 1px;
    background: var(--border-light);
    margin: 10px 4px;
}

.pub-mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.14) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(201, 168, 76, 0.28);
    text-decoration: none;
    color: #1e3a5f;
}

.pub-mobile-menu__phone i {
    font-size: 20px;
    color: #1e3a5f;
    flex-shrink: 0;
}

.pub-mobile-menu__phone span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pub-mobile-menu__phone strong {
    font-size: 17px;
    font-weight: 700;
}

.pub-mobile-menu__phone small {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

body.pub-menu-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    body:not(.cabinet-mode) .pub-bottom-nav {
        display: grid;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        grid-template-columns: repeat(5, 1fr);
        gap: 2px;
        padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px));
        background: #ffffff;
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 -4px 24px rgba(30, 58, 95, 0.1);
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    body:not(.cabinet-mode) #public-pages {
        padding-bottom: var(--page-bottom);
    }

    body:not(.cabinet-mode) .toast-container {
        bottom: calc(var(--page-bottom) + 12px);
        right: max(12px, env(safe-area-inset-right, 0px));
        left: max(12px, env(safe-area-inset-left, 0px));
        z-index: 9500;
    }

    body:not(.cabinet-mode) .toast {
        max-width: 100%;
    }

    .pub-bottom-nav__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 8px 2px;
        border: none;
        background: none;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        border-radius: 10px;
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }

    .pub-bottom-nav__item i {
        font-size: 18px;
    }

    .pub-bottom-nav__item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .pub-bottom-nav__item.active {
        color: #1e3a5f;
        background: rgba(201, 168, 76, 0.12);
    }

    .pub-bottom-nav__item.active i {
        color: #c9a84c;
    }

    .pub-bottom-nav__item--accent i {
        color: #c9a84c;
    }

    .pub-bottom-nav__item:active {
        transform: scale(0.96);
    }

    .pub-header-inner {
        display: flex;
        gap: 8px;
    }

    .pub-header .logo {
        min-width: 0;
        flex: 1;
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .pub-header .header-hotline {
        display: none;
    }

    .pub-header .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        border-radius: 10px;
        background: rgba(30, 58, 95, 0.06);
    }

    .pub-page-hero {
        margin-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    #view-news .pub-page-hero--news .pub-page-hero__inner,
    #view-about .pub-page-hero--about .pub-page-hero__inner,
    #view-privacy .pub-page-hero--privacy .pub-page-hero__inner,
    #view-contacts .pub-page-hero--contacts .pub-page-hero__inner,
    #view-representatives .pub-page-hero--contacts .pub-page-hero__inner,
    #view-join .pub-page-hero--join .pub-page-hero__inner,
    #view-help .pub-page-hero--join .pub-page-hero__inner,
    #view-svoih-ne-brosaem .pub-page-hero--stub,
#view-reviews .pub-page-hero--stub .pub-page-hero__inner {
        padding: 22px 16px 20px;
        border-radius: 18px;
    }

    .hero-inner {
        gap: 28px;
    }

    .hero--centered {
        min-height: auto;
        padding: 20px 16px 12px;
    }

    .hero__card {
        padding: 32px 20px 20px;
        border-radius: 22px;
    }

    .home-page .home-section > .section-inner {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .home-page .quote-section.home-quote {
        padding: 4px 16px 20px;
    }

    .home-page .quote-section.home-quote#about {
        margin-top: 0;
        padding-top: 4px;
    }

    .hero-center__logo-wrap {
        width: 160px;
        height: 160px;
        margin-bottom: 18px;
    }

    .hero-center__logo {
        width: 160px;
        height: 160px;
    }

    .hero--centered .hero-center__text {
        font-size: clamp(13px, 3.9vw, 18px);
        line-height: 1.45;
        max-width: 100%;
        width: 100%;
        padding: 0 4px;
    }
    .hero-center__line {
        white-space: nowrap;
    }

    .hero-cta-group {
        max-width: 100%;
        margin-top: 22px;
        gap: 12px;
    }
    .hero-cta-btn {
        min-width: 0;
        max-width: none;
        margin-top: 0;
        padding: 12px 22px;
    }
    .hero-cta-btn--join {
        max-width: min(280px, 78%);
        min-height: 0;
        padding: 10px 16px 8px;
        border-radius: 18px;
    }
    .hero-cta-btn--join .hero-cta-btn__main {
        font-size: 14px;
        line-height: 1.22;
    }
    .hero-cta-btn--join .hero-cta-btn__sub {
        font-size: 10px;
        margin-top: 6px;
        padding-top: 5px;
    }

    .hero-cta-btn__main {
        font-size: 13px;
    }

    .hero-cta-btn__sub {
        font-size: 11px;
    }

    .hero-reg-stats {
        max-width: 100%;
        margin-top: 0;
        gap: 8px 12px;
        padding: 0;
        border-radius: 0;
    }

    .hero-reg-stats__item {
        font-size: 12px;
    }

    .hero-reg-stat__value {
        font-size: 15px;
        margin-left: 5px;
    }

    .hero-reg-stat {
        gap: 8px;
        padding: 4px 10px;
    }

    .hero-reg-stat__icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 15px;
    }

    .hero-reg-stat__label {
        font-size: 11px;
    }

    .quote-card--reverse {
        grid-template-columns: 1fr;
    }

    .home-faq__media--logo {
        min-height: 300px;
    }

    .home-faq__logo {
        width: 150px;
        height: 150px;
    }

    .home-section {
        padding: 48px 16px;
    }

    .home-section__head {
        text-align: left;
        max-width: none;
        margin-bottom: 28px;
    }

    .home-section__title {
        font-size: 24px;
        line-height: 1.25;
    }

    .home-section__lead {
        font-size: 16px;
        line-height: 1.5;
        max-width: 28rem;
    }

    .home-contact .home-section__head {
        margin-bottom: 24px;
    }

    .home-news__layout {
        gap: 24px;
    }

    .home-news__block-title {
        font-size: 24px;
    }

    .home-news__tile--featured {
        min-height: 200px;
        max-height: 280px;
    }

    .home-news__tile--small {
        min-height: 150px;
    }

    .home-news__tile-title {
        font-size: 18px;
    }

    .home-news__tile--small .home-news__tile-title {
        font-size: 15px;
    }

    .home-news__grid {
        grid-template-columns: 1fr;
    }

    .home-leaders__grid {
        grid-template-columns: 1fr;
    }
    .home-leaders__grid--duo,
    .home-leaders__grid--trio {
        grid-template-columns: minmax(240px, 320px);
        justify-content: center;
    }
    .home-leaders-slider {
        padding: 0 36px 8px;
        max-width: 100%;
    }
    .home-leaders-slider.is-single-slide .home-leaders-slider__viewport {
        overflow: hidden;
    }
    .home-leaders-slider.is-single-slide .home-leaders-slider__viewport::before,
    .home-leaders-slider.is-single-slide .home-leaders-slider__viewport::after {
        display: none;
    }
    .home-leaders-slider.is-single-slide .home-leaders-slider__track {
        gap: 12px;
    }
    .home-leaders-slider.is-single-slide .home-leaders-slider__slide {
        box-sizing: border-box;
    }
    .home-leaders-slider.is-single-slide .home-leader-card {
        width: 100%;
    }
    .home-leaders-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .home-leaders__featured {
        max-width: 100%;
        padding: 0 4px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    .home-leader-card--featured .home-leader-card__name {
        font-size: 18px;
    }
    .home-leader-card--featured .home-leader-card__facts li {
        font-size: 12.5px;
    }
    .home-leaders__quote {
        padding: 24px 18px 20px;
        border-radius: 16px;
    }
    .home-leaders__quote::before {
        font-size: 72px;
        left: 10px;
        top: 4px;
    }
    .home-leaders__quote-text p {
        font-size: 14.5px;
        line-height: 1.6;
    }
    .home-leaders__quote-author {
        align-items: flex-start;
    }

    .home-leader-card__name-br {
        display: block;
    }

    .home-faq__layout {
        grid-template-columns: 1fr;
    }

    .home-faq__media {
        min-height: 300px;
    }

    .home-faq__img {
        min-height: 220px;
    }

    .home-contact__grid {
        grid-template-columns: 1fr;
    }

    .home-contact__form {
        padding: 20px 16px;
    }

    .home-contact__info {
        padding: 0;
        font-size: 14px;
        border-radius: 18px;
    }

    .home-contact__info::before {
        width: 4px;
    }

    .home-contact__info-top {
        padding: 20px 16px 8px 18px;
    }

    .home-contact__info-lead {
        font-size: 16px;
        line-height: 1.35;
    }

    .home-contact__info-intro {
        font-size: 14px;
        line-height: 1.55;
    }

    .home-contact__info-steps-block,
    .home-contact__info-why-block {
        margin: 6px 10px 14px 12px;
        padding: 14px 12px;
        border-radius: 14px;
    }

    .home-contact__info-steps-title {
        margin-bottom: 12px !important;
        font-size: 14px;
    }

    /* На мобиле: номер сверху, контент на всю ширину */
    .home-contact__step-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 12px;
    }

    .home-contact__step-item:last-child {
        margin-bottom: 0;
    }

    .home-contact__step-num,
    .home-contact__step-item--cta .home-contact__step-num {
        margin-top: 0;
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 13px;
        box-shadow: 0 3px 8px rgba(0, 120, 193, 0.22);
    }

    .home-contact__step-text {
        padding: 11px 12px;
        font-size: 14px;
        border-radius: 12px;
    }

    .home-contact__join-btn {
        min-height: 0;
        padding: 12px 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .home-contact__join-br {
        display: none;
    }

    .home-contact__join-btn-main {
        font-size: 14px;
        line-height: 1.3;
        text-align: left;
    }

    .home-contact__join-btn-arrow {
        font-size: 18px;
    }

    .home-contact__info-why {
        font-size: 15px;
    }

    .home-contact__info-why-block p {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .home-contact__info-thanks {
        padding: 14px 16px 18px 18px;
        font-size: 14px;
    }

    .home-course__title {
        font-size: 22px;
    }

    .section--leaders {
        padding: 0 16px 32px;
    }

    .section--leaders .hero-card-wrap {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .hero-content {
        order: 1;
    }

    .hero-card-wrap {
        order: 2;
        margin-top: 12px;
        margin-bottom: 16px;
        width: 100%;
        max-width: none;
        padding-top: 28px;
        border-top: 1px solid rgba(201, 168, 76, 0.28);
    }

    /* [СВО] 2026-07-06 — На мобильных убираем косые слои, карточка — отдельный блок */
    .hero-card-wrap::before,
    .hero-card-wrap::after {
        display: none;
    }

    .hero-card.hero-card--leaders {
        --leader-slide-h: 165px;
        padding: 0;
        overflow: hidden;
        border-radius: 20px;
        border: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow:
            0 12px 40px rgba(30, 58, 95, 0.12),
            0 4px 16px rgba(201, 168, 76, 0.08);
    }

    .hero-card--leaders .leaders-header {
        margin: 0;
        padding: 14px 16px;
        gap: 12px;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .leaders-logo {
        width: 52px;
        height: 52px;
    }

    .leaders-title {
        font-size: 17px;
        font-weight: 800;
        color: #1e3a5f;
        line-height: 1.25;
    }

    /* [СВО] 2026-07-06 — 2.5 слайда в видимой области: --leader-slide-h × 2.5 */
    .leaders-slider {
        position: relative;
        height: calc(var(--leader-slide-h) * 2.5);
        overflow: hidden;
        background: #ffffff;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Подсказка автопрокрутки у обрезанного 3-го слайда */
    .leaders-slider::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 32px;
        background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.85) 55%, rgba(255, 255, 255, 0.98) 100%);
        pointer-events: none;
        z-index: 2;
    }

    .leaders-track {
        animation-duration: 36s;
    }

    .leaders-slider:hover .leaders-track,
    .leaders-slider:active .leaders-track {
        animation-play-state: paused;
    }

    .leader-slide {
        min-height: var(--leader-slide-h);
        max-height: var(--leader-slide-h);
        padding: 12px 16px;
        gap: 12px;
        align-items: flex-start;
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
        box-sizing: border-box;
        overflow: hidden;
    }

    .leader-slide:last-child {
        border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    }

    .leader-photo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .leader-photo__img {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .leader-star--hero {
        width: 26px;
        height: 26px;
        bottom: -6px;
        right: -6px;
    }

    .leader-star--simchuk {
        width: 22px;
        height: 22px;
        bottom: -4px;
        right: -4px;
    }

    .leader-star--deputy {
        width: 22px;
        height: 22px;
        bottom: -4px;
        right: -4px;
    }

    .leader-info {
        padding-top: 0;
        align-self: center;
    }

    .leader-name {
        font-size: 15px;
        font-weight: 800;
        color: #1e3a5f;
        margin-bottom: 5px;
        line-height: 1.32;
    }

    .leader-role {
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .leader-link {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.25;
    }

    /* [СВО] 2026-07-06 — Quick-access скрыт на мобильных (дублирует нижнюю навигацию) */
    .quick-access {
        display: none;
    }

    .hero-badge {
        font-size: 12px;
        padding: 7px 14px;
        max-width: 100%;
        line-height: 1.35;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-inner p {
        max-width: none;
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-buttons .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 8px;
        margin-top: 28px;
        padding-top: 24px;
        text-align: center;
    }

    .hero-stat {
        min-width: 0;
    }

    .hero-stat-value {
        font-size: 22px;
    }

    .hero-stat-label {
        font-size: 11px;
        line-height: 1.35;
    }

    .hero-badge {

@media (max-width: 768px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero-buttons .btn-large {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 52px;
    }
}

@media (max-width: 400px) {
    .pub-header .btn-outline {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 16px;
    }

    .hero-stat {
        display: flex;
        align-items: baseline;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    }

    .hero-stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-stat-value {
        font-size: 24px;
        min-width: 72px;
        flex-shrink: 0;
    }

    .hero-stat-label {
        font-size: 12px;
    }
}
