/**
 * Стили плагина "2026 год Лошади"
 * 
 * @package Horse2026
 */

/* =====================================================
   ОБЩИЕ СТИЛИ
===================================================== */

.horse-2026-container,
.horse-section-container {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #3A3A3A;
    line-height: 1.6;
    padding: 10px;
}

/* =====================================================
   РАЗДЕЛИТЕЛЬ
===================================================== */

.content-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 111, 71, 0.3), transparent);
    margin: 30px 0;
}

/* =====================================================
   КНОПКА ВОЗВРАТА
===================================================== */

.back-button-wrapper {
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #8B6F47;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background: #6d5636;
    transform: translateX(-5px);
    color: white !important;
}

/* =====================================================
   ЗАГОЛОВКИ
===================================================== */

.main-title,
.section-main-title {
    color: #8B6F47;
    font-weight: 600;
}

.main-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
}

.section-main-title {
    font-size: 32px;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.sections-header {
    font-size: 28px;
    color: #8B6F47;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}

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

.horse-2026-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #3A3A3A;
}

.welcome-text p {
    margin-bottom: 15px;
}

.section-welcome-text {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid #8B6F47;
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.08);
}

.section-welcome-text p {
    margin: 0 0 15px 0;
    font-size: 15px;
    text-align: justify;
}

.section-welcome-text p:last-child {
    margin-bottom: 0;
}

.section-welcome-text strong {
    color: #8B6F47;
    font-weight: 600;
}

/* =====================================================
   СЕТКА РАЗДЕЛОВ
===================================================== */

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.section-card {
    background: #fff;
    border: 2px solid #D4A574;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B6F47, #D4A574);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 111, 71, 0.2);
}

.section-card:hover::before {
    transform: scaleX(1);
}

.section-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 18px;
    color: #3A3A3A;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.section-arrow {
    font-size: 24px;
    color: #8B6F47;
    transition: transform 0.3s ease;
}

.section-card:hover .section-arrow {
    transform: translateX(5px);
}

/* =====================================================
   МОБИЛЬНАЯ ВЕРСИЯ
===================================================== */

@media (max-width: 768px) {
    .horse-2026-container {
        padding: 10px 5px !important;
    }
    
    .horse-section-container {
        padding: 10px 5px !important;
    }
    
    .back-button-wrapper {
        padding: 0 5px;
    }
    
    .back-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .main-title {
        font-size: 28px;
        padding: 0 5px;
    }
    
    .section-main-title {
        font-size: 24px;
        padding: 0 5px;
    }
    
    .welcome-text {
        font-size: 14px;
        padding: 0 5px;
    }
    
    .sections-header {
        font-size: 24px;
        padding: 0 5px;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    
    .section-card {
        padding: 20px 5px;
    }
    
    .section-icon {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .section-welcome-text {
        padding: 20px 5px !important;
        margin: 0 5px !important;
    }
    
    .section-welcome-text p {
        font-size: 14px;
    }
    
    .content-divider {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .horse-2026-container,
    .horse-section-container {
        padding: 10px 5px !important;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .section-main-title {
        font-size: 20px;
    }
    
    .section-card {
        padding: 15px 5px;
    }
    
    .section-welcome-text {
        padding: 15px 5px !important;
    }
    
    .welcome-text {
        font-size: 13px;
    }
}

/* =====================================================
   АДАПТИВНОСТЬ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ
===================================================== */

@media (max-width: 360px) {
    .horse-2026-container,
    .horse-section-container {
        padding: 5px !important;
    }
    
    .back-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .section-main-title {
        font-size: 18px;
    }
    
    .section-welcome-text {
        padding: 10px 5px !important;
    }
    
    .section-welcome-text p {
        font-size: 13px;
    }
}

/* =====================================================
   ИСПРАВЛЕНИЕ ВОЗМОЖНЫХ КОНФЛИКТОВ
===================================================== */

.horse-2026-container *,
.horse-section-container * {
    box-sizing: border-box;
}

.horse-2026-container a,
.horse-section-container a {
    text-decoration: none;
}

.horse-2026-container p,
.horse-section-container p {
    line-height: 1.6;
}



/* Скрыть кнопку на больших экранах */
@media (min-width: 1025px) {
    .back-button-wrapper {
        display: none;
    }
}

/* Показать на планшетах и мобильных */
@media (max-width: 1024px) {
    .back-button-wrapper {
        display: block;
    }
}


