@font-face {
    font-family: "NotoSans";
    src: url("../fonts/Noto_Sans/NotoSans-Regular.ttf");
}

@font-face {
    font-family: "NotoSans-Semibold";
    src: url("../fonts/Noto_Sans/NotoSans-Semibold.ttf");
}

@font-face {
    font-family: "SegoeUI";
    src: url("../fonts/SegoeUI/SegoeUI.ttf");
}

@font-face {
    font-family: "SegoeUI-Semibold";
    src: url("../fonts/SegoeUI/SegoeUI-Semibold.ttf");
}

@font-face {
    font-family: "SegoeUI-Bold";
    src: url("../fonts/SegoeUI/SegoeUI-Bold.ttf");
}

@font-face {
    font-family: "Ubuntu";
    src: url("../fonts/Ubuntu/Ubuntu-Medium.ttf");
}

body {
    margin: 0;
    padding: 0;
    font-family: "NotoSans", serif;
}

.mainWrapper {
    width: 100vw;
}

header {
    display: flex;
    padding: 46px 10%;
    justify-content: space-between;
    align-items: center;
    column-gap: 50px;
    flex-wrap: wrap;
    background: linear-gradient(
        98.2deg,
        rgba(254, 172, 94, 0.51) -9.94%,
        rgba(199, 121, 208, 0.34) 39.86%,
        rgba(161, 143, 206, 0.278931) 55.61%,
        rgba(75, 192, 200, 0.14) 91.46%
    );
}

.h1Container {
    font-family: "SegoeUI-Bold", serif;
    font-size: 60px;
    line-height: 80px;
    color: #333333;
    margin: 0;
    font-weight: 700;
}

input,
textarea {
    font-family: "NotoSans", serif;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #8f9295;
}

.title {
    padding-top: 5px;
    margin-right: 99px;
}

button {
    cursor: pointer;
}

.linksBlock {
    display: flex;
    align-items: center;
}

.headerLink {
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    margin: 27.5px;
    color: #333333;
    text-decoration: none;
}

.headerBlock {
    background: linear-gradient(
        98.2deg,
        rgba(254, 172, 94, 0.51) -9.94%,
        rgba(199, 121, 208, 0.34) 39.86%,
        rgba(161, 143, 206, 0.278931) 55.61%,
        rgba(75, 192, 200, 0.14) 91.46%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 857px;
}

.firstBlock {
    display: flex;
    padding: 14px;
    justify-content: center;
}

.laptopImg {
    width: 665px;
}

.mainPageBlock {
    max-width: 626px;
    height: 316px;
    margin-right: 73px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mainPageBlock > p {
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #4d4d4d;
}

.inputWrapper {
    position: relative;
}

.inputWrapper > input {
    border: none;
    border-radius: 27px;
    width: 300px;
    position: relative;
}

.inputWrapper > .btn {
    position: absolute;
    left: 276px;
    z-index: 100;
}

.btn {
    font-family: "NotoSans", serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #ffffff;
    background: #291ad9;
    border-radius: 27px;
    padding: 12px 40px;
    border: none;
}

.middleBlock {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(123, 123, 123, 0.25);
    border-radius: 26px;
    padding: 48px 345px;
    margin: 144px 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.middleBlock > p {
    font-family: "SegoeUI", serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 38px;
    text-align: center;
    color: #000000;
    margin-bottom: 40px;
}

.secondBlock {
    background: #f8f8f8;
    height: 499px;
}

.stepCards {
    display: flex;
    padding-top: 251px;
    align-items: center;
    justify-content: center;
}

.stepCard {
    width: 368px;
    height: 320px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(123, 123, 123, 0.25);
    border-radius: 26px;
    padding: 68px 46px 70px 46px;
    margin: 10px;
    position: relative;
}

.stepCard > h2 {
    font-weight: 700;
    font-size: 48px;
    line-height: 65px;
    margin: 0;
    color: #444444;
}

.breakLine {
    width: 96px;
    height: 6px;
    background: #22d0a6;
    border-radius: 2px;
}

.stepCard > h3 {
    font-weight: 700;
    font-size: 32px;
    line-height: 44px;
    font-family: "NotoSans-Semibold", serif;
    color: #333333;
    margin-top: 28px;
    margin-bottom: 18px;
}

.stepCard > p {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #4d4d4d;
}

.stepCard > button {
    position: absolute;
    bottom: 70px;
}

.thirdBlock {
    margin-top: 330px;
    margin-bottom: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articleContainer {
    max-width: 655px;
    margin-right: 118px;
}

.article {
    max-width: 655px;
    margin-right: 118px;
}

.articleContainer > h3 {
    font-family: "SegoeUI-Bold", serif;
    font-size: 40px;
    line-height: 159.61%;
    color: #383838;
    margin-top: 14px;
    margin-bottom: 28px;
}

.articleContainer > p {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #383838;
    margin-top: 9px;
}

.fourthBlock {
    background: linear-gradient(
        98.2deg,
        rgba(254, 172, 94, 0.51) -9.94%,
        rgba(199, 121, 208, 0.34) 39.86%,
        rgba(161, 143, 206, 0.278931) 55.61%,
        rgba(75, 192, 200, 0.14) 91.46%
    );
    height: 686px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fourthBlock > h2 {
    font-family: "SegoeUI-Bold", serif;
    font-weight: 700;
    font-size: 60px;
    line-height: 159.61%;
    display: flex;
    align-items: center;
    color: #444444;
    margin: 0;
}

.fourthBlock > p {
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #4d4d4d;
    max-width: 556px;
    margin-top: 24px;
    margin-bottom: 52px;
}

.formContainer {
    display: flex;
    margin-bottom: 64px;
}

.formInputs {
    display: flex;
    flex-direction: column;
    width: 340px;
}

.formInputs > input {
    border: 1px solid #d2d6de;
    border-radius: 4px;
    margin: 8px;
    font-size: 14px;
}

form > textarea {
    border: 1px solid #d2d6de;
    border-radius: 4px;
    margin: 8px 12px;
    width: 340px;
    font-size: 14px;
    resize: none;
}

footer {
    display: flex;
    flex-direction: column;
    padding: 87px 276px 45px 250px;
    /* height: 155px; */
    justify-content: space-between;
}

.footerLinks {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.footerLinks > .linksBlock {
    position: absolute;
    left: 322px;
}

.footerLinks > .linksBlock > a {
    margin-top: 8px;
}

.contacts > h4 {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: 20px;
}

.contactLink {
    display: flex;
    align-items: center;
    margin-top: 11px;
}

.contactLink > a {
    text-decoration: none;
    font-size: 16px;
    color: #444444;
    margin-left: 20px;
}

.copyright {
    color: #4d4d4d;
    font-size: 14px;
}

@media (max-width: 1560px) {
    footer {
        padding-right: 170px;
    }
}

@media (max-width: 1440px) {
    .headerBlock {
        height: 1100px;
    }

    header,
    footer {
        padding: 46px 100px;
    }

    .firstBlock,
    .thirdBlock {
        flex-direction: column;
        align-items: center;
    }

    .middleBlock {
        margin: 50px 100px;
        padding: 50px 100px;
    }

    .secondBlock {
        height: 1450px;
    }

    .stepCards {
        flex-direction: column;
    }

    .footerLinks > .linksBlock {
        position: unset;
    }

    img {
        max-width: 890px;
    }
    header,
    footer {
        padding: 46px 20px;
    }
    .headerLink {
        margin: 18px;
    }
}

@media (max-width: 1000px) {
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    form > textarea {
        width: 325px;
    }
    .title {
        margin-right: 0;
    }
    .mainPageBlock {
        margin-bottom: 40px;
    }
    .stepCards {
        padding-top: 240px;
    }
    .articleContainer .breakLine {
        margin-top: 30px;
    }
    .article {
        margin-top: 40px;
        margin-right: 0;
    }
    footer {
        height: auto;
    }
    .footerLinks {
        flex-wrap: wrap;
    }
    .footerLinks .contacts {
        margin: 30px 0;
    }
    .thirdBlock {
        padding: 0 20px;
    }
}

@media (max-width: 688px) {
    header {
        flex-direction: column;
    }
    .headerLink {
        margin: 15px;
    }
    .stepCards {
        padding-top: 120px;
    }
    .inputWrapper > .btn {
        position: static;
        width: 60%;
        min-width: 280px;
        margin: 0 auto;
    }
    .inputWrapper > input {
        width: 100%;
        margin-bottom: 12px;
    }
    h1 {
        font-size: 44px;
        line-height: 60px;
    }
    .laptopImg {
        display: none;
    }
    .linksBlock {
        flex-wrap: wrap;
    }
    .mainPageBlock {
        height: auto;
    }
    .middleBlock {
        margin: 50px 20px;
        padding: 50px 20px;
    }
    .secondBlock {
        padding: 20px;
    }
    .stepCard {
        width: 90%;
        padding: 50px 20px 55px 20px;
        min-height: 320px;
        height: auto;
    }
    .stepCard > button {
        position: static;
    }
    .thirdBlock {
        margin-top: 200px;
    }
    .thirdBlock img {
        width: 100%;
    }
    .thirdBlock .article {
        margin-right: 0;
    }
    .fourthBlock {
        height: auto;
        padding: 40px 15px;
    }
    .formInputs > input,
    form > textarea {
        margin: 0;
        margin-bottom: 8px;
    }
    form {
        width: 100%;
    }
    .mainPageBlock {
        margin-right: 0;
        padding: 20px;
    }
    .h1Container {
        font-size: 48px;
    }
    form > textarea {
        width: 100%;
        height: 300px;
    }
    .articleContainer {
        margin-right: 0;
    }
    .formInputs {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .linksBlock {
        flex-direction: column;
    }
    .formInputs {
        width: 100%;
    }
    .fourthBlock > h2 {
        line-height: 1;
    }
    .thirdBlock {
        margin-top: 300px;
    }
}

.login-box {
    display: inherit;
}

.signIn {
    padding-top: 13px;
    padding-right: 9px;
}

.remodal {
    box-sizing: border-box;
}

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

.mobile-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    position: fixed;
    right: 0;
    top: 0;
    background-color: #fff;
    color: #042d4d;
    z-index: 12;
    width: 275px;
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-transition: 350ms ease-in-out;
    -o-transition: 350ms ease-in-out;
    transition: 350ms ease-in-out;

    padding: 20px;
}
.mobile-menu-list {
    list-style: none;
    margin-top: 30px;
}
.mobile-menu-list li {
    margin-bottom: 20px;
}
.mobile-menu-list li a {
    color: #2b8dcb;
    text-decoration: none;
    font-family: "OpenSans-400", sans-serif;
}

.mobile-menu-buttons button {
    width: 100px;
    height: 50px;
    border-radius: 6px;
    background: #291ad9;
    color: #fff;
    border: 0;
    padding: 8px;
}
.mobile-menu-buttons a:first-child {
    padding-right: 15px;
}

@media (max-width: 800px) {
    .linksBlock,
    .login-box {
        display: none;
    }
    .headerLeft a:first-child {
        display: block;
    }
    .headerLeft {
        width: 200px;
    }
    .logo-btn {
        margin-bottom: 0;
    }
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        padding-bottom: 15px;
    }
    header .logo {
        padding-top: 0;
    }
    .mobile-menu {
        padding: calc(20px + 20 * ((100vw - 360px) / 910));
    }
    .header-container .menu a,
    .header-container .buttons {
        display: none;
    }
    .header-container .menu a:first-child {
        display: block;
    }
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}
.mobile-menu__top {
    margin-bottom: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
}
.mobile-menu__close {
    width: 32px;
    height: 32px;
    background-color: transparent;
}
.mobile-menu__close svg {
    width: 100%;
    height: 100%;
}
.mobile-menu__close svg path {
    -webkit-transition: 200ms ease;
    -o-transition: 200ms ease;
    transition: 200ms ease;
    stroke: var(--color-dark);
}
.mobile-menu__list {
    margin-bottom: 32px;
    width: 100%;
}

.mobile-menu__link {
    font-size: 16px;
    width: 100%;
    display: block;
    color: #353535;
    padding: 12px 8px;
    transition: 200ms ease;
}
.mobile-menu__link:hover {
    color: var(--color-white);
    background-color: var(--color-accent);
}

.mobile-menu__link span {
    border-bottom: 1px solid transparent;
    -webkit-transition: 300ms ease;
    -o-transition: 300ms ease;
    transition: 300ms ease;
}
.mobile-menu__link:hover span {
    border-bottom-color: var(--color-dark);
}
.mobile-menu__bottom {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    width: 100%;
}
.mobile-menu__btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 16px;
    line-height: 1;
    -webkit-transition: 200ms ease;
    -o-transition: 200ms ease;
    transition: 200ms ease;
    width: 100%;
    height: 47px;
}
.mobile-menu__btn:not(:last-child) {
    margin-bottom: 10px;
}
.mobile-menu__btn:last-child {
    margin-bottom: 10px;
}

.menu__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.menu__item:not(:last-child) {
    margin-right: 15px;
}
@media (max-width: 800px) {
    .menu__item:not(:last-child) {
        margin-right: calc(9px + 6 * (100vw - 991px) / 279);
    }
}
.menu__link {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    -webkit-transition: 200ms ease;
    -o-transition: 200ms ease;
    transition: 200ms ease;
}
@media (max-width: 800px) {
    .menu__link {
        font-size: calc(10px + 2 * (100vw - 991px) / 279);
    }
}
.menu__link:hover {
    color: var(--color-accent);
}

/* *===== Toggle Menu Button =====* */
.header__toggle {
    display: none;
}
@media (max-width: 800px) {
    .header__toggle {
        background-color: transparent;
        -ms-flex-negative: 0;
        flex-shrink: 0;
        width: 23px;
        height: 20px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        /* z-index: 1; */
        -webkit-transition: 100ms ease;
        -o-transition: 100ms ease;
        transition: 100ms ease;
        margin-left: 20px;
    }
}
@media (max-width: 800px) {
    .header__toggle-line {
        border-radius: 3px;
        width: 100%;
        height: 2px;
        background-color: #042d4d;
        position: relative;
        -webkit-transition: 150ms ease-in;
        -o-transition: 150ms ease-in;
        transition: 150ms ease-in;
    }
    .header__toggle-line::after,
    .header__toggle-line::before {
        position: absolute;
        content: "";
        width: 100%;
        height: 100%;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        background-color: inherit;
        -webkit-transition: 450ms ease-in;
        -o-transition: 450ms ease-in;
        transition: 450ms ease-in;
        border-radius: 3px;
    }
    .header__toggle-line::after {
        top: -7px;
    }
    .header__toggle-line::before {
        bottom: -7px;
    }
}

.mobile-menu-close-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.mobile-menu-buttons {
    display: flex;
}

/* *==== Overlay ====* */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    width: 100%;
    height: 100vh;
    background-color: rgba(51, 51, 51, 0.7);
    -webkit-transition: 200ms ease-in;
    -o-transition: 200ms ease-in;
    transition: 200ms ease-in;
}
.overlay.active {
    opacity: 1;
    visibility: visible;
    -webkit-transition-delay: 550ms ease;
    -o-transition-delay: 550ms ease;
    transition-delay: 550ms ease;
}
