/* ==========================================
   1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ НАСТРОЙКИ
========================================== */
:root {
    --navy-blue: #1B2B48;
    --accent-yellow: #F4A81E;
    --accent-blue: #129AE2;
    --bg-light-blue: #EAF0F6;
    --bg-beige: #F8F6EF;
    --bg-white: #FFFFFF;
    --border-red: #C12A2F;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light-gray: #A0AAB8;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Жесткая блокировка горизонтального скролла */
    width: 100%;
    position: relative;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    scrollbar-width: thin; scrollbar-color: var(--navy-blue) var(--bg-beige);
}

body {
    font-family: 'Montserrat', sans-serif; color: var(--text-dark);
    line-height: 1.5; background-color: var(--bg-white);
}

body.lock-scroll { overflow: hidden; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-beige); }
::-webkit-scrollbar-thumb { background: var(--navy-blue); border-radius: 10px; transition: background 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* ==========================================
   2. УТИЛИТЫ И КНОПКИ
========================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 5; }
.main-content { position: relative; overflow-x: hidden; }
.section-beige { background-color: var(--bg-beige); position: relative; }
.section-light-blue { background-color: var(--bg-light-blue); position: relative; }
.section-white { background-color: var(--bg-white); position: relative; }
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 38px; font-weight: 700; color: var(--text-dark); margin-bottom: 60px; text-transform: uppercase; position: relative; z-index: 2; }

.btn {
    background-color: var(--accent-blue); color: white; border: none; padding: 18px 45px;
    font-size: 22px; font-weight: 700; cursor: pointer; border-radius: 12px; letter-spacing: 1px;
    text-transform: uppercase; transition: background-color 0.3s;
}
.btn:hover { background-color: #1080b8; }
.btn-outline { background: transparent; color: var(--navy-blue); border: 2px solid var(--navy-blue); }
.btn-outline:hover { background: var(--navy-blue); color: var(--bg-white); }
.btn-sm { padding: 12px 20px; font-size: 13px; }
.btn-full { width: 100%; margin-top: 10px; }
.mt-30 { margin-top: 30px; }
.mt-auto { margin-top: auto; }
.hidden-data, .hidden-honeypot { display: none !important; }

/* ==========================================
   3. ШАПКА (HEADER) И НАВИГАЦИЯ
========================================== */
.header {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0) 150%);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
    transition: background 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.80); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }

.logo { position: relative; z-index: 40; display: flex; align-items: center; }
.logo-os { height: 105px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08)); transition: transform 0.3s ease; }
.logo-secondary { height: 72px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08)); transition: transform 0.3s ease; left: -10px; position: relative; }

.nav { display: flex; }
.nav-content { display: flex; gap: 35px; align-items: center; }
.nav a {
    text-decoration: none; color: var(--navy-blue); font-weight: 700; font-size: 18px;
    letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s ease; padding: 10px 0; margin: 0;
}
.nav a:hover { color: var(--accent-blue); }
.nav-divider { width: 2px; height: 34px; background: linear-gradient(to bottom, rgba(27, 43, 72, 0), rgba(27, 43, 72, 0.3), rgba(27, 43, 72, 0)); margin: 0 10px; }
.nav-phone { font-weight: 700 !important; white-space: nowrap; letter-spacing: 0.5px; }

.burger-btn {
    display: none; border: none; background: transparent; width: 32px; height: 24px;
    position: relative; z-index: 1000; cursor: pointer;
}
.burger-btn span {
    position: absolute; left: 0; width: 100%; height: 2px;
    background-color: var(--navy-blue);
    /* Добавили transition для opacity и top */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, top 0.4s ease;
    border-radius: 2px;
}
.burger-btn span:nth-child(1) { top: 4px; }  /* Верхняя */
.burger-btn span:nth-child(2) { top: 12px; } /* Средняя */
.burger-btn span:nth-child(3) { top: 20px; } /* Нижняя */
.burger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); } /* Средняя исчезает */
.burger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* ==========================================
   4. ГЛАВНЫЙ ЭКРАН (HERO)
========================================== */
.hero { padding: 220px 0 160px; position: relative; display: flex; align-items: center; min-height: 80vh; }
.hero::before {
    content: ''; position: absolute; left: -15%; top: 15%; width: 800px; height: 800px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg stroke='%231B2B48' stroke-width='0.6' fill='none' opacity='0.08'%3E%3Cpath d='M10,0 Q30,100 10,200 M40,0 Q60,100 40,200 M70,0 Q90,100 70,200 M100,0 Q120,100 100,200 M130,0 Q150,100 130,200 M160,0 Q180,100 160,200 M190,0 Q210,100 190,200'/%3E%3Cpath d='M0,10 Q100,30 200,10 M0,40 Q100,60 200,40 M0,70 Q100,90 200,70 M0,100 Q100,120 200,100 M0,130 Q100,150 200,130 M0,160 Q100,180 200,160 M0,190 Q100,210 200,190'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain; z-index: 1; pointer-events: none;
}
.hero-inner { display: flex; justify-content: flex-start; align-items: center; width: 100%; z-index: 2; }
.hero-content {
    max-width: 65%; /* Даем тексту больше места */
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(42px, 5.5vw, 76px); /* Резиновый шрифт: подстраивается под экран */
    font-weight: 700;
    color: #0e2b58;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px; /* Чуть уменьшили расстояние между буквами */
    word-break: keep-all; /* Запрещаем рубить слова пополам */
}
.hero h1 span { color: var(--accent-yellow); }
.hero p { font-size: 28px; font-weight: 500; margin-bottom: 40px; color: var(--text-dark); }
.hero-image-wrapper {
    position: absolute; right: 0; top: 0; width: 65%; height: 100%; z-index: 1;
    mask-image: linear-gradient(to right, transparent 0%, black 55%, black 150%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 55%, black 150%);
}
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.05); }

/* ==========================================
   5. О НАС (ABOUT)
========================================== */
.about { padding-top: 50px; }
.about::after {
    content: ''; position: absolute; right: -200px; top: 85%; transform: translateY(-50%); width: 400px; height: 400px;
    background-image: url('/media/logos/voll.svg'); background-repeat: no-repeat; background-size: contain; z-index: 0; pointer-events: none;
}
.section-top-logo { text-align: center; margin-bottom: -200px; position: relative; top: -220px; z-index: 2; }
.section-top-logo img { max-height: 400px; }
.about-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 80px; position: relative; z-index: 2; }
.about-text { flex: 1; padding-left: 20px; border-left: 5px solid var(--navy-blue); }
.about-text p { margin-bottom: 15px; font-size: 15px; font-weight: 500; color: var(--text-dark); line-height: 1.6; }
.about-features { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px 30px; }
.feature { text-align: center; }
.feature svg { margin-bottom: 15px; height: 50px; width: 50px; }
.feature p { font-size: 14px; font-weight: 800; color: var(--navy-blue); line-height: 1.3; }

/* ==========================================
   6. ТРЕНЕРЫ (COACHES)
========================================== */
.coaches { padding-top: 100px; }
.coaches::before {
    content: ''; position: absolute; left: -250px; bottom: -100px; width: 700px; height: 700px;
    background-image: url('/media/logos/voll1.svg'); background-repeat: no-repeat; background-size: contain; z-index: 1; pointer-events: none;
}
.coaches::after {
    content: ''; position: absolute; right: 5%; top: 5%; width: 250px; height: 250px;
    background-image: url('/media/logos/voll2.svg'); background-size: contain; background-repeat: no-repeat; z-index: 1; pointer-events: none;
}
.coaches-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; justify-items: center; position: relative; z-index: 2; }
.coach-card {
    background: linear-gradient(100deg, var(--navy-blue) 0% 60.3%,var(--bg-white) 32% 66.6%, var(--border-red) 66.6% 110%);
    padding: 12px; border-radius: 10px; width: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex;
}
.coach-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 15px 35px rgba(27, 43, 72, 0.15); }
.coach-card-inner { background-color: var(--bg-white); padding: 12px; display: flex; flex-direction: column; height: 100%; width: 100%; border-radius: 4px; }
.coach-card-inner img { width: 100%; height: 240px; object-fit: cover; margin-bottom: 15px; border-radius: 6px; }
.coach-info { flex-grow: 1; text-align: left; padding: 0 5px; display: flex; flex-direction: column; margin-bottom: 20px; }
.coach-info h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.coach-position { font-size: 13px; font-weight: 600; color: var(--accent-blue); line-height: 1.4; margin-bottom: 15px; }
.coach-card-meta { margin-top: 15px; font-size: 13px; color: var(--text-dark); line-height: 1.5; }
.coach-card-meta b { color: var(--navy-blue); font-weight: 700; }

/* ==========================================
   7. НОВОСТИ (NEWS)
========================================== */
.news-slider-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.news-slider { width: 100%; overflow: hidden; }
.news-track { display: flex; gap: 35px; transition: transform 0.4s ease-in-out; padding: 10px; }
.news-card { position: relative; overflow: hidden; min-width: calc(33.333% - 20px); background: white; border-radius: 15px; }
.news-card.clickable { cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card.clickable:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(27, 43, 72, 0.1); }
.news-card img { width: 100%; height: 220px; object-fit: cover; border-top-right-radius: 15px; border-top-left-radius: 15px; }
.news-info { padding: 20px; }
.news-info .date { font-size: 12px; font-weight: 600; color: var(--text-gray); display: block; margin-bottom: 10px; }
.news-info h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; color: var(--navy-blue); line-height: 1.4; text-transform: uppercase; }
.news-info p { font-size: 13px; color: var(--text-gray); line-height: 1.5; font-weight: 500; transition: filter 0.3s ease, opacity 0.3s ease; }
.card-btn {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; z-index: 10;
    background-color: var(--text-dark); color: var(--bg-white); border: none; padding: 10px 20px; border-radius: 10px; font-weight: 500; text-transform: uppercase;
}
.news-card:hover .card-btn { transform: translateX(-50%) translateY(0); opacity: 1; }
.news-card:hover .news-info p { filter: blur(3px); opacity: 0.6; }
.news-card:hover .news-info .date, .news-card:hover .news-info .news-title { filter: none; opacity: 1; }

.slider-btn {
    background: white; border: 1px solid #EAF0F6; width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; color: var(--navy-blue); box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s;
}
.slider-btn:hover { background-color: var(--navy-blue); color: white; }
.slider-dots { text-align: center; margin-top: 40px; }
.dot { display: inline-block; width: 8px; height: 8px; background-color: #D1D1D1; border-radius: 50%; margin: 0 5px; cursor: pointer; transition: background-color 0.3s; }
.dot.active { background-color: var(--navy-blue); }

/* ==========================================
   8. ПАРТНЕРЫ (PARTNERS)
========================================== */
.partners {
    background-color: var(--bg-white);
    /* Новая диагональная волейбольная сетка (ромбы), линии толще и ярче */
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D'60'%20height%3D'60'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200%20L60%2060%20M60%200%20L0%2060'%20stroke%3D'%231B2B48'%20stroke-width%3D'1.5'%20opacity%3D'0.15'%2F%3E%3C%2Fsvg%3E");
    background-repeat: repeat;
    background-position: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; position: relative; z-index: 5; padding: 0 20px; }
.partner { display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform 0.3s ease; }
.partner:hover { transform: translateY(-8px); }
.partner img { height: 110px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 15px; }
.partner-name { color: var(--navy-blue); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================
   9. ПОДВАЛ (FOOTER)
========================================== */
.footer { background-color: var(--navy-blue); color: white; padding: 70px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-logo-os { max-height: 180px; object-fit: contain; }
.footer-logo-secondary { max-height: 120px; object-fit: contain; position: relative; left: -40px; top: 10px; }
.footer-contact h4, .footer-info h4 { margin-bottom: 25px; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.footer-contact p, .footer-info a, .footer-links-col a { color: var(--text-light-gray); font-size: 14px; font-weight: 500; text-decoration: none; display: block; margin-bottom: 15px; transition: color 0.3s; }
.footer-info a:hover, .footer-links-col a:hover { color: white; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links-col { display: flex; flex-direction: column; }
.socials { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--text-light-gray); border-radius: 50%; font-size: 14px; color: var(--text-light-gray); cursor: pointer; transition: all 0.3s; }
.social-icon:hover { border-color: white; color: white; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 25px; font-size: 12px; color: var(--text-light-gray); }

/* ==========================================
   10. МОДАЛЬНЫЕ ОКНА И ФОРМЫ
========================================== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal.active { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(27, 43, 72, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-content { position: relative; background: var(--bg-white); width: 90%; max-width: 800px; max-height: 90vh; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); overflow-y: auto; z-index: 1001; transform: translateY(20px) scale(0.95); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); padding: 40px; }
.modal.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: var(--bg-light-blue); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; color: var(--navy-blue); transition: background 0.3s, color 0.3s; z-index: 10; }
.modal-close:hover { background: var(--border-red); color: white; }
.modal-close svg { width: 24px; height: 24px; }

/* Окно Новостей */
.modal-body .date { display: block; color: var(--text-gray); font-weight: 600; margin-bottom: 10px; font-size: 14px; }
.modal-body h2 { color: var(--navy-blue); font-size: 28px; font-weight: 800; margin-bottom: 25px; text-transform: uppercase; }
.modal-gallery { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 25px; scroll-snap-type: x mandatory; }
.modal-gallery img { height: 300px; width: auto; border-radius: 12px; object-fit: cover; scroll-snap-align: start; flex-shrink: 0; }
.modal-short-text { color: var(--navy-blue); font-size: 18px; font-weight: 600; line-height: 1.6; margin-bottom: 20px; }
.modal-separator { border: none; height: 1px; background: linear-gradient(to right, rgba(27, 43, 72, 0.05), rgba(27, 43, 72, 0.2), rgba(27, 43, 72, 0.05)); margin: 25px 0; display: none; }
.modal-full-text-content { color: var(--text-dark); line-height: 1.7; font-size: 16px; font-weight: 500; }

/* Окно Заявки */
.apply-modal-content { max-width: 500px; }
.apply-modal-content h2 { text-align: center; margin-bottom: 10px; }
.apply-desc { text-align: center; color: var(--text-gray); margin-bottom: 25px; font-size: 15px; }
.apply-form .form-group { margin-bottom: 20px; }
.apply-form input, .apply-form select { width: 100%; padding: 16px 20px; border: 1px solid rgba(27, 43, 72, 0.1); border-radius: 10px; font-family: 'Montserrat', sans-serif; font-size: 16px; color: var(--text-dark); background-color: #F8FAFC; transition: border-color 0.3s, box-shadow 0.3s; }
.apply-form input:focus, .apply-form select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(18, 154, 226, 0.1); }
.apply-form select { cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231B2B48%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.3c0%204.8%201.8%209%205.4%2012.7l128%20128c3.5%203.7%207.8%205.4%2012.8%205.4s9.3-1.7%2012.8-5.4l128-128c3.5-3.7%205.4-7.9%205.4-12.7s-1.8-9-5.4-12.7z%22%2F%3E%3C%2Fsvg%3E'); background-repeat: no-repeat; background-position: right 20px top 50%; background-size: 12px auto; }
.apply-form select:hover { border-color: rgba(27, 43, 72, 0.2); background-color: white; }
.apply-form select option[value=""][disabled] { color: var(--text-gray); font-weight: 500; }
.apply-form select option { color: var(--text-dark); font-weight: 600; padding: 10px; background-color: white; }
.form-status { margin-top: 15px; text-align: center; font-weight: 600; font-size: 14px; }
.form-status.success { color: #10B981; }
.form-status.error { color: var(--border-red); }
.privacy-policy-consent { font-size: 12px; color: var(--text-gray); text-align: center; margin-bottom: 15px; line-height: 1.4; }
.privacy-policy-consent a { color: var(--accent-blue); text-decoration: none; }

/* Окно Успеха */
.success-modal-content { max-width: 420px; text-align: center; padding: 50px 40px; border-radius: 24px; }
.success-modal-content h2 { color: var(--navy-blue); font-size: 24px; font-weight: 800; margin-bottom: 15px; }
.success-animated-icon { width: 80px; height: 80px; border-radius: 50%; display: block; stroke-width: 3; stroke: #34C759; margin: 0 auto 25px; box-shadow: inset 0px 0px 0px #34C759; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; }
.success-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 3; stroke: #34C759; fill: none; animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.success-check { stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px rgba(52, 199, 89, 0.1); } }

/* Окно Контактов */
.contacts-modal-content { max-width: 900px; padding: 0; overflow: hidden; }
.contacts-body { display: flex; flex-direction: row; padding: 0; }
.contacts-info-side { flex: 1; padding: 50px 40px; background: var(--bg-white); }
.contacts-info-side h2 { font-size: 28px; color: var(--navy-blue); font-weight: 800; margin-bottom: 35px; }
.contact-block { margin-bottom: 25px; }
.contact-block h4 { font-size: 13px; text-transform: uppercase; color: var(--text-light-gray); margin-bottom: 8px; font-weight: 700; }
.contact-block p, .contact-block a { font-size: 16px; color: var(--text-dark); font-weight: 600; text-decoration: none; margin-bottom: 6px; display: block; }
.contacts-map-side { flex: 1; min-height: 400px; background: #EAF0F6; position: relative; }
.contacts-map-side iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; filter: grayscale(0.2) contrast(1.1); }

/* Окно Тренера */
.coach-modal-content {
    max-width: 1000px;
    padding: 0;
    border-radius: 24px;
    overflow-y: auto; /* Включаем вертикальный скролл */
    overflow-x: hidden; /* Прячем горизонтальный скролл на всякий случай */
    max-height: 90vh; /* Гарантируем, что окно не вылезет за пределы экрана */
}
.coach-modal-body { display: grid; grid-template-columns: 1fr 1.5fr; padding: 0; }
.coach-modal-photo-side { background: #F1F5F9; }
.coach-modal-photo-side img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.coach-modal-info-side { padding: 60px 50px; background: white; display: flex; flex-direction: column; }
.coach-modal-info-side h2 { font-size: 32px; color: var(--navy-blue); font-weight: 800; margin-bottom: 10px; }
.coach-modal-position-text { font-size: 16px; color: var(--accent-blue); font-weight: 600; margin-bottom: 25px; }
.coach-modal-meta-list p { font-size: 15px; color: var(--text-dark); margin-bottom: 8px; font-weight: 500; }
.coach-modal-divider { height: 1px; background: rgba(27, 43, 72, 0.1); margin: 30px 0; }
.coach-modal-full-desc h4 { font-size: 13px; text-transform: uppercase; color: var(--text-light-gray); letter-spacing: 1px; margin-bottom: 15px; }
.coach-modal-full-desc div { font-size: 15px; color: var(--text-gray); line-height: 1.7; font-weight: 500; }

/* Страница Политики */
.legal-page { padding: 180px 0 100px; min-height: 80vh; background-color: var(--bg-beige); }
.legal-content { max-width: 900px; margin: 0 auto; background: var(--bg-white); padding: 60px 80px; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.legal-content h1 { font-size: 36px; color: var(--navy-blue); margin-bottom: 40px; text-transform: uppercase; font-weight: 800; }


/* ==========================================
   11. АДАПТИВНОСТЬ (ПЛАНШЕТЫ И ТЕЛЕФОНЫ)
========================================== */

/* Точка перелома для Планшетов (992px) */
@media (max-width: 992px) {
    /* 1. ИСПРАВЛЕНИЕ ШАПКИ И БУРГЕРА */
    .header-inner { justify-content: space-between; min-height: 80px; }
    .logo { display: flex; align-items: center; }
    .logo-os { height: 65px; }
    .logo-secondary { height: 45px; left: -5px; }

    .burger-btn {
        display: block;
        position: relative; /* Возвращаем бургер в поток, чтобы он не улетал */
        z-index: 1000;
    }

    .nav {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
        z-index: 998; display: flex; justify-content: center; align-items: center;
    }
    .nav.active { opacity: 1; visibility: visible; }
    .nav-content { flex-direction: column; align-items: center; transform: translateY(20px); transition: transform 0.4s ease; }
    .nav.active .nav-content { transform: translateY(0); }
    .nav a { font-size: 26px; margin: 20px 0; }
    .nav-divider { width: 50px; height: 2px; background: rgba(27, 43, 72, 0.2); margin: 15px 0; }
    .nav.active .nav-divider { opacity: 0; animation: fadeInDivider 0.4s ease forwards 0.3s; }

    /* 2. ИСПРАВЛЕНИЕ ГЛАВНОГО ЭКРАНА (Картинка теперь красивый фон!) */
    .hero {
        padding: 150px 0 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: auto;
    }
    .hero-inner { flex-direction: column; }
    .hero-content { max-width: 100%; margin-bottom: 20px; z-index: 2; position: relative; }
    .hero h1 { font-size: 46px; letter-spacing: 2px; }
    .hero p { font-size: 18px; }

    .hero-image-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 95%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 95%);
        opacity: 0.35;
        border-radius: 0;
    }

    /* 3. ВОЗВРАЩАЕМ ФОНОВЫЕ СВГ-КАРТИНКИ (Щит и мячи) */
    .about::after, .coaches::before, .coaches::after {
        display: block;
    }
    .about::after {
        width: 300px; height: 300px; right: -150px; top: 85%;
    }
    .coaches::before {
        width: 400px; height: 400px; left: -150px; bottom: -50px;
    }
    .coaches::after {
        width: 150px; height: 150px; right: -20px; top: 0;
    }
    .section-top-logo { top: 0; margin-bottom: 30px; }
    .section-top-logo img { max-height: 180px; }

    .about-content { flex-direction: column; gap: 40px; align-items: center; }
    .about-text { text-align: left; }
    .about-features { width: 100%; }

    .coaches-grid { grid-template-columns: repeat(2, 1fr); }
    .news-card { min-width: calc(50% - 15px); }

    /* 4. ИСПРАВЛЕНИЕ МОДАЛОК */
    .coach-modal-body { grid-template-columns: 1fr; }
    .coach-modal-photo-side { height: auto; }
    .coach-modal-photo-side img { height: 300px; object-position: center top; }
    .coach-modal-info-side { padding: 35px 25px; }
    .coach-modal-info-side h2 { font-size: 26px; margin-bottom: 5px; }

    .contacts-body { flex-direction: column; }
    .contacts-map-side { min-height: 350px; }
}

/* Точка перелома только для телефонов (768px) */
@media (max-width: 768px) {
    .hero::before {width: 700px; height: 700px;}
    /* Уменьшаем фоновые картинки для телефонов */
    .about::after {
        width: 250px; height: 250px; right: -100px;
    }
    .coaches::before {
        width: 350px; height: 350px; left: -100px; bottom: 0; top: 1055px;
    }
    .coaches::after {
        width: 150px; height: 150px; right: -20px; top: 30px;
    }
    .header-inner { min-height: 80px; } /* Чуть увеличили высоту шапки для большого лого */

    /* Делаем логотип "OS" больше в мобильной версии */
    .logo-os {
        height: 80px; /* Увеличили высоту с 50px */
        width: auto;
    }
    .logo-secondary {
        height: 55px; /* Увеличили высоту с 35px */
        margin-left: 5px;
    }

    /* Фиксируем бургер-меню справа */
    .burger-btn {
        display: block;
        position: relative;
        z-index: 1000;
        margin-left: auto; /* Прижимаем вправо */
    }

    /* Текст больше не ломает экран в ширину */
    .hero h1 {
        font-size: 44px;
        letter-spacing: 1px;
        word-break: normal;
        hyphens: none;
    }
    .hero p { font-size: 20px; margin-bottom: 30px; }
    .btn { padding: 25px 20px; font-size: 16px; width: 85%; }

    section { padding: 50px 0; }
    .section-title { font-size: 30px; margin-bottom: 30px; }
    .section-top-logo img { max-height: 300px; }
    /* Возвращаем боковую линию для текста на мобильных */
    .about-text {
        border-left: 4px solid var(--navy-blue);
        padding-left: 15px;
        text-align: left;
    }

    /* Делаем компактную сетку 2x2 для иконок под кнопкой */
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 10px;
    }

    /* Немного уменьшаем иконки и текст, чтобы они красиво влезли в 2 колонки */
    .feature svg {
        height: 42px;
        width: 42px;
        margin-bottom: 8px;
    }
    .feature p {
        font-size: 15px;
        line-height: 1.3;
        font-weight: 500;
    }

    /* Мобильный свайп-слайдер ТОЛЬКО для новостей */
    .news-track {
        display: flex; flex-direction: row; flex-wrap: nowrap;
        overflow-x: auto; overflow-y: hidden;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -20px; padding: 10px 20px 40px 20px; gap: 20px;
    }
    .news-track::-webkit-scrollbar { display: none; }
    .news-card { flex: 0 0 85%; min-width: unset; scroll-snap-align: center; max-width: none; }

    /* Тренеры: Классическая сетка (2 карточки в ширину) */
    .coaches-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; /* Делаем отступ между карточками чуть меньше */
        margin: 0;
        padding: 0;
    }

    .coach-card {
        width: 100%;
        padding: 6px;
        border-radius: 8px;
    }
    .coach-card-inner {
        padding: 8px;
    }

    /* Уменьшаем пропорции фото и шрифтов, чтобы они поместились в узкую карточку */
    .coach-card-inner img { height: 300px; margin-bottom: 10px; border-radius: 4px; }
    .coach-info h3 { font-size: 14px; margin-bottom: 4px; }
    .coach-position { font-size: 13px; margin-bottom: 10px; }
    .coach-card-meta { font-size: 15px; line-height: 1.3; }
    .btn-sm { padding: 8px 4px; font-size: 11px; letter-spacing: 0; width: 100%; text-align: center; }

    .news-card { display: flex; flex-direction: column;  }
    .news-info { flex-grow: 1; padding-bottom: 15px; }
    .card-btn {
        position: relative; bottom: 0; left: 0; transform: none; opacity: 1;
        width: calc(100% - 40px); margin: 0 20px 20px 20px; background: transparent;
        color: var(--navy-blue); border: 2px solid var(--navy-blue); padding: 12px 20px;
        font-size: 13px; font-weight: 700; border-radius: 10px;
    }
    .news-card:active .card-btn { background: var(--navy-blue); color: var(--bg-white); }
    .news-card:hover .news-info p { filter: none; opacity: 1; }
    .news-slider-wrapper { display: block; }
    .slider-btn, .slider-dots { display: none; }

    .coach-modal-photo-side img { height: auto; }
    .coach-modal-info-side { padding: 25px 20px; }
    .coach-modal-info-side h2 { font-size: 22px; }
    .coach-modal-full-desc div { font-size: 14px; line-height: 1.6; }

    .partners {
        padding: 60px 0;
        background-size: 80px 80px;
    }
    .partners-logos { flex-direction: column; gap: 30px; }

    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .footer-nav { align-items: center; }
    .footer-logo-secondary { left: 1px;}

    .legal-page { padding: 130px 0 60px; }
    .legal-content { padding: 40px 20px; border-radius: 16px; }
    .legal-content h1 { font-size: 24px; }

    .modal-content { padding: 30px 20px; width: 95%; }
    .modal-body h2 { font-size: 22px; }
    .modal-gallery img { height: 200px; }
}