* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}
html {
scroll-behavior: smooth;
}
/* Прижимаем футер к низу */


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .main-content {
    flex: 1;
}

/* Если у вас нет общего контейнера для контента, 
   можно обернуть весь контент (кроме футера) в div с классом .content */
.content {
    flex: 1;
}
.about {
    flex: 1;
}
body {
    
        background: #ECEEF7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ==================== БЛОК 1: Hero ==================== */
.hero {
   
    overflow: hidden;
    color: #0B0F1C;

}
.hero__logo a{
    text-decoration: none;
       color: #0B0F1C;
}
.hero::before {
    display: none;
}

.hero__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 60px;
    z-index: 10;
    width: 100%;
    max-width: 100%;
}



.hero__location {
    width: 33%;
}

.hero__distance {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
      color: #0B0F1C;
}

.hero__distance span {
    font-style: italic;
}

.hero__city {
    margin: 5px 0 0 28px;;
    font-size: 14px;
    opacity: 0.7;
      color: #0B0F1C;
}

.hero__brand {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__social {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}


.hero__logo {
    font-family: "Montserrat Alternates", sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.02em;
      color: #0B0F1C;
    margin-bottom: 20px;
}

.hero__nav {
    display: flex;
    gap: 40px;
}

@media screen and (max-width: 820px) {
    .hero__nav {
        display: flex;
        gap: 20px;
    }
}

.hero__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
       color: #0B0F1C;
    text-decoration: none;
    font-weight: 500;
    text-wrap: nowrap;
}

.hero__nav a:hover {
     transition: color 0.3s;
    color: #979797;
}

.hero__contacts {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hero__phone span {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
       color: #0B0F1C;
    font-style: italic;
}

.hero__help {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero__help span {
    font-size: 13px;
      color: #0B0F1C;
}


.hero__help-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero__help-icons svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero__help-icons a:hover svg {
    opacity: 1;
}

.hero__main {
    height: calc(100% - 100px);
    padding-top: 75px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.hero__tag {
    position: absolute;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero__tag--right {
    /* top: 170px; */
    right: 60px;
    color: #ffffff;
    text-align: right;
}

.hero__tag--right span:first-child {
    display: block;
    font-size: 12px;
    color: #0B0F1C;
    opacity: 0.7;
    margin-bottom: 5px;
}

.hero__content {
    position: absolute;
    left: 60px;
    bottom: 5%;
    max-width: 50%;
    color: white;
}

.hero__subtitle {
    font-size: 14px;
        color: #0B0F1C;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #F0F6FF;
}

.hero__title span {
    display: block;
    font-size: 48px;
    font-style: italic;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

.hero__btn {
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    border: none;
}

.hero__btn--primary {
    background: white;
    color: #0B0F1C;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.hero__btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.hero__btn--outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.hero__btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* .hero__slider-bars {
    display: flex;
    gap: 8px;
    margin: 30px 0 40px 0;
    max-width: 400px;
} */

/* .hero__slider-bar {
    flex: 1;
    height: 2px;
    background: rgba(240, 246, 255, 0.2);
    position: relative;
    cursor: pointer;
    overflow: hidden;
} */

.hero__slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #F0F6FF;
}
/* 
.hero__slider-bar.active .hero__slider-progress {
    animation: progress 10s linear forwards;
} */

@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Запрет выделения на всем контейнере слайдера */
.hero__slider-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Если нужно разрешить выделение на кнопке (опционально) */
.hero__card-btn {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ========== СЛАЙДЕР КАРТОЧЕК ========== */
.hero__slider-container {
    position: absolute;
    right: 10%;
    top: 45%;
    transform: translateY(-50%);
    width: 25%;
    max-width: 310px;
    z-index: 20;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 450px;
}
.contact-row{

    flex-wrap: wrap;

}
/* Соединительная система (брелок) */
.hero__card-tether {
    position: absolute;
    /* bottom: -50px; */
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 25;
}

/* Полоска НАД кнопкой, соединяет карточку с кнопкой */
.hero__tether-line {
    width: 60%;
    max-width: 70%;
    height: 7px;
    background-color: rgba(134, 134, 134, 0.527);
    /* background: rgba(255, 255, 255, 0.23); */
    backdrop-filter: blur(10px);
    /* border-radius: 3px; */
    /* margin-bottom: 12px; */
    transition: all 0.3s ease;
}

/* Кнопка "Подробнее" - стиль брелока */
.hero__card-btn {
    background-color: rgba(134, 134, 134, 0.527);
    /* background: rgba(255, 255, 255, 0.23); */
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50px;
    padding: 22px 28px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    justify-content: center;
}





.hero__card-dot {
    width: 8px;
    height: 8px;
    background: #FDFF62;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}


/* Невидимый мостик для визуального соединения */
.hero__card--active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 40px;
    height: 30px;
    background: transparent;
    pointer-events: none;
}



/* Базовая карточка */
.hero__card {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Активная карточка (сверху, оригинальный размер) */
.hero__card--active {
    z-index: 10;
    transform: translateY(-50%) scale(1);
    opacity: 1;
    height: 100%;
}

.hero__card--active .hero__card-inner {
    background-color: rgba(134, 134, 134, 0.527);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(253, 255, 98, 0.3); */
}

/* Следующая карточка (ниже, ШИРИНА БОЛЬШЕ, высота меньше) */
.hero__card--next {
    z-index: 5;
    transform: translateY(-50%);
    width: 110%;
    left: -5%;
}

.hero__card--next .hero__card-inner {
    background-color: rgba(134, 134, 134, 0.527);
    backdrop-filter: blur(8px);
    transform: scaleY(0.82);
    padding: 20px;
}

.hero__card--next .hero__video-placeholder {
    height: 130px;
    margin-bottom: 18px;
}

.hero__card--next .hero__house-title {
    font-size: 20px;
}

.hero__card--next .hero__spec-value {
    font-size: 20px;
}

/* Предыдущая карточка (еще ниже, ШИРИНА ЕЩЕ БОЛЬШЕ, высота меньше) */
.hero__card--prev {
    z-index: 4;
    transform: translateY(-50%);
    width: 120%;
    left: -10%;
}

.hero__card--prev .hero__card-inner {
    background-color: rgba(134, 134, 134, 0.527);
    backdrop-filter: blur(5px);
    transform: scaleY(0.65);
    padding: 16px;
}

.hero__card--prev .hero__video-placeholder {
    height: 110px;
    margin-bottom: 12px;
}

.hero__card--prev .hero__house-title {
    font-size: 18px;
}

.hero__card--prev .hero__house-description {
    font-size: 10px;
    margin-bottom: 12px;
}

.hero__card--prev .hero__specs {
    margin-bottom: 15px;
    gap: 20px;
}

.hero__card--prev .hero__spec-value {
    font-size: 16px;
}

/* Скрываем старые кнопки внутри карточек */
.hero__card .hero__card-btn {
    display: none;
}

/* Скрываем неактивные карточки */
.hero__card:not(.hero__card--active):not(.hero__card--next):not(.hero__card--prev) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(0.8);
    pointer-events: none;
}

/* Элементы внутри карточек */
.hero__card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.23);
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    justify-content: space-evenly;
    align-content: center;
}
.pol{
    position: absolute;
    top: 4%;
    left: 40%;
    width: 20%;
    height: 5px;
    background-color: #5E6B79;
    border-radius: 25px;
}
.hero__video-placeholder {
    width: 100%;
    height: 152px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero__video-placeholder img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero__house-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.hero__house-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    transition: all 0.3s ease;
}

.hero__house-area {
    color: #A5B1D2;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hero__house-description {
    font-size: 12px;
    line-height: 1.6;
    color: #CACFDC;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.hero__specs {
    display: flex;
    gap: 30px;
    /* margin-bottom: 25px; */
    transition: all 0.3s ease;
}

.hero__specs div {
    display: flex;
    flex-direction: column;
}

.hero__spec-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.hero__spec-label {
    font-size: 8px;
    color: #ffffff;
    line-height: 1.4;
}

/* Кнопки навигации слайдера */
.hero__slider-prev,
.hero__slider-next {
    position: absolute;
    bottom: -60px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    z-index: 30;
}

.hero__slider-prev {
    right: 60px;
}

.hero__slider-next {
    left: 50px;
}

.hero__slider-prev:hover,
.hero__slider-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* ========== АДАПТИВ ПО ВЫСОТЕ ========== */

/* При высоте экрана меньше 900px */
@media (max-height: 900px) {
    .hero__slider {
        /* height: 400px; */
    }

    .hero__card--next .hero__video-placeholder {
        height: 110px;
    }

    .hero__card--prev .hero__video-placeholder {
        height: 90px;
    }
}

/* При высоте экрана меньше 800px */
@media (max-height: 800px) {
    .hero__slider {
        height: 380px;
    }

    .hero__card-inner {
        padding: 20px;
        border-radius: 32px;
    }

    .hero__video-placeholder {
        height: 130px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .hero__card--next .hero__card-inner {
        padding: 16px;
    }

    .hero__card--next .hero__video-placeholder {
        height: 100px;
        margin-bottom: 14px;
    }

    .hero__card--prev .hero__card-inner {
        padding: 12px;
        border-radius: 28px;
    }

    .hero__card--prev .hero__video-placeholder {
        height: 80px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .hero__specs {
        margin-bottom: 18px;
    }
}

@media (max-width: 1200px) {
    .hero__card-btn {
        display: none;
        padding: 12px 24px;
        font-size: 12px;
        margin-top: 6px;
        border-radius: 40px;
    }

    .hero__house-description {
        font-size: 10px;
    }
}

/* При высоте экрана меньше 700px */
@media (max-height: 700px) {
    .hero__slider {
        height: 340px;
    }

    .hero__card-inner {
        padding: 16px;
        border-radius: 28px;
    }

    .hero__video-placeholder {
        height: 110px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .hero__house-title {
        font-size: 20px;
    }

    .hero__house-area {
        font-size: 12px;
    }

    .hero__house-description {
        font-size: 10px;
        margin-bottom: 14px;
    }

    .hero__specs {
        margin-bottom: 14px;
        gap: 24px;
    }

    .hero__spec-value {
        font-size: 20px;
    }

    .hero__card-btn {
        display: none;
        padding: 22px 24px;
        font-size: 12px;
        margin-top: 6px;
        border-radius: 40px;
    }

    .hero__card-dot {
        width: 6px;
        height: 6px;
    }

    /* Следующая карточка */
    .hero__card--next .hero__card-inner {
        padding: 12px;
        border-radius: 24px;
    }

    .hero__card--next .hero__video-placeholder {
        height: 85px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .hero__card--next .hero__house-title {
        font-size: 18px;
    }

    .hero__card--next .hero__spec-value {
        font-size: 18px;
    }

    /* Предыдущая карточка */
    .hero__card--prev .hero__card-inner {
        padding: 10px;
        border-radius: 20px;
    }

    .hero__card--prev .hero__video-placeholder {
        height: 70px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .hero__card--prev .hero__house-title {
        font-size: 16px;
    }

    .hero__card--prev .hero__house-description {
        font-size: 9px;
        margin-bottom: 10px;
    }

    .hero__card--prev .hero__specs {
        gap: 16px;
        margin-bottom: 12px;
    }

    .hero__card--prev .hero__spec-value {
        font-size: 14px;
    }

    .hero__card--prev .hero__card-btn {
        padding: 8px 16px;
        font-size: 10px;
    }

    /* Кнопки навигации */
    .hero__slider-prev,
    .hero__slider-next {
        bottom: -45px;
        width: 38px;
        height: 38px;
    }
}

/* При высоте экрана меньше 600px */
@media (max-height: 600px) {
    .hero__slider {
        height: 300px;
    }

    .hero__card-inner {
        padding: 12px;
        border-radius: 24px;
    }

    .hero__video-placeholder {
        height: 90px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .hero__house-header {
        gap: 8px;
        margin-bottom: 6px;
    }

    .hero__house-title {
        font-size: 18px;
    }

    .hero__house-area {
        font-size: 10px;
    }

    .hero__house-description {
        font-size: 9px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .hero__specs {
        gap: 18px;
        margin-bottom: 10px;
    }

    .hero__spec-value {
        font-size: 18px;
    }

    .hero__card-btn {
        padding: 8px 20px;
        font-size: 11px;
        margin-top: 4px;
        width: 60%;
    }

    .hero__card--next .hero__video-placeholder {
        height: 70px;
    }

    .hero__card--next .hero__house-title {
        font-size: 16px;
    }

    .hero__card--prev .hero__video-placeholder {
        height: 55px;
    }

    .hero__card--prev .hero__house-title {
        font-size: 14px;
    }

    .hero__card--prev .hero__house-description {
        font-size: 8px;
    }

    .hero__slider-prev,
    .hero__slider-next {
        bottom: -35px;
        width: 34px;
        height: 34px;
    }
}

/* При высоте экрана меньше 500px */
@media (max-height: 500px) {
    .hero__slider-container {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .hero__slider {
        height: 260px;
    }

    .hero__card {
        top: 0;
        transform: none;
    }

    .hero__card--active {
        transform: none;
    }

    .hero__card--next,
    .hero__card--prev {
        display: none;
    }

    .hero__card-inner {
        padding: 12px;
        border-radius: 20px;
    }

    .hero__video-placeholder {
        height: 100px;
        border-radius: 12px;
    }

    .hero__house-title {
        font-size: 18px;
    }

    .hero__spec-value {
        font-size: 18px;
    }

    .hero__card-btn {
        width: 100%;
    }

    .hero__slider-prev,
    .hero__slider-next {
        bottom: -30px;
    }
}

.hero__pagination {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.hero__pagination-info {
    text-align: right;
}

.hero__stars {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.hero__stars img {
    opacity: 0.5;
    width: 16px;
    height: 16px;
}

.hero__pagination-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero__pagination-number {
    font-size: 24px;
    color: #A5B1D2;
    font-weight: 500;
}

.hero__big-number {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-size: 128px;
    line-height: 128px;
    letter-spacing: -0.04em;
    background: radial-gradient(225.2% 214.77% at 15.2% 19.14%, #F0F6FF 0%, rgba(240, 246, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Бургер-меню */
.hero__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hero__burger span {
    width: 100%;
    height: 3px;
    background-color: #F0F6FF;
    transition: all 0.3s ease;
}

/* Мобильная пагинация */
.hero__mobile-pagination {
    display: none;
    position: absolute;
    top: 120px;
    right: 20px;
    align-items: baseline;
    gap: 5px;
    z-index: 5;
}

.hero__big-number-mobile {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -0.04em;
    color: #F0F6FF;
}

.hero__pagination-number-mobile {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: #A5B1D2;
}

/* ==================== БЛОК 2: About ==================== */
.about {
    padding-top: 50px;
    /* height: 100vh; */
    background: #ECEEF7;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.about__header {
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.about__location {
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #000000;
}

.about__years {
    opacity: 0.44;
    font-weight: 700;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: -0.02em;
    display: flex;
    gap: 88px;
    color: #040506;
}

.about__content {
    height: 70%;
    width: 70%;
    max-width: 1200px;
    position: relative;
    z-index: 3;
}

.about__numbers {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: -0.04em;
    position: relative;
    height: 150px;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
}

.about__number {
    background: radial-gradient(255.2% 224.77% at 15.2% 19.14%, #040506 0%, rgba(240, 246, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s ease;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    height: 150px;
}

.about__number--lg {
    font-size: 128px !important;
    line-height: 128px !important;
    opacity: 1 !important;
}

.about__number--md {
    font-weight: 200;
    font-size: 64px !important;
    line-height: 64px !important;
    opacity: 0.4 !important;
}

.about__number--sm {
    font-weight: 200;
    font-size: 48px !important;
    line-height: 48px !important;
    opacity: 0.4 !important;
}

.about__info {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    flex-direction: column;
    width: 100%;
}

.about__titles {
    display: flex;
    justify-content: flex-start;
    position: relative;
    align-items: flex-end;
    flex-direction: row;
    height: 100px;
    width: 100%;
    transition: gap 0.5s ease;
}

/* Динамические отступы в зависимости от активного слайда */
.about__titles.slide-0 {
    gap: 60px;
}

.about__titles.slide-1 {
    gap: 40px;
}

.about__titles.slide-2 {
    gap: 80px;
}

.about__title {
    font-weight: 400;
    color: #040506;
    transition: all 0.5s ease;
    cursor: pointer;
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 32px;
    line-height: 32px;
    opacity: 0.4;
    flex-shrink: 0;
}

.about__subtitle {
    font-weight: 400;
    color: #040506;
    transition: all 0.5s ease;
    cursor: pointer;
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 32px;
    line-height: 32px;
    opacity: 0.4;
    flex-shrink: 0;
}

/* Классы для размеров заголовков */
.about__title--lg {
    font-size: 56px !important;
    line-height: 56px !important;
    opacity: 1 !important;
}

.about__title--md {
    font-size: 32px !important;
    line-height: 32px !important;
    opacity: 0.4 !important;
}

.about__title--sm {
    font-size: 24px !important;
    line-height: 24px !important;
    opacity: 0.4 !important;
}

.about__subtitle--lg {
    font-size: 56px !important;
    line-height: 56px !important;
    opacity: 1 !important;
}

.about__subtitle--md {
    font-size: 32px !important;
    line-height: 32px !important;
    opacity: 0.4 !important;
}

.about__subtitle--sm {
    font-size: 24px !important;
    line-height: 24px !important;
    opacity: 0.4 !important;
}

/* Медиа-запрос для экранов шириной 1040px и меньше */
@media screen and (max-width: 1040px) {
    .about__subtitle--lg {
        font-size: 36px !important;
        line-height: 36px !important;
    }

    .about__subtitle--md {
        font-size: 20px !important;
        line-height: 20px !important;
    }

    .about__subtitle--sm {
        font-size: 16px !important;
        line-height: 16px !important;
    }
}

.about__caption {
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-top: 60px;
    margin-bottom: 40px;
    color: #040506;
    opacity: 0.44;
    height: 14px;
}

.about__divider {
    margin: 20px 0;
    background-color: #5E7291;
    color: #5E7291;
    width: 80%;
    height: 2px;
}

.about__text {
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.02em;
    margin-top: 40px;
    color: #040506;
    min-height: 120px;
}

.about__actions {
    display: flex;
    align-items: center;
    margin-top: 60px;
    gap: 40px;
    height: 61px;
}

.about__btn {
    border-radius: 64px;
    cursor: pointer;
}

.about__btn--primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 226px;
    height: 61px;
    background: #000;
    border: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #F0F6FF;
}

.about__btn--primary:hover {
    background: #1a1a1a;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.about__btn--text {
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #6E7D8B;
    opacity: 0.44;
}

.about__btn--text:hover {
    opacity: 1;
    color: #000;
    transition: all 0.2s ease;
}

.about__footer {
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    position: relative;
    z-index: 3;
}

.about__pagination {
    display: flex;
    flex-direction: column;
}

.about__pagination .about__stars {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    margin-bottom: 5px;
    opacity: 0.5;
}

.about__pagination .about__stars svg path {
    fill: #040506;
}

.about__pagination span:last-child {
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 14px;
    color: #040506;
    letter-spacing: 1px;
    opacity: 0.5;
}

.about__help {
    display: flex;
    align-items: center;
    gap: 20px;
}

.about__help-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #6E7D8B;
}

.about__help span:not(.about__help-dot) {
    color: #000000;
    font-size: 13px;
}

.about__help-icons {
    display: flex;
    gap: 15px;
}

.about__help-icons svg path {
    fill: #040506;
}

.about__help-icons a:hover svg {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.about__image {
    position: absolute;
    width: 557px;
    height: 828px;
    right: 200px;
    top: -200px;
    border-radius: 40px;
    object-fit: cover;
    z-index: 2;
}

/* Слайдер для about секции */
.about__slider-bars {
    display: flex;
    gap: 8px;
    margin: 20px 0 40px 80px;
    max-width: 300px;
    align-self: flex-start;
    position: relative;
    z-index: 3;
}

.about__slider-bar {
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.about__slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #040506;
}

.about__slider-bar.active .about__slider-progress {
    animation: about-progress 10s linear forwards;
}

@keyframes about-progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}
.help-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}.help-icons a {
    color: #737c8a;
        display: flex;
    align-items: center;
}
.help-icons a:hover {
    color: #2c2f37;
    transition: color 0.3s;
}.phone-info img,
.help-icons img {
    opacity: 0.7;
}
/* ==================== БЛОК 3: Details ==================== */
.details {
    /* min-height: 210vh; */
    padding-top: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: #ECEEF7;
    padding: 0;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.details__image {
    width: 100%;
    height: 378px;
    object-fit: cover;
}

.projects-block-3 {
    margin-top: 60px;
    margin-bottom: 40px;
    height: 200px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.projects-block-3__header {
    display: flex;
    align-content: space-between;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.projects-block-3__title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -0.04em;
    color: #040506;
}

.projects-block-3__count {
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #737C8A;
    opacity: 0.44;
}

.projects-block-3__brand {
    display: flex;
    flex-direction: column;
}

.projects-block-3__stars {
    opacity: 0.44;
    display: flex;
    gap: 4px;
}

.projects-block-3__stars svg path {
    fill: #262830;
}

.projects-block-3__logo {
    font-family: 'Montserrat Alternates', sans-serif;
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.02em;
    color: #262830;
    opacity: 0.44;
}

.projects-block-3__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.projects-block-3__btn {
    border-radius: 64px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
}

.projects-block-3__btn--primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 233px;
    height: 61px;
    background: #000000;
    border: none;
    color: #FFFFFF;
}

.projects-block-3__btn--primary svg path {
    fill: #F0F6FF;
}

.projects-block-3__btn--primary p {
    color: #FFFFFF;
}

.projects-block-3__btn--primary:hover {
    background: #1a1a1a;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.projects-block-3__btn--outline {
    box-sizing: border-box;
    width: 175px;
    height: 61px;
    border: 1.5px solid rgba(39, 42, 46, 0.16);
    background: transparent;
    border-radius: 64px;
    color: #272A2E;
}

.projects-block-3__btn--outline p {
    color: #272A2E;
}

.projects-block-3__btn--outline:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: #272A2E;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.details__divider {
    width: 84%;
    margin: 0 auto;
    opacity: 0.2;
    border-color: #272A2E;
}

.content-block-3 {
    display: flex;
    gap: 30px;
    padding: 30px 80px 60px 80px;
    max-width: 1920px;
    margin: 0 auto;
    /* width: 100%; */
}

.house-card {
    flex: 1;
}

.house-card__image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.house-card--small {
    max-width: 560px;
}

.house-card--small .house-card__image {
    width: 100%;
    max-width: 560px;
}

.house-card--large {
    flex: 1;
}

.house-card--large .house-card__image {
    width: 100%;
    max-width: 800px;
}

.house-card__title {
    display: flex;
    gap: 15px;
    align-items: baseline;
    margin-top: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.house-card__name {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #1A1C1F;
}

.house-card__area {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #262830;
    opacity: 0.4;
}

.house-card__description {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: #2C2F37;
    margin-bottom: 20px;
    max-width: 560px;
}

.house-card__btn {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 175px;
    height: 61px;
    border: 1.5px solid rgba(39, 42, 46, 0.16);
    border-radius: 64px;
    background: transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #272A2E;
}

.house-card__btn svg path {
    fill: #272A2E;
}

.house-card__btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #272A2E;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* ==================== КОНТАКТНАЯ ФОРМА ==================== */
.contact-text {
    /* margin-top: 20px; */
    background-image: url(../../img/map2.webp);
    background-repeat: no-repeat;
}

.contact-text h1 {
    margin: 6px 0px 0px 50px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #040506;
    max-width: calc(100% - 160px);
}

.contact-form {
    gap: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* height: 600px; */
}

.contact-row {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

.contact-row p {
    padding-top: 21px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: -0.02em;
    color: #2C2F37;
}

.sec-desc span {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.04em;
    color: #262830;
    opacity: 0.4;
}

.contact-desc {
    display: flex;
    margin-right: 80px;
    flex-direction: column;
    justify-content: center;
}

.contact-row-mobile {
    display: none;
}

/* ==================== FOOTER ==================== */
.footer {
    width: 100%;
    height: 100px;
    background-color: #ECEEF7;
    backdrop-filter: blur(10px);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer__nav {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: nowrap;
    justify-content: center;
}

.footer__nav a {
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.footer__nav a svg {
    stroke: #000000;
}

.footer__nav a:hover {
    color: #555555;
}

.footer__help {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.footer__help span {
    font-size: 13px;
    color: #000000;
}

.footer__help-icons {
    display: flex;
    gap: 15px;
}

.footer__help-icons svg {
    opacity: 0.7;
    filter: none;
}

.footer__help-icons svg path {
    fill: #000000;
}

.footer__help-icons a:hover svg {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* ==================== МОБИЛЬНАЯ АДАПТАЦИЯ (до 768px) ==================== */
@media (max-width: 768px) {

    /* Утилиты */
    .mobile-hidden {
        display: none !important;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Блок 1: Hero - Исправленный порядок без дублирования */
    .hero__header {
        padding: 0 20px;
        height: 70px;
        position: relative;
        z-index: 100;
        width: 100%;
    }

    .hero__brand {
        width: auto;
        align-items: flex-start;
    }

    .hero__logo {
        font-size: 14px;
        margin-bottom: 0;
    }

    .hero__burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 101;
    }

    .hero__burger span {
        width: 100%;
        height: 3px;
        border-radius: 20px;
        background-color: #2C2F37;
        transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    /* Активное состояние */
    .hero__burger.active span:nth-child(1) {
        width: 100% !important;
        /* Убираем 50% */
        transform: translateY(9px) rotate(135deg);
        /* Поворот на 135 вместо 45 для динамики */
    }

    .hero__burger.active span:nth-child(2) {
        transform: translateX(-20px);
        /* Вылет центральной полоски влево */
        opacity: 0;
    }

    .hero__burger.active span:nth-child(3) {
        width: 100% !important;
        /* Убираем 50% */
        margin-left: 0;
        /* Чтобы не мешал прижатый край */
        transform: translateY(-9px) rotate(-135deg);
    }

    /* Мобильное меню */
    .hero__mobile-menu {
        display: flex;
        position: fixed;
        top: 70px;
        left: auto;
        right: 0;
        border-radius: 0 0 0 25px;
        /* bottom: 0; */
        background: rgb(23 24 27 / 30%);
        backdrop-filter: blur(10px);
        padding: 40px 20px;
        z-index: 99;
        flex-direction: column;
        gap: 30px;
        /* width: 100%; */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;

        /* Состояние скрыто */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    /* Активное состояние меню */
    .hero__mobile-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    /* Анимация появления ссылок (каскадом) */
    .hero__mobile-nav a {
        display: flex;
        color: #F0F6FF;
        text-decoration: none;
        font-size: 44px;
        font-weight: 500;
        padding: 10px 0;
        border-bottom: 1px solid rgba(240, 246, 255, 0.1);
        width: 100%;

        /* Начальное состояние ссылок */
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    /* Когда меню активно, анимируем ссылки */
    .hero__mobile-menu.active .hero__mobile-nav a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Добавляем задержку для каждой ссылки (каскадный эффект) */
    .hero__mobile-menu.active .hero__mobile-nav a:nth-child(1) {
        transition-delay: 0.2s;
    }

    .hero__mobile-menu.active .hero__mobile-nav a:nth-child(2) {
        transition-delay: 0.3s;
    }

    .hero__mobile-menu.active .hero__mobile-nav a:nth-child(3) {
        transition-delay: 0.4s;
    }

    .hero__mobile-menu.active .hero__mobile-nav a:nth-child(4) {
        transition-delay: 0.5s;
    }

    /* Анимация контактов снизу */
    .hero__mobile-contacts {
        display: flex;
        margin-top: auto;
        /* padding: 20px 0; */
        width: 100%;
        opacity: 0;
        gap: 20px;
        transform: translateY(20px);
        transition: all 0.5s ease 0.6s;
        flex-direction: column;
        /* Задержка после последней ссылки */
    }

    .hero__mobile-menu.active .hero__mobile-contacts {
        opacity: 1;
        /* transform: translateY(0); */
    }

    .hero__contacts {
        width: auto;
    }

    .hero__main {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: calc(100% - 70px);
        padding-bottom: 30px;
        position: relative;
        width: 100%;
    }

    /* Мобильная пагинация сверху справа */
    .hero__mobile-pagination {
        display: flex;
        position: absolute;
        right: 20px;
        align-items: flex-end;
        gap: 5px;
        z-index: 5;
        flex-direction: column;
    }

    .hero__big-number-mobile {
        font-size: 104px;
        line-height: 104px;
    }

    .hero__pagination-number-mobile {
        font-size: 16px;
        line-height: 16px;
    }

    /* Контент - правильный порядок */
    .hero__content {
        position: relative;
        left: auto;
        bottom: auto;
        padding: 0 20px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* 1. Заголовок - исправлено дублирование */
    .hero__title {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 10px;
        order: 1;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .hero__title br {
        display: block;
    }

    .hero__title span {
        font-size: 36px;
        display: block;
        font-style: italic;
    }

    /* Убираем псевдоэлемент */
    .hero__title::before {
        display: none;
        content: none;
    }

    /* 2. Подзаголовок */
    .hero__subtitle {
        font-size: 12px;
        margin-bottom: 20px;
        order: 2;
        text-transform: uppercase;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        line-height: 1.4;
    }

    /* 3. Кнопки */
    .hero__actions {
        order: 3;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero__btn {
        white-space: nowrap;
        flex: 1 1 auto;
        min-width: 140px;
    }

    .hero__btn--primary {
        flex: 1;
    }

    .hero__btn--outline {
        flex: 1.5;
    }

    .hero__btn--primary svg {
        display: none;
    }

    /* 4. Полоски слайдера */
    /* .hero__slider-bars {
        order: 4;
        margin: 10px 0 0 0;
        max-width: 100%;
        width: 100%;
    } */

    .hero__tag--right {
        display: none;
    }

    .hero__card {
        display: none;
    }

    .hero__pagination {
        display: none;
    }

    /* Блок 2: About */
    .about {
        display: flex;
        min-height: auto;
        height: auto;
        overflow-x: hidden;
        position: relative;
        flex-direction: column;
        align-content: flex-end;
        align-items: center;
        padding-bottom: 40px;
        width: 100%;
    }

    .about__header {
        padding: 20px;
        height: auto;
        flex-wrap: wrap;
        width: 100%;
    }

    .about__location {
        display: flex;
        justify-content: center;
        font-size: 12px;
        gap: 10px;
        width: 100%;
        order: 2;
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .about__years {
        gap: 20px;
        order: 1;
        width: 100%;
        justify-content: space-between;
    }

    .about__content {
        width: 90%;
        height: auto;
    }

    .about__numbers {
        display: flex;
        gap: 30px;
        height: auto;
        min-height: 100px;
        flex-wrap: wrap;
        align-content: center;
        align-items: flex-end;
    }

    .about__number--lg {
        height: auto;
        font-size: 64px !important;
        line-height: 64px !important;
    }

    .about__number--md {
        height: auto;
        font-size: 48px !important;
        line-height: 48px !important;
    }

    .about__number--sm {
        height: auto;
        font-size: 32px !important;
        line-height: 32px !important;
    }

    .about__titles {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 10px !important;
        margin: 20px 0;
        width: 100%;
    }

    .about__title, .about__subtitle {
        width: 100%;
        font-size: 24px !important;
        line-height: 24px !important;
        opacity: 0.4 !important;
    }

    .about__title--lg, .about__subtitle--lg {
        font-size: 36px !important;
        line-height: 36px !important;
        opacity: 1 !important;
    }

    .about__caption {
        margin-top: 20px;
        margin-bottom: 20px;
        height: auto;
    }

    .about__divider {
        width: 100% !important;
    }

    .about__text {
        margin-top: 20px;
        font-size: 12px;
        line-height: 20px;
        min-height: auto;
    }

    .about__actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        align-content: flex-end;
        justify-content: center;
        /* flex-wrap: wrap; */
    }

    .about__btn--primary {
        width: auto;
        min-width: 200px;
        padding: 0 20px;
    }

    .about__btn--primary img {
        display: none;
    }

    .about__footer {
        padding: 20px;
        padding-top: 50px;
        height: auto;
        position: relative;
        flex-wrap: wrap;
        gap: 20px;
    }

    .about__help {
        gap: 10px;
        flex-wrap: wrap;
    }

    .about__image {
        position: absolute;
        z-index: 0;
        width: 300px;
        height: auto;
        right: -50px;
        top: -50px;
        border-radius: 20px;
        opacity: 0.5;
        pointer-events: none;
    }

    /* Блок 3: Details */
    .details {
        min-height: auto;
        height: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .details__image {
        height: 200px;
        width: 100%;
    }

    .projects-block-3 {
        flex-direction: column;
        height: auto;
        margin: 30px 0;
        gap: 20px;
        padding: 0 20px;
    }

    .projects-block-3__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 10px;
        width: 100%;
        align-content: center;
    }

    .projects-block-3__title {
        font-size: 36px;
        line-height: 36px;
        text-align: center;
    }

    .projects-block-3__actions {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px;
        width: 100%;
        justify-content: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .projects-block-3__btn {
        width: auto;
        min-width: 160px;
        font-size: 14px;
        padding: 0 15px;
    }

    .projects-block-3__btn--primary svg {
        display: none;
    }

    .details__divider {
        width: 90%;
        margin: 20px auto;
    }

    .content-block-3 {
        flex-direction: column;
        padding: 20px;
        gap: 40px;
        width: 100%;
    }

    .house-card--small,
    .house-card--large {
        max-width: 100%;
        width: 100%;
    }

    .house-card--small .house-card__image,
    .house-card--large .house-card__image {
        width: 100%;
        max-width: 100%;
    }

    .house-card__title {
        flex-wrap: wrap;
    }

    .house-card__name {
        font-size: 20px;
        line-height: 20px;
    }

    .house-card__area {
        font-size: 20px;
        line-height: 20px;
    }

    .house-card__description {
        font-size: 12px;
        line-height: 20px;
        max-width: 100%;
    }

    .house-card__btn {
        width: 100%;
        max-width: 175px;
    }

    .house-card__btn svg {
        display: inline-block;
    }
}

/* ==================== МОБИЛЬНАЯ АДАПТАЦИЯ ДЛЯ КОНТАКТНОЙ ФОРМЫ ==================== */
@media (max-width: 768px) {
    .contact-form {
        display: block;
        position: relative;
        background-image: url('../../img/map2.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .contact-form {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        width: 100%;
        left: 0;
        right: 0;
        position: relative;
    }

    .contact-text,
    .contact-desc {
        position: relative;
        z-index: 1;
        max-width: 100%;
        overflow-x: hidden;
    }

    .contact-text {
        background-image: none;
        min-height: auto;
        display: block;
        margin-bottom: 30px;
        width: 100%;
    }

    .contact-text h1 {
        margin: 0 20px 30px 20px;
        font-size: 28px;
        line-height: 32px;
        max-width: 100%;
        word-wrap: break-word;
        color: #040506;
    }

    .contact-desc {
        margin: 0 20px;
        max-width: calc(100% - 40px);
        overflow-x: hidden;
    }

    .contact-row {
        flex-direction: column;
        gap: 25px;
        padding-bottom: 25px !important;
        width: 100%;
        max-width: 100%;
    }

    .contact-row p {
        padding-top: 10px;
        flex-wrap: wrap;
        font-size: 14px;
        line-height: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        word-break: break-word;
        max-width: 100%;
    }

    .contact-row p svg {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }

    .contact-row span {
        font-size: 14px;
        line-height: 1.5;
        word-break: break-word;
    }

    .contact-row span br {
        display: none;
    }

    .sec-desc {
        width: 100%;
        max-width: 100%;
    }

    .sec-desc span {
        font-size: 22px;
        line-height: 22px;
        display: block;
        margin-bottom: 5px;
    }

    /* Разделительная черта */
    .contact-row[style*="border-bottom"] {
        border-bottom: 1px solid rgba(94, 114, 145, 0.22) !important;
        padding-bottom: 25px !important;
        width: 100%;
    }

    /* Текст "Ответим на вопросы..." */
    .contact-row span {
        font-size: 15px;
        line-height: 1.5;
        color: #2C2F37;
        opacity: 0.9;
        display: block;
        width: 100%;
    }

    /* Кнопка связаться с иконкой VK - на одной строке */
    .contact-row:last-child {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        padding-top: 25px !important;
        padding-bottom: 0 !important;
        flex-wrap: nowrap;
        gap: 15px;
        width: 100%;
    }

    .contact-row:last-child .projects-block-3__btn--primary {
        width: auto !important;
        min-width: 200px;
        height: 61px !important;
        padding: 0 25px;
        /* flex: 1 1 auto; */
        white-space: nowrap;
    }

    .contact-row:last-child .projects-block-3__btn--primary p {
        padding: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .contact-row:last-child .help-icons {
        display: flex;
        gap: 15px;
        flex-shrink: 0;
    }

    .contact-row:last-child .help-icons a svg {
        width: 28px;
        height: 28px;
    }

    .contact-row:last-child .help-icons a svg path {
        fill: #2C2F37;
    }

    .contact-row-mobile {
        padding-top: 32px;
        display: block;
        width: 100%;
    }

    .contact-section {
        padding-bottom: 20px;
        width: 100%;
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .contact-form {
        padding: 30px 0;
    }

    .contact-text h1 {
        font-size: 24px;
        line-height: 28px;
        margin: 0 15px 20px 15px;
    }

    .contact-desc {
        margin: 0 15px;
    }

    .contact-row p {
        font-size: 13px;
        gap: 8px;
    }

    .sec-desc span {
        font-size: 20px;
        line-height: 20px;
    }

    .contact-row:last-child {
        flex-wrap: wrap;
        gap: 15px;
    }

    .contact-row:last-child .projects-block-3__btn--primary {
        /* width: 50% !important; */
        min-width: 50%;
        justify-content: center;

    }

    .contact-row:last-child .help-icons {
        /* width: 100%; */
        justify-content: center;
    }

    .footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        height: auto;
    }

    .footer__nav {
        position: static;
        transform: none;
        margin: 0;
        gap: 20px;
    }

    .footer__help {
        margin-left: 0;
    }

    .footer__nav a {
        white-space: normal;
        text-align: center;
    }
}

/* ==================== ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ==================== */
@media screen and (max-width: 640px) {
    .footer {
        display: none;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        height: auto;
    }

    .footer__nav {
        flex-wrap: wrap;
        justify-content: center;
        position: static;
        transform: none;
        margin: 0;
    }

    .footer__help {
        margin-left: 0;
    }
}

/* Исправление для изображений, чтобы они не выходили за границы */
img {
    max-width: 100%;
    height: auto;
}

/* Исправление для контейнеров */
section, div, header, footer {
    /* max-width: 100%; */
    box-sizing: border-box;
}

/* Исправление для абсолютно позиционированных элементов */
.about__image {
    max-width: 50%;
    height: auto;
}

@media (max-width: 768px) {
    .about__image {
        max-width: 60%;
        right: -30px;
    }
}

@media (max-width: 480px) {
    .about__image {
        max-width: 70%;
        right: -20px;
        top: -30px;
    }
}
/* Стили для галлереи проектов в блоке details */
.project-gallery {
    position: relative;
}

.project-gallery .project-image-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-color: #2C2F37;
}

.project-gallery .main-project-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-gallery .thumbnail-list {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
    max-width: calc(100% - 32px);
}

.project-gallery .thumbnail {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.8;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #2C2F37;
}

.project-gallery .thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.project-gallery .thumbnail.active {
    border-color: #ffffff;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Для планшетов */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .project-gallery .thumbnail {
        width: 50px;
        height: 40px;
    }
}

/* На мобильных устройствах скрываем миниатюры */
@media screen and (max-width: 768px) {
    .project-gallery .thumbnail-list {
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    .modal img {
        max-width: 95%;
        max-height: 85%;
    }
    .contact-row span{
    display: none;
}
}
.social-icons {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}.logo {
    font-family: "Montserrat Alternates";
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: -0.02em;
    color: #2c2f37;
    margin-bottom: 10px;
}
/* Стили для мобильной галереи (как на ПК - миниатюры поверх изображения) */
@media (max-width: 768px) {
    .project {
        position: relative;
    }
    
    .project .project-image-container {
        position: relative;
        width: 100%;
        border-radius: 24px;
        overflow: hidden;
        cursor: pointer;
        background-color: #2C2F37;
    }

    .project .main-project-image {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .project .thumbnail-list {
        position: absolute;
        bottom: 16px;
        left: 16px;
        right: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        z-index: 10;
        max-width: calc(100% - 32px);
        pointer-events: auto;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .project .thumbnail {
        width: 50px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        opacity: 0.8;
        flex-shrink: 0;
        object-fit: cover;
        object-position: center;
        display: block;
        background-color: #2C2F37;
        pointer-events: auto;
    }

    .project .thumbnail:hover {
        opacity: 1;
        transform: scale(1.05);
    }

    .project .thumbnail.active {
        border-color: #ffffff;
        opacity: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

/* Для очень маленьких экранов (меньше 480px) - чуть уменьшаем миниатюры */
@media (max-width: 480px) {
    .project .thumbnail {
        width: 45px;
        height: 36px;
    }
}
/* Плавная смена фона */
.hero {
    transition: background-image 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero__slider-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.hero__slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%; 
    background: #fff;
    /* Убираем все переходы отсюда, они будут в классе .active */
    transition: none; 
}

/* Когда бар активен, запускаем заполнение */
.hero__slider-bar.active .hero__slider-progress {
    width: 100%;
    /* Время должно совпадать с intervalTime (10s) */
    transition: width 10s linear; 
}

/* Если навели на слайдер — останавливаем полоску */
.hero:hover .hero__slider-bar.active .hero__slider-progress {
    transition: none;
    /* Здесь можно добавить фиксацию ширины, если нужна пауза */
}
/* Контейнер для полосок */
.hero__slider-bars {
    display: flex;
    gap: 8px;
    margin: 30px 0 40px 0;
    width: 100%;       /* Занимает всю доступную ширину */
    max-width: 400px;  /* Но не больше 400px */
}

/* Сама полоска (серая подложка) */
.hero__slider-bar {
    flex: 1;           /* Распределяет полоски равномерно по ширине */
    height: 4px;       /* Обязательно задаем высоту */
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Прогресс (белая линия) */
.hero__slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;         /* Изначально пустая */
    background: #fff;
    transition: none;  /* Сброс анимации по умолчанию */
}

/* Анимация при активации через JS */
.hero__slider-bar.active .hero__slider-progress {
    width: 100%;
    transition: width 10s linear; /* 10s должно совпадать с вашим JS intervalTime */
}

@media screen and (max-width: 768px) {
    .contact-btn-dark {
        width: 233px !important;
    }
}.contact-btn-dark {
    width: 233px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #000000;
    border-radius: 64px;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    color: #ffffff;
    border: none;
}.contact-btn-dark {
    flex-shrink: 0;
    width: 239px;
    height: 61px;
    background: #000000;
    border-radius: 64px;
    gap: 16px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.contact-btn-dark svg {
    fill: #ffffff;
}


/* =================TEXTBLOCK================= */
.about-text-block-section{
   padding-bottom: 64px;
    padding-top: 125px;
}
.about-text-block-main{
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
    flex-direction: column;

 
}
.about-text-block-image{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 48px;
}
.about-text-block-main h3{
    /* О поселке Петровский • 2 */



font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-size: 56px;
line-height: 56px;
/* identical to box height, or 100% */
letter-spacing: -0.04em;

color: #040506;


}
.about-text-block-main span{
    /* Актуальные цены и планировки уточняйте у отдела продаж */


font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 24px;
/* identical to box height, or 100% */
letter-spacing: -0.04em;

color: #040506;

opacity: 0.4;
padding-bottom: 64px;
}
.about-text-blocks{
    display: flex;
    flex-direction: row;
    margin: auto 80px;
    column-gap: 80px;
    padding-bottom: 32px;
    
}
.about-text-block-left{
    display: flex;
    flex-direction: column;
    gap: 64px;
flex: 1;
}
.about-text-block-right{
display: flex;
    flex-direction: column;
    gap: 64px;
    flex: 1;
}
.about-text-block-title-text{
    /* Местоположение и транспортная доступность */


font-family: 'Montserrat';
font-style: normal;
font-weight: 600;
font-size: 24px;
line-height: 24px;
/* identical to box height, or 100% */
letter-spacing: -0.04em;

color: #1A1C1F;
padding-bottom: 24px;
padding-top: 40px;
}
.about-text-block-main-text{



font-family: 'Montserrat';
font-style: normal;
font-weight: 600;
font-size: 14px;
line-height: 24px;
/* or 171% */
letter-spacing: -0.02em;

color: #2C2F37;


}
.about-text-block-main-text span{
    display: flex;
}
.about-text-blocks-mini{
       margin: auto 80px;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 1fr;
    gap: 140px;
    justify-content: center;

}
.about-text-block-mini-left{
    display: flex;
    flex-direction: column;

}
.about-text-block-mini-right{
    display: flex;
    flex-direction: column;
gap: 48px;
}
.about-text-block-mini-title{
    /* Управляющая компания */



font-family: 'Montserrat';
font-style: normal;
font-weight: 600;
font-size: 24px;
line-height: 24px;
/* identical to box height, or 100% */
letter-spacing: -0.04em;

color: #1A1C1F;
padding-bottom: 24px;

}
.about-text-block-mini-main{



font-family: 'Montserrat';
font-style: normal;
font-weight: 600;
font-size: 14px;
line-height: 24px;
/* or 171% */
letter-spacing: -0.02em;

color: #2C2F37;


}

@media (max-width: 768px) {

.about-text-blocks{
    display: flex;
    flex-direction: column;
    margin: auto 20px;
    column-gap: 80px;
    padding-bottom: 32px;
    row-gap: 32px;
}
.about-text-blocks-mini{
    margin: auto 20px;
}
.about-text-block-image{
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-text-block-main h3 {
    font-size: 24px;
}
.about-text-block-main span{
    font-size: 16px;
    text-align: center;
}

.about-text-blocks-mini{
    grid-template-columns: 1fr;
}
.about-text-blocks-mini{
    gap: 48px;
}

.about-text-block-section{
    margin: auto 20px;
}
.about-text-block-section{
    padding-bottom: 32px;
    padding-top: 32px;
}
}

/* Externalized about icons: keeps inline SVG appearance while removing huge markup from about.html */
.about-text-block-svg-row .about-text-block-icon {
    display: block;
    max-width: 122px;
    height: auto;
}

/* ===== navigation update: added page "О союзе" ===== */
@media (min-width: 821px) {
    .hero__nav, .footer__nav { gap: 28px; }
}
