:root {

    --color-white: rgba(255, 255, 255, 0.897);

    --font-family: 'Mulish', sans-serif;
}

html {
    height: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

p {
    margin: 0;
}

body {
    font-family: var(--font-family);
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.all_container {
    background-image: url(./img/back.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0px;
    padding: 0px;
    min-height: 100vh;
    width: 100%;
    position: relative;
    /* Предотвращение белых краев при скролле */
    background-attachment: fixed;
}

.container {
    max-width: 1044px;
    margin: 0 auto;
}

.header_container {
    padding-top: 70px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header_text {
    color: var(--color-white);

    font-family: var(--font-family);
    font-size: 31.04px;
    font-weight: 600;
    line-height: 27.88px;
    letter-spacing: 0%;
    text-align: center;
}

.header_link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header_text span {
    font-size: 16px;
}

/* main */

.main_container {
    margin-top: 57px;
}

.logo_wrapper {
    width: 1000px;
    margin: 0 auto;
}

.logo_wrapper img {
    filter: brightness(0) invert(1) opacity(0.8);
    transition: opacity 0.3s ease;
    width: 100%;
    margin: 0 auto;
}

.logo_wrapper img:hover {
    opacity: 1;
}

.main_text {
    color: var(--color-white);
    margin-top: 20px;
    font-family: var(--font-family);
    font-size: 53.02px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
}

.main_text_2 {
    color: var(--color-white);
    font-style: italic;
    font-family: var(--font-family);
    font-size: 31.04px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: left;
    text-align: center;
}

.main_img_wrapper {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.main_img {
    width: 300px;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: opacity 0.3s ease;
    margin: 0 auto;

}

/* footer */
.footer_container {
    margin-top: 20px;
}

.footer {
    text-align: center;
}

.footer_link {
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 38.78px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    padding: 2px 44px 2px 44px;
    border: 4px solid var(--color-white);
    border-radius: 58px;
    background: rgba(255, 255, 255, 0.2);
}

.footer_text {
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 31.04px;
    font-weight: 400;
    line-height: 27.88px;
    letter-spacing: 0%;
    text-align: center;
    margin-top: 20px;
}

.footer_text span {
    font-style: italic;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.199);
    /* Добавлен блюр для затемнения фона модального окна */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.modal-content {
    /* Rectangle 1 */
    width: 806.2px;
    height: 522.99px;
    background: rgba(245, 218, 221, 1);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0px;
    padding: 20px;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(173, 124, 138, 1);

    /* border: 1px solid rgba(173, 124, 138, 1);
    border-radius: 50%;
    padding: 5px;
    width: 5px;
    height: 5px;
    display: flex;
    align-items: center; */
}

.modal-title {
    color: rgba(173, 124, 138, 1);

    font-family: var(--font-family);
    font-size: 53.37px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
}

.modal-text {
    color: rgba(3, 3, 3, 1);
    width: 500px;
    font-family: var(--font-family);
    font-size: 20.62px;
    font-weight: 400;
    line-height: 23.17px;
    letter-spacing: 0%;
    text-align: center;
    margin: 0 auto;
}

.modal-actions {
    text-align: center;
}

.modal-actions form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 58px;
}

.modal-actions form input {
    width: 486px;
    height: 80px;
    box-sizing: border-box;
    border: 1.37px solid rgba(230, 194, 204, 1);
    border-radius: 6.86px;
    color: rgba(124, 124, 124, 1);
    font-family: var(--font-family);
    font-size: 20.62px;
    font-weight: 400;
    line-height: 23.17px;
    letter-spacing: 0%;
    text-align: left;
    padding-left: 20px;
    box-shadow: inset 0px 2.7421674728393555px 5.484334945678711px 0px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.modal-actions form button {
    border-radius: 6.86px;
    color: rgba(255, 255, 255, 1);
    border: none;
    font-family: var(--font-family);
    font-size: 25.23px;
    font-weight: 400;
    line-height: 28.35px;
    letter-spacing: 0%;
    text-align: center;
    background: rgba(173, 124, 138, 1);
    height: 80px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions form button:hover {
    background: #DAA3B3;
}

.modal-actions p {
    color: rgba(3, 3, 3, 1);
    margin-top: 37px;
    font-family: var(--font-family);
    font-size: 16.36px;
    font-weight: 400;
    line-height: 18.38px;
    letter-spacing: 0%;
    text-align: center;
}

.header_link svg {
    width: 34px;
    height: 34px;
}

.modal-mail-img {
    padding-top: 70px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-inst {
    color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 21;
    padding: 2px 26px 2px 26px;
    font-family: var(--font-family);
    font-size: 38.78px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    border: 4px solid rgba(255, 255, 255, 1);
    border-radius: 58px;
    width: 342.2px;
    height: 53px;
    margin: 0 auto;
    margin-top: 30px;

}

.modal-inst svg {
    width: 34px;
    height: 34px;
    margin-right: 10px;
}





/* mobile */

@media (max-width: 768px) {
    html {
        overflow-y: hidden;
        background: #000;
    }
    
    body {
        overflow-y: hidden;
        background: #000;
        -webkit-overflow-scrolling: auto;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .all_container {
        background-image: url(./img/back-min.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin: 0px;
        padding: 0px;
        min-height: 100vh;
        width: 100%;
        position: relative;
        /* Предотвращение белых краев при скролле на мобильных */
        background-attachment: fixed;
        /* Дополнительная фиксация фона */
        background-color: #000;
        /* Блокировка скролла */
        overflow: hidden;
    }

    .container {
        max-width: 100%;
        margin: 0 auto;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        margin: 0 auto;
    }

    .header_text {
        color: var(--color-white);

        font-family: var(--font-family);
        font-size: 12.71px;
        font-weight: 600;
        line-height: 11.42px;
        letter-spacing: 0%;
        text-align: center;
    }

    .header_link {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .header_link svg {
        width: 14px;
        height: 14px;
    }

    .header_text span {
        font-size: 16px;
    }

    /* main */

    .main_container {
        margin-top: 57px;
    }

    .logo_wrapper {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .logo_wrapper img {
        filter: brightness(0) invert(1) opacity(0.8);
        transition: opacity 0.3s ease;
        width: 90%;
        margin: 0 auto;
    }

    .logo_wrapper img:hover {
        opacity: 1;
    }

    .main_text {
        color: var(--color-white);
        margin-top: 20px;
        font-family: var(--font-family);
        font-size: 24.62px;
        font-weight: 400;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
        text-transform: uppercase;
    }

    .main_text_2 {
        color: var(--color-white);
        font-style: italic;
        font-family: var(--font-family);
        font-size: 14.41px;
        font-weight: 400;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
    }

    .main_img_wrapper {
        width: 100%;
        text-align: center;
        margin-top: 100px;
    }

    .main_img {
        width: 240px;
        filter: brightness(0) invert(1) opacity(0.6);
        transition: opacity 0.3s ease;
        margin: 0 auto;

    }

    /* footer */
    .footer_container {
        margin-top: 100px;
    }

    .footer {
        text-align: center;
    }

    .footer_link {
        color: var(--color-white);
        font-family: var(--font-family);
        font-size: 24.78px;
        font-weight: 400;
        line-height: 100%;
        letter-spacing: 0%;
        text-transform: uppercase;
        padding: 2px 27px 2px 27px;
        border: 2px solid var(--color-white);
        border-radius: 36px;
        background: rgba(255, 255, 255, 0.2);
    }

    .footer_text {
        color: var(--color-white);
        font-family: var(--font-family);
        font-size: 19.04px;
        font-weight: 400;
        line-height: 17.88px;
        letter-spacing: 0%;
        text-align: center;
        margin-top: 20px;
    }

    .footer_text span {
        font-style: italic;
    }


    /* Модальное окно */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.199);
        /* Добавлен блюр для затемнения фона модального окна */
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .modal-content {
        /* Rectangle 1 */
        width: 363.2px;
        height: 235px;
        background: rgba(245, 218, 221, 1);

        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 0px;
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-close {
        position: absolute;
        right: 15px;
        top: 10px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        color: rgba(173, 124, 138, 1);

        /* border: 1px solid rgba(173, 124, 138, 1);
    border-radius: 50%;
    padding: 5px;
    width: 5px;
    height: 5px;
    display: flex;
    align-items: center; */
    }

    .modal-title {
        color: rgba(173, 124, 138, 1);

        font-family: var(--font-family);
        font-size: 24.37px;
        font-weight: 400;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
        text-transform: uppercase;
    }

    .modal-text {
        color: rgba(3, 3, 3, 1);
        width: 240px;
        font-family: var(--font-family);
        font-size: 9.62px;
        font-weight: 400;
        line-height: 10.45px;
        letter-spacing: 0%;
        text-align: center;
        margin: 0 auto;
    }

    .modal-actions {
        text-align: center;
    }

    .modal-actions form {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 26px;
    }

    .modal-actions form input {
        width: 219px;
        height: 36px;
        box-sizing: border-box;
        border: 1.37px solid rgba(230, 194, 204, 1);
        border-radius: 3.86px;
        color: rgba(124, 124, 124, 1);
        font-family: var(--font-family);
        font-size: 9.62px;
        font-weight: 400;
        line-height: 10.45px;
        letter-spacing: 0%;
        text-align: left;
        padding-left: 20px;
        box-shadow: inset 0px 2.7421674728393555px 5.484334945678711px 0px rgba(0, 0, 0, 0.25);
        background: rgba(255, 255, 255, 1);
        outline: none;
    }

    .modal-actions form button {
        border-radius: 3.86px;
        color: rgba(255, 255, 255, 1);
        border: none;
        font-family: var(--font-family);
        font-size: 11.23px;
        font-weight: 400;
        line-height: 12.35px;
        letter-spacing: 0%;
        text-align: center;
        background: rgba(173, 124, 138, 1);
        height: 36px;
        padding: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .modal-actions form button:hover {
        background: #DAA3B3;
    }

    .modal-actions p {
        color: rgba(3, 3, 3, 1);
        margin-top: 16px;
        font-family: var(--font-family);
        font-size: 7.36px;
        font-weight: 400;
        line-height: 8.38px;
        letter-spacing: 0%;
        text-align: center;
    }

    
.modal-mail-img {
    padding-top: 8px;
    margin-bottom: 20px;
    text-align: center;

}

.modal-mail-img img {
    width: 79.69px;
    height: 54.81px;
}

.modal-inst {
    color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10;
    padding: 1px 13px 1px 13px;
    font-family: var(--font-family);
    font-size: 19.78px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 58px;
    width: 171.1px;
    height: 26.5px;
    margin: 0 auto;
    margin-top: 10px;

}

.modal-inst svg {
    width: 17px;
    height: 17px;
    margin-right: 5px;
}

}

/* Стили для модального окна благодарности */
#thanksModal .modal-content {
    width: 806.2px;
    height: 522.99px;
    background: rgba(245, 218, 221, 1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0px;
    padding: 20px;
    box-sizing: border-box;
}

#thanksModal .modal-title {
    color: rgba(173, 124, 138, 1);
    font-family: var(--font-family);
    font-size: 53.37px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    margin-top: 20px;
}

#thanksModal .modal-text {
    color: rgba(3, 3, 3, 1);
    width: 500px;
    font-family: var(--font-family);
    font-size: 20.62px;
    font-weight: 400;
    line-height: 23.17px;
    letter-spacing: 0%;
    text-align: center;
    margin: 0 auto;
    margin-top: 10px;
}

#thanksModal .modal-mail-img {
    padding-top: 70px;
    margin-bottom: 20px;
    text-align: center;
}

#thanksModal .modal-mail-img img {
    width: 120px;
    height: 80px;
}

#thanksModal .modal-inst {
    color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 21px;
    padding: 2px 26px 2px 26px;
    font-family: var(--font-family);
    font-size: 38.78px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    border: 4px solid rgba(255, 255, 255, 1);
    border-radius: 58px;
    width: 342.2px;
    height: 53px;
    margin: 0 auto;
    margin-top: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}



#thanksModal .modal-inst svg {
    width: 34px;
    height: 34px;
    margin-right: 10px;
}

/* Мобильные стили для модального окна благодарности */
@media (max-width: 768px) {
    #thanksModal .modal-content {
        width: 363.2px;
        height: 235px;
        padding: 20px;
    }

    #thanksModal .modal-title {
        font-size: 24.37px;
        margin-top: 10px;
    }

    #thanksModal .modal-text {
        width: 240px;
        font-size: 9.62px;
        line-height: 10.45px;
        margin-top: 5px;
    }

    #thanksModal .modal-mail-img {
        padding-top: 8px;
        margin-bottom: 10px;
    }

    #thanksModal .modal-mail-img img {
        width: 79.69px;
        height: 54.81px;
    }

    #thanksModal .modal-inst {
        font-size: 19.78px;
        padding: 1px 13px 1px 13px;
        gap: 10px;
        border: 2px solid rgba(255, 255, 255, 1);
        width: 171.1px;
        height: 26.5px;
        margin-top: 10px;
    }

    #thanksModal .modal-inst svg {
        width: 17px;
        height: 17px;
        margin-right: 5px;
    }
}