/*
Theme Name: Jas Sayasat Modern
Description: Минималистичная тема Modern Government для молодежной политики РК
Version: 1.0
Text Domain: jas-sayasat
*/

/* --- НАСТРОЙКИ СТИЛЯ --- */
:root {
    --kz-blue: #00AFCA;
    --kz-dark: #005B6E;
    --kz-gold: #FEC50C;
    --bg-body: #FFFFFF;
    --bg-card: #F4F8FA;
    --text-main: #1A1A1A;
    --text-secondary: #666666;
    --radius-lg: 20px;
    --radius-sm: 8px;
}

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

/* === ГЛОБАЛЬНАЯ ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО СКРОЛЛА === */
html, body {
    overflow-x: hidden; /* Запрещаем горизонтальный скролл */
    width: 100%;
    max-width: 100vw;   /* Ограничиваем ширину viewport */
}

/* Гарантируем, что контейнер не вылезает */
.container {
    width: 100%;
    padding-left: 20px; /* Чуть меньше отступы на мобильных */
    padding-right: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }



/* === HEADER & NAVIGATION === */
header {
    position: fixed !important; /* Жесткая фиксация */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05); /* Тень для отделения от контента */
}

/* Компенсируем фиксированную шапку, чтобы контент не прятался под ней */
body.admin-bar header {
    top: 32px; /* Отступ для админ-бара WordPress */
}

/* Добавляем отступ всему контенту сайта */
.site-content, main, #content {
    padding-top: 90px !important; /* Высота вашей шапки + запас */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative;
        /* Если места мало, элементы будут переноситься на новую строку, а не ломать верстку */
    flex-wrap: wrap; 
    gap: 20px; /* Отступы между элементами при переносе */
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--kz-dark);
    letter-spacing: -0.5px;
    z-index: 10;
    white-space: nowrap;
}
.logo span { color: var(--kz-blue); }

/* КОНТЕЙНЕР МЕНЮ + КНОПКИ (ПК) */
.nav-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

nav ul { 
    display: flex;
    gap: 40px; 
    margin: 0; 
    padding: 0; 
    list-style: none; 
    white-space: nowrap; 
    align-items: center;
}
nav li { position: relative; }
nav a { 
    font-weight: 600; 
    font-size: 15px; 
    color: var(--text-secondary); 
    transition: color 0.3s; 
    /* Также запрещаем перенос текста в ссылках */
    white-space: nowrap;
}
nav a:hover { color: var(--kz-blue); }

.btn-talapker {
    background-color: var(--kz-blue);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 175, 202, 0.3);
    white-space: nowrap;
    transition: 0.3s;
}
.btn-talapker:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 175, 202, 0.4); }

/* ВЫПАДАЮЩЕЕ МЕНЮ (DROPDOWN ПК) */
nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    z-index: 200;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    list-style: none;
}
nav li:hover > .sub-menu { display: flex; opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
nav .sub-menu a { padding: 10px 25px; font-size: 14px; font-weight: 500; color: var(--text-main); display: block; }
nav .sub-menu a:hover { background: #f8f9fa; color: var(--kz-blue); }
nav .menu-item-has-children > a::after { content: ' '; font-size: 10px; margin-left: 4px; opacity: 0.5; }

/* === MOBILE BURGER & OVERLAY === */
.mobile-menu-toggle {
    display: none; /* Скрыт на ПК */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 105; /* САМЫЙ ВЫСОКИЙ Z-INDEX */
    padding: 0;
    position: relative;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--kz-dark);
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Затемнение фона */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 992px) {
    .header-inner {
        justify-content: center; /* Центрируем всё при переносе */
    }
    /* Сбрасываем абсолютное центрирование для мобильного */
    .nav-wrapper {
        position: fixed !important; /* Важно: fixed, а не absolute */
        top: 0;
        right: -100%; /* Спрятано за правый край */
        left: auto !important;      /* Убираем left: 50% */
        transform: none !important; /* Убираем translate(-50%, -50%) */
        
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 102;
        overflow-y: auto;
        gap: 0;
    }

    .nav-wrapper.active { right: 0; }

    .mobile-menu-toggle { display: flex; }

    nav ul { 
        flex-direction: column; 
        width: 100%; 
        gap: 0; 
        margin-bottom: 20px; 
        justify-content: center;
        margin-top: 10px;
    }
    nav li { width: 100%; border-bottom: 1px solid #f0f0f0; padding: 15px 0; }
    nav li:last-child { border-bottom: none; }
    nav a { font-size: 18px; font-weight: 600; color: var(--kz-dark); display: block; padding: 5px 0; }

        /* ИСПРАВЛЕННЫЙ БЛОК ДЛЯ ПОДМЕНЮ НА МОБИЛЬНОМ */
    nav .sub-menu {
        position: static !important; /* Сбрасываем абсолютное позиционирование */
        display: block !important;   /* Принудительно блочный элемент */
        flex-direction: row !important; /* Отменяем column от родителя */
        
        width: 100% !important;      /* Занимает всю доступную ширину */
        max-width: 100%;
        margin: 0 !important;        /* Убираем внешние отступы */
        padding: 10px 0 0 20px !important; /* Только внутренний отступ слева для лесенки */
        
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-top: 1px solid #f0f0f0; /* Разделитель сверху */
        min-width: auto !important;
    }

    nav .sub-menu li {
        width: 100%;
        border-bottom: none; /* У подпунктов нет нижней границы, чтобы не двоилась */
        padding: 10px 0;     /* Чуть меньше отступ для компактности */
    }

    nav .sub-menu a {
        font-size: 15px;
        font-weight: 400;
        color: var(--text-secondary);
        padding: 0; /* Убираем паддинг у ссылки, он есть у li */
        display: block;
    }

    .btn-talapker { margin-top: 30px; width: 100%; text-align: center; padding: 16px; font-size: 16px; display: block; }
    
    /* Hero адаптив - уменьшаем отступы и размеры */
    .hero { 
        grid-template-columns: 1fr; 
        padding: 40px 0; /* Меньше вертикальный отступ */
        gap: 30px; 
        text-align: center; 
    }
    .hero-content h1 { font-size: 32px; line-height: 1.2; }
    .hero-image { height: 220px; order: -1; width: 100%; }
    .projects-wrapper { padding: 25px; }
}

/* === ОСТАЛЬНЫЕ СЕКЦИИ (БЕЗ ИЗМЕНЕНИЙ) === */
.hero {
    padding: 120px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 { font-size: 56px; line-height: 1.1; font-weight: 800; margin-bottom: 24px; color: var(--kz-dark); }
.hero-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 90%; }
.hero-image { width: 100%; height: 400px; background-color: #eee; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.dot-decor { position: absolute; top: 20px; right: 20px; width: 12px; height: 12px; background: var(--kz-gold); border-radius: 50%; }

.section { padding: 100px 0; }
.section-header { margin-bottom: 60px; display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.section-title { font-size: 36px; font-weight: 800; color: var(--kz-dark); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.team-card-v2 { background: var(--bg-card); padding: 40px; border-radius: var(--radius-lg); text-align: left; transition: 0.3s; }
.team-card-v2:hover { background: #eef5f7; }
.team-photo-v2 { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.team-name-v2 { font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.team-role-v2 { color: var(--kz-blue); font-weight: 600; font-size: 14px; }

.structure-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 24px;
}

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

@media (max-width: 640px) {
    .structure-list {
        grid-template-columns: 1fr;
    }
}


/* Делаем ссылку блочным элементом */
a.struct-item-v2 {
    display: flex;          /* Чтобы контент внутри выравнивался корректно */
    flex-direction: column; /* Элементы друг под другом */
    text-decoration: none;  /* Убираем подчеркивание ссылки */
    color: inherit;         /* Наследуем цвет текста */
    cursor: pointer;        /* Курсор-рука при наведении */
    position: relative;     /* Для позиционирования стрелочки */
}

/* Эффект при наведении на всю карточку */
a.struct-item-v2:hover h3 {
    color: var(--kz-blue); /* Заголовок становится бирюзовым */
}

/* Стрелочка справа внизу */
.card-arrow {
    margin-top: auto;       /* Прижимает стрелку к низу карточки */
    align-self: flex-end;   /* Выравнивает по правому краю */
    font-size: 20px;
    color: var(--kz-blue);
    opacity: 0;             /* Скрыта по умолчанию */
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Появление стрелки при наведении */
a.struct-item-v2:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}


.struct-item-v2 { background: white; border: 1px solid #eee; padding: 30px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.struct-item-v2::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--kz-gold); opacity: 0; transition: 0.3s; }
.struct-item-v2:hover::before { opacity: 1; }
.struct-item-v2 h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.struct-item-v2 p { font-size: 14px; color: var(--text-secondary); }

.projects-wrapper {
    background: var(--kz-dark);
    border-radius: var(--radius-lg);
    padding: 60px;
    color: white;
    max-width: 100%; /* Растягиваем на всю ширину */
}

.projects-wrapper .container {
    max-width: 1400px; /* Широкий контейнер внутри */
    margin: 0 auto;
}
.projects-wrapper .section-title { color: white; border-bottom-color: rgba(255,255,255,0.1); }
.projects-wrapper p { color: rgba(255,255,255,0.7); }
.project-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Всегда 3 колонки */
    gap: 24px;
    margin-top: 40px;
}

/* Адаптив: на планшетах 2 колонки, на мобильных 1 */
@media (max-width: 1024px) {
    .project-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .project-grid-modern {
        grid-template-columns: 1fr;
    }
}
.project-card-modern { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 30px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.project-card-modern:hover { background: rgba(255,255,255,0.2); transform: translateY(-5px); }
.project-tag-modern { display: inline-block; background: var(--kz-gold); color: var(--kz-dark); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 15px; }

/* === СТИЛИ РАЗДЕЛА ПАРТНЕРЫ === */

.partners-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}
.partners-grid {
    display: grid;
    /* Важно: auto-fit заполнит всё пространство */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 24px;
    width: 100%;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Исправление цветов текста внутри карточек */
.partner-name {
    color: var(--text-main) !important;
    font-weight: 600;
    margin-top: 15px;
    font-size: 15px;
}

.partner-logo-wrap {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.partner-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
}


/* === ИСПРАВЛЕНИЕ ЦВЕТА ТЕКСТА В БЛОКЕ ПАРТНЕРОВ === */

.partners-section h2 {
    color: var(--kz-dark) !important; /* Темно-бирюзовый заголовок */
}

.partners-section p {
    color: var(--text-secondary) !important; /* Серый текст описания */
}

.partner-name {
    color: var(--text-main) !important; /* Темный текст названий партнеров */
}

/* Если внутри карточек есть дополнительные текстовые элементы */
.partner-card h3,
.partner-card p,
.partner-card span {
    color: var(--text-main) !important;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на телефоне */
        gap: 15px;
    }
    
    .partner-card {
        padding: 20px 15px;
    }
    
    .partner-logo-wrap {
        height: 60px;
    }
    
    .partner-name {
        font-size: 13px;
    }
}


.norms-list { display: flex; flex-direction: column; gap: 15px; }
.norm-item { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; background: white; border: 1px solid #eee; border-radius: var(--radius-sm); transition: 0.2s; }
.norm-item:hover { border-color: var(--kz-blue); }
.norm-link { color: var(--kz-blue); font-weight: 600; font-size: 14px; }

/* === СТИЛИ ПРОФИЛЯ РУКОВОДИТЕЛЯ (СВЕТЛАЯ ТЕМА) === */

.leader-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #FFFFFF; /* Чистый белый фон */
}

/* Шапка профиля */
.leader-header-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.leader-photo-large img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.leader-role-badge {
    display: inline-block;
    background: var(--kz-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leader-motto {
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--kz-gold);
    padding-left: 15px;
}

/* Таймлайн (Образование и Опыт) */
.timeline-section {
    margin-bottom: 50px;
}

.timeline-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--kz-dark);
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.timeline-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--kz-gold); /* Золотая полоска слева от заголовка */
    border-radius: 2px;
}

.timeline-list {
    list-style: none;
    padding: 0;
    position: relative;
}

/* Вертикальная линия таймлайна */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 7px; /* Центрируем относительно точки */
    top: 10px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 35px;
}

/* Точка на таймлайне */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--kz-blue); /* Бирюзовая обводка */
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--kz-blue);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content strong {
    display: block;
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 4px;
    font-weight: 700;
}

.timeline-content span {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .leader-header-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .leader-motto {
        border-left: none;
        border-top: 3px solid var(--kz-gold);
        padding-left: 0;
        padding-top: 15px;
    }
    
    .timeline-list::before {
        left: 6px;
    }
}


/* === СТРАТЕГИЯ: СТИЛИ === */

.strategy-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Лид-абзац (Введение) */
.strategy-intro {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}
.strategy-intro strong {
    color: var(--kz-blue); /* Выделяем "Миссию" цветом */
}

/* Сетка целей */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.goal-card {
    background: #E0F7FA; /* Светло-голубой фон из ваших переменных */
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 175, 202, 0.1);
    border-color: var(--kz-blue);
    background: white;
}

.goal-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main) !important;
    margin-bottom: 10px;
}

.goal-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.goal-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
    background: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}



/* Список направлений */
.directions-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.directions-list li {
    background: white;
    padding: 25px 30px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--kz-gold); /* Золотой акцент слева */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    font-size: 16px;
    color: var(--text-main);
}

.directions-list li strong {
    color: var(--kz-dark);
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}


/* Чистый список задач для детальных страниц */
.task-list-clean {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.task-list-clean li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
}

/* Кастомная галочка-маркер бирюзового цвета */
.task-list-clean li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--kz-blue);
    font-weight: bold;
    font-size: 18px;
}

.task-list-clean li strong {
    color: var(--kz-dark);
}

/* === НОРМАТИВНАЯ БАЗА: СТИЛИ === */

.norms-container {
    max-width: 1000px;
    margin: 0 auto;
}

.norms-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.norms-list-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Карточка документа */
.norm-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    gap: 20px;
}

.norm-card:hover {
    border-color: var(--kz-blue);
    box-shadow: 0 10px 25px rgba(0, 175, 202, 0.08);
    transform: translateX(5px); /* Легкий сдвиг вправо при наведении */
}

/* Иконка типа документа */
.norm-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Контент карточки */
.norm-content {
    flex-grow: 1;
}

.norm-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--kz-blue);
    background: rgba(0, 175, 202, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.norm-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main)!important;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.norm-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Кнопка скачивания */
.btn-norm-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-norm-download:hover {
    background: var(--kz-blue);
    color: white;
    border-color: var(--kz-blue);
}

.btn-norm-download svg {
    transition: 0.2s;
}

.btn-norm-download:hover svg {
    transform: translateY(2px); /* Анимация стрелки вниз */
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .norm-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-norm-download {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* === КОМПАКТНЫЙ КВАРТАЛЬНЫЙ КАЛЕНДАРЬ === */
.quarter-calendar-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 месяца в ряд */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.month-block {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.q-month-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--kz-dark);
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.q-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}

.q-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px; /* Маленькие отступы для компактности */
}

.q-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px; /* Уменьшенный шрифт */
    font-weight: 500;
    color: var(--text-main);
    border-radius: 8px;
    position: relative;
    transition: 0.2s;
}

.q-day-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    aspect-ratio: auto;
    padding-bottom: 5px;
}

.q-day-cell.empty { visibility: hidden; pointer-events: none; }

/* День с событием */
.q-day-cell.has-event {
    background: rgba(0, 175, 202, 0.1);
    color: var(--kz-blue);
    font-weight: 700;
    cursor: pointer;
}

.q-day-cell.has-event:hover {
    background: var(--kz-blue);
    color: white;
    transform: scale(1.15);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 175, 202, 0.25);
}

.q-event-dot {
    position: absolute;
    bottom: 4px;
    width: 3px;
    height: 3px;
    background: var(--kz-gold);
    border-radius: 50%;
}

/* TOOLTIP (Компактный) */
.event-tooltip {
    position: absolute;
    background: var(--kz-dark);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    width: 240px; /* Чуть уже */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-align: left;
}

.tooltip-date {
    font-size: 11px;
    color: var(--kz-gold);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.tooltip-desc {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.4;
}

/* Адаптив: на планшетах 2 месяца, на мобилках 1 */
@media (max-width: 900px) {
    .quarter-calendar-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .quarter-calendar-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .month-block { padding: 15px; }
    .q-day-cell { font-size: 12px; }
    
    /* На мобилках тултип фиксируем внизу экрана */
    .event-tooltip {
        width: 90%;
        left: 5% !important;
        top: auto !important;
        bottom: 20px !important;
        transform: none !important;
    }
}

/* === СТИЛИ ФУТЕРА С КОНТАКТАМИ === */

footer {
    background: #111; /* Темный фон, как у вас было */
    color: white;
    padding: 60px 0 40px;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Выравнивание по верху */
    gap: 40px;
}

/* Блок контактов */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item svg {
    color: var(--kz-blue); /* Бирюзовые иконки */
    flex-shrink: 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

.contact-item a:hover {
    color: var(--kz-blue);
}

/* Копирайт */
.footer-copyright {
    text-align: right;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-contacts {
        align-items: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

/* === СТИЛИ ДЛЯ БЛОКА ПРОЕКТОВ НА ГЛАВНОЙ === */
.projects-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card-main {
    background: var(--kz-dark); /* Темный блок, как раньше */
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.3s;
}

.project-card-main:hover {
    transform: translateY(-5px);
}

.project-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.project-card-main h3 {
    color: white !important;
    font-size: 22px;
    margin-bottom: 10px;
}

.project-card-main p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 15px;
}

/* === СТИЛИ ДЛЯ ЛЕНТЫ НОВОСТЕЙ === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

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

.news-date {
    font-size: 13px;
    color: var(--kz-blue);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--kz-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
}

/* === ГАЛЕРЕИ КАРТОЧЕК === */
.gallery-section {
    padding: 40px 0;
}

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

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

.gallery-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--kz-blue);
}

.gallery-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

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

.gallery-card:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-text {
    padding: 25px;
    flex-grow: 1;
}

.gallery-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 60px;
}

/* Адаптив для галерей */
@media (max-width: 900px) {
    .gallery-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid,
    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 200px;
    }
}

/* === МЕЖДУНАРОДНОЕ СОТРУДНИЧЕСТВО === */
.international-section {
    padding: 40px 0;
}

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

.international-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.international-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 175, 202, 0.12);
    border-color: var(--kz-blue);
}

.international-photo {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.international-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.international-card:hover .international-photo img {
    transform: scale(1.05);
}

.international-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.international-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--kz-dark);
    margin-bottom: 8px;
}

.international-role {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--kz-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.international-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
}

/* Адаптив */
@media (max-width: 900px) {
    .international-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .international-grid {
        grid-template-columns: 1fr;
    }
    
    .international-photo {
        height: 240px;
    }
}

/* === ГАЛЕРЕЯ ПАРТНЕРОВ (23 карточки) === */
.partners-gallery-section {
    padding: 40px 0;
}

.partners-category {
    font-size: 24px;
    font-weight: 800;
    color: var(--kz-dark);
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--kz-blue);
}

.partners-category:first-of-type {
    margin-top: 0;
}

.partners-grid {
    display: grid;
    gap: 20px;
}

.partners-grid-5 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.partners-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.partner-card-small {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 175, 202, 0.1);
    border-color: var(--kz-blue);
}

.partner-logo-small {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px;
}

.partner-logo-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-card-small:hover .partner-logo-small img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-info-small h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--kz-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 36px;
}

.partner-info-small p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Адаптив */
@media (max-width: 1200px) {
    .partners-grid-5 {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 900px) {
    .partners-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-card-small {
        padding: 20px 15px;
    }
    
    .partner-logo-small {
        width: 100px;
        height: 60px;
    }
    
    .partner-info-small h4 {
        font-size: 13px;
    }
    
    .partner-info-small p {
        font-size: 12px;
    }
}