/* ====== 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__links {
    display: none;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__links {
    margin-left: auto;
}

.header__links a {
    margin-left: 20px;
    font-size: 12px;
    color: #777;
    text-decoration: none;
}

/* по умолчанию — обычная страница */
.main_body {
    height: auto;
    margin: 0;
    font-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 400 !important;
    display: flex;
    flex-direction: column;
    gap: 60px;
    color: #333333 !important;
    overflow: hidden;
}

/* ====== HERO ====== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.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-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 700;
    font-size: 40px;
    line-height: 42px;
    color: #333333;
}

.hero__header p {
    font-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    color: #474747;
}

.hero__header__extra_text {
    font-family: 'Mulish', Arial, sans-serif !important;
    font-weight: 500;
    font-size: 32px;
    line-height: 22px;
    color: #474747;
}

.features {
    margin: 40px auto 20px;
    position: relative; /* база для абсолютных */
}

/* ВНУТРЕННИЙ контейнер — режет только фон */
.features__inner {
    padding: 20px 30px;
    background: #f5f5f5;
    border-radius: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    position: relative;
    overflow: hidden;
}

/* Элементы */
.features__item {
    flex: 1;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;

    position: relative;
    padding: 0 10px;
}

/* Разделители (если есть) */
.divider {
    width: 1px;
    background: #333;
    height: 60%;
}

/* Кнопка — НЕ обрезается */
.mouse_down {
    width: 70px;
    height: 70px;

    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* Фоновая картинка — ОБРЕЗАЕТСЯ */
.features__bg_image {
    position: absolute;
    right: -20%;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

.features__bg_image img {
    display: block;
    max-width: 600px;
    height: auto;
}

/* Разделитель */
.divider {
    width: 1px;
    background: #333333;
    opacity: 0.2;

    /* ключевое */
    margin: 0 10px;
    align-self: stretch; /* тянется на всю высоту контейнера */
}

/* ====== DIVIDER ====== */
.horizontal_divider {
    display: flex;
    width: 100%;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.horizontal_divider__text {
    font-weight: 500;
    font-size: 40px;
    width: max-content;
    text-wrap-mode: nowrap;
    line-height: 42px;
}

.horizontal_divider__divider {
    width: 100%;
    opacity: 0.2;
    border-bottom: 2px solid #8B8B8B;
}

/* ====== GALLERY ====== */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    justify-items: center; /* горизонтально внутри каждой колонки */
    align-items: center; /* вертикально внутри каждой строки */
}

/* Общие стили */
.gallery .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Большие элементы */
.middle-left {
    grid-row: span 2; /* растягивается вниз */
}

.bottom {
    grid-column: span 2; /* на всю ширину */
}

.project {
}

.project__content {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.project__content__vertical_divider {
    border-left: 2px solid #8B8B8B;
    opacity: 0.2;
}

.project__info {
    display: flex;
    flex: 0 0 27%;
    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: 14px;
    letter-spacing: 0;
    line-height: 16px;
    opacity: 0.8;
}

.project__features {
    display: flex;
    gap: 4px;

    margin-top: auto;

    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;
}

/* ====== CATALOG ====== */
.catalog {
    height: 383px;
}

.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: 100%;
    max-width: 320px;
    height: 60px;
    padding-left: 40px;
    opacity: 1;
    border: none !important;
    border-radius: 16px;
    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__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #ffffff;
}

.catalog__form__input__group {
    border: 2px solid transparent !important;
}

.catalog__form__input__group button span {
    padding-left: 40px;
    font-weight: 400;
    font-size: 16px;
    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;
}

.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: 50px 0 20px 0;
}

.footer__content {
    display: flex;
    justify-content: space-between;
}

/* ====== CATALOG BUTTON STATES ====== */

/* Базовая кнопка */
.catalog__form__input__group button {
    width: 100%;
    max-width: 320px;
    height: 60px;
    opacity: 1;
    border: none !important;
    border-radius: 16px;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 0 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* Hover: убираем заливку, добавляем обводку */
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) {
    background: transparent;
    border-color: #333333 !important;
}

/* Текст кнопки при hover становится тёмным */
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) span {
    color: #333333;
}

/* Состояние загрузки */
.catalog__form__input__group button.btn--loading {
    background: transparent;
    border-color: #333333 !important;
    cursor: not-allowed;
}

.catalog__form__input__group button.btn--loading span {
    color: #333333;
}

.catalog__form__input__group button.btn--loading .catalog__form__input__group__button__icon {
    background: #333333;
}

/* Состояние успеха */
.catalog__form__input__group button.btn--success {
    background: transparent;
    border-color: #2e7d32 !important;
    cursor: default;
}

.catalog__form__input__group button.btn--success span {
    color: #2e7d32;
}

.catalog__form__input__group button.btn--success .catalog__form__input__group__button__icon {
    background: #2e7d32;
}

.catalog__form__input__group button.btn--success .catalog__form__input__group__button__icon svg path,
.catalog__form__input__group button.btn--success .catalog__form__input__group__button__icon svg circle {
    stroke: #ffffff;
}

/* Инпут: ошибка валидации */
.catalog__form__input__group input.input--error {
    outline: 2px solid #E20000;
    background: #fff5f5;
    color: #E20000;
}

.catalog__form__input__group input.input--error::placeholder {
    color: #E20000;
}

/* Спиннер */
.catalog-spinner {
    animation: catalog-spin 0.9s linear infinite;
    transform-origin: center;
}

@keyframes catalog-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.catalog__form__input__group button.btn--error {
    background: transparent;
    border-color: #E20000 !important;
}

.catalog__form__input__group button.btn--error span {
    color: #333333;
}

/* При hover иконка на белом фоне → чёрный фон исчезает, иконка темнеет */
.catalog__form__input__group button.btn--error .catalog__form__input__group__button__icon {
    background: #333333;
}

.catalog__form__input__group button.btn--error .catalog__form__input__group__button__icon svg path {
    stroke: #ffffff;
}

.presentation {
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    height: 400px;
    padding: 50px !important;
    border-radius: 16px;
    background: #F5F5F5;
}

.left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.left h2 span {
    font-weight: 400;
    font-size: 40px;
    line-height: 42px;
    color: #474747;
}

.left .subtitle {
    font-weight: 400;
    font-size: 24px;
    line-height: 22px;
    color: #474747;
}

.left .catalog__form__input__group {
    margin-top: 15px;
}

.left .catalog__form__input__group {
    margin-top: 15px;
}

.left .catalog__form__input__group input {
    background: #FFFFFF;
}

.right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

.right img {
    width: 524px;
    height: 113px;
    border-radius: 16px;
    object-fit: cover;
}

.right .note {
    text-align: left;
    opacity: 0.8;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
}

body {
    position: relative;
}

/* Общие стили для фоновых картинок */
.left__bg_image, .right__bg_image {
    position: absolute;
    width: 762px;
    height: 402px;
    bottom: 50px;
    z-index: 0;
    pointer-events: none;
}

/* Картинка внутри */
.left__bg_image img, .right__bg_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Позиционирование (пример, подгони под макет) */
.left__bg_image {
    left: 0;
}

.right__bg_image {
    right: 0;
}

/* Контент поверх */
.left > *:not(.left__bg_image),
.right > *:not(.right__bg_image) {
    position: relative;
    z-index: 1;
}

.mobile_hero__image {
    display: none;
    border-radius: 20px;
    width: 100%;
}

.mobile_hero__image img {
    width: 100%; /* Изображение занимает 100% ширины контейнера */
    height: 100%; /* Изображение занимает 100% высоты контейнера */
    object-fit: cover; /* Изображение масштабируется так, чтобы полностью покрыть контейнер, сохраняя пропорции (может обрезать) */
    border-radius: 25px;
}

.presentation__mobile__img {
    display: none;
}

.presentation__mobile__note {
    display: none;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 1024px) {
    p {
        margin-bottom: 0 !important;
    }

    .header__links a{
        margin-left: unset;
    }

    .presentation {
        padding-right: calc(var(--bs-gutter-x) * .5)!important;
        padding-left: calc(var(--bs-gutter-x) * .5)!important;
    }

    .main_body {
        gap: 30px;
    }

    .hero {
        padding-top: 20px;
    }

    .header {
        display: none;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__header {
        font-weight: 500;
        font-size: 26px;
        line-height: 26px;
        text-align: center;
    }

    .hero__header h1 {
        width: 100%;
        font-size: 36px;
    }

    .hero__text {
        width: 100%;
    }

    .hero__image {
        display: none;
    }

    .hero__bg_image {
        display: none;
    }

    .mobile_hero__image {
        display: block;
    }

    .hero__header p {
        font-weight: 400;
        font-size: 20px;
        width: 100%;
        line-height: 22px;
        text-align: center;
    }

    .hero__header .hero__header__extra_text {
        font-weight: 500;
        font-size: 24px;
        line-height: 22px;
        text-align: center;
    }

    .catalog__form__input__group {
        margin-top: 30px;
        width: 100%;
        align-items: center;
    }

    .mouse_down {
        display: none;
    }

    .features {
        display: flex;
        width: 100%;
        align-items: center;
        margin: unset;
        justify-content: center;
    }

    .features__inner {
        width: 100%;
        max-width: 320px;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .divider {
        height: 1px;
        width: 100%;
    }

    .features__item {
        font-weight: 400;
        text-align: left;
        font-size: 16px;
        line-height: 18px;
        letter-spacing: 0%;
    }

    .horizontal_divider__divider {
        display: none;
    }

    .horizontal_divider__text {
        font-weight: 500;
        font-size: 26px;
        line-height: 26px;
        text-align: center;
    }

    .gallery {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .gallery img {
        width: auto;
    }

    .presentation__mobile__img {
        display: block;
        width: 100%;
        height: 113px;
        border-radius: 16px;
        object-fit: cover;
    }

    .presentation__mobile__note {
        display: inline-block;
        font-weight: 400;
        font-size: 16px;
        line-height: 20px;
        text-align: center;
    }

    .presentation .left h2 {
        font-weight: 500;
        font-size: 26px;
        line-height: 28px;
        text-align: center;
    }

    .presentation .left .subtitle {
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        text-align: center;
    }

    .footer {
        padding: 20px 0 20px 0;;
    }

    .header__links {
        display: flex;
        margin: unset;
        justify-content: center;
        flex: 1;
        flex-direction: column;
        align-items: center;
    }

    .presentation {
        height: auto;
    }

    .presentation .left {
        align-items: center;
        flex: 1;
    }

    .presentation .right {
        display: none;
    }

    .left__bg_image {
        display: none;
    }

    .right__bg_image {
        display: none;
    }
}

/* ====== CATALOG BUTTON STATES ====== */

/* Базовая кнопка */
.catalog__form__input__group button {
    width: 320px;
    height: 60px;
    opacity: 1;
    border: 2px solid transparent !important;
    border-radius: 16px;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1px 0 0;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

/* Hover: убираем заливку, добавляем обводку */
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) {
    background: transparent;
    border-color: #333333 !important;
}

/* При hover иконка на белом фоне → чёрный фон исчезает, иконка темнеет */
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) .catalog__form__input__group__button__icon {
    background: #333333;
}

.hover {
    display: none;
}

.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) .catalog__form__input__group__button__icon .not-hover {
    display: none;
}
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) .catalog__form__input__group__button__icon .hover {
    display: block;
}

/* Текст кнопки при hover становится тёмным */
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) span {
    color: #333333;
}

/* Состояние загрузки */
.catalog__form__input__group button.btn--loading {
    background: transparent;
    border-color: #333333 !important;
    cursor: not-allowed;
}

.catalog__form__input__group button.btn--loading span {
    color: #333333;
}

.catalog__form__input__group button.btn--loading .catalog__form__input__group__button__icon {
    background: #333333;
}

/* Состояние успеха */
.catalog__form__input__group button.btn--success {
    background: transparent;
    border-color: #2e7d32 !important;
    cursor: default;
}

.catalog__form__input__group button.btn--success span {
    color: #2e7d32;
}

.catalog__form__input__group button.btn--success .catalog__form__input__group__button__icon {
    background: #2e7d32;
}

.catalog__form__input__group button.btn--success .catalog__form__input__group__button__icon svg path,
.catalog__form__input__group button.btn--success .catalog__form__input__group__button__icon svg circle {
    stroke: #ffffff;
}

/* Инпут: ошибка валидации */
.catalog__form__input__group input.input--error {
    outline: 2px solid #E20000;
    background: #fff5f5;
    color: #E20000;
}

.catalog__form__input__group input.input--error::placeholder {
    color: #E20000;
}
