@font-face {
    font-family: "Mont";
    font-weight: 400;
    font-display: swap;
    src: url("../font/Mont-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Mont";
    font-weight: 500;
    font-display: swap;
    src: url("../font/Mont-SemiBold.woff2") format("woff2");
}

:root {
    --container-max-width: 1320px;
}

* {
    box-sizing: border-box;
    font-family: Mont, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

html, body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    font-size: 14px;
    background-color: #f5f7fa;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.body-stop-scrolling {
    overflow: hidden;
}

section {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 16px;
}

.header {
    width: 100%;
    min-height: 20vw;
    background-image: url('/img/header.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px;
}

.header-logo {
    width: 25%;
}

.header-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    padding: 20px 20px 10px;
    background: linear-gradient(180deg, #0e0e0e, #0000004d);
}

.link,
.bank-link {
    color: #ebf1f8;
    font-size: 17px;
    text-align: center;
}

.link:hover {
    border-bottom: 1px solid #3877e3;
}

.bank-link {
    border-radius: 6px;
    border: 2px solid #3877e3;
    padding: 8px 24px;
    text-align: center;
    transition: border 0.3s ease-in-out, color 0.3s ease-in-out;
}

.bank-link:hover {
    border: 2px solid #578bdf;
    color: #b2c2dc;
}

.title {
    color: #000000;
    font-weight: 500;
    font-size: 40px;
    text-align: center;
    margin-bottom: 25px;
}

.docs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 56px;
}

.legal-entities__subtitle {
    color: #000000;
    font-weight: 400;
    font-size: 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e1e1e1;
}

.group-button {
    color: #000000;
    font-weight: 400;
    font-size: 30px;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}


.history {
    margin-bottom: 79px;
}

.history__container {
    background-color: #EBF1F8;
    border-radius: 32px;
    padding: 32px;

    font-weight: 400;
    font-size: 20px;
    text-align: justify;
    color: #6A6A6A;
}

.history__container p:not(:last-child) {
    margin-bottom: 25px;
}

.history__container p {
    text-indent: 24px;
}

.doc-img {
    width: 50px;
    height: 50px;
}

.legal-entities,
.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    background-color: white;
    border-radius: 32px;
    padding: 32px;
    font-weight: 400;
    font-size: 20px;
    text-align: justify;
    color: #6A6A6A;
    width: 100%;
    height: 100px;
    min-height: 100px;
    overflow: hidden;
    transition: height 300ms ease-in-out;
}

.legal-entities.active,
.features.active {
    height: 100%;
}

.arrow-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin-right: 10px;
    transform: rotate(180deg);
    transition: transform 300ms ease-in-out;
}

.legal-entities.active .arrow-icon {
    transform: rotate(0deg);
}

.features.active .arrow-icon {
    transform: rotate(0deg);
}

.legal-entities__container,
.features__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.legal-entities__container {
    margin-left: 50px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: center;
    cursor: pointer;
    margin-left: 40px;
}

.feature:hover {
    color: #3877e3;
}

.feature:hover p {
    text-decoration: underline #3877e3;
}

.feature p {
    line-height: 1.5;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
}

.feature-subtitle {
    font-weight: 500;
    font-size: 20px;
    text-align: left;
    color: black;
    margin-left: 14px;
}

.contacts {
    width: 100%;
    background: white;
    max-width: none;
    box-shadow: 0 0 50px 0 #0000001A;
    margin-bottom: 25px;
}

.contacts__container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px 40px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 36px 0;
}

.contacts__map {
    width: 320px;
    height: 320px;
    background-image: url('/img/mock-map.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.contacts__info {
    width: calc(100% - 360px);
    min-width: 390px;
}

.contacts__title {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 16px;
}

.contacts__list {
    list-style: inside;
}

.contacts__item {
    font-weight: 400;
    font-size: 20px;
    color: #6A6A6A;
    margin-bottom: 24px;
}

.company {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-bottom: 25px;
}

.company__title {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 25px;
}

.company__item {
    font-size: 20px;
    color: #6A6A6A;
    margin-bottom: 8px;
    padding-left: 20px;
}

.contacts-short {
    width: 100%;
    background: white;
    max-width: none;
    box-shadow: 0 0 50px 0 #0000001A;
    margin-bottom: 25px;
}

.contacts-short__container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 36px;
}

.contacts-short__info {
    width: calc(100% - 310px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-short__info_name {
    font-weight: 400;
    font-size: 18px;
    color: #000000;
}

.contacts-short__info_value {
    font-weight: 400;
    font-size: 16px;
    color: #6A6A6A;
}

.contacts-short__contacts {
    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 4px 0;
}

.contacts-short__contacts_mail {
    display: flex;
    align-items: center;
    gap: 0 16px;
    font-weight: 400;
    font-size: 16px;
}

.contacts-short__contacts_phone {
    display: flex;
    align-items: center;
    gap: 0 16px;
    font-weight: 400;
    font-size: 16px;
}

.footer {
    padding: 0 25px 25px;
}

.footer__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    font-weight: 400;
    font-size: 10px;
    color: #6A6A6A;
}

.footer__container p {
    line-height: 1.5;
}

.feedback-modal {
    display: none;
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;

    animation: show-modal 150ms;
}

.feedback-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    z-index: 0;
    background: #808080e0;
    width: 100vw;
    height: 100vh;
}

.modal-close-icon {
    position: absolute;
    top: -17px;
    right: -17px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 5px;
    color: #929292;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #ababab;
    cursor: pointer;
    transition: color 150ms ease-in-out, box-shadow 150ms ease-in-out;
    user-select: none;
    background: white;
}

.modal-close-icon:hover {
    color: red;
    font-size: 21px;
    box-shadow: 0 0 0 2px #ababab;
}

.modal-close-icon:active,
.modal-close-icon:focus {
    font-size: 20px;
    text-shadow: 3px 1px 3px #6a6a6a;
}

/* form-start */

.form-wrapper {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0 0 50px rgba(0, 43, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    width: calc(100% - 20px);
    max-width: 1100px;
}

.form-title {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 24px;
}

.button {
    width: 350px;
    height: 56px;
    background: linear-gradient(264.29deg, #002BFF 2.94%, #00ADFF 100%);
    box-shadow: 0 0 50px rgba(0, 43, 255, 0.1);
    border-radius: 58px;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #FFFFFF;
    border: none;
    transition: .2s;
    cursor: pointer;
}

.button:hover {
    opacity: 0.8;
}

.button:disabled {
    background: linear-gradient(264.29deg, #8e8e8e 2.94%, #ccced9 100%)
}

.button:active {
    opacity: 0.6;
}

.input {
    border: none;
    font-size: 16px;
    line-height: 24px;
    background: #EFF1FF;
    border-radius: 66px;
    height: 56px;
    padding: 16px 0 16px 24px;
    outline: none;
    appearance: none;
    transition: .2s;
}

.input::placeholder {
    color: #6A6A6A;
}

input:hover {
    box-shadow: 0 0 0 1px #6A6A6A;
}

input:focus {
    box-shadow: 0 0 0 2px #002BFF;

}

.area-a {
    grid-area: a;
}

.area-b {
    grid-area: b;
}

.area-c {
    grid-area: c;
}

.area-d {
    grid-area: d;
}

.area-e {
    grid-area: e;
}

.area-f {
    grid-area: f;
}

.form {
    display: grid;
    column-gap: 30px;
    row-gap: 16px;
    grid-template:
            "a a b b"
            "c c d d"
            "e e e e"
            ". . . ."
            "f f f f";
}

/* form end */

@media (max-width: 1280px) {
    .header {
        min-height: 30vw;
    }

    .header-controls {
        gap: 3%;
    }

    .header-logo {
        width: 30%;
    }
}

@media (max-width: 1024px) {
    .header-controls {
        justify-content: flex-end;
    }
}

@media (max-width: 920px) {
    .link {
        display: none;
    }

    .contacts__info {
        width: 100%;
        min-width: auto;
    }

}

@media (max-width: 840px) {
    .header {
        min-height: 40vw;
    }

    .header-logo {
        width: 40%;
    }

    .group-button {
        font-size: 24px;
    }

    .legal-entities__container,
    .features__container,
    .feature {
        margin-left: 20px;
    }

    .form {
        grid-template:
            "a a a "
            "b b b "
            "c c c "
            "d d d "
            "e e e "
            ". . . "
            ". f . ";
    }

    .button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 620px) {
    .header {
        min-height: 80vw;
    }

    .header-logo {
        width: 60%;
    }

    .group-button {
        font-size: 20px;
    }

    .legal-entities__container,
    .features__container,
    .feature {
        margin-left: 10px;
    }
}

@media (max-width: 420px) {
    .group-button {
        font-size: 18px;
    }

    .legal-entities__container,
    .features__container,
    .feature {
        margin-left: 4px;
    }
}

@keyframes show-modal {
    from {
        opacity: 0;
        top: -10px;
    }

    to {
        opacity: 1;
        top: 0;
    }
}

