/* ===== LAYOUT FIX - ЧИСТАЯ ВЕРСТКА ===== */

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    color: #111827;
    background: #f9fafb;
    min-height: 100vh;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }
}

/* Grid система */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Карточки новостей - ИСПРАВЛЕННЫЕ */
.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-card-image {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.news-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #111827;
}

.news-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.news-card-date {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease;
}

.news-card:hover .news-card-read-more {
    color: #1d4ed8;
}

/* Кнопки - ИСПРАВЛЕННЫЕ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Hero секция */
.hero-section {
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Утилиты */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .news-card-image {
        height: 160px;
    }
    
    .news-card-title {
        font-size: 1.125rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .news-card-image {
        height: 140px;
    }
}

/* ===== HEADER FIX - ИСПРАВЛЕНИЕ ШАПКИ ===== */
header, .header, [class*="header"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 50 !important;
}

/* Логотип */
.logo, [class*="logo"] {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #3b82f6 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Навигация */
nav, .nav, [class*="nav"] {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

/* Кнопки в шапке */
header .btn,
.header .btn,
[class*="header"] .btn,
header button,
.header button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    white-space: nowrap !important;
}

/* Мобильное меню */
@media (max-width: 768px) {
    header, .header {
        padding: 0.75rem 0 !important;
    }
    
    nav, .nav {
        gap: 1rem !important;
    }
    
    .logo, [class*="logo"] {
        font-size: 1.25rem !important;
    }
}

/* Бургер меню */
.burger-menu, [class*="burger"] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 24px !important;
    height: 18px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.burger-menu span,
[class*="burger"] span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: currentColor !important;
    border-radius: 1px !important;
    transition: all 0.3s ease !important;
}

/* Выпадающее меню */
.dropdown-menu, [class*="dropdown"] {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    padding: 1rem !important;
    min-width: 200px !important;
    z-index: 100 !important;
}

/* Языковой переключатель */
.language-switcher, [class*="language"] {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.language-option, [class*="language-option"] {
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
}

.language-option.active, [class*="active"] {
    background: #3b82f6 !important;
    color: white !important;
}

/* ===== NEWS PAGE FIX - СТРАНИЦА НОВОСТЕЙ ===== */
/* Общие стили для страницы новостей */
.news-page .container,
.news-index .container,
[class*="news"] .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Grid на странице новостей */
.news-grid,
.news-page .grid,
.news-index .grid,
[class*="news"] .grid {
    display: grid !important;
    gap: 1.5rem !important;
}

/* Карточки на странице новостей */
.news-page .news-card,
.news-index .news-card,
[class*="news"] .news-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.news-page .news-card-content,
.news-index .news-card-content,
[class*