/* --- Сброс и Переменные --- */
:root {
    --primary-color: #004080; /* Государственный синий */
    --primary-dark: #002a55;
    --accent-color: #ff9900; /* Оранжевый акцент */
    --accent-hover: #e68a00;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --container-width: 1200px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Утилиты --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition:
        background-color var(--transition-speed),
        transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* --- Хедер --- */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-dark);
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.special-view-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.special-view-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.special-view-toggle svg {
    fill: currentColor;
    flex-shrink: 0;
}

.special-view-toggle.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .special-view-toggle-text {
        display: none;
    }
    .header-top-right {
        gap: 8px;
    }
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    padding: 5px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* Мобильное меню (гамбургер) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle svg {
    width: 30px;
    height: 30px;
    fill: var(--text-main);
}

/* --- Hero Секция --- */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(0, 64, 128, 0.9), rgba(0, 42, 85, 0.8)),
        url("/static/images/hero-bg.jpg") center/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 200px;
}

.search-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    min-width: 150px;
}

/* --- Статистика --- */
.stats {
    background-color: white;
    padding: 40px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* --- Услуги --- */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition:
        transform var(--transition-speed),
        box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 64, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px; /* Анимация стрелки */
}

/* --- Важные объявления --- */
.news {
    padding: 80px 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.news-image {
    height: 200px;
    background-color: #ddd;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-views {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.news-content .btn-outline {
    font-size: 0.9rem;
    padding: 5px 15px;
    align-self: flex-start;
}

.news-grid .news-content {
    display: flex;
    flex-direction: column;
}

/* Карта */
#map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    margin-top: 40px;
    z-index: 1;
}

/* --- Контакты / CTA --- */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 20px;
}

/* --- Футер --- */
footer {
    background-color: var(--primary-dark);
    color: #b0c4de;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Уведомления (Toast) --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Медиа запросы --- */
@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none; /* Скрыто по умолчанию на мобильных */
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        background-color: var(--bg-light);
        padding: 15px;
        border-radius: 4px;
        order: 3;
    }

    .nav-menu.active {
        display: flex;
    }

    .auth-buttons {
        display: none; /* На мобильных можно скрыть или переместить в меню */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* Контейнер страницы */
.page-wrapper {
    padding: 40px 0;
}

/* Заголовок секции */
.page-header {
    margin-bottom: 30px;
}
.page-title {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Сетка: Боковая панель + Список */
.vacancies-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Боковая панель фильтров */
.filters-sidebar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: fit-content;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

/* Чекбоксы и Радио */
.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}
.subscribe-form .filter-option input {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* Поля ввода зарплаты */
.salary-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.salary-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Кнопки фильтров */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-filter {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px;
    text-align: center;
}

/* Секция результата поиска (сверху) */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-bar {
    display: flex;
    gap: 10px;
    flex: 1;
}

.main-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Карточка вакансии */
.vacancy-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition:
        box-shadow var(--transition-speed),
        border-color var(--transition-speed);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vacancy-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.vacancy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vacancy-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
}

.vacancy-title:hover {
    text-decoration: underline;
}

.vacancy-salary {
    font-weight: 700;
    color: #2e7d32; /* Зеленый для денег */
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 15px;
}

.vacancy-company {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    fill: var(--text-light);
}

.vacancy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* --- Детальная страница вакансии --- */
.vacancy-layout {
    gap: 20px;
}

.vacancy-detail-card {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 40px;
}

.vacancy-detail-header {
    margin-bottom: 35px;
}

.vacancy-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vacancy-category {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.vacancy-detail-title {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.vacancy-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.vacancy-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vacancy-detail-meta-item svg {
    width: 18px;
    height: 18px;
    fill: var(--text-light);
    flex-shrink: 0;
}

.vacancy-detail-salary {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e7d32;
    padding: 8px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.vacancy-detail-section {
    margin-bottom: 30px;
}

.vacancy-section-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
}

.vacancy-description-text {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-main);
}

.vacancy-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.vacancy-back-link {
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Изображение новости в детальной карточке */
.news-detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-detail-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main);
    font-weight: 500;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* --- Контакты в сайдбаре --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background-color: #e3f2fd;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Адаптив для новой сетки */
@media (max-width: 900px) {
    .vacancies-grid {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        display: none; /* В реальном проекте тут был бы тоггл */
    }
    .vacancy-header {
        flex-direction: column;
        gap: 5px;
    }
    .vacancy-salary {
        margin-left: 0;
    }
}

/* Внутренний баннер страницы */
.page-hero {
    background: linear-gradient(
        to right,
        var(--primary-color),
        var(--primary-dark)
    );
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Секция информации (Текст + Картинка) */
.about-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: justify;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Секция Контактов */
.contacts-section {
    padding: 60px 0;
}

.contacts-section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Левая колонка: Инфо */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 64, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--text-light);
    transition: color 0.2s;
}

.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Правая колонка: Форма */
.contact-form-container {
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
}

.contact-form-container h3 {
    margin-bottom: 20px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-input {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label a {
    color: #004080;
    text-decoration: underline;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Адаптив для новых секций */
@media (max-width: 900px) {
    .about-grid,
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1; /* Картинка сверху на мобильном */
    }

    .contact-form-container {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 30px;
    }
}

/* Секции */
.legal-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.legal-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Карточка статуса организации */
.org-status-card {
    background: white;
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.org-info p {
    margin-bottom: 10px;
}
.org-label {
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    width: 180px;
}

/* Сетка статусов (Иконки и кратко) */
.status-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.status-preview-item {
    background: var(--bg-white);
    padding: 24px 16px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.status-preview-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.status-preview-item.active {
    border-color: var(--primary-color);
    background: rgba(0, 64, 128, 0.04);
    box-shadow:
        0 0 0 3px rgba(0, 64, 128, 0.12),
        var(--shadow-sm);
}

.status-preview-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 64, 128, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: background 0.25s ease;
}
.status-preview-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
    transition: fill 0.25s ease;
}

.status-preview-item.active .status-preview-icon {
    background: var(--primary-color);
}
.status-preview-item.active .status-preview-icon svg {
    fill: #fff;
}

.status-preview-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* Аккордеон для полных определений */
.accordion-container {
    margin-top: 40px;
}

.accordion-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}

.accordion-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.accordion-header {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    transition:
        color 0.25s ease,
        background 0.25s ease;
    border-left: 4px solid transparent;
}

.accordion-header:hover {
    background-color: rgba(0, 64, 128, 0.03);
    border-left-color: var(--primary-color);
}

.accordion-header::after {
    content: "";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z' fill='%23004080'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-header {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background: rgba(0, 64, 128, 0.03);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    padding: 0 22px;
}

.accordion-content p {
    padding: 0 0 20px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    border-left: 3px solid var(--accent-color);
    padding-left: 16px;
    margin: 20px 0px;
}

/* Список документов */
.docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.doc-group-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    width: 100%;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.doc-item:hover {
    box-shadow: var(--shadow-sm);
}

.doc-icon svg {
    width: 32px;
    height: 32px;
    fill: #d32f2f; /* PDF red color */
}

.doc-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.doc-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Section title icon */
.section-title-icon {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}
.footer-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.footer-text-muted {
    opacity: 0.8;
    margin-bottom: 20px;
}
.hero-cta-text {
    margin-bottom: 25px;
    opacity: 0.9;
}

.search-type-select {
    max-width: 150px;
}
.location-input {
    max-width: 180px;
}
.icon-16 {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.btn-sm {
    padding: 6px 20px;
    font-size: 0.9rem;
}
.legal-section-bg {
    background: var(--bg-white);
}
.legal-section-center {
    text-align: center;
}
.container-narrow {
    max-width: 1024px;
}
.icon-404 {
    width: 80px;
    height: 80px;
    fill: var(--text-light);
    opacity: 0.4;
    margin-bottom: 20px;
}
.text-404 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}
.action-links {
    margin-top: 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.news-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}
.news-reading-time {
    font-size: 0.85rem;
    color: var(--text-light);
}
.mt-15 {
    margin-top: 15px;
}
.mb-20 {
    margin-bottom: 20px;
}
.label-normal {
    font-weight: normal;
}
.btn-full {
    width: 100%;
}
.appeal-date-cell {
    white-space: nowrap;
}

/* Адаптив для новых элементов */
@media (max-width: 900px) {
    .org-status-card {
        grid-template-columns: 1fr;
    }
    .docs-list {
        grid-template-columns: 1fr;
    }
    .org-label {
        display: block;
        margin-bottom: 5px;
        width: auto;
    }
}

/* Белый хедер для страницы новостей */
.page-hero-white {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}
.page-hero-white h1 {
    font-size: 2.2rem;
}

/* Основной макет новости: Контент + Сайдбар */
.news-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* 2.5 части новости, 1 часть сайдбар */
    gap: 40px;
    padding: 40px 0;
}

/* Карточка новости (лендинг) */
.news-layout .news-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    display: flex;
    flex-direction: row;
}

.news-layout .news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-layout .news-image {
    width: 320px;
    min-height: 240px;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.news-layout .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-layout .news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-layout .news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-layout .news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-layout .news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-layout .news-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--text-light);
}

.news-layout .news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-layout .news-title a {
    color: var(--text-main);
    transition: color 0.2s;
}

.news-layout .news-title a:hover {
    color: var(--primary-color);
}

.news-layout .news-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-layout .news-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .news-layout .news-card {
        flex-direction: column;
    }
    .news-layout .news-image {
        width: 100%;
        min-height: 200px;
    }
}

/* Сайдбар */
.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    color: var(--primary-color);
}

.category-list li {
    margin-bottom: 12px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
    transition: color 0.2s;
}

.category-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Форма подписки */
.subscribe-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Пагинация */
.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.per-page-select {
    height: 36px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
        no-repeat right 8px center;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s;
}
.per-page-select:hover,
.per-page-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.pagination form {
    display: flex;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Адаптив */
@media (max-width: 900px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    .news-image {
        height: 200px;
    }
}

.article-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 8px;
    padding: 60px 0 80px;
}

.article-content {
    font-size: 1.15rem;
    color: #2c2c2c;
}

.article-content p {
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 60px 0 30px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 40px 0 20px;
}

.article-content ul {
    margin-bottom: 30px;
    padding-left: 25px;
    list-style: disc;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    background-color: rgba(0, 64, 128, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 30px;
    margin: 50px 0;
    font-style: italic;
    color: var(--primary-dark);
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0 8px 8px 0;
}

.similar-news-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
}

.similar-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.similar-thumb {
    width: 90px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.similar-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
}
.similar-title:hover {
    color: var(--primary-color);
}

.similar-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* Flash-сообщения */
.flash-container {
    max-width: var(--container-width);
    margin: 10px auto;
    padding: 0 15px;
}
.flash-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.flash-error {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
.flash-success {
    background: #e8f5e9;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

/* Баннер-виджет */
.banner-widget {
    position: relative;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: inherit;
}
.banner-widget:not([style*="background-image"]) .banner-title {
    color: var(--primary-color);
}
.banner-widget[style*="background-image"] .banner-title {
    color: #fff;
}
.banner-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px;
    color: inherit;
}
.banner-widget:not([style*="background-image"]) .banner-text {
    color: var(--text-light);
}
.banner-widget[style*="background-image"] .banner-text {
    color: rgba(255, 255, 255, 0.9);
}
.banner-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.banner-widget[style*="background-image"] .banner-btn {
    background: #fff;
    color: var(--primary-color);
}
.banner-widget[style*="background-image"] .banner-btn:hover {
    background: #f0f0f0;
}

/* Кнопка печати */
.print-btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: background 0.2s;
}
.print-btn a:hover {
    background: var(--bg-light);
}

/* ========== Версия для слабовидящих (ГОСТ Р 52872-2019) ========== */

html.special-view {
    --primary-color: #000000;
    --primary-dark: #000000;
    --accent-color: #004080;
    --accent-hover: #002a55;
    --text-main: #000000;
    --text-light: #222222;
    --bg-light: #ffffff;
    --bg-white: #ffffff;
    --border-color: #333333;
    --shadow-sm: none;
    --shadow-md: none;
    font-size: 18px;
}

html.special-view body {
    font-size: 1.125rem;
    line-height: 1.8;
    background-color: #ffffff;
}

html.special-view a {
    text-decoration: underline !important;
    color: #0000cc;
}

html.special-view a:hover {
    text-decoration: underline;
    color: #000080;
}

html.special-view *:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 3px;
}

html.special-view .header-top {
    font-size: 1rem;
    padding: 12px 0;
}

html.special-view .header-top a {
    color: #ffffff;
}

html.special-view .logo {
    font-size: 1.8rem;
}

html.special-view .logo svg {
    width: 50px;
    height: 50px;
}

html.special-view .nav-link {
    font-size: 1.125rem;
    padding: 8px 0;
    text-decoration: none !important;
}

html.special-view .btn {
    padding: 14px 32px;
    font-size: 1.125rem;
}

html.special-view .btn-primary {
    background-color: #000000;
    color: #ffffff;
}

html.special-view .btn-primary:hover {
    background-color: #333333;
}

html.special-view .btn-outline {
    border-color: #000000;
    color: #000000;
}

html.special-view .btn-outline:hover {
    background-color: #000000;
    color: #ffffff;
}

html.special-view .hero {
    background: #004080 !important;
    padding: 80px 0;
}

html.special-view .hero h1 {
    font-size: 3rem;
}

html.special-view .hero p {
    font-size: 1.5rem;
}

html.special-view .page-hero {
    background: #004080 !important;
    padding: 50px 0;
}

html.special-view .page-hero h1 {
    font-size: 2.8rem;
}

html.special-view .page-hero p {
    font-size: 1.3rem;
}

html.special-view .section-title {
    font-size: 2.2rem;
    color: #000000;
}

html.special-view .section-title::after {
    background: #000000;
}

html.special-view .vacancy-card,
html.special-view .news-card,
html.special-view .news-layout .news-card {
    border-color: #000000;
    box-shadow: none !important;
    background: #ffffff;
}

html.special-view .vacancy-card:hover,
html.special-view .news-card:hover,
html.special-view .news-layout .news-card:hover {
    border-color: #000000;
    box-shadow: none !important;
}

html.special-view .stat-item h3 {
    font-size: 3rem;
    color: #000000;
}

html.special-view .form-input,
html.special-view .form-textarea,
html.special-view .form-control {
    font-size: 1.125rem;
    padding: 14px;
    border-color: #000000;
}

html.special-view .form-label {
    font-size: 1.1rem;
}

html.special-view .banner-widget {
    background: #004080 !important;
}

html.special-view .banner-title {
    font-size: 1.5rem;
}

html.special-view .banner-text,
html.special-view .banner-btn {
    font-size: 1.125rem;
}

html.special-view .banner-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

html.special-view .accordion-item {
    box-shadow: none !important;
    border-color: #000000;
}

html.special-view .accordion-header {
    font-size: 1.2rem;
    border-left-color: #000000;
}

html.special-view .accordion-content p {
    font-size: 1.125rem;
    line-height: 1.8;
}

html.special-view .status-preview-item {
    box-shadow: none !important;
    border-color: #cccccc;
    background: #ffffff;
}

html.special-view .status-preview-item.active {
    border-color: #000000;
    background: #e8e8e8;
}

html.special-view .status-preview-item h3 {
    font-size: 1.2rem;
}

html.special-view footer {
    background-color: #000000;
    color: #cccccc;
}

html.special-view .footer-bottom {
    font-size: 1rem;
}

html.special-view .footer-links a {
    color: #ccccff;
}

html.special-view .special-view-toggle {
    border-color: #ffffff;
}

html.special-view .special-view-toggle.active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
}

/* Печать: скрываем всё, кроме main */
.print-only {
    display: none;
}

@media print {
    @page {
        margin: 15mm;
    }
    body * {
        visibility: hidden;
    }
    main,
    main * {
        visibility: visible;
    }
    main {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .print-only {
        display: block !important;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #ccc;
    }
    .print-btn,
    .vacancy-back-link,
    .article-banner,
    .nav-link {
        display: none !important;
    }
    .vacancy-layout > aside,
    .article-wrapper > aside {
        display: none !important;
    }
}
