@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.ttf');
    font-weight: 500;
}

/* Common */

* {
    box-sizing: border-box;
    margin: 0;

    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
b{
    font-weight: 600;
}
.container {
    width: 1190px;

    margin: auto;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
}
/* Header */

.header {
    position: relative;

    width: 100%;

    background-image: url('../img/flag.png');
    background-repeat: no-repeat;
    background-color: #7CA6D8;

    color: #FFFFFF;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #7CA6D8 0%, #7CA6D8 10%, #6588B0 100%);
}

.header__content {
    padding-top: 65px;
}

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

.header__row:first-child {
    padding-bottom: 55px;
}

.header__title {
    font-size: 52px;
    text-shadow: 2px 2px 5px rgba(0,0,0,.3);
}

/* Contacts */

.contacts {
    position: relative;

    font-size: 22px;
    line-height: 29px;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -45px;

    width: 25px;
    height: 25px;

    background-image: url('../img/phone.svg');
    background-repeat: no-repeat;
}

.contacts__list {
    padding-left: 0;
    list-style: none;
}

.contacts__item {
    font-weight: 500;
}

.contacts__text {
    font-size: 18px;
}

/* Menu */

.header__row:last-child {
    position: relative;
    align-items: center;
    z-index: 1;

    padding: 12px 0;
}

.header__menu {
    display: flex;

    height: 100%;

    padding-left: 0;

    font-size: 18px;
    list-style: none;
}

.menu__item {
    position: relative;
}

.menu__item:not(:last-child) {
    margin-right: 50px;
}

.menu__item_active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -5px;

    width: 100%;
    height: 2px;

    padding-bottom: 5px;
    border-bottom: 2px solid #FFFFFF;
}

.header__form {
    position: relative;
    width: 380px;
    height: 35px;
}

.header__search {
    width: 100%;
    height: 100%;

    padding: 5px 35px 5px 10px;

    border: none;
    border-radius: 6px;
}

.search-btn {
    position: absolute;
    top: 10px;
    right: 15px;

    width: 15px;
    height: 15px;

    border: none;

    background-image: url('../img/search.svg');
    background-repeat: no-repeat;
    background-color: transparent;

    cursor: pointer;
    outline: none;
}

/* Main */

.main {
    position: relative;
    padding-top: 40px;
}


.main__content {
    padding-bottom: 40px;
}

/* Breadcrumb */

.nav {
    border-bottom: solid 1px #DDDDDD;
    padding: 20px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;

    padding-left: 0;

    list-style: none;

    color: #6688B1;
    font-size: 14px;
    font-weight: 300;
}

.breadcrumb__item {
    position: relative;
}

.breadcrumb__item:not(:last-child) {
    margin-right: 30px;
    margin-bottom: 5px;
}

.breadcrumb__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -22px;

    width: 10px;
    height: 10px;

    background-image: url('../img/breadcrumb-delimiter.svg');
    background-repeat: no-repeat;
}

/* Articles */

.articles {
    max-width: 950px;

    line-height: 25px
}

.articles h2 a,
.articles h3 a,
.articles h4 a,
.articles h5 a {
    font-weight: inherit;
}
.content__title{
    margin-top: 20px;
}
.content__title,
.part__title {
    font-size: 30px;
    font-weight: 500;
}
.content__title a,
.part__title a{
    font-weight: 500;
}
.part__title {
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 20px;
}

.section__title {
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: 18px;
    margin-left: 15px;
}

.chapter__title {
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 30px;
    font-size: 18px;
}
.a__title{
    margin: 5px 45px;
}
.article__link {
    display: block;
    margin-bottom: 5px;
}

.title_bold {
    font-weight: 500;
}


.content__wrapper {
    display: grid;
    grid-template-columns: 750px 1fr;
    grid-column-gap: 30px;
}

@media screen and (max-width: 1400px) {
    .content__wrapper {
        grid-template-columns: 600px 1fr;
    }
}

@media screen and (max-width: 1200px) {
    .content__wrapper {
        grid-template-columns: 1fr;
    }
  }

/* Article */

article {
    max-width: 950px;

    /* margin-bottom: 40px; */
}
/* 
article div:not(:last-child) {
    margin-bottom: 40px;
} */

article h1,
article h2,
article h3 {
    max-width: 730px;
    margin-bottom: 25px;

    font-size: 30px;
    font-weight: 500;
}
article h2{
    font-size: 26px;
}
article h3 {
    font-size: 20px;
}
article p {
    font-size: 16px;
    line-height: 1.5;
}
.about_list{
    display: block;
    margin-top: 4px;
}
article p:not(:last-child) {
    margin-bottom: 25px;
}

article ul {
    margin-bottom: 25px;
    padding-left: 20px;

    list-style-image: url('../img/list-item.svg');
}

article ul li {
    margin-bottom: 15px;
    line-height: 1.5;
}

article b {
    font-weight: 500;
}

/* Buttons */

.nav-btns {
    display: flex;
    justify-content: flex-start;

    margin-bottom: 50px;
    padding-top: 25px;
}

.btn {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    width: calc(50% - 55px);
    min-height: 60px;

    border: none;
    border-radius: 6px;

    background-color: #7CA6D8;
    color: #FFFFFF;
    font-size: 14px;

    outline: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;

    width: 20px;
    height: 20px;

    background-repeat: no-repeat;
}

.btn_prev,
.btn_next {
    padding-right: 40px;
    padding-left: 40px;
}

.btn_up {
    width: 90px;
    margin: 0 20px;
    padding-top: 20px;

    font-size: 20px;
}

.btn_up::after {
    top: 7px;
    left: 50%;
    margin-left: -10px;
    background-image: url('../img/arrow-up.svg');
}

.btn_prev::after {
    top: 22px;
    left: 10px;
    background-image: url('../img/arrow-left.svg');
}

.btn_next::after {
    top: 22px;
    right: 10px;
    background-image: url('../img/arrow-right.svg');
}

/* Footer */
.footer-copy{
    margin-top: 60px;
    text-align: center;
    color: #FFF;
    font-size: 14px;
}
.footer {
    padding-top: 50px;
    padding-bottom: 50px;

    background-image: url('../img/flag2.png'), linear-gradient(90deg, #6789B2 0%, #7CA6D8 90%, #7CA6D8 100%);
    background-position: right;
    background-repeat: no-repeat;
    background-size: contain;

    color: #FFFFFF;
}

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

.footer__description {
    width: 530px;
}

.footer__title {
    margin-bottom: 10px;

    font-size: 30px;
    font-weight: 500;
}

.footer__text {
    font-size: 22px;
}

@media screen and (max-width: 1400px) {
    .container {
        width: 1024px;
    }

    /* Article */

    .btn {
        width: 450px;
    }

    .btn_up {
        width: 90px;
    }

}

@media screen and (max-width: 1100px) {
    .container {
        width: 768px;
    }

    /* Header */

    .header__title {
        font-size: 28px;
    }

    .contacts {
        font-size: 18px;
    }

    .contacts__text {
        font-size: 14px;
    }

    .header__menu {
        font-size: 14px;
    }

    .header__form {
        width: 290px;
    }

    .nav {
        margin-bottom: 25px;
    }

    /* Breadcrumb */

    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb__item:not(:last-child) {
        margin-right: 20px;
    }

    .breadcrumb__item:not(:last-child)::after {
        top: 3px;
        right: -15px;
    }

    /* Footer */

    .footer {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .footer__description {
        width: 400px;
    }

    .footer__title {
        font-size: 22px;
    }

    .footer__text {
        font-size: 16px;
    }

    /* Article */

    article h1,
    article h2,
    article h3 {
        width: 600px;
        margin-bottom: 15px;
        font-size: 24px;
    }

    article div:not(:last-child) {
        margin-bottom: 25px;
    }

    article p {
        font-size: 16px;
        line-height: 22px;
    }

    article p:not(:last-child) {
        margin-bottom: 15px;
    }

    .btn {
        width: 340px;

        font-size: 12px;
    }

    .btn_up {
        width: 60px;
        font-size: 16px;
    }
}

@media screen and (max-width: 800px) {
    .container {
        width: 100%;
        max-width: 540px;
    }

    /* Header */

    .header__row {
        flex-direction: column;
        align-items: center;
    }

    .header__title {
        margin-bottom: 70px;

        font-size: 28px;
    }

    .contacts::before {
        top: -30px;
        left: 45%;
    }

    .header__menu {
        justify-content: space-between;

        width: 100%;

        margin-bottom: 30px;
        padding: 0 20px;
    }

    /* Nav */



    .nav {
        padding-right: 10px;
        padding-left: 10px;
    }

    .main__content {
        padding-right: 10px;
        padding-bottom: 50px;
        padding-left: 10px;
    }

    /* Articles */

    .content__title,
    .part__title {
        margin-bottom: 15px;
        font-size: 22px;
    }

    .chapter__title {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .article__link {
        font-size: 14px;
    }

    /* Article */

    article h1,
    article h2,
    article h3 {
        width: 100%;
        margin-bottom: 15px;
        font-size: 20px;
    }

    /* Footer */

    .footer {
        padding-top: 30px;
        padding-bottom: 30px;

        background-size: cover;
    }

    .footer__content {
        flex-direction: column;
        align-items: center;
    }

    .footer__description {
        width: 350px;
        margin-bottom: 50px;
    }

    .nav-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 340px;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .btn_up {
        order: -1;
    }
    .header{
        background-size: 280px;

    }
    .header__content{
        padding-top: 10px;
    }
    .header__row:first-child{
        padding-bottom: 15px;
    }
    .header__title{
        font-size: 24px;
        margin-bottom: 16px;
    }
    .contacts{
        font-size: 14px;
        line-height: 25px;
    }
    .menu__item:not(:last-child){
        margin-right: 30px;
    }
    .part__title{
        margin-top: 35px;
    }
    .contacts::before{
        display: none;
    }
    .section__title {
        margin-left: 10px;
    }
    .chapter__title {
        margin-left: 20px;
    }
    .a__title{
        margin: 5px 30px;
        font-size: 14px;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    .header {
        background-image: url('../img/flag.webp');
    }

    .footer {
        background-image: url('../img/flag2.webp'), linear-gradient(90deg, #6789B2 0%, #7CA6D8 90%, #7CA6D8 100%);
    }
}