/* C:\Users\USER\Desktop\rosa_med\main\static\main\css\elite_home.css */
/* Элитный дизайн для главной страницы - ИЗОЛИРОВАННЫЙ */

/* Сброс стилей для изоляции */
.rm-small-banners *,
.rm-premium-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Малые баннеры */
.rm-small-banners {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 80px; /* Отступ для шапки */
}

.rm-small-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rm-small-banner {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.rm-small-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rm-small-banner-image {
    height: 120px; /* Уменьшена высота изображения */
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.rm-small-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Изменено на contain для полного отображения */
    transition: transform 0.3s ease;
    padding: 10px; /* Добавлен отступ для изображения */
}

.rm-small-banner:hover .rm-small-banner-image img {
    transform: scale(1.05);
}

.rm-small-banner-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rm-small-banner-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.rm-small-banner-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.rm-small-banner-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.rm-small-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.rm-small-banner-btn:hover {
    color: #764ba2;
    gap: 12px;
}

.rm-btn-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Премиум секция */
.rm-premium-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.rm-premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.rm-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.rm-section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rm-section-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.rm-feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.rm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.rm-feature-card:hover::before {
    transform: scaleX(1);
}

.rm-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.rm-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.rm-feature-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.rm-feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

/* Анимации для появления элементов */
.rm-animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .rm-section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .rm-small-banners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rm-small-banner {
        height: 250px;
    }
    
    .rm-small-banner-image {
        height: 100px; /* Уменьшена высота для мобильных */
    }
    
    .rm-small-banner-content {
        padding: 15px;
    }
    
    .rm-premium-section {
        padding: 60px 0;
    }
    
    .rm-section-title {
        font-size: 2rem;
    }
    
    .rm-section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .rm-features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px;
    }
    
    .rm-section-title {
        font-size: 1.8rem;
    }
    
    .rm-feature-card {
        padding: 30px 20px;
    }
    
    .rm-small-banner-image {
        height: 90px; /* Еще меньше для маленьких экранов */
    }
}

/* Стили для reduced motion */
.reduced-motion * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
}
/* Делаем весь баннер кликабельным */
.rm-small-banner {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
    cursor: pointer; /* Добавляем указатель курсора */
}

/* Делаем весь баннер ссылкой через псевдоэлемент */
.rm-small-banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
}

/* Убираем стандартные стили ссылки внутри баннера */
.rm-small-banner a.rm-small-banner-btn {
    position: relative;
    z-index: 3; /* Поднимаем кнопку над псевдоэлементом */
    pointer-events: auto; /* Разрешаем события для кнопки */
}

/* Стиль для hover всего баннера */
.rm-small-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rm-small-banner:hover .rm-small-banner-image img {
    transform: scale(1.05);
}