/* ====== HEADER ====== */
.header {
    padding: 20px 20px 60px 20px;
}

.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;
}

/* ====== 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;
}

.swipe-cta {
    display: none;
}

.swiper-pagination {
    display: none;
}

/* ====== HERO ====== */
.hero__image {
    width: 660px;
    margin-top: 25px;
    height: 576px;
    border-radius: 20px;
}

.hero__image img {
    width: 100%;
    height: 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 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
}

/* ====== CATALOG FORM (used in hero) ====== */
.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: 2px solid transparent !important;
    border-radius: 40px;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 0 0;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.catalog__form__input__group__button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
}

.catalog__form__input__group button span {
    padding-left: 40px;
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
}

/* ====== CATALOG BUTTON STATES ====== */

/* Hover */
.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) {
    background: transparent;
    border-color: #333333 !important;
}

.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) .catalog__form__input__group__button__icon {
    background: #333333;
}

.catalog__form__input__group button:hover:not(:disabled):not(.btn--error) .catalog__form__input__group__button__icon svg path {
    stroke: #ffffff;
}

.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 button.btn--error {
    background: transparent;
    border-color: #E20000 !important;
}

.catalog__form__input__group button.btn--error span {
    color: #333333;
}

.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;
}

/* Ошибка инпута */
.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);
    }
}

.hero-swiper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
}

.hero-swiper .swiper-wrapper {
    display: flex;
    flex-direction: row !important; /* сбиваем глобальный column */
    flex-wrap: nowrap !important;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100% !important;
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-swiper__feature {
    width: 235px;
    height: 30px;
    opacity: 1;
    position: absolute;

    bottom: 20px;
    left: 20px;

    background: #ffffffcc;
    color: #333333;

    font-weight: 600;
    font-size: 14px;

    display: flex;
    align-items: center;

    padding: 8px 16px;
    border-radius: 20px;
}

.hero-swiper__feature span {
    font-family: 'Mulish';
    font-weight: 600;
    font-size: 16px;
    line-height: 59.3px;
    letter-spacing: -2%;
}

body {
    height: 100vh;
}

.hero {
    height: max-content;
}

.hero-swiper__nav {
    position: absolute;
    bottom: 20px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-swiper__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-swiper__btn--prev {
    background: #333333;
    color: #ffffff;
}

.hero-swiper__btn--prev:not(.swiper-button-disabled):hover {
    background: #ffffff;
}

.hero-swiper__btn--prev:not(.swiper-button-disabled):hover svg path {
    stroke: #333333;
}

.hero-swiper__btn--next:not(.swiper-button-disabled):hover {
    background: #333333;
}

.hero-swiper__btn--next:not(.swiper-button-disabled):hover svg path {
    stroke: #ffffff;
}

.hero-swiper__btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.hero-swiper__pagination {
    position: absolute;
    bottom: -15px !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding-right: 40px !important;
}

.hero-swiper__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D9D9D9;
    opacity: 1;
    cursor: pointer;
    margin: unset !important;
}

.hero-swiper__pagination .swiper-pagination-bullet-active {
    background: #333333;
}

footer {
    display: none;
}

.mobile.catalog__form__input__group {
    display: none;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 1024px) {
    body {
        gap: unset;
        overflow-x: hidden;
    }

    header {
        display: none;
    }

    .hero-swiper__pagination{
        bottom: -22px !important;
        justify-content: center;
    }

    footer {
        display: block;
        padding: 20px 0px 50px 0px;
    }

    .header__links {
        margin-left: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 7px;
    }

    .hero{
        padding: 40px 0;
    }

    .hero__image {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: unset;
        gap: 25px;
    }

    .catalog__form__input__group {
        display: none;
    }

    .mobile.catalog__form__input__group {
        display: flex;
    }

    .hero__header h1 {
        font-size: 30px;
        line-height: 30px;
    }

    .mobile__hero__tags {
        width: 100%;

        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: calc(100% - 32px); /* чтобы не вылезать за картинку */
    }

    .mobile__hero__tags span {
        background: #333333;
        color: #FFFFFFCC;
        padding: 7px 15px;
        border-radius: 20px;
        font-weight: 600;
        font-size: 12px;
    }

    .container {
        width: 100%;
    }

    .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;
    }

    .header__content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }

    .hero__tags, .hero__bg_image {
        display: none;
    }

    .hero__image {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero__image img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .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;
    }

    .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__form__input__group {
        margin-top: unset;
    }
}
