/* ========================================
   ПАСТЕЛЬНАЯ ЦВЕТОВАЯ СХЕМА ДЛЯ ЖЕНСКОГО ФИТНЕСА
   ======================================== */

:root {
    /* Основные пастельные цвета */
    --pastel-pink: #fce7f3;
    --pastel-pink-light: #fdf2f8;
    --pastel-pink-dark: #fbcfe8;
    --pastel-rose: #f9a8d4;
    --pastel-lavender: #f3e8ff;
    --pastel-lavender-dark: #e9d5ff;
    --pastel-peach: #ffedd5;
    --pastel-mint: #d1fae5;
    
    /* Акцентные цвета */
    --accent-pink: #ec4899;
    --accent-rose: #f472b6;
    --accent-lavender: #a78bfa;
    --accent-coral: #fb7185;
    
    /* Текст */
    --text-dark: #4a4a4a;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    
    /* Фон */
    --bg-primary: #fdf2f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    
    /* Тени */
    --shadow-soft: 0 4px 6px -1px rgba(236, 72, 153, 0.1), 0 2px 4px -1px rgba(236, 72, 153, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(236, 72, 153, 0.15), 0 4px 6px -2px rgba(236, 72, 153, 0.08);
    --shadow-large: 0 20px 25px -5px rgba(236, 72, 153, 0.2), 0 10px 10px -5px rgba(236, 72, 153, 0.1);
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background: linear-gradient(135deg, var(--pastel-pink-light) 0%, var(--pastel-lavender) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ВЕРХНЯЯ НАВИГАЦИЯ С ЭФФЕКТОМ ПОДЧЁРКИВАНИЯ
   ======================================== */

.top-nav {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo img {
    height: 100px;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Подчёркивание при наведении - выезжает от центра */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Альтернативный вариант: подчёркивание слева направо */
/*
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}
*/

/* ========================================
   ГАМБУРГЕР МЕНЮ (ДЕСКТОП - СКРЫТ)
   ======================================== */
.hamburger {
    display: none; /* Скрыт на больших экранах */
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Выше всего, чтобы точно кликался */
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Пружинистая анимация */
    transform-origin: center;
}

/* Анимация превращения в крестик */
.hamburger.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ (<= 768px)
   ======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Показываем кнопку только на мобильных */
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Спрятано за правым краем экрана */
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background: linear-gradient(180deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        z-index: 1001; /* Ниже гамбургера, но выше оверлея */
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0; /* Выезжает на экран */
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-links a::after {
        display: none; /* На мобильном подчеркивание не нужно, есть граница */
    }
    
    /* Оверлей (затемнение фона) */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px); /* Размытие фона для красоты */
        z-index: 1000; /* Ниже меню */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Блокируем прокрутку основной страницы при открытом меню */
    body.menu-open {
        overflow: hidden;
    }
}
/* Оверлей */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
   ======================================== */

main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin: 2rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(236, 72, 153, 0.2);
    position: relative;
    padding-bottom: 1rem;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-lavender));
    border-radius: 2px;
}

/* Изображения */
.img-shadow {
    filter: drop-shadow(5px 5px 10px rgba(236, 72, 153, 0.3));
    border-radius: 15px;
    transition: all 0.4s ease;
}

.img-shadow:hover {
    filter: drop-shadow(8px 8px 15px rgba(236, 72, 153, 0.4));
    transform: translateY(-8px);
}

img.mfp-img2 {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.hr-shadow {
    margin: 2rem 0;
    padding: 0;
    height: 10px;
    border: none;
    border-top: 2px solid var(--pastel-rose);
    box-shadow: 0 10px 10px -10px var(--accent-pink) inset;
}

/* ========================================
   БЛОК ПРЕИМУЩЕСТВ / КАРТОЧКИ
   ======================================== */

.benefits {
    padding: 3rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-lavender), var(--accent-coral));
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: var(--pastel-rose);
}

.benefit-card img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.benefit-card:hover img {
    transform: scale(1.03);
}

.benefit-card h3 {
    color: var(--accent-pink);
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: var(--pastel-pink);
    transition: all 0.3s ease;
    border: 2px solid var(--accent-pink);
}

.card-link:hover {
    background: var(--accent-pink);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}


/* ========================================
   ФУТЕР (В ОДНУ СТРОКУ)
   ======================================== */

.footer-nav {
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-lavender) 100%);
    color: white;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    box-shadow: 0 -4px 15px -5px rgba(236, 72, 153, 0.2);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Делаем логотип и ссылки в одну строку */
.footer-grid {
    display: flex;
    flex-wrap: wrap; /* Позволяет перенос на очень маленьких экранах, чтобы не ломать верстку */
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Расстояние между логотипом и ссылками, и между самими ссылками */
}

.footer-logo-block {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo2 img {
    height: 100px; /* Чуть компактнее для строки */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo2:hover img {
    transform: scale(1.05);
}

/* Превращаем столбец ссылок в строку */
.footer-col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2rem; /* Отступы: 1.5rem по вертикали (если перенесется), 2rem по горизонтали */
}

.footer-col a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: none; /* Убираем старые вертикальные разделители */
}

/* Эффект подчеркивания при наведении (как в верхнем меню) */
.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--pastel-pink-light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.footer-col a:hover::after {
    width: 100%;
}

/* Разделитель и копирайт */
.copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

/* ========================================
   АДАПТИВНОСТЬ ФУТЕРА
   ======================================== */

@media (max-width: 768px) {
    .footer-grid {
        /* На мобильных устройствах позволяем элементам аккуратно переноситься, 
           но сохраняем горизонтальную направленность */
        gap: 1rem;
    }
    
    .footer-col {
        gap: 1rem 1.5rem;
        justify-content: center;
    }
    
    .footer-col a {
        font-size: 0.8rem;
    }
    
    .logo2 img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-grid {
        flex-direction: column; /* На совсем маленьких экранах логотип сверху, ссылки снизу */
        gap: 1rem;
    }
    
    .footer-col {
        gap: 0.8rem 1rem;
    }
}

/* ========================================
   КНОПКА НАВЕРХ
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top::before {
    content: '↑';
    font-size: 1.5rem;
    font-weight: bold;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-coral));
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* В мобильном меню подчёркивание слева */
    .nav-links a::after {
        left: 0;
        transform: translateX(0);
    }
    
    .logo img {
        height: 40px;
    }
    
    .gallery-title {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo-block {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .gallery-title {
        font-size: 1.5rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .card-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card {
    animation: fadeInUp 0.6s ease-out;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.1s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение текста */
::selection {
    background: var(--pastel-rose);
    color: white;
}

::-moz-selection {
    background: var(--pastel-rose);
    color: white;
}