* {
    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;
}
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-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 {
    /* Исходные стили */
    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;
}

.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;
    height: 24px;
    font-family: "Montserrat Alternates";
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
    width: 180px; /* Фиксированная ширина для центрирования */
}

@media (max-width: 1250px) {
    .first-step-inactive {
        display: none;
    }
}
.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;
}
.about:hover {
    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);
}
.about:active {
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: inset 0px 5px 4.4px rgba(31, 31, 31, 0.25);
}
.aboutp {
    font-family: "Montserrat Alternates", sans-serif;
    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 {
    margin-bottom: 30px;
    text-align: center;
    font-weight: 400;
    font-size: 64px;
    line-height: 78px;
    color: #83B2B6;
    text-shadow: 0px 4px 6.3px rgba(0, 0, 0, 0.26);
}
.modal-desc-text {
    font-style: normal;
    font-weight: 400;
    font-size: 30px;
    line-height: 44px;
    color: #5b2812;
    margin-top: 20px;
}
.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/back-main4-filter.png');
    background-size: cover;
    /*height: 70vh;*/
    justify-content: center;
    align-items: center;
}
.main-5 {
    position: relative;
    padding-top: 40px;
    flex: 1;
    background-image: url('/static/img/home/double.png');
    background-size: cover;
    justify-content: center;
    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: absolute;
    top: 50%;
    left: 50%;
    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);
    transform: translateX(-50%) translateY(-50%);
    z-index: 3;
}

.carousel-card.left {
    transform: translateX(calc(-50% - 550px)) translateY(-50%);
}

.carousel-card.right {
    transform: translateX(calc(-50% + 550px)) translateY(-50%);
}

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

.carousel-card.hidden {
    display: none;
}

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

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

.carousel-card.hidden {
    display: none;
}

.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: 400;
    color: #9A9A9A;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    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));
}
.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;
}
.list-button:hover {
    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);
}
.list-button:active {
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: inset 0px 5px 4.4px rgba(31, 31, 31, 0.25);
}
.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;
}
.agr-right:hover {
    background: linear-gradient(207.43deg,
        rgba(255, 235, 190, 0.85) 10%,
        rgba(255, 215, 140, 0.85) 55%,
        rgba(235, 190, 100, 0.85) 90%);
    box-shadow:
        0px 8px 12px rgba(0, 0, 0, 0.20),          /* внешняя */
        inset 0px 4px 6px rgba(255, 255, 255, 0.30), /* верхняя внутренняя */
        inset 0px -3px 8px rgba(0, 0, 0, 0.15);      /* нижняя внутренняя */
}
.agr-right:active {
    box-shadow:
        inset 0px 4px 6px rgba(0, 0, 0, 0.30),   /* верхняя внутренняя */
        inset 0px -4px 8px rgba(0, 0, 0, 0.25);  /* нижняя внутренняя */
}
.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", sans-serif;
    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);
}
.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) {
    header {
        margin-left: 0px;
    }
    .divp2 {
        height: 240px;
    }
    .p2 {
        font-size: 28.8px;
        line-height: 35px;
    }
    .p2.reverse {
        font-size: 20px;
    }
    .carousel-card.left,
    .carousel-card.right {
        width: 267px;
        height: 267px;
    }

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

   .carousel-card.left {
        transform: translateX(calc(-50% - 250px)) translateY(-50%);
    }

    .carousel-card.right {
        transform: translateX(calc(-50% + 250px)) translateY(-50%);
    }
    .footer-icons {
        margin-left: 13%;
        margin-right: auto;
    }
    .agr {
        margin-top: 200px;
    }
    .agr-left {
        max-width: 700px;
    }
}
@media (min-width: 700px) and (max-width: 900px) {
     .p2.reverse {
        font-size: 12px;
    }
}
@media (min-width: 1401px) and (max-width: 1800px) {
    header {
        margin-left: 250px;
    }
    .footer {
        width: 110%;
    }
    .carousel-card.left,
    .carousel-card.right {
        width: 267px;
        height: 267px;
    }

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

    .carousel-card.left {
        transform: translateX(calc(-50% - 300px)) translateY(-50%);
    }

    .carousel-card.right {
        transform: translateX(calc(-50% + 300px)) translateY(-50%);
    }
}

@media (min-width: 10px) and (max-width: 699px) {
    .main-1-buttons-panel {
        display: none;
    }
    .modal-desc-text {
        font-size: 20px;
    }
    .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;
    }
    .p2.reverse {
        font-size: 16px;
    }
    .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-card.left {
        transform: translateX(calc(-50% - 150px)) translateY(-50%);
    }

    .carousel-card.right {
        transform: translateX(calc(-50% + 150px)) translateY(-50%);
    }

    .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;
    }

    .modal {
        background: linear-gradient(0deg, #749da1 17.5%, rgba(153, 208, 213, 0) 100%);
        border-radius: 0px;
        backdrop-filter: blur(100px);
        height: 100vh;
        width: 100vw;
    }
    .modal-content {
        width: 90%;
        height: 100vh;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 30px;
        padding: 40px;
        position: relative;
        overflow: auto;
    }

    .list-button {
        width: 300px;
        height: 38px;
        background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25), inset 0px 1.17188px 2.74219px rgba(255, 255, 255, 0.25);
        border-radius: 60px;
    }
    .list {
        background: none;
        margin-top: 0;
    }
    .carousel-container {
        width: auto;
        margin-left: 1%;
        padding: 0;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .calendar-container-block {
        margin-left: 30%;
    }
    .main-4 {
        position: relative;
        padding-top: 0px;
        flex: 1;
        background: url('/static/img/home/main4.jpg');
        background-size: cover;
        /*height: 50vh;*/
        justify-content: center;
        align-items: center;
    }
    .main-3 {
        position: relative;
        flex: 1;
        background: url('/static/img/home/main3.jpg');
        background-size: cover;
        /*height: 60vh;*/
        justify-content: center;
        align-items: center;
    }
    .name-display {
        background: none;
        box-shadow: none;
        border-radius: none;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .agr {
        height: 160px;
        margin-top: 100px;
    }
    .agr-right {
        height: 160px;
    }
    .agr-left {
        height: 160px;
    }
    .calendar-container-block-full {
        max-width: 170px;
        max-height: 260px;
    }
    .main-1-buttons-panel-mobile {
        display: block;
        height: 100px;
        padding-right: auto;
        padding-left: 20%;
    }
    .main-1-yellow-button {
        width: 237px;
        height: 25px;
        background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
        box-shadow: 0px 1.40625px 2.10938px rgba(0, 0, 0, 0.25), inset 0px 1.17188px 2.74219px rgba(255, 255, 255, 0.25);
        border-radius: 14px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    .carousel-wrapper {
        margin-top: 10px;
    }
    .n1 {
        order: 2;
    }
    .n2 {
        order: 1;
    }
}



  @media (max-width: 700px) {
    .carousel-btn.prev,
    .carousel-btn.next {
      display: none !important;
    }
  }




.carousel-wrapper {
            position: relative;
justify-content: center;
align-items: center;
gap: 100px;
margin-top: 200px;
        }

        .carousel-title {
            margin-top: 0;
            color: #333;
            padding-bottom: 10px;
            border-bottom: 2px solid #ddd;
        }

        /* Контейнер для карусели */
        .swipe-container {
            position: relative;
            overflow: hidden;
            height: 400px;
        }

        /* Стили для слайдов */
        .slide {
            position: absolute;
            width: 100%;
            height: 100%;
            transition: transform 0.4s ease;
        }

        /* Начальные позиции для слайдов */
        .slide.active {
            transform: translateX(0);
        }

        .slide.next {
            transform: translateX(100%);
        }

        .slide.prev {
            transform: translateX(-100%);
        }

        /* Индикаторы для мобильного режима */
        .indctrs {
            display: flex;
            justify-content: center;
            margin-top: 15px;
            gap: 10px;
        }

        .indctr {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #ccc;
            cursor: pointer;
            transition: background 0.3s;
        }

        .indctr.active {
            background: #555;
        }

        /* Десктопный режим */
        @media (min-width: 700px) {
            .swipe-container {
                height: 250px;
                display: flex;
                position: static;
                overflow: visible;
                gap: 100px;
                padding: 0 20px;
                justify-content: center;

align-items: center;
            }

            .slide {
                position: relative;
                flex: 1 1 calc(50% - 50px);
                max-width: 457px;
                transform: none !important;

            }

            .indctrs {
                display: none;
            }
        }

        /* Цвета для слайдов */



        .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;
}
.card-btn:hover {
    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);
}
.card-btn:active {
    background: linear-gradient(180deg, #dfc070 0%, #d5b460 100%);
    box-shadow: inset 0px 5px 4.4px rgba(31, 31, 31, 0.25);
}
@media (min-width: 10px) and (max-width: 699px) {
    .card {
        width: 100%;
    }
    .card-btn {
        background: linear-gradient(180deg, #DFC070 0%, #D5B460 100%);
        box-shadow: 0px 1.40625px 2.10938px rgba(0, 0, 0, 0.25), inset 0px 1.17188px 2.74219px rgba(255, 255, 255, 0.25);
        border-radius: 26px;
        margin-left: 17%;
    }
    .carousel-wrapper {
        margin-top: 50px;
    }
}

@media (max-width: 1400px) {
    .basement-back {
        border-radius: 20px 20px 0px 0px;
    }
}