/* === ОСНОВНЫЕ НАСТРОЙКИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background: linear-gradient(135deg, #fff9fc 0%, #fdedf5 100%);
    color: #5a4a4a;
    line-height: 1.6;
    min-height: 100vh;
}

.container, .container2 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ХЕДЕР (розовый пастельный) === */
header {
    background: rgba(255, 245, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 200, 220, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(1.05) saturate(0.9);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Меню для десктопа */
#mainNav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

#mainNav ul li a {
    text-decoration: none;
    color: #b2808c;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

#mainNav ul li a:hover {
    color: #d89aac;
}

#mainNav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5b0c5;
    transition: width 0.3s ease;
}

#mainNav ul li a:hover::after {
    width: 100%;
}

/* Кнопка бургер-меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #c28e9c;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
} 



/* === СЕКЦИЯ BENEFITS (карточки) === */
.benefits {
    padding: 30px 0 50px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 30px 0 40px;
    color: #b2808c;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.section-title::before,
.section-title::after {
    content: '✦';
    color: #f5b0c5;
    font-size: 1.5rem;
    margin: 0 15px;
    opacity: 0.7;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 25px 20px;
    box-shadow: 0 15px 35px rgba(245, 176, 197, 0.15),
                0 5px 15px rgba(255, 210, 225, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(245, 150, 180, 0.25);
    background: rgba(255, 255, 255, 0.9);
    border-color: #fad1e0;
}


/* ТЕКСТ В КАРТОЧКАХ */
.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #88626e;
    font-weight: 600;
    line-height: 1.4;
    width: 100%;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #a47e8a;
    margin-bottom: 20px;
    flex-grow: 1;
    font-weight: 400;
    line-height: 1.5;
}

/* ССЫЛКИ "УЗНАТЬ БОЛЬШЕ" */
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #d48e9f;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 235, 240, 0.7);
    border: 1px solid #fad1e0;
    transition: all 0.3s ease;
    width: fit-content;
}

.card-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.card-link:hover {
    background: #fad1e0;
    color: #885766;
    gap: 12px;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Убираем дублирование иконок */
.benefit-icon {
    display: none;
}

/* === ФУТЕР === */
footer {
    background: rgba(250, 235, 240, 0.6);
    backdrop-filter: blur(5px);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid #fad1e0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 30px;
}

.footer-links a {
    color: #a47582;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #c28295;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #f5b0c5;
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: #b28e99;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Меню превращается в бургер */
    .menu-toggle {
        display: flex;
    }
    
    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 245, 250, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 20px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(200, 150, 170, 0.2);
        z-index: 1000;
    }
    
    #mainNav.active {
        right: 0;
    }
    
    #mainNav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    #mainNav ul li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }
    
    /* Анимация бургера */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
    
    /* Заголовок */
    .section-title {
        font-size: 1.8rem;
        white-space: normal;
        width: 100%;
    }
    
    .section-title::before,
    .section-title::after {
        font-size: 1.2rem;
        margin: 0 8px;
    }
    
    /* Сетка карточек */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 20px 15px;
    }
    
    .img-shadow.mfp-img2 {
        max-width: 220px;
    }
    
    /* Футер */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::before,
    .section-title::after {
        display: none;
    }
    
    .logo img {
        height: 40px;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.85rem;
    }
    
    .card-link {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .img-shadow.mfp-img2 {
        max-width: 180px;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЖЕНСТВЕННЫЕ ЭЛЕМЕНТЫ === */
/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fce7f0;
}

::-webkit-scrollbar-thumb {
    background: #f5b0c5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e89bb2;
}

/* Выделение текста */
::selection {
    background: #f5d1dd;
    color: #6b4e56;
}

/* Анимация появления карточек */
.benefit-card {
    animation: fadeInUp 0.6s ease backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* === ИЗОБРАЖЕНИЯ === */
.img-shadow.mfp-img2 {
    width: 100%;
    max-width: 260px; /* Ограничение на десктопе */
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 10px 25px rgba(220, 150, 170, 0.2);
    
    /* Пастельные розовые тона */
    filter: brightness(1.05) contrast(0.92) saturate(0.85) 
            sepia(0.1) hue-rotate(-5deg);
    transition: filter 0.4s ease, box-shadow 0.4s ease;
}

/* === АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (картинка на всю ширину) === */
@media (max-width: 768px) {
    .benefit-card {
        padding: 20px 15px;
        width: 100%;
    }
    
    /* Убираем ограничение максимальной ширины */
    .img-shadow.mfp-img2 {
        max-width: 100%; /* Картинка занимает всю доступную ширину */
        width: 100%;
        border-radius: 16px;
        margin: 0 0 15px 0; /* Убираем автоматические отступы по бокам */
    }
    
    /* Ссылка с картинкой тоже на всю ширину */
    .benefit-card a:first-of-type {
        width: 100%;
        display: block;
    }
}

@media (max-width: 480px) {
    .img-shadow.mfp-img2 {
        border-radius: 12px;
    }
}
/* === СЕТКА КАРТОЧЕК === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ТРИ КАРТОЧКИ В РЯДУ */
    gap: 25px;
    padding: 10px;
}

/* === КАРТОЧКА === */
.benefit-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 25px 20px;
    box-shadow: 0 15px 35px rgba(245, 176, 197, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%; /* Все карточки одной высоты */
}

/* === ИЗОБРАЖЕНИЯ === */
.img-shadow.mfp-img2 {
    width: 100%;
    max-width: 240px; /* Оптимальный размер для 3-х колонок */
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 10px 25px rgba(220, 150, 170, 0.2);
    
    /* Пастельные тона */
    filter: brightness(1.05) contrast(0.92) saturate(0.85);
    transition: filter 0.4s ease;
}

/* === ПЛАНШЕТ (2 КОЛОНКИ) === */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
        gap: 20px;
    }
    
    .img-shadow.mfp-img2 {
        max-width: 260px; /* На планшете можно чуть крупнее */
    }
}

/* === ТЕЛЕФОН (1 КОЛОНКА, КАРТИНКА НА ВСЮ ШИРИНУ) === */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 20px;
    }
    
    .benefit-card {
        padding: 20px 15px;
    }
    
    /* Картинка на всю ширину на телефоне */
    .img-shadow.mfp-img2 {
        max-width: 100%; /* Убираем ограничение */
        width: 100%;
        border-radius: 16px;
        margin: 0 0 15px 0;
    }
    
    /* Ссылка с картинкой на всю ширину */
    .benefit-card a:first-of-type {
        width: 100%;
        display: block;
    }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ === */
@media (max-width: 480px) {
    .img-shadow.mfp-img2 {
        border-radius: 12px;
    }
    
    .benefit-card {
        padding: 15px 12px;
    }
}
@media (max-width: 768px) {
    /* Убираем отступы у контейнера */
    .container {
        padding: 0;
    }
    
    /* Карточка без отступов */
    .benefit-card {
        padding: 20px 0;
        border-radius: 0;
    }
    
   
}
 @media (max-width: 768px) {
           
            
            nav ul {
                flex-direction: column;
                width: 100%;
            }
            
            nav ul li {
                margin: 0.5rem 0;
            }
            
            .menu-toggle {
                display: flex;
                position: absolute;
                top: 1.5rem;
                right: 1.5rem;
            }
            
            nav {
                width: 100%;
                display: none;
            }
            
            nav.active {
                display: block;
            }
            
            
        }
/* Задержки анимации для карточек */
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
/* ... и так далее */