/*
Theme Name: Читинский педагогический колледж
Theme URI: https://chpkol.ru
Author: Разработчик
Author URI: https://chpkol.ru
Description: Современный официальный сайт ГАПОУ "Читинский педагогический колледж". Полностью адаптивная тема с поддержкой всех стандартных функций WordPress и совместимостью с плагинами.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chpkol-theme
Tags: education, college, responsive, custom-menu, featured-images, custom-logo, post-thumbnails, threaded-comments, translation-ready

Читинский педагогический колледж WordPress Theme, (C) 2025
*/

/* ============================================
   ОСНОВНЫЕ СТИЛИ ТЕМЫ
   ============================================ */

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

:root {
    /* Цветовая палитра */
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    
    /* Типографика */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Размеры */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Переходы */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Контейнер */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Обертка для контента с вертикальным меню */
.main-content-wrapper .container {
    max-width: 100%;
    padding: 0 var(--spacing-lg);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   ШАПКА САЙТА
   ============================================ */

.site-header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
}

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

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

.header-top a:hover {
    color: #e0e7ff;
}

.header-main {
    padding: var(--spacing-md) 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-search-group {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.site-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

/* Кнопка "Версия для слабовидящих" в шапке */
.accessibility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 40px;
    min-width: 40px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.accessibility-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.accessibility-btn:hover::before {
    opacity: 1;
}

.accessibility-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.accessibility-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.accessibility-btn.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.accessibility-btn.active::before {
    opacity: 0;
}

.accessibility-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
    fill: currentColor;
}

.accessibility-btn:hover .accessibility-icon,
.accessibility-btn.active .accessibility-icon {
    transform: scale(1.1);
}

.accessibility-text {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    line-height: 1.2;
    color: #ffffff;
}

/* Поиск в шапке */
.header-search {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    height: 40px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.625rem 1rem;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-form button {
    padding: 0.625rem 1.25rem;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.search-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.search-form button:active {
    transform: translateY(0);
}

.search-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ============================================
   ВЕРТИКАЛЬНОЕ МЕНЮ СЛЕВА
   ============================================ */

/* Оверлей для мобильного меню (скрыт по умолчанию) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
    display: block;
    opacity: 1;
}

.sidebar-navigation {
    background-color: #ffffff;
    transition: width 0.3s ease, min-width 0.3s ease, left 0.3s ease;
}

.sidebar-inner {
    position: relative;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Кнопка «Свернуть/развернуть» меню (только десктоп) */
.sidebar-toggle-desktop {
    display: none;
}

@media (min-width: 1025px) {
    .site-wrapper .sidebar-navigation {
        width: 280px;
        min-width: 280px;
        position: static;
        height: auto;
        min-height: 0;
        overflow: visible;
        align-self: flex-start;
    }

    .sidebar-toggle-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.75rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 0.375rem;
        background: var(--bg-light);
        color: var(--primary-color);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
        z-index: 10;
        flex-shrink: 0;
    }

    .sidebar-toggle-desktop:hover {
        background: var(--primary-color);
        color: #ffffff;
    }

    .sidebar-toggle-desktop:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

    .sidebar-toggle-icon {
        font-size: 1.25rem;
        line-height: 1;
        font-weight: 700;
    }

    .sidebar-toggle-icon-collapse {
        display: block;
    }

    .sidebar-toggle-icon-expand {
        display: none;
    }

    /* Свёрнутое состояние сайдбара (приоритет выше базовой ширины) */
    .site-wrapper .sidebar-navigation.collapsed {
        width: 56px;
        min-width: 56px;
    }

    .sidebar-navigation.collapsed .sidebar-toggle-icon-collapse {
        display: none;
    }

    .sidebar-navigation.collapsed .sidebar-toggle-icon-expand {
        display: block;
    }

    .sidebar-navigation.collapsed .main-navigation {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
        width: 0;
        overflow: hidden;
    }

    .sidebar-navigation.collapsed .sidebar-toggle-desktop {
        right: 50%;
        transform: translateX(50%);
    }
}

.main-navigation {
    padding: var(--spacing-md) 0;
    flex: 0 1 auto;
    min-height: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Заголовок меню (опционально) */
.main-navigation::before {
    content: 'Меню';
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-xs);
}

.primary-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.primary-menu > li {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--bg-light);
}

.primary-menu > li:last-child {
    border-bottom: none;
}

.primary-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-page-ancestor > a {
    color: var(--primary-color);
    background-color: var(--bg-light);
    border-left-color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Иконка стрелки для пунктов с подменю */
.primary-menu > li.menu-item-has-children > a::after {
    content: '▶';
    font-size: 0.625rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.primary-menu > li.menu-item-has-children:hover > a::after {
    transform: translateX(3px);
    opacity: 1;
}

/* Выпадающее подменю (вертикальное) */
.primary-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 280px;
    max-width: 350px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-radius: 0 0.5rem 0.5rem 0;
    border: 1px solid var(--border-color);
    border-left: none;
    margin-left: 0.5rem;
}

.primary-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.primary-menu .sub-menu li {
    position: relative;
    border-bottom: 1px solid var(--bg-light);
}

.primary-menu .sub-menu li:last-child {
    border-bottom: none;
}

.primary-menu .sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.primary-menu .sub-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
}

.primary-menu .sub-menu .current-menu-item > a {
    color: var(--primary-color);
    background-color: var(--bg-light);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

/* Многоуровневые подменю */
.primary-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.primary-menu .sub-menu .menu-item-has-children > a::after {
    content: '▶';
    float: right;
    font-size: 0.625rem;
    opacity: 0.5;
}

/* Кнопка «Меню» для мобильных (видимость задаётся в responsive.css) */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.625rem 1rem;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--primary-dark);
    color: #ffffff;
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-burger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-toggle-burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    width: 20px;
    height: 14px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.menu-toggle-burger span {
    display: block;
    width: 100%;
    height: 2px;
    min-height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    flex-shrink: 0;
}

/* Мобильное меню: сайдбар скрыт за экраном, прокручивается при открытии */
@media (max-width: 1024px) {
    .header-main .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .header-main .site-branding {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header-main .header-actions {
        display: contents;
    }

    .header-main .menu-toggle {
        order: 1;
        flex-shrink: 0;
    }

    .header-main .header-search-group {
        order: 2;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .sidebar-navigation {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        height: 100dvh;
        width: 280px;
        min-width: 280px;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-navigation.is-mobile-open {
        left: 0;
    }

    /* Внутренний контейнер: не резать контент, чтобы прокручивался сам сайдбар */
    .sidebar-navigation .sidebar-inner {
        overflow: visible;
        min-height: 100%;
        height: auto;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.is-visible {
        pointer-events: auto;
    }

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

    .site-wrapper {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 0.5rem;
        touch-action: manipulation;
        cursor: pointer;
    }

    .menu-toggle .menu-text {
        display: none;
    }

    .site-main,
    .main-content-wrapper {
        width: 100%;
    }

    /* На мобильных сайдбар не сворачивается в узкую полоску */
    .sidebar-navigation.collapsed {
        width: 280px;
        min-width: 280px;
    }

    .sidebar-navigation.collapsed .main-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: static;
        width: 100%;
    }
}

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================ */

.site-wrapper {
    display: flex;
    min-height: calc(100vh - 200px);
}

/* Вертикальное меню слева (десктоп: ширина задаётся в media min-width 1025px) */
.sidebar-navigation {
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

/* Стилизация скроллбара для меню */
.sidebar-navigation::-webkit-scrollbar {
    width: 6px;
}

.sidebar-navigation::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-navigation::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.site-main {
    flex: 1;
    min-height: calc(100vh - 400px);
    padding: var(--spacing-xl) 0;
}

.main-content-wrapper {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
}

.primary-content {
    flex: 1;
}

/* Баннер/Слайдер */
.hero-banner {
    position: relative;
    margin-bottom: var(--spacing-xl);
    border-radius: 0.5rem;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #ffffff;
    padding: var(--spacing-xl);
}

/* Блоки контента */
.content-block {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

/* Новости - Старый стиль (для других страниц) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.news-item {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: var(--spacing-md);
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.news-title a {
    color: var(--text-color);
}

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

.news-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Главная страница: контент + баннеры справа */
.front-page-content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--spacing-xl);
    align-items: start;
}

.front-page-primary {
    min-width: 0;
}

.front-page-banners {
    position: static;
}

.banners-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Карточки баннеров с инфографикой */
.banner-card {
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 18px rgba(30, 58, 138, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.banner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(30, 58, 138, 0.16);
}

.banner-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-card__link:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.banner-card__visual {
    aspect-ratio: 2 / 1;
    overflow: hidden;
    line-height: 0;
    background: var(--primary-color);
}

.banner-card__svg {
    width: 100%;
    height: 100%;
    display: block;
}

.banner-card__body {
    padding: 0.875rem 1rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.banner-card__title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary-color);
}

.banner-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.banner-card__arrow {
    transition: transform 0.2s ease;
}

.banner-card:hover .banner-card__arrow {
    transform: translateX(4px);
}

.banner-card--exam .banner-card__body { border-top: 3px solid #1e4a8a; }
.banner-card--access .banner-card__body { border-top: 3px solid #0d7a5f; }
.banner-card--journal .banner-card__body { border-top: 3px solid #5b3aa8; }
.banner-card--applications .banner-card__body { border-top: 3px solid #c2410c; }
.banner-card--union .banner-card__body { border-top: 3px solid #b91c1c; }
.banner-card--elearning .banner-card__body { border-top: 3px solid #0e7490; }
.banner-card--career .banner-card__body { border-top: 3px solid #1d4ed8; }
.banner-card--rating .banner-card__body { border-top: 3px solid #a16207; }
.banner-card--testing .banner-card__body { border-top: 3px solid #4338ca; }
.banner-card--adults .banner-card__body { border-top: 3px solid #92400e; }
.banner-card--road .banner-card__body { border-top: 3px solid #374151; }
.banner-card--childcare .banner-card__body { border-top: 3px solid #be185d; }

.chpkol-banner-page .lead {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.front-page-banners .widget-banner {
    margin-bottom: 0;
}

.front-page-banners .widget-banner .widget-title {
    margin: 0;
}

@media (max-width: 1024px) {
    .front-page-content-area {
        grid-template-columns: 1fr;
    }

    .banners-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--spacing-md);
    }
}

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

/* Блок директора — «О колледже» */
.director-section {
    margin: 0 0 var(--spacing-xl);
    padding: 0 0 var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 100px;
}

.director-section__header {
    margin-bottom: var(--spacing-lg);
}

.director-block {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.06);
}

.director-photo {
    margin: 0;
    text-align: center;
}

.director-photo__img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.director-photo__caption {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.director-photo__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.35;
}

.director-photo__role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.director-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.director-content__preview,
.director-content__more {
    position: relative;
}

.director-content:not(:has(.director-content__details[open])) .director-content__preview,
.director-content:not(.is-expanded) .director-content__preview {
    max-height: min(420px, 100%);
    overflow: hidden;
}

.director-content:has(.director-content__details[open]) .director-content__preview,
.director-content.is-expanded .director-content__preview {
    max-height: none;
    overflow: visible;
}

.director-content:not(:has(.director-content__details[open])) .director-content__preview::after,
.director-content:not(.is-expanded) .director-content__preview::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.5rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.95) 70%, #ffffff 100%);
    pointer-events: none;
}

.director-content:has(.director-content__details[open]) .director-content__preview::after,
.director-content.is-expanded .director-content__preview::after {
    display: none;
}

.director-content__details {
    margin-top: 0.75rem;
}

.director-content__details summary {
    list-style: none;
    cursor: pointer;
}

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

.director-content__details[open] .director-content__toggle-label--expand,
.director-content__details:not([open]) .director-content__toggle-label--collapse {
    display: none;
}

.director-content__details[open] .director-content__toggle-icon {
    transform: rotate(180deg);
}

.director-content p {
    margin: 0 0 1rem;
}

.director-content__more p:last-child {
    margin-bottom: 0;
}

.director-content__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-light);
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--primary-color);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    user-select: none;
}

.director-content__toggle:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.director-content__toggle:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.director-content__more {
    padding-top: 0.75rem;
}

.director-content__toggle-icon {
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.director-signature {
    margin-top: var(--spacing-md) !important;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
    font-style: italic;
}

@media (max-width: 768px) {
    .director-block {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }

    .director-photo__img {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }
}

/* Новости - Современный дизайн для главной страницы */
.news-section {
    padding: var(--spacing-xl) 0;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.news-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.news-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
    font-size: 0.8125rem;
    color: var(--text-light);
}

.news-date-icon {
    font-size: 0.875rem;
}

.news-date {
    font-weight: 500;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.news-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-card-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.news-read-more:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

.news-read-more .arrow {
    transition: transform 0.3s ease;
}

.news-read-more:hover .arrow {
    transform: translateX(5px);
}

.news-pagination-wrapper {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-weight: 600;
    font-size: 1.0625rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-all-news:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-all-news .arrow {
    transition: transform 0.3s ease;
}

.btn-all-news:hover .arrow {
    transform: translateX(5px);
}

.no-news {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.no-news-message {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   САЙДБАР
   ============================================ */

.sidebar {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 0.5rem;
}

.widget {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

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

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
}

.widget a:hover {
    color: var(--primary-color);
}

/* Кнопки в сайдбаре */
.sidebar-button {
    display: block;
    width: 100%;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background-color: var(--success-color);
    color: #ffffff;
    text-align: center;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-button:hover {
    background-color: #059669;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   ПОДВАЛ САЙТА
   ============================================ */

.site-footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

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

.footer-widget h3 {
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

.footer-widget a {
    color: #d1d5db;
}

.footer-widget a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    list-style: none;
    margin: var(--spacing-md) 0;
}

.footer-menu a {
    color: #d1d5db;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-sm);
    }
    
    .header-search-group {
        width: 100%;
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    
    .accessibility-btn {
        flex-shrink: 0;
        min-width: auto;
        padding: 0 0.75rem;
    }
    
    .accessibility-text {
        display: none;
    }
    
    .accessibility-btn {
        width: auto;
    }
    
    .header-search {
        width: 100%;
        max-width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .site-wrapper {
        position: relative;
    }
    
    .primary-menu {
        flex-direction: column;
    }
    
    .primary-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .primary-menu a {
        padding: 1rem 1.25rem;
    }
    
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        display: none;
        margin-left: 0;
        border: none;
        border-radius: 0;
        min-width: auto;
        max-width: none;
        padding: 0;
    }
    
    .primary-menu > li.active > .sub-menu {
        display: block;
    }
    
    .primary-menu .sub-menu a {
        padding-left: 2rem;
    }
    
    .news-grid,
    .news-grid-modern {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content,
    .footer-sections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: var(--spacing-sm) 0;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 1.125rem;
    }
    
    .content-block {
        padding: 0.75rem;
    }
    
    .news-item img,
    .news-card-image {
        height: 180px;
    }
    
    .hero-content h1 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .news-grid-modern {
        gap: var(--spacing-md);
    }
    
    .news-card-content {
        padding: var(--spacing-sm);
    }
    
    .footer-section {
        padding: var(--spacing-md);
    }
    
    .accessibility-btn {
        padding: 0 0.625rem;
        min-width: 40px;
    }
    
    .header-search-group {
        gap: 0.5rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
}

/* ============================================
   БЫСТРЫЕ ССЫЛКИ (старый стиль)
   ============================================ */

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

.quick-link-item:hover {
    border-color: var(--primary-color);
    background-color: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.quick-link-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.quick-link-title {
    font-weight: 600;
    color: var(--text-color);
}

/* ============================================
   ФУТЕР СЕКЦИИ (Быстрые ссылки и Контакты)
   ============================================ */

.footer-sections {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.footer-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section {
    background-color: #ffffff;
    padding: var(--spacing-lg);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.footer-section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.quick-links-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.quick-link-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.quick-link-footer:hover {
    background-color: #ffffff;
    border-color: var(--primary-color);
    transform: translateX(5px);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.quick-link-icon-footer {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.quick-link-title-footer {
    font-weight: 600;
    color: var(--text-color);
    flex-grow: 1;
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.contact-item:hover {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-text strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-text span,
.contact-text a {
    color: var(--text-color);
    font-size: 0.9375rem;
    line-height: 1.5;
}

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

/* ============================================
   КОНТАКТНАЯ ИНФОРМАЦИЯ
   ============================================ */

.contact-info {
    margin-top: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.0625rem;
}

.contact-info strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: underline;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* ============================================
   КОММЕНТАРИИ
   ============================================ */

.comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
}

.comment {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.comment-content {
    margin-top: var(--spacing-sm);
}

.comment-form {
    margin-top: var(--spacing-lg);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

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

/* ============================================
   ПАГИНАЦИЯ
   ============================================ */

.pagination,
.posts-navigation {
    margin: var(--spacing-xl) 0;
    text-align: center;
}

.page-numbers,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li,
.nav-links li {
    margin: 0;
}

.page-numbers a,
.page-numbers span,
.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.page-numbers a:hover,
.nav-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-numbers .current {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ============================================
   МЕТА ИНФОРМАЦИЯ
   ============================================ */

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.entry-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.tags-links,
.cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-links a,
.cat-links a {
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.tags-links a:hover,
.cat-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ============================================
   ПОСТ НАВИГАЦИЯ
   ============================================ */

.post-navigation {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.nav-previous,
.nav-next {
    padding: var(--spacing-md);
    background-color: #ffffff;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   УТИЛИТЫ
   ============================================ */

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

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

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   СТРАНИЦА «ПРИЁМНАЯ КАМПАНИЯ» (АБИТУРИЕНТАМ)
   ============================================ */

.applicants-page {
    background-color: #f0f4f8;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='%23e2e8f0' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");
    padding-bottom: var(--spacing-xl);
}

.applicants-content {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.applicants-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: var(--spacing-lg);
    align-items: start;
}

.applicants-main-column,
.applicants-sidebar {
    min-width: 0;
}

.applicants-sidebar .applicants-links-grid,
.applicants-sidebar .applicants-docs-grid,
.applicants-sidebar .applicants-pdf-grid {
    grid-template-columns: 1fr;
}

.applicants-main-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
    color: var(--text-color);
}

.applicants-section {
    margin-bottom: var(--spacing-lg);
}

.applicants-section:last-child {
    margin-bottom: 0;
}

.applicants-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-light);
    display: inline-block;
}

.applicants-grid {
    display: grid;
    gap: var(--spacing-md);
}

.applicants-links-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.applicants-link-box {
    display: block;
    padding: var(--spacing-md);
    background: var(--bg-color);
    border: 1px solid var(--primary-light);
    border-radius: 0.375rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: var(--transition);
}

.applicants-link-box:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
    color: var(--primary-dark);
}

.applicants-docs-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.applicants-doc-card {
    background: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.applicants-doc-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.applicants-doc-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.applicants-doc-card-title {
    font-size: 1rem;
    font-weight: 700;
    padding: var(--spacing-sm) var(--spacing-md) 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.applicants-doc-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0 var(--spacing-md) var(--spacing-md);
    line-height: 1.5;
}

.applicants-spec-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.applicants-spec-card {
    background: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.applicants-spec-card:hover {
    box-shadow: var(--shadow-lg);
}

.applicants-spec-card-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    opacity: 0.9;
}

.applicants-spec-card-title {
    font-size: 1rem;
    font-weight: 700;
    padding: var(--spacing-md);
    margin: 0;
    color: var(--text-color);
}

.applicants-spec-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.applicants-spec-link {
    display: inline-block;
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9375rem;
}

.applicants-spec-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

.applicants-pdf-box {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-color);
    border: 1px solid var(--primary-light);
    border-radius: 0.375rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.applicants-pdf-box:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.applicants-extra-content {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.applicants-page .wp-block-spacer {
    display: none;
}

@media (max-width: 768px) {
    .applicants-content {
        padding: var(--spacing-md);
    }

    .applicants-layout {
        grid-template-columns: 1fr;
    }

    .applicants-links-grid,
    .applicants-docs-grid {
        grid-template-columns: 1fr;
    }

    .applicants-spec-grid {
        grid-template-columns: 1fr;
    }

    .applicants-pdf-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .applicants-pdf-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   СТРАНИЦА «МЕРЫ ПОДДЕРЖКИ СВО»
   ============================================ */

.svo-page {
    background-color: var(--bg-light);
    padding-bottom: var(--spacing-xl);
}

.svo-content {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.svo-page-title {
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--primary-light);
}

.svo-lead {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.svo-intro {
    margin-bottom: var(--spacing-xl);
}

.svo-intro p {
    margin: 0;
    line-height: 1.65;
}

.svo-section {
    margin-bottom: var(--spacing-xl);
}

.svo-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    padding-bottom: 0.375rem;
    border-bottom: 2px solid var(--border-color);
}

.svo-text {
    margin-bottom: var(--spacing-md);
    line-height: 1.65;
}

.svo-list {
    margin: 0 0 var(--spacing-md);
    padding-left: 1.5rem;
    line-height: 1.7;
}

.svo-list li {
    margin-bottom: 0.5rem;
}

.svo-list-measures {
    list-style-type: disc;
}

.svo-list-measures li::marker {
    color: var(--primary-color);
}

.svo-list-numbered {
    list-style-type: decimal;
    padding-left: 2rem;
}

.svo-list-numbered li {
    margin-bottom: 0.75rem;
}

.svo-list-docs {
    list-style-type: disc;
}

.svo-list-docs li::marker {
    color: var(--primary-color);
}

.svo-table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-md) 0;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.svo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.svo-table th,
.svo-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.svo-table thead th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-dark);
}

.svo-table tbody tr:hover {
    background: var(--bg-light);
}

.svo-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    width: 1%;
    min-width: 3rem;
}

.svo-extra-content {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .svo-content {
        padding: var(--spacing-md);
    }

    .svo-page-title {
        font-size: 1.25rem;
    }

    .svo-table th,
    .svo-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .svo-table td:first-child {
        white-space: normal;
    }
}
