/* spoilers.css - Выпадающие спойлеры на чистом CSS */

/* Основной контейнер спойлера */
.spoiler {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Скрытый checkbox для управления состоянием */
.spoiler input[type="checkbox"] {
    display: none;
}

/* Заголовок спойлера (кликабельный) */
.spoiler-label {
    display: block;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #8B0000;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
}

.spoiler-label:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Иконка стрелки — надёжный Unicode (работает в 99% случаев) */
.spoiler-label::after {
    content: "\e901";  /* Или используйте &#9660; как \25bc */
    content: "\25BC";   /* Черная стрелка вниз */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 900;   /* Максимально жирный */
    line-height: 1;
    speak: none;        /* Отключаем озвучку */
}

.spoiler input[type="checkbox"]:checked + .spoiler-label::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Содержимое спойлера - по умолчанию скрыто */
.spoiler-content {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* Показываем содержимое при checked */
.spoiler input[type="checkbox"]:checked ~ .spoiler-content {
    max-height: 500px; /* Достаточно для большинства текстов, можно увеличить */
    padding: 20px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .spoiler-label {
        padding: 15px;
        font-size: 15px;
    }
    
    .spoiler-content {
        padding: 15px !important;
    }
}

/* Контейнер для двух картинок в ряд */
.image-row {
    display: flex;
    gap: 60px;
    justify-content: center;
    padding: 10px;
    flex-wrap: wrap; /* Адаптивность для мобильных */
}

/* Стили для кнопки-изображения (обновлённые) */
.image-btn {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08), /* Легче основная тень */
        0 2px 6px rgba(0, 0, 0, 0.05);  /* Легче глубина */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    text-decoration: none;
}

/* Изображение внутри кнопки */
.image-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Лёгкий эффект при наведении (меньший подъём) */
.image-btn:hover {
    transform: translateY(-2px); /* Было -5px */
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.12), /* Слабее тень */
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-btn:hover img {
    transform: scale(1.02); /* Было 1.05 — легче увеличение */
}

/* Эффект нажатия (слегка скорректирован для баланса) */
.image-btn:active {
    transform: translateY(2px) scale(0.98); /* Было 3px — мягче */
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Легче внутренняя тень */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .image-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .image-btn {
        width: 90vw;
        max-width: 300px;
        height: 200px;
    }
}
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 50px;
}

/* Сетка кнопок меню через flex для безопасности шаблона */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

.menu-btn {
    flex: 1 1 calc(50% - 10px);
    /* 2 кнопки в ряд с учетом gap */
    min-width: 280px;
    /* Чтобы на мобильных перестраивались в 1 ряд */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    /* Увеличены отступы */
    background-color: #f5f6f7;
    color: #000000;
    text-decoration: none !important;
    /* Убрано подчеркивание */
    border-radius: 8px;
    font-weight: normal;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e0e0e0;
   font-size: 1.10em;
    /* Увеличен шрифт */
    box-sizing: border-box;
}

.menu-btn:hover {
    transform: translateY(-3px);
    /* Эффект всплытия */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    /* Усиление тени */
    background-color: #ffffff;
    color: #004682;
    border-color: #e0e0e0;
    text-decoration: none !important;
}

.btn-full {
    flex: 1 1 100% !important;
    /* Кнопка на всю ширину */
}

/* Секция баннеров */
.banners-section {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.section-title {
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--primary-color);
    text-align: center;
}

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



.banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 40px;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
	font-size: 16px;
    transition: transform 0.3s ease;
}


.banner-item:hover {
    transform: translateY(-3px);
    /* Эффект всплытия */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    /* Усиление тени */
    background-color: #ffffff;
    color: #004682;
    border-color: #e0e0e0;
    text-decoration: none !important;
}


.banner-item.pfdo {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.banner-item.mediation {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}


.page-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.page-title {
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 15px;
}

.info-section {
    margin-bottom: 25px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}