:root {
    --green: #83bb26;
    --black: #000;
    --white: #fff;
    --gray: #f5f5f5;
    --gray-dark: #333;
    --font: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--black);
    line-height: 1.5;
    background: #f8f9fa;
    overflow-x: hidden;
    font-size: 17px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.green { color: var(--green); }
.green-link { color: var(--green); text-decoration: underline; }
.green-link:hover { text-decoration: none; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -3px 17px black;
}

@media  (min-width: 768px) {
    padding: 20px 0;
}

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

.bvi-open {
    position: relative;
    z-index: 1001;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 15px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 55px;
}

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

.nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
    transition: color 0.3s;
}

.nav__link:hover {
    color: var(--green);
}

.nav__link--hidden {
    display: none;
}

.header__contacts {
    text-align: right;
    line-height: 1.3;
    flex-shrink: 0;
}

.header__contacts .phone {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
}

.header__contacts .phone .green {
    font-weight: 600;
}

.header__contacts .address {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--black);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    padding-top: 120px;
    overflow: visible;
    background: var(--white);
}

@media (max-width: 992px) {
    .hero {
        overflow-x: hidden;
    }
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/header_1.png') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero__decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.pattern-left {
    position: absolute;
    top: 515px;
    left: -410px;
    width: 813px;
    opacity: 1;
    transition: transform 0.3s ease-out;
    z-index: 15;
    pointer-events: none;
}

.dumbbell-left {
    position: absolute;
    top: 150px;
    left: 0;
    width: 250px;
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.dumbbell-right {
    position: absolute;
    top: 580px;
    right: 150px;
    width: 200px;
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
    transition: transform 0.3s ease-out;
}

.ball-right {
    position: absolute;
    top: 45%;
    right: 8%;
    width: 180px;
    transform: translateY(-50%);
    opacity: 0.9;
    animation: floatBall 3s ease-in-out infinite;
}

@keyframes floatBall {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(-60%);
    }
}

.hero__container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 40px;
}

.hero__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    z-index: 20;
}

.hero__title .green {
    font-size: 54px;
    letter-spacing: 2px;
}

.hero__subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #555;
    margin-bottom: 60px;
    position: relative;
    z-index: 20;
}

.hero__features {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: 15px;
    padding: 20px 15px;
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 8;
}

.feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.feature__icon {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
}

.feature__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.feature__sep {
    width: 1px;
    background: #e5e5e5;
    align-self: stretch;
    min-height: 60px;
}


/* Complex Info Section */
.complex-info {
    padding: 80px 0;
    background: var(--white);
}

.complex-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
    position: relative;
    overflow: visible;
}

.complex-row:last-child {
    margin-bottom: 0;
}

.complex-row.reverse {
    flex-direction: row-reverse;
}

.complex-row-pattern {
    position: absolute;
    top: calc(100% + 30px);
    left: -810px;
    width: 864px;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform 0.3s ease-out;
}

.complex-text {
    flex: 1;
}

.complex-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    text-transform: uppercase;
}

.complex-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.custom-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.7;
}

.custom-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 400;
}

.complex-media {
    flex-shrink: 0;
    width: 450px;
    position: relative;
}

.complex-media video {
    width: 100%;
    border: none;
    border-radius: 20px;
}

.complex-img-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: visible;
}

.complex-img-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px dashed var(--green);
    border-radius: 50%;
    z-index: 0;
}

.complex-img-round {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.complex-decor {
    position: absolute;
    z-index: 2;
}

.complex-decor--ball {
    top: -30px;
    right: -50px;
    width: 120px;
    animation: floatDecor 4s ease-in-out infinite;
}

.complex-decor--dumbbell {
    top: 330px;
    right: -60px;
    width: 140px;
    animation: floatDecor 4s ease-in-out infinite 0.5s;
    z-index: 100;
}

@keyframes floatDecor {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Gallery Slider - как на оригинале */
.gallery-slider {
    padding: 80px 0;
    background: var(--green);
    overflow: hidden;
}

.slider-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.slider-track {
    display: flex;
    gap: 80px;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.slide {
    flex-shrink: 0;
    width: 55vw;
    max-width: 1100px;
    position: relative;
    transition: all 0.3s ease;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--white);
    width: 12px;
    height: 12px;
}

.slider-dot:hover {
    background: rgba(255,255,255,0.9);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 44px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    color: var(--white);
}

.slider-arrow.prev {
    left: 5%;
}

.slider-arrow.next {
    right: 5%;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--white);
    color: var(--green);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Мобильная версия слайдера */
@media (max-width: 768px) {
    .gallery-slider {
        padding: 40px 0;
        overflow: hidden;
    }

    .slider-container {
        padding: 0;
        margin: 0;
        max-width: 100%;
        width: 100%;
        position: relative;
    }

    .slider-viewport {
        overflow: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        height: 300px;
    }

    .slider-track {
        position: relative;
        height: 100%;
        display: block;
        transform: none !important;
    }

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        z-index: 0;
        pointer-events: none;
    }

    .slide.active {
        opacity: 1;
        z-index: 1;
        pointer-events: auto;
    }

    .slide img {
        height: 300px;
        border-radius: 0;
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}

/* Services Section */

/* Service Banner - полноширинный блок как на оригинале */
.service-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 15px;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    max-width: 100%;
}

.service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 20px;
    z-index: 1;
}

.service-banner__content {
    color: var(--white);
    width: 100%;
    position: relative;
    z-index: 2;
}

.service-banner__title {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-banner__prices {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.service-banner__item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
}

.service-banner__time {
    color: var(--green);
    font-weight: 400;
}

.service-banner__price {
    font-weight: 400;
}

.service-banner__link {
    color: var(--white);
    text-decoration: underline;
    cursor: pointer;
}

.service-banner__link:hover {
    text-decoration: none;
}

span.service-banner__link {
    border-bottom: 1px solid rgba(255,255,255,0.7);
    text-decoration: none;
}

span.service-banner__link:hover {
    border-bottom-color: transparent;
}

.service-banner__note {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

/* Tooltips */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.5;
    width: 320px;
    white-space: normal;
    text-align: left;
    z-index: 100;
    margin-bottom: 15px;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: none;
}

.tooltip strong {
    display: block;
    font-size: 20px;
    margin-bottom: 10px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--green);
}

.tooltip-wrapper:hover .tooltip,
.tooltip-wrapper:focus-within .tooltip {
    visibility: visible;
    opacity: 1;
}
.services {
    position: relative;
    padding: 80px 0;
    background: var(--gray);
    overflow: hidden;
}

.services__decor {
    display: none;
}

.pattern-right {
    display: none;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 50px;
}

.service-subtitle {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: 0;
}

.service-block {
    margin-bottom: 15px;
}

.service-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: transparent;
}

.service-img {
    position: relative;
    width: 60%;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--green);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.service-img:hover::before {
    opacity: 0.5;
}

.service-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-img:hover img {
    transform: scale(1.05);
}

.service-img__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(131, 187, 38, 0.9);
    color: var(--white);
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 400;
}

.service-img--green .service-img__label {
    background: var(--green);
}

.sports-area-wrapper {
    background: transparent;
    padding: 0;
}

.service-prices {
    flex: 1;
}

.price-row {
    display: flex;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.price-name {
    flex: 1;
    font-size: 18px;
}

.price-time {
    width: 80px;
    text-align: center;
    font-weight: 400;
}

.price-value {
    width: 120px;
    text-align: right;
    font-size: 18px;
    font-weight: 400;
}

.service-note {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green);
    color: white;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    width: 300px;
    font-size: 16px;
    line-height: 1.4;
    z-index: 100;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--green) transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Court Rental */
.court-rental {
    margin: 15px 0;
}

.rental-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    padding-left: 0;
}

.rental-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: none;
}

.rental-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
}

.rental-extra {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.rental-extra .rental-row:last-child {
    border-bottom: none;
}

.rental-col {
    padding: 15px 20px;
    border-right: none;
    display: flex;
    flex-direction: column;
}

.rental-col--span2 {
    grid-column: span 2;
}


.rental-col--weekdays {
    border-bottom: none;
    border-right: 1px solid #e5e5e5;
    align-items: stretch;
}

.rental-col--weekend {
    border-bottom: none;
    border-right: none;
    align-items: stretch;
}

.rental-col--benefits {
    border-top: none;
    border-right: none;
    align-items: stretch;
}

.rental-col--benefits-weekend {
    border-top: none;
    border-right: none;
    align-items: stretch;
}

.rental-subtitle {
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 12px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.rental-subtitle--hidden {
    display: none;
}

.rental-subtitle-small {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.rental-col--benefits-weekend .rental-subtitle-small {
    margin-top: 30px;
}

.rental-times {
    display: flex;
    gap: 20px;
    margin: 0;
}

.rental-times-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rental-times-col--divider {
    border-left: 1px solid #e5e5e5;
    padding-left: 20px;
}

.rental-col--benefits .rental-times-col--divider {
    border-left: none;
}

.rental-times .rental-row {
    border-bottom: 1px solid #e5e5e5;
}

.rental-times .rental-row:last-child {
    border-bottom: none;
}

.rental-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 18px;
    border-bottom: 1px solid #e5e5e5;
}

.rental-col--weekdays .rental-row,
.rental-col--weekend .rental-row {
    border-bottom: 1px solid #e5e5e5;
}

.rental-col--weekdays .rental-row:last-child {
    border-bottom: 1px solid #e5e5e5;
}

.rental-col--weekend .rental-row:last-child {
    border-bottom: none;
}

.rental-col--benefits .rental-row:last-child,
.rental-col--benefits-weekend .rental-row:last-child {
    border-bottom: none;
}

.rental-row span:first-child {
    color: #333;
    flex: 1;
}

.rental-row span:last-child {
    font-weight: 400;
    color: #000;
    white-space: nowrap;
    margin-left: 20px;
}

/* Gym Section */
/* Unified gym block */
.gym-unified-block {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    align-items: stretch;
    overflow: visible;
}

.gym-left {
    flex: 0 0 auto;
    max-width: 500px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.gym-right {
    flex: 1;
    min-width: 550px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    align-self: flex-start;
}

.gym-right-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.gym-right-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.gym-right-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gym-right-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: white;
    min-height: 403px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gym-right-content h4 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* Legacy classes - keep for compatibility */
.gym-block {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.gym-cards {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
}

.gym-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.gym-card-row {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    gap: 20px;
    flex-wrap: wrap;
}


@media (min-width: 768px) {
    .gym-card-row .w70 {
        width: 60%;
    }
}

.gym-card-row .w100 {
    width: 100%;
}

.gym-card-row.wrap {
    flex-wrap: wrap;
}

.mh350 {
    min-height: 350px;
}

.mh350 .gym-right-image:before {
    content: none;
}

@media (max-width: 768px) {
    .mh350 {
        display: none;
    }
}

.gym-card-name {
    width: 120px;
    font-weight: 400;
}

.gym-card-price {
    margin-left: auto;
    font-weight: 400;
}

.gym-note {
    margin-top: 25px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    color: #666;
}

.gym-visits {
    width: 400px;
    flex-shrink: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.gym-visits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--green);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.gym-visits:hover::before {
    opacity: 0.5;
}

.gym-visits img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
}

.gym-visits:hover img {
    transform: scale(1.05);
}

.gym-visits__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 25px;
    z-index: 2;
}

.gym-visits__overlay h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.gym-visit-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.gym-visit-row:last-of-type {
    border-bottom: none;
}

.gym-visit-note {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: white;
}

/* Download Link */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--green);
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
}

.download-link img {
    width: 30px;
}

.download-link:hover {
    text-decoration: underline;
}

/* Trainers Section */
.trainers {
    position: relative;
    padding: 80px 0;
    background: var(--white);
    overflow: visible;
}

.trainers-pattern {
    position: absolute;
    top: calc(65% - 100px);
    left: -520px;
    width: 650px;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform 0.3s ease-out;
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 80px;
}

.trainer-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.trainer-card__img {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
}

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

.trainer-card__info {
    flex: 1;
}

.trainer-card__role {
    display: block;
    color: var(--green);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.trainer-card__name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.trainer-card__desc {
    list-style: none;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.trainer-card__desc li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.trainer-card__desc li:before {
    content: "–";
    position: absolute;
    left: 0;
}

/* News Section */
.news {
    position: relative;
    padding: 80px 0;
    background: #f8f9fa;
}

.news__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 50px;
}

.news__heading .section-title {
    margin-bottom: 0;
}

.news__all-link {
    flex-shrink: 0;
    color: var(--green);
    font-size: 18px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.news__all-link:hover,
.news__all-link:focus-visible {
    text-decoration: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-card__img {
    height: 300px;
    overflow: hidden;
}

.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__content {
    padding: 25px 20px;
}

.news-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card__date {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.news-card__text {
    display: none;
}

/* Banner */
.banner {
    padding: 60px 0;
    overflow: hidden;
}

.banner img {
    width: 100%;
    border-radius: 20px;
    max-width: 100%;
}

/* VK Widget */
/* Contacts */
.contacts {
    display: flex;
    min-height: 500px;
}

.contacts__map {
    width: 55%;
    min-height: 500px;
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contacts__info {
    width: 45%;
    background: var(--green);
    color: var(--white);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts__title {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 40px;
}

.contacts__address {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.contacts__phones {
    margin-bottom: 20px;
}

.contacts__phones a {
    display: block;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
}

.contacts__email {
    font-size: 20px;
    margin-bottom: 30px;
}

.contacts__hours {
    font-size: 20px;
    margin-bottom: 30px;
}

.contacts__links {
    margin-top: 20px;
}

.contacts__links a {
    display: block;
    font-size: 18px;
    text-decoration: underline;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.contacts__links a:hover {
    text-decoration: none;
}

.contacts__social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Partners */
.partners {
    padding: 40px 0;
    background: #1e5c6b;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.partners-grid img {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1e5c6b;
    color: var(--white);
    padding: 25px 0;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer__logo img {
    height: 55px;
}

.footer__nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.footer__nav a {
    font-size: 15px;
    text-transform: uppercase;
    opacity: 0.9;
    white-space: nowrap;
}

.footer__nav a:hover {
    color: var(--white);
    opacity: 1;
}

.footer__contacts {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer__phone {
    font-size: 18px;
    font-weight: 400;
}

.footer__contacts p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.footer__bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer__docs {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__docs a {
    font-size: 13px;
    opacity: 0.7;
}

.footer__docs a:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .footer__docs {
        gap: 15px 20px;
    }

    .footer__docs a {
        font-size: 13px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .container { padding: 0 30px; }
    .hero__title { font-size: 36px; }
    .hero__title .green { font-size: 44px; }
    .ball-right { width: 150px; right: -30px; }
}

@media (max-width: 992px) {
    .nav { display: none; }
    .burger { display: block; }
    .header__contacts { display: none; }

    .hero { min-height: auto; padding-bottom: 60px; position: relative; }
    .hero__bg { background-attachment: scroll; }
    .hero__title { font-size: 30px; }
    .hero__title .green { font-size: 36px; }
    .hero__features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: 100%;
        padding: 30px 20px;
        box-shadow: none;
    }
    .feature__sep { display: none; }
    .feature {
        padding: 20px 15px;
        background: var(--white);
        border-radius: 15px;
        box-shadow: none;
        width: 100%;
        box-sizing: border-box;
    }
    .ball-right {
        display: block;
        width: 100px;
        top: 20%;
        right: -20px;
        opacity: 1;
    }
    .pattern-left {
        display: block;
        width: 120px;
        top: auto;
        bottom: 10%;
        left: -20px;
        opacity: 0.6;
    }
    .hero__bottom-decor { display: none; }

    .about .container { flex-direction: column; }
    .about__video { width: 100%; max-width: 100%; }

    .tennis-info .container { flex-direction: column; }
    .tennis-info__img { width: 100%; max-width: 300px; margin: 0 auto; }

    .service-row { flex-direction: column; }
    .service-img { width: 100%; max-width: 100%; }

    .rental-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rental-col {
        min-width: 0;
        padding: 0;
        border: none !important;
    }

    .rental-col:nth-child(1),
    .rental-col:nth-child(2),
    .rental-col:nth-child(3),
    .rental-col:nth-child(4) {
        grid-column: auto;
        border: none;
        margin: 0;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 10px;
    }

    .rental-col .rental-row {
        border-bottom: 1px solid #e5e5e5;
    }

    .rental-col .rental-row:last-child {
        border-bottom: none;
    }

    .gym-block { flex-direction: column; }
    .gym-visits { width: 100%; max-width: 100%; height: 300px; }
    .gym-cards { width: 100%; max-width: 100%; box-sizing: border-box; }

    .gym-unified-block {
        flex-direction: column;
        padding: 25px;
        padding-right: 25px;
        padding-top: 25px;
        padding-bottom: 25px;
    }
    .gym-left { width: 100%; max-width: 100%; padding-top: 0; }
    .gym-right {
        width: 100%;
        min-width: auto;
        margin-top: 20px;
        min-height: auto;
    }

    .gym-right-content {
        padding: 25px 20px;
        min-height: 280px;
    }

    .gym-right-content h4 {
        font-size: 24px;
    }

    .news-grid { grid-template-columns: 1fr; }

    .trainers { padding: 50px 0 30px; }
    .trainers-grid { grid-template-columns: 1fr 1fr; gap: 25px 15px; }
    .trainer-card { flex-direction: column; text-align: center; }
    .trainer-card__img { margin: 0 auto; width: 120px; height: 120px; }
    .trainer-card__name { font-size: 16px; margin-bottom: 8px; }
    .trainer-card__role { font-size: 13px; }
    .trainer-card__desc { text-align: center; font-size: 14px; }

    .news { padding: 30px 0; }
    .banner { padding: 30px 0; }

    .contacts { flex-direction: column; min-height: auto; }
    .contacts__map { width: 100%; min-height: 250px; height: 250px; }
    .contacts__map video { height: 250px; }
    .contacts__info { width: 100%; padding: 30px 20px; box-sizing: border-box; }

    .footer__container { flex-direction: column; gap: 30px; text-align: center; }
    .footer__nav { flex-wrap: wrap; justify-content: center; gap: 15px 25px; }
    .footer__contacts { text-align: center; }

    .partners-grid { gap: 40px; flex-wrap: wrap; }

    .complex-row { flex-direction: column !important; gap: 40px; margin-bottom: 60px; }
    .complex-media { width: 100%; max-width: 100%; margin: 0 auto; display: flex; justify-content: center; }
    .complex-media video { height: 250px; max-width: 100%; }
    .complex-img-wrapper { width: 280px; height: 280px; margin: 0 auto; flex-shrink: 0; }
    .complex-img-round { height: 280px; width: 280px; }
    .slide { height: 350px; }

    /* Tooltip fix */
    .tooltip {
        position: fixed;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: auto;
        top: 50%;
        margin-top: -100px;
        max-width: 90vw;
        z-index: 1000;
    }
}

/* Page Hero (inner pages) */
.page-hero {
    position: relative;
    min-height: 467px;
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
    background: var(--white);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background: url('../img/header_1.png') center center / cover no-repeat;
    z-index: 0;
}

.page-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.page-hero .ball-right {
    position: absolute;
    width: clamp(80px, 12vw, 180px);
    top: 45%;
    right: 8%;
    transform: translateY(-50%);
    opacity: 0.9;
    animation: floatBall 3s ease-in-out infinite;
}

.page-hero .dumbbell-left {
    position: absolute;
    top: 32%;
    left: 0;
    width: clamp(120px, 17vw, 250px);
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
}

.page-hero .dumbbell-right {
    position: absolute;
    top: 83%;
    right: clamp(30px, 10vw, 150px);
    width: clamp(100px, 14vw, 200px);
    opacity: 0.8;
    z-index: 3;
    pointer-events: none;
}

.page-hero .pattern-left {
    position: absolute;
    width: clamp(300px, 55vw, 813px);
    top: 73%;
    left: clamp(-290px, -20vw, -100px);
    opacity: 1;
    z-index: 15;
    pointer-events: none;
}

.page-hero .pattern-right-hero {
    position: absolute;
    width: clamp(150px, 27vw, 400px);
    top: -7%;
    right: -14%;
    opacity: 0.15;
    z-index: 1;
}

.page-hero__title {
    position: relative;
    z-index: 2;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    max-width: 700px;
    padding: 0 20px;
}

/* Legal text pages */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.legal-content .doc-ref {
    text-align: right;
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.legal-content .doc-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.5;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 35px 0 15px;
    color: #222;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content ul {
    margin: 10px 0 15px 20px;
}

.legal-content ul li {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 350px;
        padding-top: 80px;
    }
    .page-hero__title {
        font-size: 26px;
    }
    .page-hero .dumbbell-left,
    .page-hero .dumbbell-right,
    .page-hero .pattern-right-hero {
        display: none;
    }
    .page-hero .pattern-left {
        opacity: 0.5;
    }
    .legal-content {
        padding: 30px 15px 50px;
    }
}

/* News Detail Pages */
.page-content {
    padding: 120px 0 60px 0;
    min-height: 60vh;
    flex: 1;
}

.news-detail {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.news-detail__header {
    margin-bottom: 30px;
}

.news-detail__date {
    display: inline-block;
    color: var(--white);
    background: var(--green);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
}

.news-detail__header h1 {
    font-size: 40px;
    line-height: 1.2;
    margin: 0;
    color: #000;
    font-weight: 400;
    text-transform: uppercase;
}

.news-detail__image {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.news-detail__image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news-detail__body {
    text-align: left;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

.news-detail__body p {
    margin-bottom: 20px;
}

.news-detail__body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.news-detail__body ul li {
    margin-bottom: 10px;
}

.text-block {
    max-width: 700px;
    margin: 0 auto;
}

.link-green {
    color: var(--green);
    font-weight: 400;
    text-decoration: underline;
}

.link-green:hover {
    text-decoration: none;
}

/* Text Block Container (for legal pages) */
.text-block-container {
    background: #fff;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 0 auto;
    max-width: 900px;
}

.text-block-container h1 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
}

.text-block-container h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 400;
}

.text-block-container p {
    margin-bottom: 15px;
    text-align: justify;
}

.text-block-container ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.text-block-container li {
    margin-bottom: 8px;
}

.text-green {
    color: var(--green);
}

/* News Card Link */
.news-card__link {
    font-size: 16px;
    font-weight: 400;
    color: var(--green);
    margin-top: 15px;
    display: inline-block;
}

.news-card__text {
    display: block;
    font-size: 17px;
    color: #666;
    margin-bottom: 10px;
}

/* Footer Grid (for news pages) */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #ccc;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-copy {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #ccc;
    font-size: 15px;
    border-bottom: 1px solid #666;
    padding-bottom: 2px;
}

.footer-socials a:hover {
    color: var(--green);
    border-color: var(--green);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox__img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.lightbox__close:hover {
    opacity: 1;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox__arrow:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox__prev {
    left: 30px;
}

.lightbox__next {
    right: 30px;
}

.slide {
    cursor: pointer;
}

.slide:hover img {
    transform: scale(1.02);
    transition: transform 0.3s;
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .hero__title { font-size: 22px; }
    .hero__title .green { font-size: 26px; }
    .hero__subtitle { font-size: 16px; }
    .section-title { font-size: 24px; font-weight: 700; margin-bottom: 25px; }
    .news__heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 25px; }
    .news__heading .section-title { margin-bottom: 0; }
    .news__all-link { font-size: 16px; }
    .service-subtitle { font-size: 18px; font-weight: 700; margin-bottom: 20px; margin-top: 35px; }
    .services { padding: 40px 0; }
    .news-grid { grid-template-columns: 1fr; }
    .footer__docs { justify-content: center; text-align: center; }
    .news-detail__header h1 { font-size: 32px; }
    .news-detail__image img { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    /* Fix service image width */
    .service-img {
        width: 100%;
        max-width: 100%;
    }

    /* Fix gym visits width */
    .gym-visits {
        width: 100%;
        max-width: 100%;
    }

    /* Fix hero features */
    .hero__features {
        max-width: 80%;
        padding: 16px 12px;
        gap: 8px;
        box-shadow: none;
        margin: 0 auto;
    }

    .feature {
        padding: 12px 8px;
        box-shadow: none;
    }

    .feature__icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .feature__text {
        font-size: 10px;
        line-height: 1.3;
    }

    .ball-right {
        width: 80px;
        top: calc(50% - 25px);
        right: -15px;
    }

    .pattern-left {
        width: 100px;
        bottom: 5%;
        left: -15px;
    }

    /* Fix complex media */
    .complex-media {
        width: 100%;
    }

    .complex-media video {
        max-width: 100%;
    }
}

/* Mobile Navigation Menu */
@media (max-width: 992px) {
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        z-index: 999;
    }

    .nav.active {
        display: flex;
    }

    .nav__link {
        font-size: 22px;
        font-weight: 400;
    }

    .burger {
        position: relative;
        z-index: 1001;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero decor overflow fix */
    .hero__decor {
        overflow: hidden;
    }

    /* Mobile slider - show 1 slide */
    .slide {
        width: 100% !important;
    }

    .slider-track {
        gap: 15px;
    }

    .slide img {
        height: 280px;
    }

    .slider-container {
        padding: 0 50px;
        overflow: hidden;
    }

    .gallery-slider {
        overflow: hidden;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slider-arrow.prev {
        left: 5px;
    }

    .slider-arrow.next {
        right: 5px;
    }

    /* Services decor overflow fix */
    .services__decor {
        display: none;
    }

    .services {
        padding: 50px 0;
    }

    .section-title {
        font-size: 30px;
        font-weight: 700;
        margin-bottom: 30px;
    }

    .service-subtitle {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .service-subtitle:first-of-type {
        margin-top: 0;
    }

    .service-block {
        margin-bottom: 30px;
    }

    /* Service banner mobile */
    .service-banner {
        padding: 25px;
        min-height: 150px;
    }

    .service-banner__title {
        font-size: 20px;
    }

    .service-banner__prices {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .service-banner__item {
        flex-wrap: wrap;
        font-size: 16px;
    }

    /* Tooltip mobile - show on tap */
    .tooltip {
        width: 280px;
        padding: 15px;
        font-size: 15px;
        left: 0;
        transform: none;
    }

    /* Court rental mobile */
    .court-rental {
        padding: 20px 15px;
        overflow: hidden;
    }

    .rental-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .rental-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .rental-col {
        padding: 15px !important;
        background: #f9f9f9 !important;
        border-radius: 10px !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    .rental-col--span2 {
        grid-column: auto;
    }

    .rental-times {
        flex-direction: column;
        gap: 0;
    }

    .rental-times-col--divider {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .rental-subtitle-small {
        margin-top: 15px !important;
    }

    .rental-col--benefits-weekend .rental-subtitle-small {
        margin-top: 0 !important;
    }

    .rental-row {
        font-size: 15px;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .rental-row:last-child {
        border-bottom: none;
    }

    .rental-row span:first-child {
        color: #333;
        flex: 1;
    }

    .rental-row span:last-child {
        font-weight: 400;
        color: var(--green);
        white-space: nowrap;
    }

    .rental-subtitle {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .rental-subtitle--sub {
        margin-top: 15px;
    }

    .rental-subtitle--sub:first-of-type {
        margin-top: 0;
    }

    /* Complex section mobile */
    .complex-info {
        overflow-x: hidden;
    }

    .complex-title {
        font-size: 26px;
    }

    .complex-img-wrapper {
        width: 280px;
        height: 280px;
        flex-shrink: 0;
        position: relative;
    }

    .complex-img-round {
        width: 280px;
        height: 280px;
    }

    .complex-img-wrapper::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }

    .complex-decor--ball,
    .complex-decor--dumbbell {
        display: none;
    }

    .dumbbell-left,
    .dumbbell-right {
        display: none;
    }

    .complex-media {
        max-width: 100%;
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    /* Price rows mobile */
    .price-row {
        flex-wrap: wrap;
        gap: 5px;
    }

    .price-name {
        width: 100%;
        font-size: 17px;
    }

    .price-time {
        width: auto;
        text-align: left;
    }

    .price-value {
        width: auto;
        margin-left: auto;
    }

    /* Gym block mobile */
    .gym-cards {
        padding: 20px;
    }

    .gym-title {
        font-size: 20px;
        font-weight: 700;
    }

    .gym-card-row {
        flex-wrap: wrap;
        gap: 5px;
    }

    .gym-card-name {
        width: 100%;
    }

    /* Contacts mobile */
    .contacts__title {
        font-size: 32px;
    }

    .contacts__address {
        font-size: 22px;
    }

    .contacts__phones a {
        font-size: 20px;
    }

    /* Lightbox mobile */
    .lightbox__arrow {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .lightbox__prev {
        left: 10px;
    }

    .lightbox__next {
        right: 10px;
    }

    .lightbox__close {
        top: 10px;
        right: 15px;
        font-size: 44px;
    }

    /* Text block container mobile */
    .text-block-container {
        padding: 25px 20px;
    }

    .text-block-container h1 {
        font-size: 24px;
    }

    /* Partners mobile */
    .partners-grid {
        gap: 30px;
    }

    .partners-grid img {
        height: 40px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero__title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .hero__title .green {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 15px;
    }

    .hero__subtitle br {
        display: none;
    }

    .hero__features {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        padding: 15px 10px;
        gap: 10px;
    }

    .feature {
        padding: 10px 8px;
    }

    .feature__icon {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }

    .feature__text {
        font-size: 11px;
        line-height: 1.3;
    }

    .section-title {
        font-size: 26px;
    }

    .service-subtitle {
        font-size: 22px;
    }

    .trainer-card__img {
        width: 140px;
        height: 140px;
    }

    .trainer-card__name {
        font-size: 20px;
    }

    .news-card__img {
        height: 200px;
    }

    .news-card__title {
        font-size: 18px;
        font-weight: 700;
    }

    .complex-img-wrapper {
        width: 250px;
        height: 250px;
    }

    .complex-img-round {
        width: 250px;
        height: 250px;
    }

    .complex-img-wrapper::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }

    .slider-container {
        padding: 0 40px;
    }

    .contacts__info {
        padding: 30px 15px;
    }

    .contacts__links a {
        font-size: 16px;
    }

}

/* Prevent horizontal scroll globally */
@media (max-width: 992px) {
    .hero,
    .gallery-slider,
    .services,
    .trainers,
    .news,
    .banner,
    .contacts,
    .partners,
    .footer,
    main {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .complex-info {
        max-width: 100vw;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .complex-row {
        overflow: visible;
    }

    .complex-row-pattern {
        display: none;
    }
}

/* Mobile footer fixes */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
    }

    .footer__container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer__nav {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer__nav a {
        font-size: 14px;
    }

    .footer__contacts {
        text-align: center;
        align-items: center;
    }

    .footer__bottom {
        margin-top: 20px;
        padding-top: 15px;
    }

    .footer__docs {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    .footer__docs a {
        font-size: 13px;
        display: block;
        line-height: 1.5;
    }

    /* Footer grid for privacy/legal pages */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
        list-style: none;
    }

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ===== BVI (Visually Impaired) Mode Overrides ===== */

/* Disable all animations and transitions */
body.bvi-active * {
    animation: none !important;
    transition: none !important;
}

/* Disable hover effects on service images */
body.bvi-active .service-img::before {
    display: none !important;
}
body.bvi-active .service-img:hover img {
    transform: none !important;
}

/* Hide ALL decorative overlay elements */
body.bvi-active .hero__decor,
body.bvi-active .page-hero__decor,
body.bvi-active .services__decor,
body.bvi-active .complex-decor,
body.bvi-active .complex-row-pattern,
body.bvi-active .trainers-pattern {
    display: none !important;
}

/* Grayscale iframes (map, video) — can't restyle iframe content */
body.bvi-active iframe {
    filter: grayscale(1) !important;
    display: block !important;
    visibility: visible !important;
}

/* Logos and icons: grayscale + transparent background */
body.bvi-active .logo img,
body.bvi-active .footer__logo img,
body.bvi-active .bvi-open img,
body.bvi-active .feature__icon img {
    background-color: transparent !important;
    filter: grayscale(1) !important;
    -webkit-filter: grayscale(1) !important;
}

/* Partner logos: visible, transparent bg, with border for contrast */
body.bvi-active .partners-grid {
    background-color: transparent !important;
}
body.bvi-active .partners-grid a {
    background-color: transparent !important;
}
body.bvi-active .partners-grid img {
    background-color: transparent !important;
    filter: grayscale(1) contrast(1.2) !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Hero backgrounds: transparent in BVI */
body.bvi-active .hero__bg,
body.bvi-active .page-hero__bg {
    background-color: transparent !important;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #6fa01e;
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* UMI layout integration */
body > main {
    flex: 1 0 auto;
}

/* Скрытая демонстрационная /content/: сохранено оформление текущего сайта. */
.content-page {
    padding: 140px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.content-article {
    background: var(--white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.content-article h1 {
    margin-bottom: 30px;
}

.content-article h2 {
    margin: 50px 0 25px 0;
}

.content-article h2:first-of-type {
    margin-top: 30px;
}

.content-article h3 {
    margin: 40px 0 20px 0;
}

.content-article h4 {
    margin: 35px 0 18px 0;
}

.content-article h5 {
    margin: 30px 0 15px 0;
}

.content-article h6 {
    margin: 25px 0 12px 0;
}

.content-article p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.content-article ul,
.content-article ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-article li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-article blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: #f8f9fa;
    border-left: 4px solid var(--green);
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.content-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.content-article table thead {
    background: var(--green);
}

.content-article table thead th {
    color: var(--white);
    font-weight: 600;
    text-align: left;
    padding: 18px 20px;
}

.content-article table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.content-article table tbody tr:last-child {
    border-bottom: none;
}

.content-article table tbody tr:hover {
    background-color: #f8f9fa;
}

.content-article table tbody td {
    padding: 16px 20px;
}

@media (max-width: 768px) {
    .content-page {
        padding: 120px 0 60px;
    }

    .content-article {
        padding: 40px 30px;
    }

    .content-article table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .content-article {
        padding: 30px 20px;
    }
}

.tennis-cms-html {
    display: contents;
}

.footer__logo img {
    filter: brightness(0) invert(1);
}

.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contacts__map > p {
    height: 100%;
}

/* Cookie notice: текст/ссылки приходят из d5_tennis_cookie_notice_html. */
.cookie-message {
    position: fixed;
    bottom: 8px;
    left: 50%;
    z-index: 900000;
    box-sizing: border-box;
    width: 100%;
    max-width: 928px;
    padding: 0 8px;
    transform: translateX(-50%);
}

.cookie-message:not(.cookie-message_visible) {
    display: none;
}

.cookie-message__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    background: var(--gray);
    box-shadow: 0 -3px 17px #00000045;
}

.cookie-message__content {
    color: var(--black);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.cookie-message__content p {
    margin: 0;
}

.cookie-message__content a {
    color: var(--green);
}

.cookie-message__content a:hover {
    text-decoration: underline;
}

.cookie-message__control {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.cookie-message__confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--green);
    color: var(--white);
    cursor: pointer;
}

@media (min-width: 768px) {
    .cookie-message {
        bottom: 32px;
        padding: 24px 32px;
    }

    .cookie-message__container {
        flex-direction: row;
    }
}
