/* ====== FONT FAMILY: Mulish ====== */
@font-face {
    font-family: 'Mulish';
    src: url('/fonts/Mulish-Regular.woff2') format('woff2'),
    url('/fonts/Mulish-Regular (1).woff2') format('woff2'),
    url('/fonts/Mulish-Regular (1).woff') format('woff'),
    url('/fonts/Mulish-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mulish';
    src: url('/fonts/Mulish-SemiBold.woff2') format('woff2'),
    url('/fonts/Mulish-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mulish';
    src: url('/fonts/Mulish-Bold.woff2') format('woff2'),
    url('/fonts/Mulish-Bold (1).woff2') format('woff2'),
    url('/fonts/Mulish-Bold (1).woff') format('woff'),
    url('/fonts/Mulish-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ====== GLOBAL ====== */
body {
    margin: 0;
    font-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 400 !important;
    display: flex;
    flex-direction: column;
    color: #333333 !important;
}

.container {
    width: 1440px;
    margin: 0 auto;
}

/* ====== HEADER ====== */
.header {
    padding: 20px 0;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span {
    display: block;
    font-size: 12px;
    color: #777;
}

.header__links a {
    margin-left: 20px;
    font-size: 12px;
    color: #777;
    text-decoration: none;
}

.swipe-cta {
    display: none;
}

.mobile_catalog__form {
    display: none;
}

.swiper-pagination {
    display: none;
}

/* по умолчанию — обычная страница */
.swiper {
    height: auto;
    margin: 0;
    font-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 400 !important;
    display: flex;
    flex-direction: column;
    padding-top: 40px !important;
    gap: 60px;
    color: #333333 !important;
}

.swiper-wrapper {
    height: auto;
    margin: 0;
    font-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 400 !important;
    display: flex;
    flex-direction: column;
    gap: 65px;
    color: #333333 !important;
}

/* ====== HERO ====== */
.hero {
}

.hero__image {
    width: 660px;
    height: 576px;
    border-radius: 20px;
}

.hero__image img {
    width: 100%; /* Изображение занимает 100% ширины контейнера */
    height: 100%; /* Изображение занимает 100% высоты контейнера */
    object-fit: cover; /* Изображение масштабируется так, чтобы полностью покрыть контейнер, сохраняя пропорции (может обрезать) */
    border-radius: 25px;
}

.hero__content {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.hero__bg_image {
    position: absolute;
    top: 75px;
    left: -35px;
    z-index: -100;
}

.hero__text {
    width: 45%;
}

.hero__header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-direction: column;
}

.hero__header h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 42px;
    color: #333333;
}

.hero__header p {
    font-weight: 600;
    font-size: 24px;
    line-height: 35px;
    letter-spacing: 0;
    color: #474747;
}

.mobile__hero__tags {
    display: none;
}

.hero__tags {
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.hero__tags span {
    background: #333333;
    color: #ffffff;
    padding: 7px 9px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
}

.hero__avatars {
    display: flex;
    padding-top: 50px;
}

.mobile__hero__avatars {
    display: none;
}

.avatar {
    width: 70px;
    height: 70px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    margin-left: -15px;
}

.first_avatar {
    background: #333333;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.last_avatar {
    position: relative;
}

.extra_avatars_number {
    position: absolute;
    display: flex;
    width: 41px;
    height: 22px;
    align-items: center;
    justify-content: center;
    top: 0px;
    right: -14px;
    border-radius: 20px;
    padding: 6px;
    background: #ffffff;
}

.extra_avatars_number span {
    font-weight: 700;
    color: #333333;
    font-size: 14px;
}

/* ====== DIVIDER ====== */
.horizontal_divider {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.horizontal_divider__project_name {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #333333;
}

.horizontal_divider__vertical_divider {
    height: 14px;
    border-left: 2px solid #8B8B8B;
}

.horizontal_divider__address {
    font-weight: 600;
    white-space: nowrap;
    font-size: 12px;
    color: #8B8B8B;
}

.horizontal_divider__divider {
    width: 100%;
    border-bottom: 2px solid #8B8B8B;
}

/* ====== PROJECT ====== */
.project {
}

.project__content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.project__content__vertical_divider {
    border-left: 2px solid #8B8B8B;
}

.project__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.project__info__main_info {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.project__info__main_info__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project__info__main_info__item strong {
    font-size: 42px;
    font-weight: 600;
    color: #333333;
    line-height: 30px;
}

.project__info__main_info__item span {
    font-size: 22px;
    font-weight: 400;
    color: #8B8B8B;
}

.project__image {
    width: 70%;
    position: relative;
}

.project__image img {
    width: 100%;
    border-radius: 25px;
}

.project__card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #FFFFFFE5;
    padding: 25px;
    border-radius: 20px;
    width: 388px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    height: 232px;
    backdrop-filter: blur(20px);
}

.project__card h3 {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 0px;
}

.project__card__icon {
    position: absolute;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.project__card__divider {
    width: 100%;
    border-bottom: 1px solid #000000;
    opacity: 0.1;
}

.project__card p {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 16px;
    opacity: 0.8;
}

.project__features {
    display: flex;
    gap: 4px;

    font-weight: 600;
    font-size: 12px;
}

.project__features span {
    width: min-content;
    height: 24px;
    opacity: 1;
    display: flex;
    align-items: center;
    border-radius: 20px;
    text-wrap: nowrap;
    padding: 8px;
}

.project__features .first {
    background: #333333;
    color: #ffffff;
}

.project__features .last {
    background: #ffffff;
    color: #333333;
}

.project__metro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.project__metro p {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0 !important;
    color: #333333;
}

.project__metro__stations {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: #8B8B8B;
}

.project__metro__station {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.project__metro__station span {
    font-weight: 400;
    font-size: 16px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background: #e53935;
}

.dot.blue {
    background: #1e88e5;
}

.dot.green {
    background: #4caf50;
}

.dot.orange {
    background: #ff9800;
}

.dot.yellow {
    background: #fdd835;
}

.dot.purple {
    background: #8e24aa;
}

.dot.pink {
    background: #d81b60;
}

.dot.brown {
    background: #6d4c41;
}

.dot.gray {
    background: #757575;
}

.dot.light-green {
    background: #7cb342;
}

.dot.cyan {
    background: #00acc1;
}

.dot.teal {
    background: #00897b;
}

/* ====== CATALOG ====== */
.catalog {
    height: 383px;
    padding-top: 80px;
}

.catalog__content {
    display: flex;
    justify-content: space-between;
}

.catalog__form {
    width: 40%;
}

.catalog__form__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.catalog__form__header__first {
    font-weight: 700;
    font-size: 40px;
    line-height: 40px;
    color: #333333;
    margin: 0 !important;
}

.catalog__form__header__desc {
    font-weight: 600;
    font-size: 24px;
    line-height: 35px;
    color: #8B8B8B;
}

.catalog__form__input__group {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.catalog__form__input__group input {
    width: 320px;
    height: 60px;
    padding-left: 40px;
    opacity: 1;
    border: none !important;
    border-radius: 40px;
    background: #F5F5F5;
}

.catalog__form__input__group input::placeholder {
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    vertical-align: middle;
}

.catalog__form__input__group .validation-feedback {
    font-weight: 400;
    font-size: 14px;
    color: #8B8B8B;
}

.catalog__form__input__group button {
    width: 320px;
    height: 60px;
    opacity: 1;
    border: none !important;
    border-radius: 40px;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 0 0;
}

.catalog__form__input__group__button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
}

.catalog__form__input__group button span {
    padding-left: 40px;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
}

.catalog__form__caption {
    padding-left: 40px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.catalog__form__caption__file_info {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: #333333;
}

.catalog__form__caption__file_info span {
    font-weight: 600;
    font-size: 14px;
}

.catalog__form__caption__file_info__vertical_divider {
    height: 14px;
    border-left: 1px solid #8B8B8B;
}

.catalog__form__caption .agreement {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #4D4444;
}

.catalog__preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.catalog__preview .background {
    position: absolute;
    object-fit: cover; /* Изображение масштабируется так, чтобы полностью покрыть контейнер, сохраняя пропорции (может обрезать) */
    z-index: -100;
    top: -124px;
    right: -55px;
}

.catalog__preview__hero__avatars {
    display: flex;
}

.catalog__preview__hero__avatars_avatar {
    width: 80px;
    height: 80px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    margin-left: -15px;
}

.catalog__preview__avatars_first {
    margin-left: 0;
}

.catalog__preview__avatars_last {
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 243px;
    height: 36px;
    opacity: 1;
    border-radius: 20px;
    padding: 12px;
    background: #333333;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

/* ====== FOOTER ====== */
.footer {
    padding: 120px 0 20px 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    body {
        gap: unset;
        overflow-x: hidden;
    }

    .swiper {
        height: unset;
        display: unset;
        margin-right: unset !important;
        margin-left: unset !important;
        flex-direction: unset;
        gap: unset;
        padding: 0 !important;
        width: 100%;
        overflow: visible;
    }

    .swiper-slide .container {
        max-width: none;
        width: 100%;
        overflow-y: scroll;
        height: 97%;
        padding-left: 16px;
        padding-right: 16px;
        margin: unset;
    }

    .swiper-wrapper {
        height: 100%;
        margin: unset;
        display: flex;
        flex-direction: unset;
        gap: unset;
    }

    .swiper-slide {
        height: 91svh !important;
        width: 100%;
        flex-shrink: 0;
    }

    .container {
        width: 100%;
    }

    header {
    }

    .header__content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .header__links {
        width: 0;
        visibility: hidden;
        display: none;
    }

    .hero__content {
        display: flex;
        gap: 40px;
        flex-direction: column;
        align-items: center;
        justify-content: space-around !important;
    }

    .hero__text {
        width: unset;
    }

    .hero__header {
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .hero__header p {
        margin-bottom: unset;
    }

    .hero__tags, .hero__bg_image, .hero__avatars {
        display: none;
    }

    .hero__image {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero__image img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .mobile__hero__tags {
        position: absolute;
        top: 20px;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);

        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: calc(100% - 32px); /* чтобы не вылезать за картинку */
    }

    .mobile__hero__tags span {
        background: #FFFFFFCC;
        color: #333333;
        padding: 7px 9px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 12px;
    }

    .mobile__hero__avatars {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        max-width: calc(100% - 32px);
    }

    .mobile__hero__avatars .avatar {
        width: 45px;
        height: 45px;
    }

    .mobile__hero__avatars .extra_avatars_number {
        width: 25px;
        height: 14px;
        top: -2px;
    }

    .mobile__hero__avatars .extra_avatars_number span {
        font-size: 9px;
    }

    .horizontal_divider {
        display: none;
    }

    .swipe-cta {
        position: relative;
        display: flex;
        width: 320px;
        margin-bottom: 10px;
        min-height: 60px;
        max-height: 60px;
        border-radius: 40px;
        background: #333;
        justify-content: center;
        color: #ffffff !important;
        overflow: hidden;
    }

    .swipe-text {
        align-self: center;
        pointer-events: none;
    }

    .swipe-track {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translate3d(0, -50%, 0);

        width: 57px;
        height: 57px;
        border-radius: 50%;
        background: #fff;

        display: flex;
        align-items: center;
        justify-content: center;

        touch-action: none;
        user-select: none;
        will-change: transform;
    }

    .project__content{
        margin-bottom: 40px !important;
    }

    .project__info {
        display: none;
    }

    .project__content__vertical_divider {
        display: none;
    }

    .project__image {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .project__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .project__card {
        position: absolute;
        bottom: 24px;
        width: unset;
        left: 16px;
        right: 16px;
        z-index: 2;
    }

    .project__card p {
        margin-bottom: 2px;
    }

    .swiper-pagination {
        display: unset;
    }

    .project-pagination {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;

        align-items: center;
        justify-content: center;
        display: flex;

        gap: 8px;
        transition: opacity 0.3s ease;
    }

    .project-pagination .swiper-pagination-bullet {
        width: 16px;
        height: 8px;
        border-radius: 4px;
        background: #8d8d8d;
    }

    .project-pagination .swiper-pagination-bullet-active {
        background: #333333;
    }

    .catalog {
        padding: 20px;
    }

    .catalog__content {
        display: flex;
        height: unset !important;
        flex-direction: column;
        align-items: center;
    }

    .catalog__form {
        display: none;
    }

    .catalog__form__header {
        display: none;
    }

    .catalog__preview {
        display: none;
    }

    .mobile_catalog__form {
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mobile_catalog__form .background {
        position: absolute;
        object-fit: cover; /* Изображение масштабируется так, чтобы полностью покрыть контейнер, сохраняя пропорции (может обрезать) */
        z-index: -100;
        top: -100px;
        width: 318px;
        height: 776px;
        right: -16px;
    }

    .mobile_catalog__form__text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mobile_catalog__form__text__main {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-weight: 700;
        font-size: 29px;
        line-height: 28px;
        text-align: center;
    }

    .mobile_catalog__form__text__desc {
        font-weight: 600;
        font-size: 20px;
        line-height: 22px;
        text-align: center;
        color: #474747 !important;
    }

    .my-badge {
        display: flex;
        width: 141px;
        height: 34px;
        opacity: 1;
        border-radius: 10px;
        padding: 10px;
        background: #F5F5F5;
        color: #333333;
        font-weight: 600;
        font-size: 16px;
    }

    .mobile__avatars .catalog__preview__hero__avatars:first-child {
        position: relative;
        z-index: 10;
    }

    .mobile__avatars .catalog__preview__hero__avatars:last-child {
        margin-top: -10px;
    }

    .catalog__preview__hero__avatars {
        display: flex;
        flex-wrap: wrap;
        margin-top: 15px;
        align-items: center;
        justify-content: center;
    }

    .catalog__preview__hero__avatars_avatar {
        width: 82px;
        height: 82px;
        border: 3px solid #ffffff;
        border-radius: 50%;
        margin-top: -15px;
        margin-left: -15px;
    }

    .catalog__preview__avatars_first {
        background: #333333;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
    }

    .catalog__form__caption {
        padding-left: unset;
        margin-top: unset;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .mobile_catalog__form .header__links {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding-top: 30px;
        width: 100%;
        visibility: unset;
        color: #8B8B8B !important;
    }

    footer {
        display: none !important;
        padding: unset !important;
    }
}

@media (max-height: 768px) {
    .hero__header h1 {
        font-size: 30px;
        line-height: 30px;
    }
}

@media (max-height: 768px) and (max-width: 550px) {
    .project__card {
        height: min-content;
    }
}
