@font-face {
    font-family: 'Roboto';
    src: local('Roboto Light'), local('Roboto-Light'), url('fonts/Robotolight.woff2') format('woff2'), url('fonts/Robotolight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Структура */
html, body {
    width: 100%;
    height: 100%;
}

#wrapper {
    position: relative;
    flex: 1 0 auto;
}

body {
    font-family: 'Roboto', Arial, Helvetica;
    display: flex;
    flex-direction: column;
    margin: 0;
}

nav {
    background-color: #bad7ff;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    padding: 0 100px 0 100px;
    box-shadow: 0 9px 6px -5px #535355;
    font-size: 1.25em;
    margin-bottom: 10px;
}

footer {
    flex: 0 0 auto;
}

.wide {
    width: 100%;
}

.container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1400px;
    min-width: 320px;
}

/* Атомарные классы */
.name_block {
    text-align: center;
    font-size: 2em;
}

.descr_block {
    text-align: center;
    font-size: 1.4em;
}

.field {
    font-family: 'Roboto';
    font-size: 0.8em;
    padding: 15px;
    margin: 10px 0px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

textarea.field {
    resize: none;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #243c9b;
    background-color: #afcdfd;
    border-radius: 6px;
    /*font-family: 'Roboto';*/
}

.btn:hover {
    cursor: pointer;
}

.messageInfo {
    margin: 15px 0;
    padding: 10px;
    background: #6add6a;
    border: solid 1px green;
    border-radius: 7px;
}

.validationError {
    color: red;
    margin: 15px 0;
}

/* попап*/
#popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
#popup-wrap {
    display: block;
    background: #fff;
    padding: 15px;
    position: relative;
    width: 800px;
    max-width: 98%;
    box-sizing: border-box;
    height: 600px;
    max-height: 80%;
    border: 5px solid #0156a6;
    border-radius: 10px;
}
#popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
#popup-close::before, #popup-close::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 0;
}
#popup-close::before {
    transform: rotate(45deg);
}
#popup-close::after {
    transform: rotate(-45deg);
}
#popup-inner {
    width: 100%;
    height: 100%;
    padding-right: 10px;
    overflow-y: auto;
}
#popup-inner .title {
    color: #016bb9;
    font-size: 1.8em;
    text-align: center;
    margin: 10px 0px;
    font-weight: bolder;
}
#popup-inner .item {
    line-height: 1.5;
}
#popup-inner .title_section {
    color: #1b4694;
    font-weight: bolder;
    font-size: 1.4em;
}
#popup-inner .item > p {
    margin: 0.4em 0;
    text-align: justify;
}

.bimg, .bimg img {
    display: block;
    width: 100%;
}

.block {
    padding: 30px 25px 50px 25px;
}

table {
    border-collapse: collapse;
    max-width: 600px;
    width: 100%;
    margin: 15px auto;
}

td, th {
    padding: 3px 7px 4px;
    border: 1px solid;
}

.pagination {
    display: flex;
}
.pagination .pages {
    margin: 0px;
}
.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border-radius: 10px;
}
.pagination a.active {
    background-color: #187cde;
    color: white;
}
.pagination a:hover:not(.active) {
    background-color: #7ab7f8;
    border-radius: 10px;
}

/* БЭМ */
nav a {
    color: #1b4694;
    text-decoration: none;
    text-transform: uppercase;
    margin: 10px 15px;
    display: inline-block;
}

nav #logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

#about .container.main {
    background: url(img/main.jpg) no-repeat center;
    background-size: cover;
    height: 555px;
    padding: 50px 30px 0 0;
    display: flex;
    justify-content: flex-end;
}
#about .text {
    max-width: 810px;
    font-size: 1.25em;
    line-height: 28px;
}
#about .text .s1 {
    display: inline-block;
}
#about .separator {
    color: #005ea8;
    margin: 25px 10%;
}
#about .container.tizers {
    display: flex;
    justify-content: space-around;
    gap: 25px;
}
#about .tizers .item {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 33%;
}

#customers .descr {
    display: none;
}
#customers .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 50px 0px;
}
#customers .item {
    background-color: #CAE4FF;
    padding: 5px 50px;
    border-radius: 15px;
    border: solid 1px #1d5aea;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
}
#customers .item:hover {
    box-shadow: 0px 0px 8px 2px #2688df;
    background-color: #aad7ff;
}
#customers .item .title.cpp {
    text-align: center;
}

#partners .wrap {
    display: flex;
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
#partners .preview {
    max-width: 160px;
    margin: 0 auto;
}

#contact_us .contact {
    max-width: 500px;
    margin: 0 auto;
}
#contact_us .contacts {
    display: flex;
    /*justify-content: space-around;*/
    /*gap: 50px;*/
    justify-content: center;
    gap: 250px;
    padding: 25px;
}
#contact_us .contacts .tmpimg img {
    max-width: 400px;
}
#contact_us .col.c1 {
    min-width: 450px;
}
#contact_us .col.c2 {
    min-width: 300px;
    line-height: 1.6em;
    font-size: 1.05em;
}
#contact_us .contacts .col.c2 .row {
    margin: 25px 0;
}
#contact_us .contacts .separator {
    color: #0156a6;
}

footer {
    background-color: #222;
    color: #ddd;
    padding: 5px 80px 5px 80px;
    letter-spacing: 1px;
    font-size: 0.95em;
    display: flex;
    justify-content: space-between;
}

footer .col.c1 .icon {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 5px 0;
}

footer .col.c1 .icon .title {
    font-size: 1.9em;
    font-weight: bold;
}

footer .col.c2 {
    display: flex;
    align-items: flex-end;
    padding: 0 0 5px 0;
}

/* Адаптив */
@media all and (max-width: 1430px) {
    .container:not(.cpn) {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media all and (max-width: 1210px) {
    .nom {
        display: none;
    }
}

@media all and (max-width: 920px) {
    nav {
        padding: 0 25px;
        justify-content: space-between;
    }

    header .row.c2 {
        padding: 0;
        display: block;
    }
    
    #about .container.main {
        padding: 0;
    }
    #about .text {
        margin: 15px;
    }
    #about .container.tizers {
        padding: 10px 25px;
    }

    #contact_us .contacts {
        display: block;
    }

    #customers .wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    #partners .preview {
        max-width: 100px;
        margin: 0 auto;
    }
}

@media all and (max-width: 768px) {
    header .container {
        height: unset;
    }

    nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 50%);
        padding: 10px 15px;
    }

    h1 {
        line-height: 40px;
        font-size: 1.7em;
    }

    #about .tizers {
        display: flex;
        flex-direction: column;
    }
    #about .tizers .item {
        max-width: 100%;
    }

    #customers .wrap {
        display: flex;
        flex-direction: column;
    }

    #partners .wrap {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }


    footer {
        flex-direction: column;
        gap: 25px;
        padding: 15px 25px;
    }

}

@media all and (max-width: 480px) {
    nav {
        display: flex;
        flex-direction: column;
    }

    #about .container.main {
        display: block;
        padding: 20px 20px;
    }

    #about .container.main .text {
        font-size: 1.05em;
    }
    #contact_us .contacts .tmpimg img {
        max-width: 50%;
    }
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
  border: none;
}
