@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #000000;
}

/* main */

.container {
    max-width: 1100px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

.button {
    background-color: #0089d9;
    color: #ffffff;
    padding: 13px 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: .2s ease-in-out background-color;
}

.button:hover {
    background-color: #0074d9;
}

.button-width {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title {
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    letter-spacing: 0.06em;
}

/* layout */
.contacts {
    width: 100%;
    background-color: #231F20;
    position: fixed;

    letter-spacing: 0.07em;

    padding: 4px 0;
    z-index: 100;
}

.contacts .container {
    display: flex;
    justify-content: flex-end;
}

.contacts a {
    transition: .2s ease-in color;
    color: #ffffff;
}

.contacts a:hover {
    color: rgb(0, 137, 217, 0.4);
}

.contacts a:first-child {
    margin-right: 50px;
}

.header {
    padding-top: 25px;
    min-height: 70vh;
    background-image: url("../img/background.jpg");
    background-size: cover;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20%;
    position: relative;
}

.nav > *:not(.nav-list) {
    flex: 1 1;
}

.nav-button {
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
}

.nav-list_item:not(:last-child) {
    margin-right: 50px;
}

.nav-list_link {
    font-weight: 600;
    font-size: 14px;
    position: relative;
    display: block;
}

.nav-list_link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    /* transform: translateY(50%); */
    transition: .2s ease-in width;
    background-color: #0089d9;
    opacity: .10;
    pointer-events: none;

    height: 10px;
    width: 0;
}

.nav-list_link:hover::after {
    width: 100%;
}

.nav-list_item {
    position: relative;
    padding: 10px 0;
}

.nav-list_link img {
    margin-right: 5px;
    transition: .2s ease-in transform;
}


.nav-list_menu {
    margin-top: 30px;
    padding: 15px;
    width: 250px;
    min-height: 100px;

    position: absolute;
    bottom: 0px;
    left: 50%;

    transform: translateY(100%) translateX(-50%);
    background-color: #ffffff;
    border: 1px solid rgba(52, 52, 52, .1);

    /* display: flex; */
    flex-direction: column;

    display: none;
}

.nav-list_menu .nav-list_link {
    margin: 0 0 10px 0;
}

.nav-list_hover:hover > .nav-list_menu {
    display: flex;
}

.nav-list_hover:hover > .nav-list_link img {
    transform: rotate(180deg);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-title {
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 0.07em;
    margin-bottom: 10px;
}

.header-subtitle {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.07em;
    margin-bottom: 30px;
}

.header-text {
    max-width: 600px;
    padding: 0 15px;
    margin-bottom: 50px;
    font-size: 16px;
    line-height: 110%;
}

.request {
    max-width: 650px;
    background: rgba(0, 137, 217);
    padding: 30px;
    margin-bottom: 150px;
}

.request .title {
    margin-bottom: 50px;
    color: #ffffff;
}

.input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 30px;

    color: #343434;
    font-size: 16px;
    letter-spacing: 0.06em;
}

.input:last-child {
    margin-bottom: 50px;
}

.button-form {
    width: 100%;
    background-color: #ffffff;
    padding: 15px;
    color: #0089d9;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease-in-out background-color;
}

.button-form:hover {
    background-color: #ffedef;
}

.footer {
    padding: 20px 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer .box {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer .item {
    text-align: center;
    flex: 1 1;
}

.footer .item:first-child {
    text-align: start;
}

.footer .item:last-child {
    text-align: end;
}

.footer .item-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer .item-list {
    display: flex;
    flex-direction: column;
}

.footer .item-link {
    letter-spacing: 0.07em;
    transition: .2s ease-in color;
}

.footer .item-link:not(:last-child) {
    margin-bottom: 10px;
}

.footer .item-link:hover {
    color: #0089d9;
}

.copyright {
    letter-spacing: 0.07em;
}

/* faq */
.faq {
    padding-top: 40px;
    margin-bottom: 100px;
}

.faq .box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.faq .item {
    padding: 25px 20px;
    background: rgba(0, 137, 217, 0.12);
    border-bottom: 1px solid #3D3A3B; /* #0089d9 */
    color: #3D3A3B;
    cursor: pointer;
    height: 100%;
    width: 45%;
    flex-grow: 1;
    font-size: 16px;
    transition: .2s ease-in border-color, .2s ease-in color;
}

.faq .item:hover {
    border-color: #0089d9;

}

.faq .item-question {
    display: flex;
    justify-content: space-between;
}

.item-question_icon {
    transition: .2s ease-in transform;
}

.faq .item-answer {
    margin-top: 20px;
    line-height: 120%;
    display: none;
}

.faq .item.active .item-answer {
    display: block;
}

.faq .item.active .item-question_icon {
    transform: rotate(180deg);
}

/* burger */
.burger {
    display: none;
    position: relative;

    width: 50px;
    height: 50px;

    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    backdrop-filter: blur(3px);
}

.burger-line {
    height: 3px;
    width: 60%;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color .3s ease;
    transition: transform .2s ease-in-out, top .2s ease-in-out, opacity .1s ease-out;
}

.burger:hover .burger-line {
    background-color: rgb(0, 0, 0);
}

.burger-line:first-child {
    top: 30%;
}

.burger-line:last-child {
    top: 70%;
}

/* nav active */
.nav.active .burger-line {
    opacity: 0;
}

.nav.active .burger-line:first-child {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav.active .burger-line:last-child {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav.active {
    display: flex;
    flex-direction: column;
    align-items: start;
    background-color: white;
}

.nav.active .nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* position: absolute; */
    bottom: 0;
    left: 0;
    width: 100%;
    /* transform: translateY(100%); */
    background-color: rgba(255, 255, 255, 0.4);
    padding: 20px 40px;
}

.nav.active .nav-list_item {
    margin-right: 0;
}

.nav.active .nav-list_menu {
    position: static;
    display: block;
    margin-top: 0;
    transform: none;
    background-color: #fff7f7;
}

.nav.active .nav-list_hover .nav-list_link {
    margin-bottom: 10px;
}

.nav.active .nav-list_hover img {
    display: none;  
}

.nav.active .nav-list_menu {
    display: flex;
    width: 100%;
}

.nav.active .nav-button {
    padding: 20px 40px;
}

.nav.active .nav-button .button {
    display: flex;
}

@media (max-width: 850px) {
    .nav-button .button {
        display: none;
    }

    .nav-list {
        display: none;
    }

    .burger {
        display: block;
        position: absolute;
        top: 10px;
        right: 0;
    }
}

@media (max-width: 650px) {
    .footer .box {
        flex-wrap: wrap;
    }

    .footer .item {
        min-width: 100%;
    }

    .footer .item:not(:last-child) {
        margin-bottom: 40px;
    }

    .footer .item:first-child, .footer .item:last-child {
        text-align: center;
    }

    .faq .item {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .contacts a:first-child {
        margin-right: 0;
    }

    .contacts a:last-child {
        display: none;
    }

    .burger {
        right: 10px;
    }

    .request {
        margin-bottom: 80px;
    }
}

@media (max-width: 450px) {
    .faq .box {
        gap: 20px;
    }

    .faq {
        padding-top: 20px;
    }
}