body{
    margin: 0;
    max-width: 100vw;
    font-family: "Montserrat";
    padding-top: 64px;
}
a{
    color: black;
    text-decoration: none;
}
h2{
    font-size: 40px;
    font-weight: 500;
}
section{
    margin: 30px 0;
}
main {
     min-height: calc(100vh - 250px);
 }
section.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

section.animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Разные типы анимаций */
[data-animation="fadeInUp"] {
    transform: translateY(30px);
}

[data-animation="fadeInLeft"] {
    transform: translateX(-30px);
}

[data-animation="fadeInRight"] {
    transform: translateX(30px);
}

[data-animation="zoomIn"] {
    transform: scale(0.9);
}

.animated[data-animation="zoomIn"] {
    transform: scale(1);
}
section.gray{
    background: #F0F1F5;
}
.white{
    color: white;
}
.title{
    font-size: 34px;
    font-weight: 500;
}
.text{
    font-size: 18px;
    font-weight: 300;
}
.blue{
    color: #28336E;
}
.button{
    padding: 12px 40px;
    color: white;
    background: #28336E;
    font-size: 16px;
    border-radius: 12px;
    display: inline-block;
    cursor: pointer;
    width: max-content;
    border: none;
}
.button.white{
    color: #28336E;
    background: white;
}
header, section, footer{
    width: 100%;
    padding: 0 calc(50% - 820px);
    box-sizing: border-box;
}
header{
    background: #28336E;
    height: 64px;
    padding-top: 13px;
    padding-bottom: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 9999;
    top: 0;
}
header .menu {
    display: flex;
    gap: 30px;
    width: 50%;
    justify-content: space-between;
}
header .menu a{
    color: white;
    font-size: 16px;
    font-weight: 300;
}
header .phone{
    color: white;
}
header .phone a{
    color: white;
    font-size: 16px;
    padding-left: 35px;
}
header .phone a:before{
    content: "";
    background: url("../img/phone_icon.svg");
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    border: 1px solid #fff;
    border-radius: 50%;
    top: 18px;
}
footer{
    background: #F0F1F5;
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    justify-content: start;
    gap: 50px;
}
.footer__row {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
footer .logo {
    max-height: 100%;
    height: auto;
    width: 120px;
}
footer .logo img{
    max-height: 100%;
    height: auto;
    width: 120px;
    max-width: 100%;
}
.footer__row__text {
    margin-top: 30px;
    font-size: 12px;
    font-weight: 600;
}
footer .menu {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-direction: column;
    margin-right: 180px;
}
footer .menu a{
    font-size: 16px;
    font-weight: 300;
}
footer .contacts__info__line__name {
    font-size: 14px;
    margin-bottom: 6px;
}
footer .contacts__info__line__text {
    font-size: 16px;
    font-weight: 600;
}
footer .contacts__info {
    gap: 20px;
}
.footer__row__button {
    background: #F0F1F5;
    color: #2D3134;
    border: 2px solid #2D3134;
    padding: 12px;
}
footer .contacts__info__line__socials a {
    width: 35px;
    height: 35px;
}
.logo{
    max-height: 100%;
    height: 100%;
}
.logo img{
    max-width: 400px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
}
.banner-section{
    display: flex;
    gap: 40px;
}
.banner-section__main{
    position: relative;
    flex: 3 1 66%;
    border-radius: 15px;
    height: 600px;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 110%;
    box-sizing: border-box;
    padding: 30px;
    overflow: hidden;
    transition: background-size 1s ease;
}

.banner-section__main:hover {
    background-size: 120%;
}

.banner-section__main::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -50px;
    height: 50%;
    background: linear-gradient(0deg, #28336E, rgba(255,255,255,0));
    border-radius: 20px;
    z-index: 1;
}
.banner-section__main > * {
    position: relative;
    z-index: 2;
}
.banner-section__main__info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 60%;
}
.banner-section__main__info__title{
    padding-bottom: 30px;
}

.banner-section__small{
    flex: 1 1 33%;
    position: relative;
}
.banner-section__small img{
    max-width: 100%;
    border-radius: 15px;
}
.banner-section__small .text{
    margin-top: 20px;
    margin-bottom: 5px;
}
.banner-section__small .text{
    margin-top: 20px;
    margin-bottom: 5px;
}
.banner-section__small__info__img{
    max-width: 100%;
    border-radius: 15px;
    height: 100%;
    overflow: hidden;
}
.banner-section__small__info__img img{
    transition: transform 1s ease;
}
.banner-section__small__info__img img:hover {
    transform: scale(1.1);
    position: relative;
}
.banner-section__small__info__button{
    bottom: 0;
    position: absolute;
    left: calc(50% - 115px);
    box-sizing: border-box;
}
.banner-section__small__info__title{
    font-weight: 600;
}

.apartments {
    display: flex;
    gap: 30px;
}
.apartments__card {
    max-width: 33%;
    height: 600px;
    border: 1px solid #DEDEDE;
    border-radius: 20px;
    overflow: hidden;
}

.apartments__card__img {
    max-width: 100%;
    height: 60%;
    overflow: hidden;
}
.apartments__card__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transition: transform 1s ease;
}
.apartments__card__img img:hover {
    transform: scale(1.1);
    position: relative;
}

.apartments__card__img__info {
    padding: 10px 30px;
}

.apartments__card__img__info__title {
    margin-bottom: 10px;
}
section#project {
     padding-top: 1px;
 }
.projects {
    display: flex;
    gap: 50px;
    padding-bottom: 60px;
    flex-wrap: wrap;
}
.projects__card {
    height: 550px;
    width: 50%;
    border-radius: 15px;
    border: 1px solid  #DEDEDE;
    position: relative;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 110%;
    box-sizing: border-box;
    padding: 30px;
    overflow: hidden;
    transition: background-size 1s ease;
    max-width: calc(50% - 30px);
}
.projects__card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 50%;
    background: linear-gradient(0deg, #28336E, rgba(255,255,255,0));
    border-radius: 20px;
    z-index: 1;
}
.projects__card:hover {
    background-size: 120%;
}
.projects__card > * {
    position: relative;
    z-index: 2;
}
.projects__card__info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: calc(100% - 60px);
}
.projects__card__info__title {
    padding-bottom: 10px;
}

.projects__card__info__text {
    padding-bottom: 10px;
}

a.projects__card__info__link {
    text-decoration: underline;
}
a.projects__card__info__link::after{
    content: "→";
    text-decoration: none;
    display: inline-block;
    padding-left: 10px;
    font-size: 26px;
}

.contacts {
    display: flex;
    gap: 40px;
}

.contacts iframe {
    flex: 3 1 66%;
    border-radius: 15px;
}

.contacts__info {
    flex: 1 1 33%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    justify-content: center;
}

.contacts__info__line__name {
    font-size: 22px;
    margin-bottom: 10px;
}

.contacts__info__line__text {
    font-size: 34px;
    font-weight: 600;
}

.contacts__info__line__socials {
    display: flex;
    gap: 30px;
}

.contacts__info__line__socials a {
    width: 50px;
    height: 50px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

a.telegram{
    background-image: url("../img/tg-logo.svg");
}
a.whatsapp{
    background-image: url("../img/wa-logo.svg");
}
a.vk{
    background-image: url("../img/vk-logo.svg");
}
.mobile{
    display: none;
}
@media (max-width: 1680px) {
    header, section, footer {
        padding: 0 calc(50% - 640px);
    }
    .projects__card{
        height: 400px;
    }
    .logo img{
        padding: 10px 0;
    }
}
@media (max-width: 1300px) {
    header, section, footer {
        padding: 0 40px;
    }
    .banner-section__main {
        background-size: cover;
    }
    .projects__card{
        background-size: cover;
    }
    .mobile{
        display: initial;
    }
    .desktop{
        display: none;
    }
    footer{
        padding-top: 40px;
        flex-wrap: wrap;
    }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ХЭДЕРА ========== */

@media screen and (max-width: 1024px) {
    header {
        padding: 0 20px;
        height: 60px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body {
        padding-top: 60px;
    }

    .logo img {
        max-width: 300px;
    }

    header .menu {
        gap: 20px;
    }

    header .menu a {
        font-size: 15px;
    }

    header .phone a {
        font-size: 15px;
        padding-left: 30px;
    }

    header .phone a:before {
        top: 16px;
    }
}

@media screen and (max-width: 768px) {
    /* Гамбургер меню */
    header {
        height: 56px;
        padding: 0 15px;
        justify-content: space-between;
        position: fixed;
        z-index: 10000;
    }

    body {
        padding-top: 56px;
    }

    .logo {
        height: 36px;
        z-index: 10001;
    }

    .logo img.mobile {
        height: 36px;
        width: auto;
        max-width: 180px;
        padding: 0;
    }

    .logo img.desktop {
        display: none;
    }

    .logo img.mobile {
        display: block;
    }

    /* Гамбургер иконка */
    .menu-toggle {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 10001;
        background: none;
        border: none;
        padding: 0;
    }

    .menu-toggle span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: white;
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .menu-toggle span:nth-child(1) {
        top: 0px;
    }

    .menu-toggle span:nth-child(2) {
        top: 10px;
    }

    .menu-toggle span:nth-child(3) {
        top: 20px;
    }

    .menu-toggle.active span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .menu-toggle.active span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }

    /* Основное меню - скрыто по умолчанию */
    .menu {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: 0;
        background: #28336E;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 9999;
        gap: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        height: calc(100vh - 56px);
        padding-top: 30px;
    }

    .menu__el {
        width: 100%;
        text-align: center;
        padding: 20px 15px;
        font-size: 18px;
        font-weight: 400;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .menu.active .menu__el {
        opacity: 1;
        transform: translateY(0);
    }

    .menu.active .menu__el:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu.active .menu__el:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menu.active .menu__el:nth-child(3) {
        transition-delay: 0.3s;
    }

    .menu.active .menu__el:nth-child(4) {
        transition-delay: 0.4s;
    }

    /* Телефон в мобильном меню */
    .phone {
        display: none;
    }

    .phone.mobile {
        display: block;
        width: 100%;
        text-align: center;
        padding: 30px 15px;
        margin-top: auto;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease 0.5s;
    }

    .menu.active .phone.mobile {
        opacity: 1;
        transform: translateY(0);
    }

    .phone.mobile a {
        font-size: 20px;
        font-weight: 600;
        color: white;
        display: inline-block;
        padding: 15px 30px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        width: 90%;
        max-width: 300px;
    }

    .phone.mobile a:before {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    header {
        height: 52px;
        padding: 0 12px;
    }

    body {
        padding-top: 52px;
    }

    .logo {
        height: 32px;
    }

    .logo img.mobile {
        height: 32px;
        max-width: 150px;
    }

    .menu-toggle {
        width: 26px;
        height: 20px;
    }

    .menu-toggle span {
        height: 2.5px;
    }

    .menu-toggle span:nth-child(2) {
        top: 9px;
    }

    .menu-toggle span:nth-child(3) {
        top: 18px;
    }

    .menu-toggle.active span:nth-child(1) {
        top: 9px;
    }

    .menu-toggle.active span:nth-child(3) {
        top: 9px;
    }

    .menu {
        top: 52px;
    }

    .menu.active {
        height: calc(100vh - 52px);
        padding-top: 20px;
    }

    .menu__el {
        padding: 18px 15px;
        font-size: 17px;
    }

    .phone.mobile a {
        padding: 12px 20px;
        box-sizing: border-box;
        font-size: 16px;
    }
}

@media screen and (max-width: 360px) {
    header {
        height: 48px;
    }

    body {
        padding-top: 48px;
    }

    .logo {
        height: 28px;
    }

    .logo img.mobile {
        height: 28px;
        max-width: 130px;
    }

    .menu {
        top: 48px;
    }

    .menu.active {
        height: calc(100vh - 48px);
    }

    .menu__el {
        padding: 16px 15px;
        font-size: 16px;
    }

    .phone.mobile a {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* Для телефона в десктопном хэдере */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    .phone.mobile {
        display: none;
    }
}

/* Анимация для меню */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ГЛАВНОЙ СТРАНИЦЫ ========== */

@media screen and (max-width: 1300px) {
    /* Адаптация для планшетов */
    section {
        padding: 0 30px;
    }

    /* Баннер секция */
    .banner-section {
        flex-direction: column;
        gap: 30px;
    }

    .banner-section__main {
        height: 500px;
        background-size: cover;
        background-position: center;
    }

    .banner-section__main__info {
        width: 80%;
        bottom: 40px;
        left: 40px;
    }

    .banner-section__main__info__title {
        font-size: 30px;
        padding-bottom: 25px;
    }

    .banner-section__small__info__text {
        font-size: 16px;
    }

    .banner-section__small__info__title {
        font-size: 30px;
    }

    /* Секция с карточками */
    .apartments {
        flex-direction: column;
        gap: 25px;
    }

    .apartments__card {
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .apartments__card__img {
        height: 350px;
    }

    .apartments__card__img__info {
        padding: 25px;
    }

    /* Проекты */
    .projects {
        flex-direction: column;
        gap: 30px;
    }

    .projects__card {
        width: 100%;
        height: 400px;
    }

    .projects__card__info {
        width: calc(100% - 60px);
    }

    /* Контакты */
    .contacts {
        flex-direction: column;
        gap: 30px;
    }

    .contacts iframe {
        height: 400px;
        order: 2;
    }

    .contacts__info {
        order: 1;
        gap: 30px;
    }

    .contacts__info__line__name {
        font-size: 20px;
    }

    .contacts__info__line__text {
        font-size: 28px;
    }

    /* Заголовки */
    h2 {
        font-size: 36px;
        text-align: center;
    }

    .title {
        font-size: 30px;
    }

    .text {
        font-size: 17px;
    }
}

@media screen and (max-width: 768px) {
    /* Мобильная версия */
    section {
        padding: 0 20px;
        margin: 20px 0;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .title {
        font-size: 24px;
    }

    .text {
        font-size: 16px;
    }

    /* Баннер секция */
    .banner-section {
        gap: 20px;
    }

    .banner-section__main {
        height: 350px;
        padding: 20px;
        border-radius: 12px;
    }

    .banner-section__main::before {
        border-radius: 12px;
    }

    .banner-section__main__info {
        width: 90%;
        bottom: 20px;
        left: 20px;
    }

    .banner-section__main__info__title {
        font-size: 22px;
        padding-bottom: 20px;
        line-height: 1.3;
    }

    .banner-section__main__info__button.button {
        padding: 12px 25px;
        font-size: 15px;
    }

    .banner-section__small__info__img img {
        border-radius: 12px;
    }

    .banner-section__small__info__text {
        margin-top: 15px;
        margin-bottom: 5px;
        font-size: 15px;
    }

    .banner-section__small__info__title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .banner-section__small__info__button.button {
        position: relative;
        left: 0;
        transform: none;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }

    /* Секция "В наших домах" */
    #apartment {
        margin-top: 30px;
    }

    .apartments {
        gap: 20px;
    }

    .apartments__card {
        border-radius: 12px;
    }

    .apartments__card__img {
        height: 250px;
        border-radius: 12px 12px 0 0;
        overflow: hidden;
    }

    .apartments__card__img img {
        transition: transform 0.8s ease;
    }

    .apartments__card__img__info {
        padding: 20px;
    }

    .apartments__card__img__info__title {
        margin-bottom: 8px;
        font-size: 22px;
    }

    .apartments__card__img__info__text {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Секция проектов */
    #project {
        padding: 20px;
        margin: 30px -20px;
        width: calc(100% + 40px);
    }

    .projects {
        gap: 20px;
        padding-bottom: 40px;
    }

    .projects__card {
        height: 300px;
        border-radius: 12px;
        padding: 20px;
    }

    .projects__card::before {
        border-radius: 12px;
    }

    .projects__card__info {
        bottom: 20px;
        left: 20px;
        width: calc(100% - 40px);
    }

    .projects__card__info__title {
        padding-bottom: 8px;
        font-size: 22px;
    }

    .projects__card__info__text {
        padding-bottom: 8px;
        font-size: 15px;
    }

    a.projects__card__info__link {
        font-size: 15px;
    }

    a.projects__card__info__link::after {
        font-size: 22px;
        padding-left: 8px;
    }

    /* Секция контактов */
    #contacts {
        margin-top: 30px;
    }

    .contacts {
        gap: 25px;
    }

    .contacts iframe {
        height: 300px;
        border-radius: 12px;
    }

    .contacts__info {
        gap: 25px;
    }

    .contacts__info__line__name {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .contacts__info__line__text {
        font-size: 22px;
        line-height: 1.3;
    }

    .contacts__info__line__text a {
        font-size: 22px;
        word-break: break-word;
    }

    .contacts__info__line__socials {
        gap: 20px;
        justify-content: center;
    }

    .contacts__info__line__socials a {
        width: 45px;
        height: 45px;
    }

    /* Кнопки */
    .button {
        padding: 12px 30px;
        font-size: 15px;
        border-radius: 10px;
        min-width: 200px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    /* Маленькие мобильные устройства */
    section {
        padding: 0 15px;
        margin: 15px 0;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .title {
        font-size: 20px;
    }

    .text {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Баннер секция */
    .banner-section__main {
        height: 280px;
        padding: 15px;
    }

    .banner-section__main__info {
        width: 95%;
        bottom: 15px;
        left: 15px;
    }

    .banner-section__main__info__title {
        font-size: 18px;
        padding-bottom: 15px;
    }

    .banner-section__main__info__button.button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-section__small__info__text {
        font-size: 14px;
    }

    .banner-section__small__info__title {
        font-size: 20px;
    }

    /* Секция "В наших домах" */
    .apartments {
        gap: 15px;
    }

    .apartments__card__img {
        height: 200px;
    }

    .apartments__card__img__info {
        padding: 15px;
    }

    .apartments__card__img__info__title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .apartments__card__img__info__text {
        font-size: 14px;
    }

    /* Секция проектов */
    #project {
        padding: 15px;
        margin: 20px -15px;
        width: calc(100% + 30px);
    }

    .projects__card {
        height: 250px;
        padding: 15px;
    }

    .projects__card__info {
        bottom: 15px;
        left: 15px;
        width: calc(100% - 30px);
    }

    .projects__card__info__title {
        font-size: 20px;
    }

    .projects__card__info__text {
        font-size: 14px;
    }

    a.projects__card__info__link {
        font-size: 14px;
    }

    a.projects__card__info__link::after {
        font-size: 20px;
    }

    /* Секция контактов */
    .contacts iframe {
        height: 250px;
    }

    .contacts__info {
        gap: 20px;
    }

    .contacts__info__line__name {
        font-size: 16px;
    }

    .contacts__info__line__text {
        font-size: 20px;
    }

    .contacts__info__line__text a {
        font-size: 20px;
    }

    .contacts__info__line__socials a {
        width: 40px;
        height: 40px;
    }

    /* Кнопки */
    .button {
        padding: 10px 25px;
        font-size: 14px;
        min-width: 180px;
    }
}

@media screen and (max-width: 360px) {
    /* Очень маленькие экраны */
    section {
        padding: 0 12px;
    }

    h2 {
        font-size: 22px;
    }

    .title {
        font-size: 18px;
    }

    .text {
        font-size: 13px;
    }

    /* Баннер секция */
    .banner-section__main {
        height: 240px;
    }

    .banner-section__main__info__title {
        font-size: 16px;
    }

    .banner-section__small__info__title {
        font-size: 18px;
    }

    /* Карточки */
    .apartments__card__img {
        height: 180px;
    }

    /* Проекты */
    .projects__card {
        height: 220px;
    }

    .projects__card__info__title {
        font-size: 18px;
    }

    /* Контакты */
    .contacts iframe {
        height: 220px;
    }

    .contacts__info__line__text {
        font-size: 18px;
    }

    .contacts__info__line__text a {
        font-size: 18px;
    }
}

/* Анимации для мобильных */
@media screen and (max-width: 768px) {
    section.animate {
        transform: translateY(20px);
        transition: all 0.6s ease;
    }

    [data-animation="fadeInUp"] {
        transform: translateY(20px);
    }

    [data-animation="fadeInLeft"] {
        transform: translateX(-20px);
    }

    [data-animation="fadeInRight"] {
        transform: translateX(20px);
    }
}

/* Фикс для корректного отображения изображений на мобильных */
@media screen and (max-width: 768px) {
    .banner-section__main,
    .projects__card {
        background-attachment: scroll;
        background-position: center;
        flex: auto;
    }

    .banner-section__main:hover {
        background-size: cover;
    }

    .projects__card:hover {
        background-size: cover;
    }
}

/* Адаптация горизонтального скролла на мобильных */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    section {
        overflow: hidden;
    }
}

/* Адаптация ссылок на мобильных */
@media screen and (max-width: 768px) {
    .contacts__info__line__text a,
    a.projects__card__info__link {
        display: inline-block;
        padding: 2px 0;
    }
}

/* Адаптация отступов для лучшего UX */
@media screen and (max-width: 768px) {
    section:not(.gray) {
        margin: 40px 0;
    }

    section.gray {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

.jk-card {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    gap: 40px;
    box-sizing: border-box;
}

.jk-card__left {
    flex: 1.6;
}

.jk-card__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 40px;
}

/* Карусель */
.carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 600px;
}

.carousel__slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel__slide {
    min-width: 100%;
    height: 100%;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер для нижних элементов управления */
.carousel__bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
    z-index: 10;
    box-sizing: border-box;
}

/* Кнопки навигации - выше полос */
.carousel__nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 15px; /* Отступ между кнопками и полосами */
}

.carousel__button {
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel__button:hover {
    background: white;
    transform: scale(1.1);
}

.carousel__button img {
    width: 12px;
    height: 12px;
}

/* Полосы навигации - растягиваются на всю ширину */
.carousel__pagination {
    display: flex;
    gap: 6px;
    width: 100%;
}

.carousel__pagination-bullet {
    flex: 1;
    height: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    min-width: 0;
}

.carousel__pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel__pagination-bullet.active {
    background: white;
}

/* Информация */
.jk-info__deadline {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.jk-info__title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #28336E;
}

.jk-info__address {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Статистика */
.jk-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.jk-stat {
    background: #F0F1F5;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    padding-bottom: 40px;
}
img.jk-stat__label--img {
    position: absolute;
    right: 20px;
    bottom: 20px;
}
.jk-stat__value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #28336E;
}

.jk-stat__label {
    font-size: 14px;
    color: black;
    max-width: 70%;
}

/* Адаптивность */
@media (max-width: 1680px) {
    .jk-card {
        padding: 0 40px;
    }
}

@media (max-width: 1300px) {
    .jk-card {
        flex-direction: column;
        gap: 30px;
    }

    .carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .jk-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .jk-stat {
        padding: 15px;
    }

    .jk-stat__value {
        font-size: 20px;
    }

    .carousel__bottom-controls {
        padding: 15px;
    }

    .carousel__pagination {
        gap: 4px;
    }

    .carousel__button {
        width: 36px;
        height: 36px;
    }

    .carousel__button img {
        width: 10px;
        height: 10px;
    }

    .carousel__nav {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .jk-stats {
        grid-template-columns: 1fr;
    }

    .carousel {
        height: 300px;
    }

    .jk-info__title {
        font-size: 28px;
    }

    .jk-card {
        padding: 20px;
    }

    .carousel__bottom-controls {
        padding: 12px;
    }

    .carousel__pagination {
        gap: 3px;
    }

    .carousel__button {
        width: 32px;
        height: 32px;
    }

    .carousel__button img {
        width: 8px;
        height: 8px;
    }

    .carousel__nav {
        margin-bottom: 10px;
    }
}

/* Форма фильтрации */
.jk-filter {
    margin-top: 30px;
}

.jk-filter__form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 15px;
    justify-content: center;
}

/* Типы квартир */
.jk-filter__types {
    display: flex;
    gap: 8px;
}

.jk-filter__input {
    display: none;
}

.jk-filter__label {
    padding: 10px 18px;
    border: 1px solid #DEDEDE;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.jk-filter__input:checked + .jk-filter__label {
    background: #28336E;
    color: white;
    border-color: #28336E;
}

/* Слайдеры */
.jk-filter__range {
    min-width: 220px;
    padding: 14px 16px 16px;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    padding-bottom: 0;
    background: white;
    box-sizing: border-box;
}

.jk-filter__range.min{
    min-width: 120px;
}

.jk-filter__range-head {
    font-size: 13px;
    margin-bottom: 8px;
}

.jk-filter__range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: -12px;
    font-weight: 600;
}

.jk-filter__range-slider {
    position: relative;
    height: 18px;
    transform: translate(-6px, 18px);
    width: calc(100% + 12px);
}

@media screen and (max-width: 720px){
    .jk-filter__range-slider {
        transform: translate(-6px, 20px);
        width: calc(100% + 14px);
    }
}
.jk-filter__range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background: #F0F1F5;
    border-radius: 2px;
}

.jk-filter__range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: #28336E;
    border-radius: 2px;
}

.jk-filter__range-input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
    transform: translateX(-2px) translateY(-2px);
}

.jk-filter__range-input::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28336E;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.jk-filter__range-input::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28336E;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Адаптивность */
@media (max-width: 1300px) {
    .jk-filter__form {
        gap: 15px;
    }

    .jk-filter__range {
        min-width: 200px;
    }
}

@media (max-width: 1024px) {
    .jk-filter__form {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .jk-filter__types {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .jk-filter__action {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .jk-filter__form {
        padding: 15px;
    }

    .jk-filter__range {
        min-width: auto;
    }

    .jk-filter__label {
        padding: 8px 16px;
        font-size: 13px;
    }
}
.info-list {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.info-list__item {
    flex: 1;
    min-width: 300px;
}

.info-list__item__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    display: block;
}

.info-list__item__title {
    font-size: 26px;
    font-weight: 600;
    color: #28336E;
    margin-bottom: 15px;
    line-height: 1.3;
}

.info-list__item__text {
    font-size: 16px;
    line-height: 1.6;
}

/* Адаптивность для Info List */
@media (max-width: 1300px) {
    .info-list {
        gap: 20px;
    }

    .info-list__item {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .info-list {
        flex-direction: column;
        gap: 20px;
    }

    .info-list__item {
        min-width: 100%;
    }

    .info-list__item__title {
        font-size: 20px;
    }

    .info-list__item__image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .info-list__item__title {
        font-size: 18px;
    }

    .info-list__item__text {
        font-size: 15px;
    }

    .info-list__item__image {
        height: 200px;
    }
}

.room-info {
    display: flex;
    gap: 30px;
}

.room-info__image {
    background: url("../img/kvartiri.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
    border-radius: 15px;
    aspect-ratio: 7 / 4;
    min-width: 67%;
}

.room-info__text {
    width: 400px;
}

.room-info__image__point__text {
    display: none;
    font-size: 14px;
    color: black;
    padding: 5px;
    width: 200px;
    background: white;
    border-radius: 15px;
    right: -90px;
    bottom: 50px;
    box-shadow: 0.1px 0.1px 4px #00000022;
    line-height: 18px;
}
.room-info__image__point {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    background: white;
    font-size: 52px;
    color: #28336E;
    position: absolute;
    box-shadow: 0.1px 0.1px 4px #00000022;
}
.room-info__image__point:hover .room-info__image__point__text{
    position: absolute;
    display: block;
}

#map-filters{
    background: white;
    border-radius: 10px;
    padding: 2px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1110px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    justify-content: space-between;
}
#map-filters label{
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
#map-filters label input{
    display: none;
}
.map-filter-section{
    position: relative;
}

#map-filters label span.button-name{
    padding: 10px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
#map-filters input[type="radio"]:checked + span {
    background: #28336E;
    color: white;
    border-color: #28336E;
}
#map-filters svg g path{
    fill: #818181;
}
#map-filters svg g {
    fill: #818181;
}
#map-filters input[type="radio"]:checked + span svg g path{
    fill: white;
}
#map-filters input[type="radio"]:checked + span svg g {
    fill: white;
}

.pays-block {
    display: flex;
    gap: 15px;
}

.pays-block__item {
    width: 33%;
    padding: 30px 20px;
    border: 1px solid #D9D9D9;
    border-radius: 15px;
    position: relative;
    padding-bottom: 156px;
    box-sizing: border-box;
}

.pays-block__item__title {
    font-size: 27px;
    font-weight: 600;
    max-width: 350px;
    margin-bottom: 30px;
}

.pays-block__item__text {
    font-size: 18px;
    max-width: 340px;
}

a.pays-block__item__link {
    position: absolute;
    left: 20px;
    bottom: 20px;
    font-size: 18px;
    color: #28336E;
    text-decoration: underline;
}
a.pays-block__item__link::after{
    content: "→";
    font-family: auto;
    font-size: 24px;
    padding-left: 10px;
    display: inline-block;
}
img.pays-block__item__img {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 130px;
    z-index: -1;
}
.build_progress {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.build_progress__item {
    width: calc(25% - 15px);
}

img.build_progress__item__img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.build_progress__item__description {
    font-size: 20px;
}

.build__documents {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

a.build__documents__item {
    display: flex;
    width: calc(33% - 22px);
    gap: 30px;
    align-items: center;
}

.build__documents__item__text {
    font-size: 18px;
    font-weight: 600;
    margin-right: 40px;
}

img.build__documents__img {
    width: 65px;
}
.map-filter-section.animate.animated {
    position: relative;
}
@media screen and (max-width: 900px) {
    .room-info {
        flex-direction: column;
    }
    .info-list {
        flex-direction: column;
    }
    #map-filters {
        flex-direction: column;
        width: 210px;
        margin-left: auto;
        margin-right: 0;
        right: 5%;
    }
    #map-filters label span.button-name {
        width: 100%;
        justify-content: space-between;
    }
    .pays-block__item {
        padding-bottom: 106px;
        width: 100%;
    }
    .pays-block {
        flex-wrap: wrap;
    }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

@media screen and (max-width: 1024px) {
    /* Адаптация основного контейнера */
    .jk-card {
        padding: 20px 15px;
        gap: 30px;
    }

    /* Адаптация карусели */
    .carousel {
        height: 400px;
    }

    /* Адаптация карточки */
    .jk-card__right {
        margin-top: 20px;
    }

    .jk-info__title {
        font-size: 28px;
    }

    .jk-info__address {
        font-size: 15px;
    }

    /* Адаптация статистики */
    .jk-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jk-stat {
        padding: 15px;
        padding-bottom: 35px;
    }

    .jk-stat__value {
        font-size: 22px;
    }

    .jk-stat__label {
        font-size: 13px;
    }

    img.jk-stat__label--img {
        width: 24px;
        height: 24px;
    }

    /* Адаптация фильтра */
    .jk-filter__form {
        padding: 15px;
        gap: 15px;
    }

    .jk-filter__range {
        min-width: 180px;
    }
}

@media screen and (max-width: 768px) {
    /* Адаптация основного контейнера */
    .jk-card {
        flex-direction: column;
        padding: 15px;
        gap: 25px;
    }

    /* Адаптация карусели */
    .carousel {
        height: 300px;
    }

    .carousel__bottom-controls {
        padding: 12px;
    }

    .carousel__button {
        width: 36px;
        height: 36px;
    }

    .carousel__button img {
        width: 10px;
        height: 10px;
    }

    .carousel__pagination-bullet {
        height: 2px;
    }

    /* Адаптация информации */
    .jk-info__deadline {
        font-size: 13px;
    }

    .jk-info__title {
        font-size: 24px;
    }

    .jk-info__address {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Адаптация статистики */
    .jk-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .jk-stat {
        padding: 12px;
        padding-bottom: 30px;
    }

    .jk-stat__value {
        font-size: 20px;
    }

    .jk-stat__label {
        font-size: 12px;
    }

    img.jk-stat__label--img {
        width: 20px;
        height: 20px;
        right: 15px;
        bottom: 15px;
    }

    /* Адаптация кнопки */
    .button {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 16px;
    }

    /* Адаптация фильтра */
    .jk-filter__form {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 20px;
    }

    .jk-filter__types {
        justify-content: center;
        flex-wrap: wrap;
    }

    .jk-filter__label {
        padding: 10px 16px;
        font-size: 14px;
    }

    .jk-filter__range {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .jk-filter__range-values {
        font-size: 13px;
    }

    .jk-filter__range-head {
        font-size: 12px;
    }

    /* Адаптация info-list */
    .info-list {
        flex-direction: column;
        gap: 25px;
        margin-top: 30px;
    }

    .info-list__item {
        min-width: 100%;
    }

    .info-list__item__image {
        height: 250px;
        border-radius: 12px;
    }

    .info-list__item__title {
        font-size: 22px;
    }

    .info-list__item__text {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Адаптация room-info */
    .room-info {
        flex-direction: column;
        gap: 20px;
    }

    .room-info__image {
        aspect-ratio: 4/3;
        min-width: 100%;
    }

    .room-info__text {
        width: 100%;
    }

    .room-info__image__point {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 42px;
    }

    .room-info__image__point__text {
        font-size: 12px;
        line-height: 16px;
        width: 160px;
        right: -70px;
        bottom: 40px;
    }

    /* Адаптация карты */
    #map {
        height: 400px;
        margin-top: 30px;
    }

    .map-filter-section h2.blue {
        font-size: 24px;
        text-align: center;
    }

    #map-filters {
        flex-direction: column;
        width: 90%;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        bottom: 20px;
        padding: 10px;
        gap: 8px;
    }

    #map-filters label span.button-name {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
        font-size: 14px;
    }

    #map-filters svg {
        width: 18px;
        height: 18px;
    }

    /* Адаптация pays-block */
    .pays-block {
        flex-direction: column;
        gap: 15px;
    }

    .pays-block__item {
        width: 100%;
        padding: 20px;
        padding-bottom: 80px;
    }

    .pays-block__item__title {
        font-size: 22px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .pays-block__item__text {
        font-size: 16px;
        max-width: 100%;
        margin-bottom: 15px;
    }

    a.pays-block__item__link {
        left: 20px;
        bottom: 15px;
        font-size: 16px;
    }

    a.pays-block__item__link::after {
        font-size: 20px;
        padding-left: 8px;
    }

    img.pays-block__item__img {
        width: 80px;
        right: 15px;
        bottom: 15px;
    }

    /* Адаптация build_progress */
    .build_progress {
        flex-direction: column;
        gap: 15px;
    }

    .build_progress__item {
        width: 100%;
    }

    .build_progress__item__description {
        font-size: 16px;
    }

    /* Адаптация build__documents */
    .build__documents {
        flex-direction: column;
        gap: 20px;
    }

    a.build__documents__item {
        width: 100%;
        gap: 20px;
        align-items: flex-start;
    }

    .build__documents__item__text {
        font-size: 16px;
        margin-right: 0;
        line-height: 1.4;
    }

    img.build__documents__img {
        width: 50px;
        min-width: 50px;
    }
}

@media screen and (max-width: 480px) {
    /* Адаптация основного контейнера */
    .jk-card {
        padding: 12px;
        gap: 20px;
    }

    /* Адаптация карусели */
    .carousel {
        height: 250px;
    }

    .carousel__bottom-controls {
        padding: 10px;
    }

    .carousel__nav {
        margin-bottom: 10px;
    }

    .carousel__button {
        width: 32px;
        height: 32px;
    }

    .carousel__button img {
        width: 8px;
        height: 8px;
    }

    .carousel__pagination-bullet {
        height: 1.5px;
    }

    /* Адаптация информации */
    .jk-info__deadline {
        font-size: 12px;
    }

    .jk-info__title {
        font-size: 22px;
    }

    .jk-info__address {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Адаптация статистики */
    .jk-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jk-stat {
        padding: 10px;
        padding-bottom: 25px;
    }

    .jk-stat__value {
        font-size: 18px;
    }

    .jk-stat__label {
        font-size: 11px;
    }

    img.jk-stat__label--img {
        width: 18px;
        height: 18px;
        right: 12px;
        bottom: 12px;
    }

    /* Адаптация кнопки */
    .button {
        padding: 10px;
        font-size: 15px;
        margin-top: 20px;
    }

    /* Адаптация фильтра */
    .jk-filter__form {
        padding: 12px;
        gap: 15px;
    }

    .jk-filter__types {
        gap: 5px;
    }

    .jk-filter__label {
        padding: 8px 12px;
        font-size: 12px;
    }

    .jk-filter__range {
        padding: 10px 12px 12px;
    }

    .jk-filter__range-values {
        font-size: 12px;
    }

    .jk-filter__range-head {
        font-size: 11px;
    }

    .jk-filter__range-slider {
        height: 16px;
    }

    /* Адаптация info-list */
    .info-list {
        margin-top: 20px;
        gap: 20px;
    }

    .info-list__item__image {
        height: 200px;
        border-radius: 10px;
    }

    .info-list__item__title {
        font-size: 20px;
    }

    .info-list__item__text {
        font-size: 14px;
    }

    /* Адаптация room-info */
    .room-info__image {
        height: 180px;
        aspect-ratio: 16/9;
    }

    .room-info__image__point {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 36px;
    }

    .room-info__image__point__text {
        font-size: 11px;
        line-height: 14px;
        width: 140px;
        right: -60px;
        bottom: 35px;
    }

    /* Адаптация карты */
    #map {
        height: 350px;
        margin-top: 20px;
    }

    .map-filter-section h2.blue {
        font-size: 22px;
    }

    #map-filters {
        width: 95%;
        max-width: 220px;
        padding: 8px;
        bottom: 15px;
    }

    #map-filters label span.button-name {
        padding: 6px 10px;
        font-size: 13px;
    }

    #map-filters svg {
        width: 16px;
        height: 16px;
    }

    /* Адаптация pays-block */
    .pays-block__item {
        padding: 15px;
        padding-bottom: 70px;
    }

    .pays-block__item__title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .pays-block__item__text {
        font-size: 14px;
    }

    a.pays-block__item__link {
        left: 15px;
        bottom: 12px;
        font-size: 15px;
    }

    a.pays-block__item__link::after {
        font-size: 18px;
        padding-left: 5px;
    }

    img.pays-block__item__img {
        width: 70px;
        right: 12px;
        bottom: 12px;
    }

    /* Адаптация build_progress */
    .build_progress__item__description {
        font-size: 14px;
    }

    /* Адаптация build__documents */
    .build__documents__item__text {
        font-size: 15px;
    }

    img.build__documents__img {
        width: 45px;
        min-width: 45px;
    }

    /* Адаптация заголовков секций */
    section .blue {
        font-size: 22px !important;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 360px) {
    /* Адаптация для очень маленьких экранов */
    .jk-info__title {
        font-size: 20px;
    }

    .jk-stat__value {
        font-size: 16px;
    }

    .jk-stat__label {
        font-size: 10px;
    }

    .carousel {
        height: 200px;
    }

    #map {
        height: 300px;
    }

    .info-list__item__image {
        height: 180px;
    }

    .room-info__image {
        height: 150px;
    }
}

/* Исправление для скрытия text-decoration у стрелок */
@media screen and (max-width: 768px) {
    a.pays-block__item__link::after {
        text-decoration: none;
        display: inline-block;
    }

    a.pays-block__item__link {
        text-decoration: none;
    }

    a.pays-block__item__link:hover {
        text-decoration: underline;
    }
}

/* Фикс для корректного отображения карты на мобильных */
@media screen and (max-width: 768px) {
    #map {
        width: 100% !important;
        height: 400px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .map-filter-section {
        overflow: hidden;
    }
}

/* Адаптация текстового контента */
@media screen and (max-width: 768px) {
    .room-info__text,
    .info-list__item__text {
        font-size: 15px;
        line-height: 1.5;
    }

    .build_progress__item__description,
    .build__documents__item__text {
        font-size: 14px;
    }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

@media (max-width: 1300px) {
    .calc-section {
        padding-top: 30px;
    }

    svg.mortgage-calc__img {
        right: 80px;
        top: 70px;
        height: 200px;
        width: 200px;
    }

    .calc-container {
        gap: 30px;
    }

    .calc-left {
        min-width: 350px;
    }

    .bank-name,
    .bank-rate,
    .bank-payment {
        font-size: 20px;
    }
}

@media (max-width: 1100px) {
    svg.mortgage-calc__img {
        right: 50px;
        top: 60px;
        height: 180px;
        width: 180px;
    }

    .calc-left {
        min-width: 320px;
    }

    .banks-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bank-card {
        flex: 1;
        min-width: calc(50% - 8px);
    }

    .bank-name {
        width: auto;
        min-width: 150px;
    }

    .bank-rate,
    .bank-payment {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .calc-section {
        padding-top: 25px;
    }

    svg.mortgage-calc__img {
        position: relative;
        right: auto;
        top: auto;
        height: 150px;
        width: 150px;
        display: block;
        margin: 0 auto 20px;
    }

    .calc-container {
        flex-direction: column;
        gap: 25px;
    }

    .calc-left {
        flex: 1;
        width: 100%;
        min-width: auto;
    }

    .calc-right {
        width: 100%;
    }

    .bank-card {
        min-width: 100%;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }

    .bank-name {
        width: 100%;
        justify-content: center;
    }

    .bank-info {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .bank-rate,
    .bank-payment {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    .mortgage-calc__img{
        display: none !important;
    }
    .calc-section {
        padding-top: 20px;
        margin-top: -20px;
    }

    svg.mortgage-calc__img {
        height: 120px;
        width: 120px;
        margin-bottom: 15px;
    }

    .calc-intro {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .calc-container h2.blue {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .mortgage-form {
        padding: 20px;
        border-radius: 12px;
    }

    .calc-types {
        margin-bottom: 25px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .calc-types .jk-filter__label {
        padding: 8px 16px;
        font-size: 13px;
        box-sizing: border-box;
    }

    .calc-range {
        margin-bottom: 20px;
    }

    .jk-filter__range-head {
        font-size: 14px;
    }

    .jk-filter__range-values {
        font-size: 15px;
    }

    .calc-results {
        padding: 15px;
        margin: 20px 0;
        flex-direction: column;
        gap: 15px;
    }

    .calc-result {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .calc-result-label {
        font-size: 14px;
    }

    .calc-result-value {
        font-size: 22px;
    }

    .calc-actions {
        flex-direction: column;
        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        padding: 12px;
    }

    .calc-note {
        font-size: 13px;
        margin-top: 15px;
    }

    /* FAQ адаптация */
    .faq-block {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .faq-item {
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .faq-header {
        padding: 18px 20px;
        font-size: 16px;
        line-height: 1.4;
    }

    .faq-icon {
        font-size: 22px;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .faq-inner {
        padding: 15px 20px 20px;
    }

    .faq-subheader {
        padding: 14px 0;
        font-size: 15px;
        line-height: 1.4;
    }

    .faq-arrow {
        width: 7px;
        height: 7px;
        flex-shrink: 0;
    }

    .faq-subtext {
        padding: 0 0 15px 15px;
        font-size: 14px;
        line-height: 1.5;
    }

    .faq-subtext ol,
    .faq-subtext ul {
        padding-left: 20px;
    }

    .faq-subtext li {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .calc-section {
        padding-top: 15px;
    }

    svg.mortgage-calc__img {
        height: 100px;
        width: 100px;
    }

    .calc-intro {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .calc-container h2.blue {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .mortgage-form {
        padding: 18px;
    }

    .calc-types {
        gap: 6px;
    }

    .calc-types .jk-filter__label {
        padding: 7px 12px;
        font-size: 12px;
    }

    .jk-filter__range-head {
        font-size: 13px;
    }

    .jk-filter__range-values {
        font-size: 14px;
    }

    .calc-results {
        padding: 12px;
        margin: 18px 0;
    }

    .calc-result-label {
        font-size: 13px;
    }

    .calc-result-value {
        font-size: 20px;
    }

    .calc-actions button {
        padding: 10px;
        font-size: 14px;
    }

    .calc-note {
        font-size: 12px;
    }

    .bank-card {
        padding: 15px;
        gap: 12px;
    }

    .bank-name {
        font-size: 16px;
        gap: 12px;
    }

    .bank-logo {
        width: 30px;
        height: 30px;
    }

    .bank-info {
        flex-direction: column;
        gap: 8px;
    }

    .bank-rate,
    .bank-payment {
        font-size: 16px;
    }

    /* FAQ адаптация для очень маленьких экранов */
    .faq-header {
        padding: 15px;
        font-size: 15px;
    }

    .faq-icon {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .faq-inner {
        padding: 12px 15px 15px;
    }

    .faq-subheader {
        padding: 12px 0;
        font-size: 14px;
        gap: 10px;
    }

    .faq-subtext {
        padding: 0 0 12px 12px;
        font-size: 13px;
    }

    .faq-subtext ol,
    .faq-subtext ul {
        padding-left: 16px;
    }

    .faq-subtext li {
        margin-bottom: 6px;
    }

    .faq-arrow {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 360px) {
    .calc-types .jk-filter__label {
        min-width: 100%;
        margin-bottom: 4px;
    }

    .bank-name {
        font-size: 14px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .bank-rate,
    .bank-payment {
        font-size: 14px;
    }

    .faq-header {
        font-size: 14px;
        padding: 12px 15px;
    }

    .faq-subheader {
        font-size: 13px;
        padding: 10px 0;
    }

    .faq-subtext {
        font-size: 12px;
    }
}

/* Фикс для скролла на мобильных */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    section {
        overflow: hidden;
    }
}

/* Улучшение для удобного тапа на мобильных */
@media (max-width: 768px) {
    .jk-filter__range-input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Адаптация SVG иконки для темной темы */
@media (prefers-color-scheme: dark) {
    svg.mortgage-calc__img g {
        fill: #2c3e50;
    }
}

/* ========== ОБЩИЕ СТИЛИ ========== */
.calc-section{
    background: #F1F2F4;
    margin-top: -32px;
    padding-top: 40px;
    position: relative;
}

svg.mortgage-calc__img {
    position: absolute;
    right: 150px;
    top: 90px;
    height: 250px;
    width: 250px;
}

svg.mortgage-calc__img g{
    fill: white;
}

/* ========== ИПОТЕЧНЫЙ КАЛЬКУЛЯТОР ========== */
.mortgage-calc {
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 60px;
}

.calc-intro {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 440px;
}

.calc-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.calc-left {
    flex: 0 0 30%;
    min-width: 400px;
}

.mortgage-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
}

.mortgage-form .calc-types{
    flex-wrap: wrap;
}
.calc-types {
    margin-bottom: 30px;
}

.calc-types .jk-filter__label {
    padding: 10px 18px;
    border: 1px solid #28336E;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
}

.calc-types .jk-filter__input:checked + .jk-filter__label {
    background: #28336E;
    color: white;
    border-color: #28336E;
}

.calc-range {
    margin-bottom: 25px;
    box-sizing: border-box;
}

.jk-filter__range-input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
    transform: translateX(-2px) translateY(-2px);
}

.jk-filter__range-input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28336E;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.calc-results {
    background: #F0F1F5;
    border-radius: 12px;
    padding: 15px;
    margin: 30px 0;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}
.calc-actions button{
    padding: 10px;
    font-weight: 500;
}

.calc-result {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-result-label {
    font-size: 16px;
    color: #28336E;
    font-weight: 400;
}

.calc-result-value {
    font-size: 24px;
    font-weight: 600;
    color: #28336E;
}

.calc-actions {
    display: flex;
    gap: 15px;
    margin-top: 0;
}

.primary-btn {
    background: #28336E;
    color: white;
    border: none;
    flex: 2;
}

.secondary-btn {
    background: white;
    color: #28336E;
    border: 1px solid #28336E !important;
    flex: 1;
}

.calc-note {
    font-size: 14px;
    margin-top: 20px;
    color: #666;
}

.calc-right {
    flex: 1;
    padding-top: 0;
}

.banks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bank-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.bank-name {
    font-size: 18px;
    font-weight: 400;
    width: 200px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bank-rate,
.bank-payment {
    font-size: 24px;
    font-weight: 600;
    color: #28336E;
}

/* ========== FAQ БЛОК ========== */
.faq-block {
    box-sizing: border-box;
    margin-top: 60px;
    margin-bottom: 60px;
}

.faq-item {
    background: #F0F1F5;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 22px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-header {
    border-bottom: 1px solid #F0F1F5;
}

.faq-icon {
    font-size: 28px;
    line-height: 1;
    color: #28336E;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-content {
    max-height: 2000px;
}

.faq-text {
    padding: 25px 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.faq-inner {
    padding: 20px 30px 30px;
}

.faq-subitem {
    border-top: 1px solid #E1E3E8;
    padding: 0;
}

.faq-subitem:first-child {
    border-top: none;
}

.faq-subheader {
    padding: 18px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.faq-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid #28336E;
    border-bottom: 2px solid #28336E;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-subitem.active .faq-arrow {
    transform: rotate(-135deg);
}

.faq-subcontent {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-subitem.active .faq-subcontent {
    max-height: 500px;
}

.faq-subtext {
    padding: 0 0 20px 20px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1300px) {
    .mortgage-calc,
    .faq-block {
        padding: 20px 40px;
    }

    .calc-container {
        gap: 30px;
    }
}

@media (max-width: 1100px) {
    .calc-left {
        min-width: 350px;
    }

    .banks-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .bank-card {
        flex: 1;
        min-width: calc(50% - 8px);
    }
}

@media (max-width: 900px) {
    .calc-container {
        flex-direction: column;
        gap: 30px;
    }

    .calc-left {
        flex: 1;
        width: 100%;
        min-width: auto;
    }

    .calc-right {
        width: 100%;
    }

    .bank-card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .mortgage-calc,
    .faq-block {
        padding: 15px;
    }

    .calc-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .mortgage-form,
    .faq-block {
        padding: 20px;
        border-radius: 12px;
    }

    .calc-types {
        justify-content: center;
        flex-wrap: wrap;
    }

    .calc-types .jk-filter__label {
        padding: 8px 16px;
        font-size: 13px;
    }

    .calc-range {
        margin-bottom: 20px;
    }

    .calc-results {
        padding: 15px;
        margin: 25px 0;
        flex-direction: column;
        gap: 20px;
    }

    .calc-result-value {
        font-size: 20px;
    }

    .calc-actions {
        flex-direction: column;
        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .bank-card {
        padding: 20px;
    }

    .bank-name,
    .bank-rate,
    .bank-payment {
        font-size: 16px;
    }

    .faq-header {
        padding: 18px 20px;
        font-size: 16px;
    }

    .faq-icon {
        font-size: 24px;
    }

    .faq-text {
        padding: 20px;
        font-size: 15px;
    }

    .faq-inner {
        padding: 15px 20px 20px;
    }

    .faq-subheader {
        padding: 15px 0;
        font-size: 15px;
    }

    .faq-subtext {
        padding: 0 0 15px 15px;
        font-size: 14px;
    }

    .faq-arrow {
        width: 7px;
        height: 7px;
    }
}

@media (max-width: 480px) {

    .calc-result-label {
        font-size: 13px;
    }

    .calc-result-value {
        font-size: 18px;
    }

    .bank-name,
    .bank-rate,
    .bank-payment {
        font-size: 14px;
    }

    .faq-header {
        padding: 15px;
        font-size: 15px;
        line-height: 1.4;
    }

    .faq-icon {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .faq-text {
        padding: 15px;
        font-size: 14px;
    }

    .faq-inner {
        padding: 10px 15px 15px;
    }

    .faq-subheader {
        padding: 12px 0;
        font-size: 14px;
        gap: 10px;
    }

    .faq-subtext {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* ========== ПОПАП ОКНО ОБРАТНОЙ СВЯЗИ ========== */

/* Оверлей */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Контейнер */
.popup-container {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F0F1F5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: #28336E;
}

.popup-close:hover svg path {
    stroke: white;
}

/* Контент */
.popup-content {
    padding: 40px;
}

/* Заголовок */
.popup-header {
    margin-bottom: 30px;
    text-align: center;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #28336E;
    margin: 0 0 10px 0;
}

.popup-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Форма */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    color: #28336E;
    font-weight: 500;
}

.form-label::after {
    content: '*';
    color: #ff4444;
    margin-left: 4px;
}

.form-label:not(:has(+ .form-input[required]))::after {
    content: '';
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #28336E;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #28336E;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Ошибки */
.form-error {
    font-size: 12px;
    color: #ff4444;
    min-height: 16px;
    display: none;
}

.form-error:not(:empty) {
    display: block;
}

/* Соглашение */
.form-agreement {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #DEDEDE;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #28336E;
    border-color: #28336E;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 8px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: translate(-50%, -60%) rotate(-45deg);
}

.agreement-link {
    color: #28336E;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.agreement-link:hover {
    color: #1a2352;
}

/* Кнопка отправки */
.form-submit {
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Сообщение об успехе */
.form-success {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    margin-bottom: 10px;
}

.success-title {
    font-size: 22px;
    font-weight: 600;
    color: #28336E;
    margin: 0;
}

.success-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 13px;
    }

    .form-submit {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .popup-overlay {
        padding: 10px;
    }

    .popup-container {
        max-height: 95vh;
    }

    .popup-content {
        padding: 25px 15px;
    }

    .popup-title {
        font-size: 20px;
    }

    .popup-subtitle {
        font-size: 13px;
    }

    .checkbox-text {
        font-size: 12px;
    }
}

.projects__card__info__address.text {
    display: flex;
    align-items: center;
    gap: 10px;
}
.projects__card__info-kv{
    position: absolute;
    padding: 5px 15px;
    background: white;
    font-weight: 500;
    border-radius: 20px;
    right: 20px;
    top: 20px;
    color: #28336E;
}