﻿.hero--front-page {
    margin-top: 0;
}

.hero--front-page .hero__inner {
    position: relative;
    min-height: 690px;
    border-radius: 0;
    padding: 80px 220px;
    background:
        linear-gradient(90deg, rgba(7, 5, 42, 0.94) 0%, rgba(7, 5, 42, 0.9) 50%, rgba(7, 5, 42, 0.78) 72%, rgba(7, 5, 42, 0.5) 100%),
        url("../../assets/res/67b5b3e401ec763c26b3c3c8/67c033fbadf4a6de0dfa29f4") center / cover no-repeat;
}

.hero--front-page .hero__content {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.hero--front-page .hero__title {
    color: #f3f4f8;
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero--front-page .hero__lead {
    margin-top: 34px;
    color: #ff6a3d;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    line-height: 1.3;
}

.hero--front-page .hero__text {
    margin-top: 30px;
    gap: 24px;
}

.hero--front-page .hero__paragraph {
    margin: 0;
    color: rgba(245, 245, 247, 0.95);
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    font-weight: 600;
    line-height: 1.48;
}

.hero--front-page .hero__actions {
    margin-top: 56px;
    gap: 24px;
}

.hero--front-page .button {
    min-width: 286px;
    min-height: 64px;
    padding: 0 30px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2582f 0%, #3e40b8 100%);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.hero--front-page .button:hover {
    background: linear-gradient(90deg, #ff6b3c 0%, #5555ce 100%);
}

.home-contact {
    position: relative;
    margin-top: 0;
    padding: 48px 0 56px;
    background:
        linear-gradient(90deg, rgba(7, 5, 42, 0.7) 0%, rgba(7, 5, 42, 0.8) 58%, rgba(7, 5, 42, 0.72) 100%),
        url("../../assets/images/contacts/bg.svg") center / cover no-repeat;
}

.home-contact::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #f2582f 0%, #f2582f 74%, #2dd4bf 100%);
}

.home-contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.home-contact__card {
    background: rgba(24, 24, 24, 0.88);
    border-radius: 36px;
    padding: 44px 48px;
}

.home-contact__title {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.home-contact__line {
    width: 210px;
    height: 6px;
    background: #f2582f;
    margin: 24px 0 30px;
}

.home-contact__item {
    display: flex;
    gap: 22px;
    margin-top: 24px;
}

.home-contact__icon svg {
    width: 50px;
    height: auto;
}

.home-contact__label {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 6px;
}

.home-contact__value {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.2;
}

.home-contact__form-wrap {
    padding-top: 18px;
}

.home-contact__form-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 700;
}

.home-contact__form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.home-contact__input {
    min-height: 78px;
    border: 0;
    border-radius: 999px;
    background: rgba(45, 47, 82, 0.72);
    color: #ffffff;
    padding: 0 34px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
}

.home-contact__input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.home-contact__button {
    grid-column: 1 / -1;
    min-height: 78px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2582f 0%, #5547cd 100%);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
}

.home-contact__cf7 {
    margin-top: 34px;
}

.home-contact__cf7 .wpcf7 form {
    margin: 0;
}

.home-contact__cf7 .wpcf7-form-control-wrap {
    display: block;
}

.home-contact__cf7 .wpcf7 input[type="text"],
.home-contact__cf7 .wpcf7 input[type="tel"],
.home-contact__cf7 .wpcf7 input[type="email"] {
    width: 100%;
    min-height: 78px;
    border: 0;
    border-radius: 999px;
    background: rgba(45, 47, 82, 0.72);
    color: #ffffff;
    padding: 0 34px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
}

.home-contact__cf7 .wpcf7 input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.home-contact__cf7 .wpcf7 input[type="submit"] {
    width: 100%;
    min-height: 78px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2582f 0%, #5547cd 100%);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    cursor: pointer;
}

.home-contact__cf7 .wpcf7 .wpcf7-spinner {
    margin: 12px 0 0;
}

.home-contact__cf7 .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 14px;
}

.home-contact__cf7 .wpcf7 form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.home-contact__cf7 .wpcf7 form p {
    margin: 0;
}

.home-contact__cf7 .wpcf7 form p:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 1400px) {
    .hero--front-page .hero__inner {
        padding: 90px 80px;
        min-height: 620px;
    }

    .home-contact__inner {
        gap: 34px;
    }

}

@media (max-width: 992px) {
    .hero--front-page .hero__inner {
        min-height: 0;
        padding: 56px 28px;
        background-position: 70% center;
    }

    .hero--front-page .hero__actions {
        gap: 14px;
    }

    .hero--front-page .button {
        min-width: 0;
        width: 100%;
        min-height: 64px;
        font-size: 1rem;
    }

    .home-contact {
        padding: 32px 0 42px;
    }

    .home-contact__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-contact__card,
    .home-contact__form-wrap {
        padding: 20px;
    }

    .home-contact__form {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 12px;
    }

    .home-contact__input,
    .home-contact__button {
        min-height: 56px;
        font-size: 1rem;
    }

    .home-contact__title {
        font-size: 1.8rem;
    }

    .home-contact__line {
        width: 140px;
        height: 4px;
        margin: 14px 0 12px;
    }

    .home-contact__value {
        font-size: 1rem;
    }

    .home-contact__icon {
        font-size: 1.8rem;
        min-width: 36px;
    }

    .home-contact__cf7 {
        margin-top: 20px;
    }

    .home-contact__cf7 .wpcf7 form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-contact__cf7 .wpcf7 input[type="text"],
    .home-contact__cf7 .wpcf7 input[type="tel"],
    .home-contact__cf7 .wpcf7 input[type="email"],
    .home-contact__cf7 .wpcf7 input[type="submit"] {
        min-height: 56px;
        font-size: 1rem;
    }
}

.body-popup-open {
    overflow: hidden;
}

.customer-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.customer-popup--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.customer-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 26, 0.78);
}

.customer-popup__dialog {
    position: relative;
    width: min(650px, calc(100% - 72px));
    margin: 0;
    max-height: calc(100vh - 44px);
    padding: 60px 26px 40px;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(7, 5, 42, 0.68) 0%, rgba(7, 5, 42, 0.82) 58%, rgba(7, 5, 42, 0.72) 100%),
        url("../../assets/images/contacts/bg.svg") center / cover no-repeat;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
    overflow: auto;
}

.customer-popup__dialog::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #f2582f 0%, #f2582f 74%, #2dd4bf 100%);
}

.customer-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.customer-popup__title {
    margin: 0;
    color: #f3f4f8;
    text-align: center;
    font-size: clamp(24px, 4.6vw, 36px);
    line-height: 1.12;
    font-weight: 700;
}

.customer-popup__form {
    margin: 46px auto 0;
    max-width: 1240px;
    width: 100%;
}

.customer-popup .wpcf7 form {
    margin: 0;
    width: 100%;
}

.customer-popup .wpcf7 form > p {
    margin: 0 !important;
    display: contents;
}

.customer-popup .wpcf7 form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.customer-popup .wpcf7 form .wpcf7-submit {
    width: 100%;
}

.customer-popup .wpcf7 input[type="text"],
.customer-popup .wpcf7 input[type="tel"],
.customer-popup .wpcf7 input[type="email"] {
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: 999px;
    background: rgba(45, 47, 82, 0.72);
    color: #ffffff;
    padding: 0 34px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
}

.customer-popup .wpcf7 input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.customer-popup .wpcf7 input[type="submit"] {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2582f 0%, #5547cd 100%);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    padding: 0 20px;
}

.customer-popup .wpcf7 form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.customer-popup .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .customer-popup .wpcf7 form {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 1100px) {
    .customer-popup .wpcf7 form {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .customer-popup {
        padding: 12px;
    }

    .customer-popup__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 74px 14px 18px;
    }

    .customer-popup__close {
        top: 10px;
        right: 10px;
        font-size: 34px;
        width: 30px;
        height: 30px;
    }

    .customer-popup__form {
        margin-top: 22px;
    }

    .customer-popup .wpcf7 form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-popup .wpcf7 input[type="text"],
    .customer-popup .wpcf7 input[type="tel"],
    .customer-popup .wpcf7 input[type="email"],
    .customer-popup .wpcf7 input[type="submit"] {
        min-height: 56px;
        font-size: 1rem;
    }
}
