* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FEFCF5;
    color: #1E2A2F;
    scroll-behavior: smooth;
    line-height: 1.4;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #1F3E2E;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: #C49A6C;
    border-radius: 4px;
    margin-top: 8px;
}

.text-accent {
    color: #C49A6C;
}

.hero {
    background: linear-gradient(135deg, #F1F0E5 0%, #E6E2D4 100%);
    padding: 40px 0 80px;
    border-bottom: none;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    background: #C49A6C20;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 40px;
    color: #A57248;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1E3A2F;
}

.hero p {
    font-size: 1.2rem;
    color: #2C4238;
    margin-bottom: 32px;
    max-width: 90%;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #1F3E2E;
    color: white;
    padding: 14px 32px;
    border-radius: 48px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    background-color: #2A5A42;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #1F3E2E;
    color: #1F3E2E;
    padding: 12px 30px;
    border-radius: 48px;
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: #1F3E2E;
    color: white;
}

.hero-image {
    flex: 1;
    background: #D9CDB3;
    border-radius: 32px;
    height: 380px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 24px;
}

.feature-card {
    flex: 1 1 260px;
    background: white;
    border-radius: 28px;
    padding: 28px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.03);
    transition: 0.2s;
    border: 1px solid #f0e9df;
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: #C49A6C;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tennis-court-highlight {
    background: #F4F2EA;
    border-radius: 40px;
    padding: 48px;
    text-align: center;
    margin: 40px 0 20px;
}

/* Слайдер */
.court-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.slider-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 24px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.slider-card {
    flex: 0 0 calc(33.333% - 13.33px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.slider-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.slider-card img:hover {
    transform: scale(1.02);
}

.slider-btn {
    background: #1F3E2E;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #C49A6C;
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #DFD5C0;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active {
    background: #C49A6C;
    width: 24px;
    border-radius: 5px;
}

.court-dims {
    font-size: 1.3rem;
    font-weight: 600;
    background: #DFD5C0;
    display: inline-block;
    padding: 10px 24px;
    border-radius: 60px;
    margin-top: 20px;
}

.grid-2cols {
    display: flex;
    
    flex-wrap: wrap;
    gap: 48px;
}

/* Фикс для картинок в сетке */
.grid-image {
    background-size: cover;
    background-position: center;
    min-height: 320px;
    height: auto !important; /* перебивает inline height: 300px */
}

/* На мобильных высота автоматическая */
@media (max-width: 768px) {
    .grid-image {
        min-height: 240px;
    }
}

/* Детский клуб: чтобы картинка не терялась и блоки перестраивались */
.kids-club > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}
@media (max-width: 768px) {
    .kids-club > div {
        flex-direction: column;
    }
    .kids-club > div > div {
        width: 100% !important;   /* принудительная ширина */
        flex: none !important;    /* убираем flex: 1 */
    }
    .kids-club > div > div:last-child {
        min-height: 260px;
        order: 2;
    }
    .kids-club > div > div:first-child {
        order: 1;
    }
}

.grid-image {
    flex: 1;
    width: 100%;
    min-height: 420px;
    background-color: #E4DDCF;
    border-radius: 32px;
    background-size: cover;
    /* background-position: top; */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.grid-text {
    flex: 1;
}

.kids-club {
    background: #F3EFE4;
    border-radius: 40px;
    padding: 48px;
    margin-top: 20px;
}

.footer {
    background-color: #1E2A24;
    color: #E6E0D0;
    padding: 60px 0 40px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #D9C294;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ddd6c8;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: #C49A6C;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    background: #2E3D35;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    color: #EFE3CF;
    font-size: 1.3rem;
    transition: 0.2s;
}

.social-icons a:hover {
    background: #C49A6C;
    color: #1E2A24;
}

.copyright {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты и небольшие десктопы (до 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    section {
        padding: 70px 0;
    }
    .section-title {
        font-size: 2.4rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero-image {
        height: 320px;
    }
    .tennis-court-highlight {
        padding: 36px;
    }
    .kids-club {
        padding: 36px;
    }
    .grid-image {
        min-height: 320px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    section {
        padding: 50px 0;
    }
    .hero {
        padding: 30px 0 50px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero-grid {
        flex-direction: column;
        gap: 30px;
    }
    .hero-image {
        height: 260px;
        width: 100%;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    .section-title:after {
        width: 150px;
    }
    .grid-2cols {
        flex-direction: column;
        gap: 30px;
    }
    .grid-image {
        min-height: 440px !important;
        height: auto !important;
    }
    .tennis-court-highlight {
        padding: 24px;
        margin: 20px 0;
    }
    .tennis-court-highlight p {
        font-size: 1rem !important;
        text-align: left;
    }
    .court-dims {
        font-size: 1rem;
        padding: 8px 18px;
    }
    .features-grid {
        gap: 20px;
    }
    .feature-card {
        padding: 20px 16px;
        flex: 1 1 100%;
    }
    .feature-card h3 {
        font-size: 1.3rem;
    }
    .kids-club {
        padding: 24px;
    }
    .kids-club h2 {
        font-size: 1.6rem;
    }
    /* Детский клуб: вертикальное расположение на мобильных */
    .kids-club > div {
        flex-direction: column !important;
    }
    .kids-club > div > div:first-child {
        order: 1;
    }
    .kids-club > div > div:last-child {
        order: 2;
        min-height: 220px;
    }
    .footer-grid {
        flex-direction: column;
        gap: 32px;
    }
    .footer-col {
        min-width: auto;
    }
    .social-icons {
        justify-content: flex-start;
    }
    .btn-primary, .btn-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 30%;
        text-align: center;
    }
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-badge {
        font-size: 0.75rem;
    }
    /* Слайдер на мобильных */
    .slider-card {
        flex: 0 0 100%;
    }
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    .slider-card img {
        height: 340px;
    }
    .slider-dots {
        margin-top: 12px;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    section {
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .grid-image {
        min-height: 400px !important;
    }
    .tennis-court-highlight {
        padding: 16px;
        border-radius: 28px;
    }
    .court-dims {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .feature-card {
        padding: 16px;
    }
    .kids-club {
        padding: 16px;
        border-radius: 28px;
    }
    .kids-club > div > div:last-child {
        min-height: 180px;
    }
    .footer {
        padding: 40px 0 30px;
    }
    .footer-links li {
        font-size: 0.9rem;
    }
    .slider-card img {
        height: 160px;
    }
}

/* Альбомная ориентация на планшетах */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .grid-image {
        min-height: 320px;
    }
}


/* ===== Слайдер для блока "Отель" ===== */
.hotel-slider-wrapper {
    flex: 1;           /* чтобы занимал столько же места, сколько и .grid-text */
    min-width: 0;      /* предотвращает переполнение */
}

.hotel-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.hotel-slider-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 32px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: #E4DDCF;
}

.hotel-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.hotel-slider-card {
    flex: 0 0 100%;
}

.hotel-slider-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    display: block;
}

.hotel-slider-btn {
    background: #1F3E2E;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hotel-slider-btn:hover {
    background: #C49A6C;
    transform: scale(1.05);
}

.hotel-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.hotel-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #DFD5C0;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.hotel-slider-dots .dot.active {
    background: #C49A6C;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hotel-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    .hotel-slider-card img {
        aspect-ratio: 3 / 3;
    }
}


/* ===== Слайдер детского клуба (аналогично корту) ===== */
.kids-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.kids-slider-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 24px;
}

.kids-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.kids-slider-card {
    flex: 0 0 calc(33.333% - 13.33px); /* 3 карточки на десктопе */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.kids-slider-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.kids-slider-card img:hover {
    transform: scale(1.02);
}

.kids-slider-btn {
    background: #1F3E2E;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kids-slider-btn:hover {
    background: #C49A6C;
    transform: scale(1.05);
}

.kids-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.kids-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #DFD5C0;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.kids-slider-dots .dot.active {
    background: #C49A6C;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .kids-slider-card {
        flex: 0 0 100%;
    }
    .kids-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    .kids-slider-card img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 260px;
        width: 100%;
        flex: none;  /* отключаем flex: 1 */
    }
}

@media (max-width: 425px) {
    .btn-primary, .btn-outline {
        width: 45% !important;
    }
}

/* ===== Слайдер для блока "Фитнес-центр" (аналогично отелю) ===== */
.fitness-slider-wrapper {
    flex: 1;
    min-width: 0;
}

.fitness-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.fitness-slider-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 32px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: #E4DDCF;
}

.fitness-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.fitness-slider-card {
    flex: 0 0 100%;
}

.fitness-slider-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
    display: block;
}

.fitness-slider-btn {
    background: #1F3E2E;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fitness-slider-btn:hover {
    background: #C49A6C;
    transform: scale(1.05);
}

.fitness-slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.fitness-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #DFD5C0;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.fitness-slider-dots .dot.active {
    background: #C49A6C;
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .fitness-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    .fitness-slider-card img {
        aspect-ratio: 3 / 3;
    }
}