/* ════════════════════════════════════════════════════════════════════════
   ПОЛНЫЙ STYLE.CSS (V3) - FIXED HERO + RESTORED GALLERY (CLEAN)
   ВЕРСИЯ: убраны дубли, исправлены скобки, performance-tweaks вынесены
   ════════════════════════════════════════════════════════════════════════ */
/* Local Inter (Cyrillic) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter/inter-v20-cyrillic-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter/inter-v20-cyrillic-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter/inter-v20-cyrillic-700.woff2") format("woff2");
}

:root {
    --primary-color: #DC2626;
    --secondary-color: #1F2937;
    --accent-color: #F59E0B;
    --text-dark: #111827;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --success-color: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; color: var(--secondary-color); }
h2 { font-size: 2rem; color: var(--secondary-color); }
h3 { font-size: 1.5rem; color: var(--text-dark); }

p { margin-bottom: 1rem; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 60px 0; }
.section-alt { background-color: var(--bg-light); }

/* ════════════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ════════════════════════════════════════════════════════════════════════ */

.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-schedule {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* DROPDOWN MENU */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    border: 1px solid #E5E7EB;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    color: #111827;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #F3F4F6;
    color: #DC2626;
    padding-left: 25px;
}

.dropdown-content strong {
    padding: 12px 20px;
    display: block;
    color: #DC2626;
    font-size: 0.85rem;
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #FEF2F2;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 16px;
}

.nav-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.phone {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
}

.header-address {
    font-size: 0.7rem;
    color: var(--text-light);
    text-align: right;
    line-height: 1.2;
}

/* HAMBURGER MENU */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-color);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--primary-color);
}

/* ════════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-telegram {
    background-color: #0088cc;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-telegram:hover { background-color: #0077b5; }

/* ════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    color: var(--white);
    padding: 100px 0 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 600px;
}

/* Класс для картинки в HTML (для оптимизации загрузки) */
.hero-bg-img {
    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(rgba(31, 41, 55, 0.5), rgba(31, 41, 55, 0.7));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: #E5E7EB;
    font-weight: 500;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hero-feature-icon {
    min-width: 28px;
    height: 28px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2px;
}

.hero-feature-text {
    font-size: 1.05rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-trust {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: #D1D5DB;
}
.hero-offer-badge{
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;
    border-radius: 999px;

    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FEF3C7;

    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;

    text-shadow: 0 1px 6px rgba(0,0,0,0.35);

    margin-left: auto;
    margin-right: auto;
}

/* Звездочка слева (CSS-only) */
.hero-offer-badge::before{
    content: "★"; /* Black Star (U+2605) [web:27] */
    margin-right: 10px;

    width: 26px;
    height: 26px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(220, 38, 38, 0.22);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #FDE68A;

    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}

@media (max-width: 768px){
    .hero-offer-badge{
        max-width: 360px;
        width: 100%;
        text-align: center;
        font-size: 0.95rem;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   TRAINER SECTION
   ════════════════════════════════════════════════════════════════════════ */

.trainer-highlight {
    background: linear-gradient(rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.85)),
                url('../images/bg-trainer.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 80px 0;
}

.trainer-highlight-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.trainer-highlight-photo {
    width: 100%;
    max-width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #6B7280, #374151);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.trainer-highlight-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-highlight-info h2 {
    color: var(--white);
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.trainer-highlight-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #FEF3C7;
    font-weight: 600;
}

.trainer-highlight-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.trainer-highlight-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.trainer-highlight-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
}

.trainer-highlight-feature-icon { font-size: 1.5rem; }

/* ════════════════════════════════════════════════════════════════════════
   DIAGNOSTIC BANNER
   ════════════════════════════════════════════════════════════════════════ */

.diagnostic-banner {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
    padding: 35px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.diagnostic-banner.hidden {
    opacity: 0;
    transform: translateY(-50px);
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
}

.diagnostic-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.diagnostic-banner-left {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    min-width: 300px;
}

.diagnostic-banner-icon {
    font-size: 4.5rem;
    animation: pulseBanner 2s infinite;
}
@keyframes pulseBanner {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.diagnostic-banner-text h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.diagnostic-banner-text p {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.diagnostic-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.diagnostic-banner-btn {
    background: linear-gradient(135deg, var(--primary-color), #B91C1C);
    color: var(--white);
    padding: 20px 45px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
    transition: all 0.3s;
}

.diagnostic-banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.5);
}

.price-badge {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 25px;
    margin-top: 10px;
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */

.footer {
    background: linear-gradient(rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.85)),
                url('../images/bg-footer.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 60px 0 30px;
}

/* ════════════════════════════════════════════════════════════════════════
   ГАЛЕРЕЯ И МОДАЛЬНЫЕ ОКНА (ВОССТАНОВЛЕНО!)
   ════════════════════════════════════════════════════════════════════════ */

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.95);
    z-index: 2000;
    display: none; /* Скрыта по умолчанию */
    overflow-y: auto;
    padding: 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay.active {
    display: block;
    opacity: 1;
}

.gallery-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

.gallery-overlay .container {
    margin-top: 40px;
    color: white;
}

.tabs-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tabs {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 12px;
    display: inline-flex;
}

.tab {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #D1D5DB;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Сетка фотографий */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}

.photo-card {
    background: #1F2937;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.photo-card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.photo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-card:hover .photo-card-image img {
    transform: scale(1.1);
}

.photo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
}

.photo-card:hover .photo-card-overlay {
    opacity: 1;
}

.photo-card-caption {
    padding: 20px;
}

.photo-card-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.photo-card-description {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin: 0;
}

/* Сетка видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

.video-card {
    background: #1F2937;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    padding: 20px;
}

.video-caption h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.video-caption p {
    color: #9CA3AF;
    margin: 0;
}

/* Внутреннее модальное окно (Zoom фото) */
.inner-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.inner-modal.active {
    display: flex;
}

.inner-modal-content {
    max-width: 90%;
    max-height: 90%;
}

.inner-modal-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.inner-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - DESKTOP & TABLET
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 968px) {
    .diagnostic-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .diagnostic-banner-left {
        flex-direction: column;
        min-width: auto;
    }
    .trainer-highlight-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .trainer-highlight-photo { margin: 0 auto; }
    .trainer-highlight-features { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE MENU - MAIN BREAKPOINT
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Show Hamburger */
    .nav-toggle { display: flex !important; }

    /* 1. Центрируем контейнер с кнопками */
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    /* 2. Растягиваем кнопки */
    .hero-cta .btn {
        width: 100%;
        max-width: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    /* 3. Центрируем trust */
    .hero-trust { text-align: center; }

    /* Mobile Menu Styles */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: var(--secondary-color) !important;
        flex-direction: column !important;
        padding: 80px 20px 30px !important;
        gap: 0 !important;
        transition: right 0.3s ease !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4) !important;
        z-index: 1000 !important;
        align-items: stretch !important;
        overflow-y: auto !important;
    }

    .nav-links.active { right: 0 !important; }

    .nav-links > li {
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
    }

    .nav-links > li > a {
        display: block !important;
        padding: 16px 16px !important;
        color: #fff !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        width: 100% !important;
        transition: all 0.2s !important;
    }

    .nav-links > li > a:hover {
        background: rgba(220, 38, 38, 0.15) !important;
        color: #FDE68A !important;
        padding-left: 20px !important;
    }

    /* Mobile Dropdown */
    .dropdown { position: relative !important; }
    .dropdown > a::after {
        content: '▼' !important;
        font-size: 0.7rem !important;
        margin-left: 10px !important;
        transition: transform 0.3s !important;
    }

    .dropdown .dropdown-content {
        position: static !important;
        display: none !important;
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
    }

    .dropdown .dropdown-content.show {
        max-height: 500px !important;
        display: block !important;
    }

    .dropdown .dropdown-content a {
        padding: 12px 16px 12px 40px !important;
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        background: transparent !important;
    }

    .dropdown .dropdown-content a:hover {
        background: rgba(220, 38, 38, 0.2) !important;
        color: #FDE68A !important;
        padding-left: 48px !important;
    }

    .dropdown .dropdown-content strong {
        display: block !important;
        padding: 10px 40px 8px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        font-size: 0.75rem !important;
        background: transparent !important;
        text-transform: uppercase !important;
    }

    .dropdown-divider {
        height: 1px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        margin: 5px 16px !important;
    }

    /* Hide hover effect on mobile */
    .dropdown:hover .dropdown-content { display: none !important; }

    /* Hide Header Info on mobile */
    .header-contacts { display: none !important; }

    /* Typography Adjustments */
    .logo { font-size: 1rem; }
    .logo-schedule { font-size: 0.55rem; }
    .phone { font-size: 0.85rem; }
    .header-address { font-size: 0.6rem; }

    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    h2 { font-size: 1.5rem; }

    /* Sections */
    .section { padding: 40px 0; }
    .hero { padding: 50px 0 60px; }

    /* Disable Fixed Background on Mobile */
    .hero, .trainer-highlight { background-attachment: scroll !important; }

    /* Floating Buttons (если есть в HTML/JS) */
    .floating-buttons { bottom: 20px; right: 20px; }
    .floating-btn { width: 50px; height: 50px; font-size: 1.5rem; }

    .btn-outline {
        width: 100%;
        max-width: 280px;
        display: block;
        margin: 20px auto 0 !important;
        text-align: center;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   SMALL SCREENS
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .logo { font-size: 0.85rem; }
    .logo-schedule { font-size: 0.5rem; }
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }

    .btn { padding: 12px 20px; font-size: 0.9rem; }

    .nav-links { width: 90% !important; }
    .nav-links > li > a {
        padding: 14px 12px !important;
        font-size: 0.95rem !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   PERFORMANCE TWEAKS (TOUCH DEVICES) — В КОНЦЕ ФАЙЛА
   ════════════════════════════════════════════════════════════════════════ */

@media (hover: none) and (pointer: coarse) {
    /* Убираем дорогой blur в зоне LCP */
    .hero-features {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(17, 24, 39, 0.70) !important;
    }

    /* Убираем Playfair из hero на тач-устройствах */
    .hero h1, .hero h2, .hero h3 {
        font-family: 'Inter', sans-serif !important;
    }

    /* Упрощаем overlay */
    .hero-overlay {
        background: rgba(31, 41, 55, 0.82) !important;
    }

    /* Точечно глушим inline blur в расписании/форме */
    #schedule [style*="backdrop-filter"],
    #form [style*="backdrop-filter"] {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
}

/* Map Button */
.map-button-container {
    margin-top: 20px;
    text-align: left;
}
.map-button-container{
  text-align: center;
  margin-top: 20px;
}
/* =========================
   PRIDE (Наша гордость)
   ========================= */

.pride-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pride-title {
  margin: 0 0 1rem 0;
}

.pride-subtitle {
  margin: 0 auto;
  max-width: 820px;
  color: var(--text-light);
  line-height: 1.6;
}

/* 3 в ряд (ПК), 2 в ряд (планшет), 1 (моб) */
.pride-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
}

.pride-card {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.pride-photo {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.pride-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.pride-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center; /* центрируем весь текст внутри карточки */
}

.pride-name {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text-dark);
}

.pride-note {
  margin: 0;
  color: var(--text-light);
  line-height: 1.55;
  font-size: 0.95rem;
}

.pride-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pride-stat {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.pride-stat strong {
  color: var(--text-dark);
  font-weight: 800;
}

.pride-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  background: rgba(31, 41, 55, 0.75);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.pride-badge--right { left: auto; right: 12px; }

.pride-badge--red {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  border: 1px solid rgba(255,255,255,0.18);
}
.pride-badge--green {
  background: linear-gradient(135deg, #059669, #047857);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Заглушка */
.pride-card--placeholder {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 1px solid rgba(220,38,38,0.18);
}

.pride-photo--placeholder {
  height: 240px;
  display: grid;
  place-items: center;
  background: rgba(31, 41, 55, 0.15);
  cursor: default;
}

.pride-placeholder-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
}

.pride-cta {
  margin-top: 8px;
  width: 100%;
}

/* Адаптив */
@media (max-width: 1024px) {
  .pride-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  .pride-photo img,
  .pride-photo--placeholder { height: 220px; }
}

@media (max-width: 768px) {
  .pride-grid { grid-template-columns: 1fr; }
  .pride-photo img,
  .pride-photo--placeholder { height: 210px; }
}

@media (max-width: 768px) {
  .pride-grid {
    margin-bottom: 30px;
  }
}

/* WHY US (MINIMAL, NO BACKGROUND OVERRIDES) */
#why-us .whyus-header{
  text-align: center;
  margin-bottom: 2.2rem;
}

#why-us .whyus-subtitle{
  margin: 0 auto;
  max-width: 820px;
  color: var(--text-light);
  line-height: 1.6;
}

/* only layout */
#why-us .whyus-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
}

/* only card UI */
#why-us .whyus-card{
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 18px 18px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#why-us .whyus-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.10);
}

#why-us .whyus-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 12px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.30);
}

#why-us .whyus-card-title{
  margin: 0 0 8px 0;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text-dark);
}

#why-us .whyus-card-text{
  margin: 0;
  color: var(--text-light);
  line-height: 1.55;
  font-size: 0.95rem;
}

@media (max-width: 1024px){
  #why-us .whyus-grid{
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 768px){
  #why-us .whyus-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   PRICE WHY (Accordion)
   ========================= */

.price-why{
  max-width: 700px;
  margin: 14px auto 0;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.price-why__summary{
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  color: var(--secondary-color);
  background: #fff;
  user-select: none;
  outline: none;
}

/* убираем стандартный маркер и рисуем свой */
.price-why__summary::-webkit-details-marker{ display:none; }
.price-why__summary::marker{ content: ""; }

.price-why__summary::after{
  content: "v";
  float: right;
  transition: transform .2s ease;
  opacity: .8;
}

.price-why[open] .price-why__summary::after{
  transform: rotate(180deg);
}

.price-why__body{
  padding: 0 18px 18px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* текстовые отступы внутри */
.price-why__body p{ margin: 12px 0; }
.price-why__body ol{ margin: 12px 0 0; padding-left: 18px; }
.price-why__body ul{ margin: 10px 0 0; padding-left: 18px; }
.price-why__body li{ margin: 8px 0; }

/* опционально: чуть разгрузить рендер длинного текста ниже фолда */
@supports (content-visibility: auto) {
  .price-why__body{
    content-visibility: auto;
    contain-intrinsic-size: 0 420px;
  }
}

/* Mobile padding fix for price justification */
@media (max-width: 480px){
  .price-why{
    margin-left: 12px;
    margin-right: 12px;
  }

  .price-why__summary{
    padding: 16px 14px;
    font-size: 1rem;
  }

  .price-why__body{
    padding: 0 14px 16px;
    font-size: 0.98rem;
  }
}

/* Fallback: если забыли классы у summary/body */
.price-why > summary{
  padding: 16px 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.price-why > summary::-webkit-details-marker{ display:none; }

.price-why > :not(summary){
  padding: 0 14px 16px;
}

/* ════════════════════════════════════════════════════════════════════════
   DIAGNOSTIC BANNER — FULL WIDTH ON DESKTOP
════════════════════════════════════════════════════════════════════════ */
.diagnostic-banner.full-width {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-top: 4px solid var(--accent-color);
  border-bottom: 4px solid var(--accent-color);
  padding: 35px 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.diagnostic-banner.full-width .diagnostic-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.diagnostic-banner.full-width .diagnostic-banner-left {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  min-width: 300px;
}

.diagnostic-banner.full-width .diagnostic-banner-icon {
  font-size: 4.5rem;
  animation: pulseBanner 2s infinite;
}

@keyframes pulseBanner {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.diagnostic-banner.full-width .diagnostic-banner-text h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.diagnostic-banner.full-width .diagnostic-banner-text p {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
}

.diagnostic-banner.full-width .diagnostic-banner-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.diagnostic-banner.full-width .diagnostic-banner-btn {
  background: linear-gradient(135deg, var(--primary-color), #B91C1C);
  color: var(--white);
  padding: 20px 45px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
  white-space: nowrap;
  transition: all 0.3s;
}

.diagnostic-banner.full-width .diagnostic-banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.5);
}

.diagnostic-banner.full-width .price-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 20px;
  border-radius: 25px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .diagnostic-banner .diagnostic-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .diagnostic-banner .diagnostic-banner-left {
    flex-direction: column;
    text-align: center;
    min-width: auto;
  }
  
  .diagnostic-banner .diagnostic-banner-text h3 {
    font-size: 1.3rem;
  }
  
  .diagnostic-banner .diagnostic-banner-text p {
    font-size: 0.95rem;
  }
  
  .diagnostic-banner .diagnostic-banner-right {
    align-items: center;
    width: 100%;
  }
  
  .diagnostic-banner .diagnostic-banner-btn {
    width: 100%;
    text-align: center;
    padding: 18px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .diagnostic-banner {
    padding: 25px 0;
  }
  
  .diagnostic-banner .diagnostic-banner-icon {
    font-size: 3rem;
  }
}