/* 
Theme Name: Padel Academy
Description: Custom theme 
*/

/* --- CSS VARIABLES --- */
:root {
    /* Новые фирменные цвета */
    --color-primary: #414A62;
    --color-accent: #C83B3B;
    /* Акцентный красный из интерьера */
    --color-accent-hover: #A72B2B;
    --color-promo-bg: #F8F7F5;
    /* Мягкий бежевый */
    --color-promo-text: #2C3545;

    --color-dark: #121212;
    --color-light: #ffffff;

    /* Типографика */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Размеры */
    --container-width: 1440px;
    --container-padding: 2rem;
    --radius: 24px;
    /* Увеличено для софт-тач эффекта */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & TYPOGRAPHY --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    /* Полностью скругленные кнопки */
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn--block {
    width: 100%;
    margin-bottom: 1rem;
}

.btn--full {
    width: 100%;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn--primary:hover {
    background-color: #2c3345;
    box-shadow: 0 8px 20px rgba(65, 74, 98, 0.2);
    transform: translateY(-2px);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-light);
    box-shadow: 0 8px 20px rgba(200, 59, 59, 0.3);
}

.btn--accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(200, 59, 59, 0.4);
}

.btn--outline {
    border-color: var(--color-light);
    color: var(--color-light);
}

.btn--outline:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
}

/* --- HEADER --- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
    color: var(--color-light);
}

.site-header.is-scrolled {
    background-color: var(--color-primary);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo img {
    height: 45px;
    width: auto;
}

/* Desktop Menu */
.header-menu-list {
    display: flex;
    gap: 2rem;
}

.header-menu-list a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.header-menu-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.header-menu-list a:hover::after {
    width: 100%;
}

/* Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-header__socials {
    display: flex;
    gap: 0.8rem;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: var(--transition);
}

.icon-link:hover {
    border-color: var(--color-light);
    background: rgba(255, 255, 255, 0.1);
}

.site-header__phone {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Mobile Header Controls */
.site-header__mobile-controls {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-header-phone {
    color: var(--color-light);
    display: flex;
    align-items: center;
}

.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 102;
}

.burger-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-light);
    border-radius: 2px;
    transition: var(--transition);
}

.burger-btn span:nth-child(1) {
    top: 0;
}

.burger-btn span:nth-child(2) {
    top: 9px;
}

.burger-btn span:nth-child(3) {
    top: 18px;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 101;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
    color: var(--color-light);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

.mobile-menu-overlay.is-active {
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-overlay__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--container-padding);
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
}

.close-btn::before {
    content: '✕';
}

.mobile-menu-overlay__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem var(--container-padding) 4rem;
    overflow-y: auto;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-menu-list a {
    font-size: 1.5rem;
    font-weight: 500;
}

.mobile-menu-overlay__footer {
    margin-top: 3rem;
}

.mobile-menu-overlay__contacts {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    color: var(--color-light);
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero__bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero__text-wrap {
    max-width: 800px;
    margin-top: 5vh;
}

.hero__title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    max-width: 500px;
}

.hero__bottom-wrap {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    max-width: 450px;
}

/* --- PROMO BLOCK --- */
.promo-block {
    background-color: var(--color-promo-bg);
    color: var(--color-promo-text);
    padding: 2rem;
    border-radius: var(--radius);
    /* Мягкие углы со всех сторон */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    position: relative;
}

.promo-block__title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.promo-block__price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.promo-block__price-current {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.promo-block__price-old {
    font-size: 1.25rem;
    font-weight: 500;
    color: #888;
    text-decoration: line-through;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.hero__actions .btn {
    flex: 1;
}



/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-light);
    color: var(--color-primary);
    padding: 3rem 0 2rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 340px 1fr 280px;
    gap: 4rem;
    margin-bottom: 4rem;
}

.site-footer__logo {
    margin-bottom: 2rem;
}

.site-footer__logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.site-footer__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

/* Выделенный блок подписки */
.site-footer__subscribe-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--color-light);
    box-shadow: 0 15px 35px rgba(65, 74, 98, 0.15);
}

.site-footer__subscribe-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.site-footer__social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__subscribe-box .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-light);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__subscribe-box .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Центральная колонка: Меню */
.site-footer__col--menus {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 1.25rem;
}

.footer-menu-list a {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-menu-list a:hover {
    opacity: 1;
    color: var(--color-accent);
    padding-left: 5px;
}

/* Правая колонка: Контакты */
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-contacts li a {
    transition: var(--transition);
}

.footer-contacts li a:hover {
    color: var(--color-accent);
}

.footer-contacts svg {
    opacity: 0.5;
}

/* Нижняя панель и Копирайт */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(65, 74, 98, 0.1);
}

.site-footer__copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* СТИЛИ КОПИРАЙТА БЮРО */
.footer__credits {
    text-align: right;
}

.footer__copyright-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;

    background: linear-gradient(to right,
            var(--color-primary) 0%,
            var(--color-primary) 40%,
            #F19E57 50%,
            var(--color-primary) 60%,
            var(--color-primary) 100%);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation: shine 4s linear infinite;
    transition: all 0.3s ease;
    opacity: 1;
}

.footer__copyright-link:hover {
    transform: translateY(-1px);
    text-shadow: 0 0 15px rgba(241, 158, 87, 0.2);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {

    .site-header__nav,
    .site-header__actions {
        display: none;
    }

    .site-header__mobile-controls {
        display: flex;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .site-footer__col--menus {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero__bottom-wrap {
        align-self: flex-start;
        max-width: 100%;
        align-items: stretch;
        margin-top: 3rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .promo-block {
        border-radius: var(--radius);
    }
}

@media (max-width: 767.98px) {
/* Адаптивность */

        .location-section__inner {
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .location-section__image-wrap {
            height: 240px;
        }

        .location-section__map-wrap {
            height: 450px;
            min-height: auto;
        }
    

    .site-footer {
        padding: 1rem 0 2rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .site-footer__col--menus {
        flex-direction: column;
        gap: 1.5rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer__credits {
        text-align: center;
        margin-top: 5px;
    }
}
/* Базовая сетка и выравнивание */
.location-section__grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    align-items: stretch;
    /* Карта и карточка одной высоты */
}

/* Скрываем блок кнопок на компьютерах */
.location-section__mobile-actions {
    display: none;
    padding: 0 30px 30px;
    flex-direction: column;
    gap: 12px;
}

/* Стили кнопок навигации */
.btn-route {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-route--yandex {
    background-color: #FFD400;
    color: #000;
}

.btn-route--2gis {
    background-color: #24C100;
    color: #fff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .location-section__grid {
        grid-template-columns: 1fr;
    }

    .location-section__map-container {
        height: 400px;
        order: 2;
        /* Карта под карточкой */
    }

    .location-section__card {
        order: 1;
        margin-bottom: 20px;
    }

    /* Показываем кнопки только на мобилках (ниже 991px или 768px) */
    .location-section__mobile-actions {
        display: flex;
    }
}

/* Дополнительные стили для красоты карточки */
.location-section__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.location-section__details {
    padding: 30px;
    flex-grow: 1;
    /* Позволяет блоку с текстом занимать место, толкая кнопки вниз */
}

.location-section__image-wrap {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.location-section__facade {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

/* Заголовок теперь над сеткой */
.location-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 40px;
    /* Отступ до начала фото и карты */
    color: var(--color-primary);
}

.location-section__grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    /* Фиксированная ширина левой части, гибкая карта */
    gap: 30px;
    align-items: stretch;
    /* Это заставляет карту и карточку быть одной высоты */
}

/* Левая карточка */
.location-section__card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.location-section__image-wrap {
    position: relative;
    height: 260px;
    /* Можно подстроить высоту фото здесь */
    overflow: hidden;
}

.location-section__facade {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Карта */
.location-section__map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.location-section__map-wrap {
    width: 100%;
    height: 100%;
}

/* Детали и отступы внутри карточки */
.location-section__details {
    padding: 30px;
    flex-grow: 1;
}

.location-section__detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.location-section__detail-icon {
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.location-section__detail-text strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.location-section__detail-text span {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.location-section__actions {
    padding: 0 30px 30px;
}

/* Адаптив для мобильных */
@media (max-width: 991px) {
    .location-section__grid {
        grid-template-columns: 1fr;
    }

    .location-section__map-container {
        height: 450px;
    }
}

/* Убеждаемся, что тег picture и изображение в нем ведут себя как фоновое видео */
picture.hero__bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

picture.hero__bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Растягивает фото на весь экран без искажений */
    object-position: center;
    /* Центрирует изображение */
}

/* На мобильных можно подправить позиционирование картинки, если нужно */
@media (max-width: 768px) {
    .hero {
        /* На мобильных часто высоту делают чуть меньше или по контенту */
        min-height: 600px;
    }

    picture.hero__bg-media img {
        object-position: center;
        /* Центрируем мобильное фото */
    }

    /* Затемнение для мобильных можно сделать чуть плотнее, если фото светлое */
    .hero__overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

.hero__subtitle {
    font-size: clamp(1.125rem, 1.5vw, 1.35rem);
    font-weight: 400;
    color: var(--color-light);
    
    /* Стили фона */
    background: rgba(0, 0, 0, 0.3); /* Темная подложка */
    backdrop-filter: blur(10px);    /* Эффект размытия стекла */
    -webkit-backdrop-filter: blur(10px);
    
    padding: 12px 20px;
    border-radius: 12px;            /* Скругленные углы */
    display: inline-block;          /* Чтобы фон был только под текстом */
    line-height: 1.4;
    margin-top: 1.5rem;
    max-width: 600px;
    
    /* Легкая тень для отделения от фона */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* На мобильных устройствах подправляем отступы */
@media (max-width: 768px) {
    .hero__subtitle {
        display: block; /* На мобильных пусть занимает всю доступную ширину */
        padding: 15px;
        font-size: 1.1rem;
    }
}

.hero__subtitle {
    /* Настройки шрифта */
    font-size: clamp(1.125rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-light);
    max-width: 600px;

    /* Отступ от заголовка */
    margin-top: 1.5rem;

    /* Эффект подложки (Glassmorphism) */
    background: rgba(0, 0, 0, 0.35);
    /* Чуть темнее для лучшей читаемости */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* ВЫРАВНИВАНИЕ: */
    display: inline-block;
    padding: 10px 25px 10px 20px;
    /* Отступ слева 20px */
    margin-left: -20px;
    /* Смещение влево на те же 20px */

    /* Дополнительно: чтобы на мобильных плашка не прилипала к краю экрана */
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hero__subtitle {
        margin-left: -10px;
        /* На мобильных лучше убрать смещение, чтобы не вылезти за экран */
        padding: 12px 15px;
        display: block;
        /* Растягиваем на всю ширину */
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {

    /* Разрешаем перенос текста только внутри промо-блока на мобильных */
    .promo-block .btn {
        white-space: normal;
        /* Разрешает перенос строк */
        line-height: 1.2;
        /* Уменьшает расстояние между строками */
        padding-top: 12px;
        /* Немного увеличиваем вертикальные отступы */
        padding-bottom: 12px;
        height: auto;
        /* Убеждаемся, что высота подстроится под две строки */
        font-size: 0.95rem;
        /* Можно чуть-чуть уменьшить шрифт для баланса */
    }

    /* Если вы хотите, чтобы перенос <br> работал ТОЛЬКО на мобильных */
    .promo-block .btn br {
        display: block;
    }
}

/* На десктопе скрываем принудительный перенос (если нужно, чтобы там была одна строка) */
@media (min-width: 481px) {
    .promo-block .btn br {
        display: none;
    }
}