* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat Alternates", Arial, sans-serif;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f5;
    align-items: flex-start;
}
.sidebar {
    position: sticky;
    top: 0;
    width: 320px;
    height: 140vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    min-width: 320px;
}

.sidebar::before {
    content: "";
    position: absolute;
    top: -100px; /* Выступает над sticky-элементом */
    left: 0;
    width: 100%;
    height: 110%;
    background: linear-gradient(90deg, #E1C680 0%, #BB9637 100%);
}
header {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0px 0px 20px 20px;
    filter: drop-shadow(0px 4px 21.4px rgba(0, 0, 0, 0.25));
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(2px);
    margin-left: 320px;
}

.desktop-header {
    display: flex;
    width: 100%;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    width: 30%;
    margin-left: 20px;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    cursor: pointer;
    filter: drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.25));
}

.logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    color: #333;
}

.logo img {
    height: 90px;
    margin-right: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    gap: 20px;
}

/* Обновленные стили для кнопки Контакты */
.contacts-btn {
    background: #ffffff;
    box-shadow: inset 0px 4px 4px 1px rgba(0, 0, 0, 0.15);
    border-radius: 0px 25px;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 20px;
    color: #aaaaaa;
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 400;
    text-shadow: 0px 1px 3.4px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.contacts-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.home-icon {
    cursor: pointer;
    height: 50px;
}

.mobile-header {
    display: none;
}

@media (max-width: 900px) and (min-width: 800px) {
    /* Сохраняем десктопный header без изменений */
    .contacts-btn {
        display: none;
    }
}

@media (max-width: 799px) and (min-width: 699px) {
    /* Сохраняем десктопный header без изменений */
    header {
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.2);
        border-radius: 0px 0px 20px 20px;
        filter: drop-shadow(0px 4px 21.4px rgba(0, 0, 0, 0.25));
        backdrop-filter: blur(5px);
    }
}

@media only screen and (max-width: 699px) {
    /* Скрыть десктопную шапку */
    .desktop-header {
        display: none;
    }

    /* Показать мобильную шапку */
    .mobile-header {
        display: block;
    }

    /* Стили для header */
    header {
        height: 253.12px;
        background: none;
        padding: 0;
        position: relative;
        overflow: hidden;
        /* Убираем новые стили для мобильной версии */
        background: none;
        box-shadow: none;
        border-radius: 0;
        filter: none;
        backdrop-filter: none;
        margin-left: 0px;
    }

    /* Фон шапки */
    .mobile-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("/static/img/home/family.jpg") no-repeat center center;
        background-size: cover;
        z-index: -1;
    }

    /* Кнопка меню слева */
    .mobile-menu-btn {
        position: absolute;
        width: 86px;
        height: 31.68px;
        left: 0;
        top: 8px;
        background: #dfc070;
        box-shadow: 0px 4.52632px 9.05263px rgba(0, 0, 0, 0.25);
        border-radius: 0px 117.684px 117.684px 0px;
        border: none;
        color: white;
        font-weight: bold;
        font-family: "Montserrat Alternates", sans-serif;
        font-size: 14px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Кнопка справа с иконками */
    .mobile-right-btn {
        position: absolute;
        width: 86px;
        height: 31.68px;
        right: 0;
        top: 8px;
        background: #dfc070;
        box-shadow: 0px 4.52632px 9.05263px rgba(0, 0, 0, 0.25);
        border-radius: 117.684px 0px 0px 117.684px;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        z-index: 10;
    }

    .mobile-right-btn i {
        color: #333;
        font-size: 16px;
    }

    /* Логотип по центру */
    .mobile-logo {
        position: absolute;
        width: 118px;
        height: 65px;
        left: 50%;
        top: 12px;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .mobile-logo img {
        max-width: 100%;
        max-height: 100%;
    }
}

.menu-pnt {
    height: 24px;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 33px 15px;
    box-sizing: content-box;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}
.menu-pnt > span {
    display: inline-block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    padding-left: 10px;
}
.menu-pnt:hover > span {
    transform: translateX(calc(160px - 38px - 50%));
}
.menu-pnt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(90deg, #f2faff 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-180deg);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.menu-pnt:hover {
    color: #868686;
}
.menu-pnt:hover::before {
    opacity: 1;
}
.apple-logo-container {
    display: flex;
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center; /* Центрируем содержимое по вертикали */
    height: 128px; /* Высота контейнера для логотипа */
}

.apple-logo {
    position: absolute;
    top: -100px;
    width: 128px; /* Ширина логотипа */
    height: 128px; /* Высота логотипа */
    transition: all 0.7s ease;
}

.apple-logo.sticky {
    position: sticky;
    transition: position 0.7s ease;
}

.menu {
    /* Исходные стили */
    width: 320px;
    height: 24px;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin: 33px 0;
    padding-left: 38px;
    box-sizing: border-box;
    display: flex;
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
    overflow: hidden;
}

.menu > span {
    display: inline-block;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.menu::before {
    /* Стили для фона */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(90deg, #f2faff 0%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(-180deg);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.menu:hover {
    color: #868686;
}

.menu:hover > span {
    /* Сдвигаем на половину ширины блока минус начальный отступ */
    transform: translateX(calc(160px - 38px - 50%));
}

.menu:hover::before {
    opacity: 1;
}

.n1 {
    order: 1;
}
.n2 {
    order: 2;
}

.breadcrumbs {
    margin-left: 350px;
}

.main-1 {
    position: relative;
    flex: 1;
    top: 0px;
    background: url('/static/img/home/mainimg.svg');
    background-size: cover;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.main-1-buttons-panel {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 348px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 26.5%, rgba(58, 58, 58, 0.56) 100%);
    box-shadow: inset 0px 7px 8px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    border-radius: 20px 20px 0px 0px;
    z-index: 50;
}

.main-1-buttons-panel-mobile {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    z-index: 50;
    display: none;
}

.main-1-yellow-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 27px;
    margin-top: 39px;
    margin-bottom: 29px;
}

.main-1-blue-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-1-blue-button-item {
    padding-left: 32px;
    padding-right: 32px;
}

.main-1-blue-button-item:first-child {
    margin-left: 0;
}
.main-1-blue-button-item:last-child {
    margin-right: 0;
}

.main-1-blue-button-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-1-blue-button-animated {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(180deg, #97cdd1 0%, #719a9d 100%);
    box-shadow: 0px 10px 10px rgba(27, 37, 37, 0.25), inset 0px -6.66667px 6.66667px #6c9296, inset 0px 6.66667px 6.66667px #9dd4d9;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    will-change: width, height, box-shadow, background;
}

.main-1-blue-button-animated:hover {
    width: 180px;
    height: 180px;
}

.main-1-blue-button-animated:active {
    background: linear-gradient(180deg, #94c8cc 100%, #70989b 0%);
    box-shadow: 1.46958e-15px 24px 48px rgba(26, 36, 37, 0.2295), inset -4.47404e-16px -7.30667px 7.30667px #6b9194, inset 4.47404e-16px 7.30667px 7.30667px #99cfd3;
}

.main-1-blue-button-caption {
    margin-top: 13px; /* Расстояние от кнопки до надписи */
    text-align: center;
    width: 108px;
    height: 24px;

    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;

    color: #ffffff;

    width: 180px; /* Фиксированная ширина для центрирования */
}

.main-1-yellow-button {
    width: 320px;
    height: 44px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.main-1-yellow-button:hover {
    width: 320px;
    height: 44px;
    background: linear-gradient(180deg, #ffe7a9 0%, #e9c76f 100%);
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.main-1-yellow-button:active {
    width: 320px;
    height: 44px;

    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: inset 0px 5px 4.4px rgba(31, 31, 31, 0.25);
    border-radius: 10px;
}
.btn-icon {
    position: absolute;
    margin-right: 180px;
}
.btn-text {
    width: 76px;
    height: 24px;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
    text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
}
.p1 {
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 64px;
    line-height: 78px;
    /* identical to box height */

    color: #83b2b6;

    text-shadow: 0px 4px 6.3px rgba(0, 0, 0, 0.26);
}
.divp1 {
    display: flex;
    justify-content: center;
    padding-top: 50px;
}
.divp2 {
    margin-top: 88px;
    width: 100%;
    height: 304px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #56847e 0%, rgba(153, 208, 213, 0) 78%);
    border-radius: 0px;
    justify-content: space-between;
}
.divp3 {
    margin-top: 88px;
    width: 100%;
    height: 304px;
    display: flex;
    align-items: center;
    background: linear-gradient(-90deg, #56847e 0%, rgba(153, 208, 213, 0) 78%);
    border-radius: 0px;
    justify-content: space-between;
}
.p2 {
    max-width: 1097px;

    margin-left: 50px;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 44px;
    margin-right: 50px;
    color: #5b2812;
}

.about {
    width: 238px;
    height: 44px;
    border: none;
    margin-right: 50px;
    margin-left: 50px;
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}
.aboutp {
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;

    color: #ffffff;

    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 102, 102, 0.41);
    backdrop-filter: blur(10.3px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 1232px;
    height: 835px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10.95px);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.modal-text {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
    font-size: 18px;
    line-height: 1.6;
}

.modal-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}
.main-2 {
    position: relative;
    flex: 1;
    background: url('/static/img/home/main2.jpg');
    background-size: cover;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
.main-3 {
    position: relative;
    flex: 1;
    background: url('/static/img/home/main3.jpg');
    background-size: cover;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
.main-4 {
    position: relative;
    padding-top: 40px;
    flex: 1;
    background: url('/static/img/home/main4.jpg');
    background-size: cover;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
.main-5 {
    position: relative;
    padding-top: 40px;
    flex: 1;
    align-items: center;
}
.main-6 {
    position: relative;
    padding-top: 40px;
    flex: 1;
    background: url('/static/img/home/main3.jpg');
    background-size: cover;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 100px auto;
    padding: 0 50px;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 550px;
    perspective: 1500px;
}

.carousel-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.carousel-card.left,
.carousel-card.right {
    width: 334px;
    height: 334px;
    box-shadow: 0px -2px 19.1px rgba(0, 0, 0, 0.25);
    z-index: 1;
    opacity: 0.9;
    filter: brightness(0.9);
}

.carousel-card.center {
    width: 518px;
    height: 518px;
    background: #ffffff;
    box-shadow: 0px 37px 40.7px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.carousel-card.left {
    transform: translateX(-60px);
}

.carousel-card.right {
    transform: translateX(60px);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-card:hover .card-image {
    transform: scale(1.05);
}

.name-display {
    width: 518px;
    height: 49px;
    margin: 30px auto 0;
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
    box-shadow: 1.46141e-15px 5px 14.3px rgba(51, 51, 51, 0.25), inset -4.44919e-16px -7.26607px 7.26607px #cecece, inset 4.44919e-16px 7.26607px 7.26607px #ffffff;
    border-radius: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    position: relative;
    z-index: 10;
}

.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    cursor: pointer;
    z-index: 10;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.16));
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-btn.prev {
    width: 64px;
    height: 64px;
    background: url('/static/img/home/left-arrow.svg');
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.16));
}

.carousel-btn.next {
    margin-left: 90%;
    width: 64px;
    height: 64px;
    background: url('/static/img/home/right-arrow.svg');
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.16));
}

.calendar-container-block-full {
    position: relative;
    box-sizing: border-box;
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-container-block-full::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/static/img/home/union.png") center/contain no-repeat;
    opacity: 0.2; /* Регулируйте это значение (0.3-0.8) */
    z-index: -1;
}

.calendar-container-block {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    margin-left: 95px;
    margin-top: 143px;
    position: relative; /* Важно для z-index */
    z-index: 1; /* Поднимаем контент над псевдоэлементом */
}

.calendar-container {
    border-radius: 12px;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    padding-top: 5px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}
.calendar-title {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: 0px 6.12px 9.18px 0px rgba(0, 0, 0, 0.25), 0px 5.1px 11.93px 0px rgba(255, 255, 255, 0.25) inset;
    position: relative;
    width: 30%;
    text-align: center;
}

.month-navigation {
    display: flex;
    align-items: center;
    width: 50%;
    transform: translateX(-15%);
}
.month-title {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    margin: 0 5px;
    white-space: nowrap;
    position: relative;
}

.nav-arrow {
    width: 10px;
    height: 10px;
}
.calendar-grid {
    display: flex;
    width: fit-content;
    position: relative;
    z-index: 1;
    overflow: visible;
}
.weekdays-column {
    min-width: 50px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #e4ca87 0%, #d5b562 100%);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
.week-column {
    min-width: 50px;
    display: flex;
    flex-direction: column;
}
.week-header {
    padding: 6px;
    text-align: center;
    font-weight: bold;
    color: #5c4a1a;
    font-size: 0.9em;
}
.day-cell {
    padding: 10px 5px;
    text-align: center;
    position: relative;
    border-radius: 4px;
    height: 30px;
    box-sizing: border-box;
    cursor: pointer;
}

.day-cell.has-event .day-number {
    font-size: 18px;
    font-weight: 400;
    text-shadow: 0px 0px 69.7521px #ffffff, 0px 0px 39.8583px #ffffff, 0px 0px 23.2507px #ffffff, 0px 0px 11.6253px #ffffff, 0px 0px 3.32153px #ffffff, 0px 0px 1.66076px #ffffff;
}

.weekdays-column .day-cell {
    color: #5c4a1a;
    font-weight: bold;
}
.day-number {
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0px 4.0795px 4.0795px rgba(0, 0, 0, 0.25);
}

.day-number.end {
    color: rgba(221, 0, 0, 1);
}

.current-day {
    background: rgba(255, 235, 59, 0.5);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.other-month {
    color: #aaa;
}
.has-event {
    position: relative;
}
.weekday {
    color: rgba(255, 255, 255, 1);
}
.weekend,
.holiday {
    color: rgba(221, 0, 0, 1);
}
.event-tooltip {
    display: none;
    position: absolute;
    top: -10px;
    left: calc(100% + 5px);
    background: linear-gradient(90deg, #e3c986 0%, #d5b562 100%);
    border-radius: 50px;
    padding: 8px 12px;
    z-index: 100;
    min-width: 160px;
    box-shadow: 0px 4px 32.7px 0px rgba(0, 0, 0, 0.25);
    font-weight: normal;
    color: #5c4a1a;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.event-tooltip.show {
    display: block;
    opacity: 1;
}
.event-item {
    padding: 4px 0;
    cursor: pointer;
    font-style: normal;
    font-weight: 400;
    color: #ffffff;
}
.event-item:hover {
    text-decoration: underline;
}
.day-cell.has-event:hover .event-tooltip,
.event-tooltip:hover {
    display: block;
}
.modal-cal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content-cal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
}
.close-modal-cal {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

.main-1-buttons-panel-mobile-block {
    position: relative;
    justify-content: center;
    align-items: center;
    padding-left: auto;
    padding-right: auto;
}

.divp1m4 {
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    width: 814px;
    height: 143px;
    background: rgba(255, 255, 255, 0.57);
    box-shadow: inset 0px 9px 10.6px rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
}

.list {
    position: relative;
    display: flex;
    height: 89px;
    background: linear-gradient(90deg, #55827c 0%, rgba(153, 208, 213, 0) 78%);
    border-radius: 0px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}
.list-button {
    width: 382px;
    height: 44px;
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    border: none;
}
.basement {
    bottom: 0;
    width: 100%;
    height: 348px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 26.5%, rgba(159, 159, 159, 0.56) 100%);
    opacity: 0.62;
    box-shadow: 0px -12px 20px rgba(0, 0, 0, 0.25), inset 0px 7px 8px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    border-radius: 20px 20px 0px 0px;
}
.basement-back {
    background: linear-gradient(90deg, rgba(84, 129, 123, 1) 10.000000149011612%, rgba(122, 178, 179, 0.53) 100%);
    border-radius: 0px 20px 0px 0px;
    height: 348px;
    position: relative;
    transform-origin: 0 0;
    transform: rotate(0deg) scale(1, 1);
}
.agr {
    display: flex;
    margin-top: 153px;
    margin-bottom: 100px;
}
.agr-left {
    width: 1115.74px;
    height: 145px;
    background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    box-shadow: inset -8px 0px 11.8px rgba(0, 0, 0, 0.24);
}
.agr-right {
    border: none;
    width: 381.78px;
    height: 145px;
    background: linear-gradient(207.43deg, rgba(244, 244, 244, 0.38) 17.08%, rgba(255, 255, 255, 0.38) 48.68%, rgba(221, 221, 221, 0.38) 82.92%);
    box-shadow: 0px 9px 14.5px rgba(0, 0, 0, 0.11), inset 0px 6px 4px rgba(255, 255, 255, 0.25), inset 0px -4px 10.7px rgba(0, 0, 0, 0.17);
    border-radius: 0px 20px 20px 0px;
    position: relative;
    display: flex;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 44px;
    color: #959595;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    justify-content: center;
    align-items: center;
}
.center-block {
    display: block;
    text-align: center;
}
.center-div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-top: 100px;
}

.card {
    width: 457px;
    height: 394px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-block-left {
    position: relative;
    height: 81px;
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 4px; /* Отступ для градиентной рамки */
}

.card-block-left::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #83b2b6, #c0f3f8);
    border-radius: 10px 10px 0 0;
    z-index: 0;
}
.card-block-right {
    position: relative;
    height: 81px;
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 4px; /* Отступ для градиентной рамки */
}

.card-block-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-90deg, #83b2b6, #c0f3f8);
    border-radius: 10px 10px 0 0;
    z-index: 0;
}
.card-block-inner {
    position: relative;
    height: 100%;
    background: white;
    border-radius: 6px 6px 0 0; /* На 4px меньше, чем внешний радиус */
    display: flex;
    align-items: center;
    z-index: 1;
    justify-content: center;
}

.bottom-block {
    flex: 1;
    background: linear-gradient(180deg, rgba(214, 214, 214, 0.4) 0%, rgba(255, 255, 255, 0.4) 100%);
    box-shadow: inset 0px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 0px 0px 10px 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    color: #333;
    justify-content: space-between;
}
.card-title {
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 49px;
    color: #83b2b6;
    text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.26);
}
.card-btn {
    width: 186px;
    height: 44px;
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;
    color: #ffffff;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border: none;
    margin-left: 200px;
}

.basement {
    position: relative;
    bottom: 0; /* Привязка к низу страницы */
    left: 0;
    width: 100vw; /* Ширина = ширина экрана */
    z-index: 1000;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 26.5%, rgba(159, 159, 159, 0.56) 100%);
    opacity: 0.62;
    box-shadow: 0px -12px 20px rgba(0, 0, 0, 0.25), inset 0px 7px 8px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    border-radius: 20px 20px 0px 0px;
}

.basement::before {
    content: "";
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 26.5%, rgba(159, 159, 159, 0.56) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 26.5%, rgba(159, 159, 159, 0.56) 100%);
    opacity: 0.62;
    box-shadow: 0px -12px 20px rgba(0, 0, 0, 0.25), inset 0px 7px 8px rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    border-radius: 20px 20px 0px 0px;
    z-index: 100;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 348px;
    padding-left: 320px;
    padding-top: 150px;
    display: flex;
    gap: 15px;
}
.footer-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}
.footer-icons {
    position: absolute;
    bottom: 160px;
    left: 320px;
    z-index: 101;
}

@media (min-width: 700px) and (max-width: 1400px) {
    .sidebar {
        display: none;
    }
    header {
        margin-left: 0px;
    }
    .divp2 {
        height: 240px;
    }
    .p2 {
        font-size: 28.8px;
        line-height: 35px;
    }
    .carousel-card.left,
    .carousel-card.right {
        width: 267px;
        height: 267px;
    }

    .carousel-card.center {
        width: 414px;
        height: 414px;
    }
    .main-2 {
        height: 120vh;
    }
    .main-3 {
        height: 150vh;
    }
    .footer-icons {
        margin-left: 13%;
        margin-right: auto;
    }
    .agr {
        margin-top: 200px;
    }
    .agr-left {
        max-width: 700px;
    }
}
@media (min-width: 1401px) and (max-width: 1800px) {
    .sidebar {
        width: 250px;
        min-width: 250px;
    }
    header {
        margin-left: 250px;
    }
    .menu-pnt::before {
        height: 70px;
    }
    .menu-pnt {
        padding: 23px 15px;
        font-size: 15.4167px;
        line-height: 19px;
    }
    .menu-pnt:hover > span {
        transform: translateX(calc(125px - 20px - 50%));
    }
    .breadcrumbs {
        margin-left: 300px;
    }
    .main-2 {
        height: 120vh;
    }
    .main-3 {
        height: 150vh;
    }
    .footer {
        width: 100%;
    }
    .carousel-card.left,
    .carousel-card.right {
        width: 267px;
        height: 267px;
    }

    .carousel-card.center {
        width: 414px;
        height: 414px;
    }
}

@media (max-width: 1400px) {
    .reestr-block-wraper::before {
        bottom: 0px;
    }
    .breadcrumbs {
        margin-left: 50px;
    }
    .reestr-block {
        height: 1200px;
    }
}

@media (max-width: 600px) {
    .reestr-block-wraper::before {
        bottom: 0px;
    }
    .reestr-block {
        height: 900px;
    }
    h1 {
        font-size: 28px;
    }
    .breadcrumbs {
        margin-left: 10px;
    }
}

@media (min-width: 10px) and (max-width: 699px) {
    .sidebar {
        display: none;
    }

    .main-1-buttons-panel {
        display: none;
    }

    .divp2 {
        height: 290px;
        padding-top: 5px;
        margin-top: 40px;
        display: block;
    }

    .p2 {
        font-size: calc(13px + 2vw);
        line-height: 21px;
        margin: 3%;
        margin-bottom: 0;
    }

    .p1 {
        font-size: 30px;
        line-height: 36px;
    }

    .about {
        width: 129px;
        height: 30px;
        background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
        box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.25), inset 0px 1.17188px 2.74219px rgba(255, 255, 255, 0.25);
        border-radius: 14px;
    }

    .aboutp {
        height: 17px;
        font-family: "Montserrat Alternates";
        font-style: normal;
        font-weight: 400;
        font-size: 19px;
        line-height: 21px;
        color: #ffffff;
        text-shadow: 0px 0.703125px 0.9375px rgba(0, 0, 0, 0.4);
    }

    .divp1m4 {
        display: none;
    }

    .main-1 {
        position: relative;
        height: 30vh;
        top: 0px;
        background-image: url('/static/img/home/mainimg.svg');
        background-size: 100% auto; /* Ширина 100%, высота автоматическая */
        background-repeat: no-repeat;
        background-position: center center;
        display: none;
    }

    .carousel-card.left,
    .carousel-card.right {
        width: 78px;
        height: 78px;
        box-shadow: 0px -2px 19.1px rgba(0, 0, 0, 0.25);
        z-index: 1;
        opacity: 0.9;
        filter: brightness(0.9);
    }

    .carousel-card.center {
        width: 121px;
        height: 121px;
        background: #ffffff;
        box-shadow: 0px 37px 40.7px rgba(0, 0, 0, 0.25);
        z-index: 3;
    }

    .carousel {
        gap: 0px;
        height: 200px;
    }

    .name-display {
        width: 370px;
        margin: 0;
    }

    .agr-right {
        width: 150px;
        font-size: 20px;
        line-height: 28px;
    }

    .footer-icons {
        bottom: 80px;
        left: 50px;
    }

    .footer {
        height: 200px;
    }

    .basement-back {
        height: 200px;
    }

    .divp3 {
        flex-direction: column;
        margin-top: 40px;
    }

    .about {
        width: 120px;
        height: 44px;
        border: none;
        bottom: 0;
        margin-left: 30%;
        margin-right: auto;
        margin-top: 10px;
        margin-bottom: 30px;
        background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
        box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.25), inset 0px 5px 11.7px rgba(255, 255, 255, 0.25);
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .footer {
        position: absolute;
        bottom: 0px;
        left: 0;
    }
}

.clubs-container {
    position: relative;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
}

.clubs-container:hover {
    margin-bottom: 135px; /* Высота подменю + отступы */
}

/* Отменяем сдвиг текста для кнопки "КЛУБЫ" */
.clubs-container > span {
    transform: none !important;
}

.clubs-container:hover > span {
    transform: none !important;
}

/* Стили для выпадающего меню */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.clubs-container:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стили для пунктов подменю */
.submenu-item {
    padding: 10px 25px;
    font-size: 16px;
    color: #868686;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: #f2faff;
    color: #333;
    padding-left: 30px;
}

.submenu-item:last-child {
    border-bottom: none;
}

/* ИЗМЕНЕНИЕ: Градиентный фон для кнопки "КЛУБЫ" при наведении */
.clubs-container::before {
    height: 222px; /* Высота кнопки + подменю */
    background: linear-gradient(-90deg, #F2FAFF 0%, rgba(255, 255, 255, 0) 100%);
    transform: none; /* Убираем поворот, так как градиент уже имеет правильное направление */
}

.clubs-container:hover::before {
    opacity: 1;
}

/* Дополнительно: делаем фон подменю прозрачным, чтобы был виден градиент */
.submenu {
    background: transparent;
}

.submenu-item {
    background: transparent;
}

.submenu-item:hover {
    background: rgba(242, 250, 255, 0.7); /* Полупрозрачный фон при наведении на пункты */
}
@media (max-width: 1800px) {
    .clubs-container::before {
    height: 187px;}
}