/* ===== ОСНОВНЫЕ СТИЛИ ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #020617 100%);
    min-height: 100vh;
    color: #e5e7eb; /* Исправлен цвет текста для контраста */
}
/* ===== ЛЕЙАУТ И КОНТЕЙНЕРЫ ===== */
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    display: flex;
    gap: 24px;
}

.content-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
}

/* ===== ДВА РАВНЫХ ФРЕЙМА ===== */
.left-frame {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 50%;
    padding: 20px;
    padding-right: 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.right-frame {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 50%;
    padding: 20px;
    padding-left: 15px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 0;
    min-height: 200px;
    box-sizing: border-box;
    border-left: 2px solid rgba(148, 163, 184, 0.2);
}

/* ===== КОЛОНКИ (старые стили для совместимости) ===== */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* Левый фрейм - Предупреждение и профилактика */
.left-sidebar-column {
    flex: 0 0 400px;
    width: 400px;
    max-width: 400px;
    min-width: 400px;
    padding: 20px 15px 20px 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.left-sidebar-column h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #B22222;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.articles-column {
    flex: 1;
    max-width: 100%;
    padding: 0 15px;
}

/* Стили для заголовков секций (но не для главной статьи) */
.articles-column > h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #B22222;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Сохраняем оригинальные стили для заголовка главной статьи */
.featured-card__title {
    font-family: inherit;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.sidebar-column {
    flex: 0 0 400px;
    width: 400px;
    max-width: 400px;
    min-width: 400px;
    padding: 20px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* Стили для кнопок в правой колонке */
.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.sidebar-buttons .fire-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 18px;
}

.main-column {
    flex: 1;
    min-width: 0;
}

/* ===== КАРТОЧКИ САЙДБАРА ===== */
.sidebar-card {
    background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
    border-radius: 18px;
    padding: 18px 16px 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.sidebar-title {
    margin: 0 0 10px 2px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* ===== АККОРДЕОН ===== */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

details.accordion {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(30, 64, 175, 0.6);
    overflow: hidden;
}

details[open].accordion {
    border-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.65);
}

summary.accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    color: #e5e7eb;
}

summary.accordion-summary::-webkit-details-marker {
    display: none;
}

.accordion-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.accordion-chevron {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 11px;
    transform: rotate(0deg);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

details[open] .accordion-chevron {
    transform: rotate(90deg);
    background: rgba(37, 99, 235, 0.24);
    color: #bfdbfe;
}

.accordion-body {
    padding: 2px 0 10px;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0 8px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-link {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #d1d5db;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}

.category-link:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #eff6ff;
}

.category-link--active {
    background: rgba(37, 99, 235, 0.9);
    color: #eff6ff;
}

/* ===== СТАТЬИ И КАРТОЧКИ ===== */
.article-card {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(30, 64, 175, 0.7);
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 18px;
}

.article-title {
    margin: 0 0 10px 0;
    font-size: 26px;
    line-height: 1.3;
    color: #f9fafb;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: #9ca3af;
}

.article-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    font-size: 12px;
}

.article-content {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.8;
    color: #e5e7eb;
}

.article-content p {
    margin-bottom: 1em;
}

.price-block {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 14px;
    color: #e5e7eb;
}

.price-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 13px;
    color: #9ca3af;
}

.back-row {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #93c5fd;
    text-decoration: none;
}

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

/* ===== ФИЧЕ-КАРТОЧКИ И НОВОСТИ ===== */
.featured-wrapper {
    max-width: 100%;
    margin: 20px 0 10px 0;
}

.featured-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.28), 0 0 40px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: inherit;
    background: #0f172a;
    transition: all 0.4s ease;
}

.featured-card:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35), 0 0 60px rgba(59, 130, 246, 0.5), 0 0 90px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.2);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-card:hover::after {
    opacity: 1;
}

.featured-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.featured-card__content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    z-index: 2;
    color: #fff;
}

.featured-card__date {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* ===== СЕТКА НОВОСТЕЙ ===== */
/* Базовый стиль для всех сеток */
.news-grid,
.operations-grid,
.prevention-grid {
    display: grid !important;
    gap: 15px;
    margin-top: 20px;
}

/* Сетка для оперативной деятельности */
.operations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    -ms-grid-columns: 1fr 1fr !important;
}

/* Сетка для предупреждения и профилактики */
.prevention-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    -ms-grid-columns: 1fr !important;
}

/* Разделительная строка на всю ширину экрана */
.full-width-divider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 20px 0;
    background-color: rgba(15, 23, 42, 0.5);
    border-top: 2px solid rgba(148, 163, 184, 0.3);
    border-bottom: 2px solid rgba(148, 163, 184, 0.3);
}

.full-width-divider-text {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #B22222;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.8rem;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .full-width-divider {
        margin-top: 20px;
        margin-bottom: 15px;
        padding: 15px 0;
    }
    
    .full-width-divider-text {
        font-size: 1.4rem;
    }
}

/* Секция с остальными статьями (тема 'others') */
.other-articles-section {
    margin-top: 40px;
    padding: 40px 0;
    background-color: rgba(15, 23, 42, 0.4);
    border-top: 2px solid rgba(148, 163, 184, 0.2);
}

.other-articles-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #B22222;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.other-articles-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Мониторы 21:9 (ультраширокие) */
@media (min-width: 2560px) {
    .other-articles-list {
        grid-template-columns: repeat(6, 1fr);
    }
}

.other-article-btn {
    display: flex;
    align-items: center;
    padding: 13px 15px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 82, 130, 0.9) 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

.other-article-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.other-article-btn:hover {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.95) 0%, rgba(49, 130, 206, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.7);
}

.other-article-btn:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

.other-article-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.other-article-btn:hover .other-article-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

.other-article-icon-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: all 0.3s ease;
}

.other-article-btn:hover .other-article-icon-placeholder {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    transform: scale(1.1);
}

.other-article-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    min-width: 0;
    overflow: visible;
}

.other-article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    white-space: normal;
}

.other-article-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

@media (max-width: 768px) {
    .other-articles-list {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
    
    .other-article-btn {
        padding: 10px 15px;
    }
    
    .other-article-icon,
    .other-article-icon-placeholder {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .other-article-title {
        font-size: 12px;
    }
    
    .other-article-date {
        font-size: 11px;
    }
}

.news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2), 0 0 25px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
    background: black;
    aspect-ratio: 4/2;
    transform: translateZ(0);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.15), inset 0 0 40px rgba(59, 130, 246, 0.05);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 35px rgba(59, 130, 246, 0.4), 0 0 60px rgba(37, 99, 235, 0.2);
}

.news-card__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.news-card__image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.news-card:hover .news-card__image {
    transform: scale(1.1);
}

.news-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: relative;
    pointer-events: none;
}

.news-card__image-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
}

.news-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 15px;
    z-index: 2;
    background: none;
    pointer-events: none;
}

.news-card__date {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.news-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    pointer-events: none;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-section {
    margin-top: 40px;
}

.gallery-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f9fafb;
    padding-left: 10px;
}

.gallery-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    padding: 15px;
}

.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 calc(33.333% - 10px);
    min-width: calc(33.333% - 10px);
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item.active {
    border-color: rgba(37, 99, 235, 0.8);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-5px);
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 10px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.5);
    border-radius: 50%;
    color: #bfdbfe;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-nav:hover:not(.disabled) {
    background: rgba(37, 99, 235, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav.prev {
    left: 5px;
}

.gallery-nav.next {
    right: 5px;
}

.full-image-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.full-image-page.hidden {
    display: none;
}

.full-image-content {
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.full-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.full-image-caption {
    margin-top: 20px;
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.close-full-image {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-full-image:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ДОКУМЕНТЫ ===== */
.document-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #e74c3c;
    max-width: 600px; /* ← ограничиваем ширину */
    margin-left: auto; /* ← центрируем */
    margin-right: auto; /* ← центрируем */
}

.document-name {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.download-link:hover {
    background: #219a52;
    transform: translateY(-2px);
}

/* ===== ФОРМА ВХОДА (ОТДЕЛЬНЫЙ СТИЛЬ) ===== */
.login-page body {
    background: #f5f5f5 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
}

.login-form h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

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

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.login-form input[type="submit"]:hover {
    background: #0056b3;
}

.errorlist {
    color: #dc3545;
    margin: 5px 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.errorlist li {
    margin-bottom: 5px;
}

.helptext {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* ===== УТИЛИТЫ И СООБЩЕНИЯ ===== */
.no-articles,
.no-documents {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
    font-size: 18px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    margin-top: 20px;
}

.sidebar-placeholder {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 12px;
    padding: 20px;
    color: #9ca3af;
    text-align: center;
    height: fit-content;
    margin-top: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .content-container {
        flex-direction: column;
        gap: 20px;
    }

    .left-frame,
    .right-frame {
        width: 100%;
        padding: 0;
    }

    .left-sidebar-column,
    .articles-column,
    .sidebar-column {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 15px;
    }

    .operations-grid,
    .prevention-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media (max-width: 960px) {
    .page-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-container {
        padding: 15px;
    }

    .featured-card {
        min-height: 300px;
    }

    .featured-card__title {
        font-size: 22px;
    }

    .operations-grid,
    .prevention-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 12px;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
        height: 180px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 calc(100% - 10px);
        min-width: calc(100% - 10px);
        height: 220px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .operations-grid,
    .prevention-grid,
    .other-articles-list {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .featured-card {
        min-height: 250px;
    }

    .featured-card__title {
        font-size: 18px;
    }

    .featured-card__content {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .gallery-item {
        height: 180px;
    }
}
/* ===== КОНТАКТНАЯ ФОРМА ===== */
.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(17, 24, 39, 0.96);
    border-radius: 16px;
    padding: 28px 24px 26px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.contact-title {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #f9fafb;
}

.contact-subtitle {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #9ca3af;
}

/* Эти селекторы сработают на вашем текущем HTML без изменений */
.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-card .form-row > div {
    min-width: 0;
}

.contact-card label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 6px;
}

.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    resize: vertical;
}

.contact-card input[type="text"]:focus,
.contact-card input[type="email"]:focus,
.contact-card textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 1);
}

.contact-card textarea {
    min-height: 120px;
}

.contact-card .submit-row {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

.contact-card button[type="submit"] {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #f9fafb;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.55);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.contact-card button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.75);
    filter: brightness(1.05);
}

.contact-card button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.55);
}

@media (max-width: 800px) {
    .contact-card {
        padding: 22px 18px 20px;
    }

    .contact-card .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   СТИЛИ ДЛЯ КНОПОК МЕНЮ ШАПКИ
   ============================================ */
.nav-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.fire-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 82, 130, 0.9) 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.fire-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.fire-btn:hover {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.95) 0%, rgba(49, 130, 206, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.7);
}

.fire-btn:hover::before {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.fire-btn i {
    margin-right: 6px;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.fire-btn:hover i {
    color: #ffd700;
    transform: scale(1.1);
}

.fire-btn.active {
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.95) 0%, rgba(99, 179, 237, 0.95) 100%);
    box-shadow: 0 0 15px rgba(99, 179, 237, 0.5);
    border-color: rgba(255, 107, 53, 0.8);
}

.fire-btn.active i {
    color: #ffd700;
}

/* Адаптивность для кнопок меню */
@media (max-width: 992px) {
    .nav-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-buttons {
        gap: 5px;
    }

    .fire-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .fire-btn i {
        margin-right: 4px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .fire-btn span {
        display: none;
    }

    .fire-btn {
        padding: 10px;
        border-radius: 50%;
    }

    .fire-btn i {
        margin-right: 0;
        font-size: 14px;
    }
}
/* ============================================
   КОНЕЦ СТИЛЕЙ ДЛЯ КНОПОК МЕНЮ ШАПКИ
   ============================================ */

/* ============================================
   СТИЛИ ДЛЯ КЕЙСОВ ОБЪЕКТОВ
   ============================================ */
.objects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 200px);
}

.objects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.objects-title {
    font-size: 32px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.objects-title i {
    color: #ff6b35;
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.object-case {
    background: linear-gradient(135deg, rgba(15, 42, 38, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 107, 53, 0.6) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    isolation: isolate;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.object-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b35 0%, rgba(49, 130, 206, 0.9) 50%, #ff6b35 100%);
    opacity: 0.9;
    z-index: 1;
}

.object-case::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.05) 0%, 
        transparent 50%, 
        rgba(49, 130, 206, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.object-case:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 0 3px rgba(255, 107, 53, 0.6),
        0 0 40px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 53, 0.8);
}

.object-case:hover::after {
    opacity: 1;
}

.object-case-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.object-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.2) 0%, rgba(99, 179, 237, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(49, 130, 206, 0.4);
    flex-shrink: 0;
}

.object-icon i {
    font-size: 24px;
    color: #63b3ed;
}

.object-name {
    font-size: 20px;
    font-weight: 600;
    color: #f9fafb;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.object-description {
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
    z-index: 2;
}

.object-description p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(229, 231, 235, 0.8);
    margin: 0;
}

.object-case-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.object-case-actions .fire-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}


.objects-empty {
    text-align: center;
    padding: 80px 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
}

.objects-empty-icon {
    font-size: 80px;
    color: rgba(148, 163, 184, 0.4);
    margin-bottom: 24px;
}

.objects-empty h3 {
    font-size: 24px;
    color: #f9fafb;
    margin: 0 0 12px 0;
}

.objects-empty p {
    font-size: 16px;
    color: rgba(229, 231, 235, 0.7);
    margin: 0 0 30px 0;
}

/* Адаптивность для кейсов объектов */
@media (max-width: 768px) {
    .objects-container {
        padding: 20px 15px;
    }

    .objects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .objects-title {
        font-size: 24px;
    }

    .objects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .object-case {
        padding: 20px;
    }

    .object-case-actions {
        flex-direction: column;
    }

    .object-case-actions .fire-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .objects-title {
        font-size: 20px;
    }

    .object-name {
        font-size: 18px;
    }

    .object-icon {
        width: 40px;
        height: 40px;
    }

    .object-icon i {
        font-size: 20px;
    }
}
/* ============================================
   КОНЕЦ СТИЛЕЙ ДЛЯ КЕЙСОВ ОБЪЕКТОВ
   ============================================ */

/* ФИКСАЦИЯ СТОЛБЦОВ ДЛЯ ОПЕРАТИВНОЙ ДЕЯТЕЛЬНОСТИ - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
body .content-container .articles-column .operations-grid,
div.content-container div.articles-column div.operations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    -webkit-grid-template-columns: repeat(2, 1fr) !important;
    -moz-grid-template-columns: repeat(2, 1fr) !important;
    -ms-grid-template-columns: repeat(2, 1fr) !important;
}

/* ФИКСАЦИЯ СТОЛБЦОВ ДЛЯ ПРЕДУПРЕЖДЕНИЯ И ПРОФИЛАКТИКИ - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
body .content-container .left-sidebar-column .prevention-grid,
div.content-container div.left-sidebar-column div.prevention-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    -webkit-grid-template-columns: repeat(1, 1fr) !important;
    -moz-grid-template-columns: repeat(1, 1fr) !important;
    -ms-grid-template-columns: repeat(1, 1fr) !important;
}