
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.container-footer {
    max-width: 1920px;
    padding: 0 200px;
    margin: 0 auto;
}

::-webkit-scrollbar-thumb {
    background: rgba(113, 133, 254, 0.7);
    border-radius: 100px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(113, 133, 254, 1);
}


::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.logo {
    object-fit: cover;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: #2B2B2BBF;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header {
    padding: 38px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.header__nav ul {
    display: flex;
    gap: 20px;
}

.header__nav ul li a {
    color: #191919;
    font-size: 20px;
}

.header-rigth {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__contacts {
    display: flex;
    gap: 20px;
    text-align: right;
}

.header__contacts a {
    display: block;
    color: #191919;
    font-size: 20px;
}

.header-social {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF705A;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: #6886FF;
    transform: translateY(-3px);
}

.social-link:hover svg {
    transform: scale(1.1);
}
.header-rigth--mobile {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #545454;
    border-radius: 2px;
    transition: 0.3s;
}


.burger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.hero {
    background: linear-gradient(132.58deg, #7185FE 43.81%, #FF6F5B 100.76%);
    border-radius: 40px 40px 0 0;
    padding: 80px 0;
}

.hero__inner {
    display: flex;
    justify-content: space-between;
}

.hero__content {
    max-width: 700px;
}

.hero__content h1 {
    font-family: var(--HeliosExtC);
    font-size: 68px;
    color: #FFFFFF;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 40px;
}

.hero__form-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 749px;
    width: 100%;
    color: #fff;
}

.form-hero__col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-hero__group {
    display: flex;
    flex-direction: column;
}

.form-hero__label {
    font-size: 20px;
    line-height: 100%;
    margin-bottom: 12px;
}

.hero__form-main input {
    padding: 14px 20px;
    color: #fff;
    border-radius: 12px;
    border: none;
    background: #FFFFFF66;
    line-height: 100%;
    font-size: 20px;
}

.hero__form-main input::placeholder {
    color: #ffffffcc;
}

.form-hero__radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.form-hero__radio-group-1 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.form-hero__radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.form-hero__radio input {
    display: none;
}

.form-error {
    font-size: 13px;
    color: #FF705A;
    margin-top: 6px;
    display: none;
}

.input-error {
    border: 2px solid #FF705A;
}

.form-hero__radio span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    position: relative;
    flex-shrink: 0;
}

.form-hero__radio span::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-hero__radio input:checked + span {
    background: #ff6f5b;
}

.form-hero__radio input:checked + span::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-btn {
    padding: 17px;
    border-radius: 17px;
    border: none;
    background: #fff;
    color: #7185FE;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn_mobile {
    display: none;
}

.form-checkbox {
    margin-top: 6.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}


.form-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.header-phone_mobile {
    display: none;
}

.form-hero__radio-group--mobile {
  display: none;
}

.form-checkbox__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-checkbox__icon path {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-checkbox input:checked + .form-checkbox__icon rect {
    fill: #FF705A;
    fill-opacity: 1;
}

.form-checkbox input:checked + .form-checkbox__icon path {
    opacity: 1;
}

.form-checkbox:hover .form-checkbox__icon rect {
    fill-opacity: 0.6;
}

.form-checkbox__text {
    font-size: 12px;
    line-height: 110%;
}

.form-checkbox__link-1 {
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
} 

.form-checkbox__link-2 {
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
} 



.form-checkbox__link-1:hover,
.form-checkbox__link-2:hover {
    color: #FF705A;
}

.hero__image img {
    max-width: 798px;
    width: 100%;
}



.policy-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.policy-modal.active {
    display: block;
}

.policy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 43, 0.75);
}

.policy-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    height: 90%;
    margin: 0 auto;
    margin-top: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 70px 24px 32px 32px;
    overflow-y: auto;
}


.policy-modal__content::-webkit-scrollbar-button {
    display: none;
    width: 0px;
    background: transparent;
}






.policy-modal__content h2 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 24px;
}

.policy-modal__text {
    font-size: 14px;
    line-height: 1.6;
}

.policy-modal__text h2 {
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 20px;
}

.policy-modal__text h3 {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 20px;
}

.policy-modal__text ul {
    padding-left: 20px;
    margin: 16px 0;
}

.policy-modal__close {
    position: absolute;
    top: 40px;
    right: 30px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.policy-modal__content {
    max-height: 100vh;
    overflow-y: auto;
}


.policy-modal-2 {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.policy-modal-2.active {
    display: block;
}

/* Затемнение */
.policy-modal__overlay-2 {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Контент */
.policy-modal__content-2 {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    margin: 40px auto;
    padding: 40px;
    padding-top: 70px;
    z-index: 2;
}

/* Крестик */
.policy-modal__close-2 {
    position: absolute;
    top: 40px;
    right: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Блокировка прокрутки */
body.no-scroll {
    overflow: hidden;
}




.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}


.custom-modal {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease forwards;
}


.custom-modal.error {
    border-left: 5px solid #ff4d4f;
}


.modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}


.custom-modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}


.custom-modal p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}


.custom-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.custom-close-btn:hover {
    transform: rotate(90deg);
}


#closeErrorModal {
    padding: 10px 25px;
    background-color: #ff4d4f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

#closeErrorModal:hover {
    background-color: #e04444;
}


@media (max-width: 1550px) {
    .container {
        padding: 0 130px;
    }
    .container-footer {
        padding: 0  130px;
    }

    .header {
        padding: 30px 0;
    }

    .header-left,
    .header-rigth {
        gap: 28px;
    }

    .header__nav ul {
        gap: 16px;
    }

    .header__nav ul li a {
        font-size: 18px;
    }

    .header__contacts a {
        font-size: 18px;
    }

    .social-link,
    .social-link svg {
        width: 44px;
        height: 44px;
    }


    .hero {
        padding: 64px 0;
    }

    .hero__content {
        max-width: 600px;
    }

    .hero__content h1 {
        font-size: 44px;
        margin-bottom: 32px;
    }

    .hero__form-main {
        gap: 32px;
        max-width: 680px;
    }

    .form-hero__col {
        gap: 24px;
    }

    .form-hero__label {
        font-size: 18px;
    }

    .hero__form-main input {
        font-size: 18px;
        padding: 12px 18px;
    }

    .hero-btn {
        font-size: 18px;
        padding: 15px;
    }
}


@media (max-width: 1324px) {
    .container {
        padding: 0 100px;
    }
    .container-footer {
        padding: 0 50px;
    }
    
    .hero__content h1 {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .header-left {
        gap: 20px;
    }
    .header__nav ul {
        gap: 12px;
    }
    .header__nav ul li a {
        font-size: 18px;
    }
    .header-rigth {
        gap: 20px;
    }
    .header__contacts a {
        font-size: 16px;
    }
    .hero__form-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .form-hero__radio-group {
        gap: 12px;
    }
    .form-hero__radio-group-1 {
        display: none;
    }
    .form-hero__radio-group--mobile {
        display: flex;
    }
    .hero-btn {
        display: none;
    }
    .hero-btn_mobile {
        display: block;
    }
    .form-hero__col {
        gap: 24px;
    }
    .hero__image img {
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .header {
        padding: 20px 0px 30px 0px;
    }
    .burger {
        display: flex;
    }
    .header-phone_mobile {
        display: block;
        text-align: right;
    }
    .header__contacts {
        margin-top: 20px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #fff;
        padding: 111px 20px 40px;
        transition: 0.3s;
        z-index: 1000;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav ul {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 20px;
        margin-bottom: 50px;
    }

    .header-rigth {
        display: none;
    }

    .header-rigth--mobile {
        display: flex;
        align-items: end;
        flex-direction: column;
        gap: 24px;
    }

    .header__contacts {
        flex-direction: column;
        align-items: end;
        gap: 12px;
    }

    .header__contacts a {
        font-size: 16px;
    }

    .header-social {
        gap: 12px;
    }

    .social-link,
    .social-link svg {
        width: 40px;
        height: 40px;
    }

    body.menu-open {
        overflow: hidden;
    }
    .container {
        padding: 0 16px;
    }
    .container-advantage {
        padding: 0 16px;
    }
    .container-footer {
        padding: 0 16px;
    }
    .header__inner {
        gap: 10px;
    }
    .header-left {
        gap: 16px;
        flex-wrap: wrap;
    }
    .header__nav ul li a {
        font-size: 16px;
    }
    .header-rigth {
        gap: 20px;
        flex-wrap: wrap;
    }
    .hero__content h1 {
        font-size: 28px;
        text-align: center;
    }
    .hero__form-main {
        gap: 16px;
    }
    .form-hero__col {
        gap: 16px;
    }
    .form-hero__label {
        font-size: 16px;
    }
    .hero__form-main input {
        font-size: 16px;
        padding: 12px 16px;
    }
    .hero-btn {
        font-size: 18px;
        padding: 14px;
    }
    .form-hero__policy {
        font-size: 10px;
        gap: 4px;
    }
}

@media (max-width: 797px) {
    .form-hero__radio-group--mobile-2 {
        margin-top: -7px;
    }
    .hero__inner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
    }
    .header-phone_mobile {
        display: block;
    }
    .hero__image {
        display: none;
    }
    
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}



