/* ---------- БАЗОВАЯ СТРАНИЦА ---------- */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    display: flex;
    flex-direction: column;
}

/* Основной контент растягивается */
 /* main,
.reservi-widget-section,
.content-wrapper {
    flex: 0 0 auto;
} */


/* Белый блок поверх шапки */
.floating-widget {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-75%);
    width: 650px;
    min-width: 650px;
    height: 370px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Контент внутри блока */
.widget-content h2 {
    margin: 0 0 30px;
    font-size: 34px;
    font-weight: 500;
    color: #333;
}

/* Стили для текста с эмодзи перед ним */
.widget-content p {
    font-size: 16px;
    line-height: 1.2;
    color: #555;
    margin-top: 55px;
    max-width: 500px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-left: 15px;
}

/* Добавляем смайлик ⚠️ перед текстом */
.widget-content p::before {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -15px;
    top: 0;
    font-size: 18px;
    line-height: 1;
    color: #ff0000;
}

/* Кнопка "Забронировать" */
.btn-booking {
    display: inline-block;
    background-color: #c7de4c;
    color: #000000;
    width: 220px;
    height: 50px;
    text-align: center;
    line-height: 51px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.btn-booking:hover {
    background-color: rgb(106, 206, 57);
}


/* Общий контейнер для белого блока и изображения */
.widget-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 1200px;
}


/* Стили изображения */
.widget-image-bals img {
    display: block;
    width: 600px;
    height: auto;
    background-color: transparent;
    position: relative;
    top: -380px;
    right: -200px;
    z-index: 2;
}

/* Стили изображения */
.widget-image img {
    display: block;
    width: 260px;
    height: auto;
    background-color: transparent;
    position: relative;
    top: -140px;
    right: -70px;
    z-index: 2;
}







/* ---------- ADVANTAGES SECTION ---------- */
.advantages-section {
    width: 100%;
    background: #ffffff;
    padding: 80px 20px;
}

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

/* Заголовок */
.advantages-title {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 60px;
    color: #000;
}

/* Сетка преимуществ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 70px;
    align-items: start;
}

/* Один элемент */
.advantage-item {
    text-align: center;
}

.advantage-item img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

/* Текст */
.advantage-item p {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #000;
}



/* ---------- COURT PRICING SECTION ---------- */
.court-pricing-section {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 100px 20px;
    min-height: 1100px;
    /* можно увеличить при необходимости */
}

.court-pricing-section .main-bg-inner {
    background: #ffffff;
    border-radius: 10px;
    max-width: 1250px;
    width: 100%;
    padding: 40px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.court-pricing-section .main-bg-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* фото и текст */
    gap: 40px;
    align-items: center;
}

.court-pricing-section .main-bg-image-box img {
    width: 150%;
    max-width: 700px;
    height: auto;
}

.court-pricing-section .main-bg-text p {
    margin-bottom: 19px;
    font-size: 16px;
    line-height: 1.3;
    color: #000000;
}

/* ТАБЛИЦА ЦЕН */

.court-pricing-table {
    width: 100%;
    border-collapse: collapse;
    /* убираем лишние отступы */
    margin: 20px 0;
    font-size: 14px;
    /* меньший шрифт */
    line-height: 1.3;
    /* компактный межстрочный интервал */
}

.court-pricing-table th,
.court-pricing-table td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    /* уменьшаем отступы */
    text-align: left;
    vertical-align: middle;
}

.court-pricing-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.court-pricing-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.court-pricing-table tr td:first-child {
    font-weight: 500;
}


@media (max-width: 1024px) {
    .floating-widget {
        width: calc(100% - 40px);
        min-width: 0;
        left: 50%;
        transform: translateX(-50%);
        top: 130px;
        height: auto;
        padding: 16px;
        padding-top: 300px;
    }

    .widget-image-bals img {
        display: none;
    }

    .widget-image img {

        position: relative;
        top: -220px;
        width: 180px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .courts-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .slider-btn {
        font-size: 28px;
        padding: 12px 18px;
    }

    .court-pricing-section .main-bg-content {
        grid-template-columns: 1fr;
    }

    .court-pricing-section .main-bg-inner {
        padding: 30px 20px;
    }
}






@media (max-width: 768px) {
    .floating-widget {
        width: calc(100% - 40px);
        left: 50%;
        transform: translateX(-50%);
        top: 120px;
        height: auto;
        padding: 16px;
        padding-top: 300px;
    }

    .widget-image img {
        top: -180px;
        width: 160px;
    }

    .widget-image img {

        position: relative;
        top: -220px;
        width: 180px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .power-widget {
        top: 540px;
        padding: 16px;
    }

    .power-widget p {
        font-size: 15px;
    }

    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .advantages-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .courts-title {
        font-size: 24px;
    }

    .slider-btn {
        font-size: 24px;
        padding: 10px 14px;
    }
}