/* ===== PARTNERS HERO (FIRST BLOCK) ===== */

.install-hero {
    padding: 80px 0;
    background: linear-gradient(90deg,
            #546DFC 0%,
            #768AFD 75%);
    overflow: hidden;
}

.install-hero__image {
    width: 100%;
    scale: 1.5;
}

@media (max-width: 768px) {
    .install-hero__image {
        scale: 1.1;
    }
}

.install-hero__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 40px;
}

.install-hero__content {
    color: #fff;
}

.install-hero__content p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* КНОПКА */
.install-hero .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffffff;
    color: #546DFC;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

@media (max-width: 768px) {
    .install-hero .btn-primary {
        padding: 20px 50px;
    }
}


.install-hero .btn-primary:hover {
    background: #F2F3FF;
}

/* КАРТИНКА СПРАВА */
.install-hero__image {
    position: relative;
}

.install-hero__image img {
    width: 100%;
    max-width: 720px;
    display: block;
    margin-left: auto;
}

@media (max-width: 768px) {
    .install-hero__image img {
        position: relative;
        right: -50px;
    }
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .install-hero {
        padding: 40px 0 0;
    }

    .install-hero__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .install-hero__content h1 {
        font-size: 24px;
    }

    .install-hero__content p {
        font-size: 15px;
    }
}

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: #5b6cff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.install-advantages {
    padding: 80px 0 95px;
}

.install-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .install-advantages {
        padding: 50px 0;
    }

    .install-advantages__grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

.adv-card--wide {
    grid-column: span 2;
}

.adv-card {
    background: #f6f6f6;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 108px;
}

@media (max-width: 768px) {
    .adv-card {
        height: 300px;
        padding: 32px 18px 14px;
    }
}

.adv-card span {
    font-size: 20px;
    font-family: 'Inter';
    font-weight: 600;
    color: #A3A3A3;
}

.adv-card h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    color: #5b6cff;
}

.adv-card p {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.adv-card--active {
    background: #5b6cff;
    color: #fff;
    gap: unset !important;
    justify-content: space-between;
}

.adv-card--active h3 {
    color: #fff;
}

.adv-card--active p,
.adv-card--active span {
    color: #fff;
}

.adv-card--image {
    padding: 0;
    overflow: hidden;
}

.adv-card--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.install-steps__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .install-steps__grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== SUPPLIER STEPS ===== */

.supplier-steps {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .supplier-steps {
        padding: 20px 0;
    }
}

.supplier-steps__title {
    font-size: 36px;
    margin-bottom: 40px;
    padding-left: 50px;
}

.supplier-steps__wrapper {
    position: relative;
    background: #5b6cff;
    border-radius: 16px;
    padding: 50px 40px 40px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    color: #fff;
}

.mobile-layout {
    display: none;
}

/* линия */
.supplier-steps__line {
    position: absolute;
    top: 75px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #fff;
}

/* шаг */
.supplier-steps__item {
    position: relative;
    z-index: 2;
}

.supplier-steps__circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #5b6cff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 16px;
}

.supplier-steps__item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.supplier-steps__item p {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .supplier-steps__item p {
        margin-top: -25px;
    }

    .supplier-steps__item h4 {
        margin-bottom: 0;
    }

    .supplier-steps__wrapper {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .supplier-steps__line {
        display: none;
    }

    .supplier-steps__wrapper::before {
        content: "";
        position: absolute;
        top: 40px;
        bottom: 40px;
        left: 45px;
        width: 2px;
        background: #fff;
    }

    .supplier-steps__item {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 0 16px;
        align-items: flex-start;
    }

    .supplier-steps__circle {
        margin-bottom: 0;
    }

    .mobile-layout {
        display: flex;
    }
}

@media (max-width: 768px) {
    .supplier-steps__title {
        font-size: 24px;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 35px;
    }
}

/* ===== SUPPLIER FORM ===== */

.supplier-form {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .supplier-form {
        padding: 20px 0;
    }
}

.supplier-form__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.supplier-form__title {
    font-size: 36px;
    margin-bottom: 30px;
}

.supplier-form__subtitle {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 700;
}

.supplier-form__content input,
.supplier-form__content textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    height: 58px;
}

.supplier-form__content textarea {
    height: 130px !important;
}

.supplier-form__content input:focus,
.supplier-form__content textarea:focus {
    border-color: #5b6cff;
    outline: none;
}

.supplier-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.supplier-form__btn {
    margin-top: 20px;
    padding: 15px 99px;
    background: #5b6cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.supplier-form__btn:hover {
    opacity: 0.9;
}

.supplier-form__policy {
    margin-top: 12px;
    font-size: 14px;
    color: #777;
}

.supplier-form__image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .supplier-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .supplier-form__subtitle {
        font-size: 18px;
    }

    .supplier-form__image {
        padding: 40px 0 32px !important;
    }

    .supplier-form__row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 16px;
    }

    .supplier-form__title {
        font-size: 24px !important;
        color: #546DFC;
        margin-bottom: 0 !important;
    }
}

.supplier-form__image {
    padding: 65px 0 135px;
    height: 100%;
}

@media(max-width: 768px) {
    .supplier-form__image {
        padding-top: 40px;
    }
}

.supplier-form__title {
    font-size: 36px;
    margin-bottom: 40px;
}

/* картинка теперь равняется по форме */
.supplier-form__image {
    display: flex;
}

.supplier-form__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .supplier-form__grid {
        grid-template-columns: 1fr;
    }
}

.install-hero__title {
    font-family: 'Tilda', sans-serif;
    font-size: 48px;
    line-height: 0.9;
    font-weight: 700;
    color: #ffffff;
    max-width: 637px;
    margin-bottom: 24px;
}

.install-hero__title span {
    font-weight: 400;
}

@media (max-width: 768px) {
    .install-hero__title {
        font-size: 24px;
        line-height: 1.1;
    }
}

.input-error {
    border: 1px solid #ff4d4f !important;
    box-shadow: 0 0 0 1px #ff4d4f;
}

.error-message {
    color: #ff4d4f;
    font-size: 13px;
    margin-top: 5px;
}

.iti__selected-flag {
    height: 83% !important;
}

@media (max-width: 768px) {
    .iti__selected-flag {
        height: 100% !important;
    }
}