html {
    box-sizing: border-box;
}

@font-face {
    font-family: "Ouvality";
    src: local("Ouvality"),
        url(../fonts/Ouvality.ttf) format("ttf");
}

@font-face {
    font-family: "Involve.ttf";
    src: local("Involve"),
        url(../fonts/Involve-Regular.ttf) format("ttf");
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    background-color: #060910;
    font-family: Involve, Roboto, sans-serif, serif;
    font-style: normal;
    font-size: 16px;
    line-height: 1.3;
    color: #2b2a29;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    display: contents;
}

li {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Involve, Roboto, sans-serif, serif;
    font-weight: 400;
    margin: 0px;
    padding: 0px 15px;
}

h2 {
    font-size: 34px;
    color: #f3b54a;
    text-transform: uppercase;
    padding-top: 50px;
    text-align: center;
}

h3 {
    font-size: 34px;
    color: #2b2a29;
    text-transform: uppercase;
    padding-top: 50px;
}

h5 {
    font-size: 14px;
    color: #161731;
    text-transform: uppercase;
}

p {
    color: #d8d9de;
    margin: 0;
    padding: 10px;
    font-size: 16px;
    font-weight: 300;
    font-family: Involve, sans-serif, Tahoma;
    line-height: 1.5;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0 0 0 0);
}



.container {
    max-width: 1220px;
    padding: 0 10px;
    margin: 0 auto;
}

.title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title h3 {
    color: #d8d9de;
}

.title p {
    font-size: 20px;
}

.header__top {
    padding: 10px 30px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.box {
    width: 150px;
    text-align: center;
    position: relative;
    display: none;
}

.button {
    background-color: black;
    color: #d8d9de;
    text-transform: uppercase;
    padding: 0.5lh 1.5lh;
    inline-size: 100%;
    border: none;
}

.button:hover,
.button:focus-visible,
.mobile__link:hover,
.mobile__link:focus-visible {
    background-color: #1a1a1a;
}


.mobile {
    line-height: 0;
    overflow: hidden;
    transition: line-height .5s, color .5s;
    text-transform: uppercase;
    color: transparent;
}

.mobile__item {
    overflow: hidden;
    background-color: black;
}

.mobile__link {
    display: block;
    padding: 0.6lh;
}

.button.active~.mobile {
    line-height: 1.2;
    color: #d8d9de;
}

.menu__list {
    display: flex;
    color: #fff;
    gap: 40px;
    text-transform: uppercase;
}

.header__logo {
    margin: 2px;
    padding: 7px;
    color: #2b2a29;
    background-color: #fff;
    border-radius: 5px;
}

.header__logo img {
    max-width: 110px;
    height: auto;
}

.slide {
    margin: 10px 0 50px;
    background-image: url(../images/slide1.jpg);
    border: 1px solid #797993;
    border-radius: 30px;
    max-width: 1220px;
}

.slide-title {
    color: #CBCBCB;
    font-size: 43px;
    text-transform: uppercase;
    padding: 30px;
}

.slide-desc {
    font-size: 23px;
    padding: 20px 35px;
    max-width: 700px;
}

.online {
    display: flex;
    margin: 40px 10px;
    padding: 10px;
}

.btn-online {
    padding: 10px;
}

.btn {
    padding: 20px 28px;
    border: none;
    border-radius: 10px;
    text-transform: inherit;
    font-size: 15px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
    transition: All 0.5s ease;
    -webkit-transition: All 0.5s ease;
    -moz-transition: All 0.5s ease;
    -o-transition: All 0.5s ease;
}

.btn-orange {
    background-color: orange;
}

.btn-blue {
    background-color: #33CCFF;
}

.btn-yellow {
    background-color: #9B6494;
}

.uslugi {
    margin: 5px;
    display: flex;
    justify-content: center;
}

.p_uslugi {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 300px;
    height: 100px;
    margin: 10px;
    padding: 5px;
    border: 1px solid rgb(112, 112, 112);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(213, 213, 213, 0.2);
    color: #f0f0f0;
    font-size: 15px;
}

.p_uslugi img {
    max-width: 50px;
    height: auto;
}

.p-usludi-c {
    color: #f3b54a;
}

.body__content {
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 30px;
    margin-bottom: 30px;
}

.news {
    max-width: 45%;
    margin: 10px;
}

.news-title {
    margin: 10px;
    font-size: 24px;
    color: #2b2a29;
    text-transform: uppercase;
}

.news-item {
    margin-top: 15px;
    display: flex;
    flex-direction: row;

}

.news-img img {
    width: 150px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    background-color: Snow;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.news-content {
    margin: 0px;
}

.date-news {
    margin-left: 5px;
    padding-top: 0;
    color: #3E8DA2;
    font-size: 11px;
    text-transform: uppercase;
}

.text-news {
    padding-top: 2px;
    font-size: 14px;
    color: #161731;
    font-family: serif;

}

.articles {
    margin: 15px;
}

.articles-title {
    margin: 10px;
    font-size: 24px;
    color: #2b2a29;
    text-transform: uppercase;
}

.articles-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    max-width: 500px;
    height: 120px;
    margin: 15px 5px;
    background-color: #e8e8e8;
    border-radius: 15px;
}

.mir {
    flex-direction: row;
    background-color: #dfe5f1;
    color: #161731;
}

.articles-item img {
    margin: 10px;
    max-width: 120px;
    border-radius: 10px;
}

.articles-item p {
    color: #2b2a29;
}

.articles-item H5 {
    color: #3E8DA2;
    padding-top: 0px;
}

.pokupaem {
    margin-bottom: 50px;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 30px;
}

.pokupaem-block {
    padding: 60px 10px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.pokupaem_item {
    max-width: 330px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.pokupaem_item img {
    position: relative;
    border-radius: 15px;
    background-color: Snow;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pokupaem_item h4 {
    max-width: 300px;
    position: absolute;
    font-size: 20px;
    text-transform: uppercase;
    color: #f3b54a;
    margin-bottom: 120px;
}

.pokupaem_item p {
    max-width: 300px;
    position: absolute;
    margin-bottom: 70px;
    padding: 0px;
}

.vikup-block {
    margin-bottom: 50px;
    background-image: url(../images/background-vikup.jpg);
    border-radius: 30px;
}

.about__us {
    display: flex;
    align-items: center;
    border: 1px solid #2b2a29;
    border-radius: 30px;
    margin: 50px 0;
    padding: 15px;
}

.about__us img {
    width: 300px;
    filter: brightness(70%);
}

.about__us-right {
    margin: 50px;
    padding: 15px 10px;
}

.about__us-right h3 {
    color: #fff;
    margin-bottom: 10px;
}

.about__us-li {
    color: #d8d9de;
    margin: 2px;
    padding: 2px;
    list-style-type: disc;
}

.about__us-li2 {
    margin-left: 20px;
    color: #d8d9de;
    font-size: 18px;
    margin: 4px;
    padding: 4px;
    list-style-type: decimal;
}


.item-footer {
    margin: 50px;
    display: flex;
}

.menu__footer {
    margin: 5px 50px;
    color: #d8d9de;
}

.col {
    width: 33.3333%;
    flex-basis: 0;
    flex-grow: 1;
}

.f-content {
    width: max-content;
    margin: auto;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 5px;
    border-radius: 30px;
}

.form p {
    font-size: 18px;
    color: #2b2a29;
}


@media (max-width: 1180px) {
    h5 {
        font-size: 12px;
    }

    .pokupaem_item {
        max-width: 280px;
    }

    .pokupaem_item p {
        max-width: 260px;
        margin-bottom: 55px;
    }

    .articles-item {
        max-width: 480px;
    }
}

@media (max-width: 950px) {
    .pokupaem_item {
        max-width: 250px;
        margin: 8px;
    }

    .pokupaem-block {
        padding-bottom: 50px;
    }

    .pokupaem_item h4 {
        max-width: 240px;
        font-size: 18px;
    }

    .pokupaem_item p {
        max-width: 240px;
    }

    .articles-item {
        max-width: 430px;
    }
}

@media (max-width: 850px) {
    .body__content {
        flex-wrap: wrap;
        justify-content: left;
    }

    .menu__list {
        gap: 15px;
    }

    .header__top {
        font-size: 13px;
    }

    .news {
        max-width: 800px;
    }

    .articles-item {
        max-width: 800px;
    }

    .about__us {
        flex-direction: column-reverse;
    }

    .uslugi {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .pokupaem-block {
        grid-template-columns: 1fr 1fr;
    }

    .about__us-right {
        margin: 10px;
        padding: 0;
    }
}

@media (max-width: 671px) {
    .slide {
        border: none;
    }

    .p_uslugi {
        width: 250px;
    }

    .menu__list {
        display: none;
    }

    .box {
        display: block;
        top: 20px;
        left: 50px;
        position: absolute;
        z-index: 5;
    }

    .slide-title {
        font-size: 30px;
    }

    .slide-desc {
        font-size: 16px;
    }

    .online {
        margin: 10px 5px 30px;
        padding: 5px;
    }
}

@media (max-width: 572px) {
    h5 {
        font-size: 10px;
    }

    .box {
        left: 20px;
    }

    .btn {
        padding: 15px 18px;
    }

    .btn-online {
        padding: 5px;
    }

    .p_uslugi {
        width: 200px;
    }

    .pokupaem_item {
        max-width: 200px;
        margin: 5px;
    }

    .pokupaem_item h4 {
        max-width: 200px;
        font-size: 14px;
        margin-bottom: 80px;
    }

    .pokupaem_item p {
        max-width: 180px;
        font-size: 13px;
        margin-bottom: 20px;
    }

    .text-news {
        padding-top: 2px;
        font-size: 11px;

    }
}

@media (max-width: 475px) {

    h2,
    h3 {
        padding-top: 25px;
        font-size: 24px;
    }

    .box {
        width: 110px;
    }

    .header__logo {
        padding: 4px;
        font-size: 12px;
    }

    .slide-title {
        font-size: 24px;
        padding: 5px;
        text-align: right;
    }

    .slide-desc {
        padding: 10px 15px;
    }

    .p_uslugi {
        width: 150px;
        text-align: center;
        flex-direction: column;
    }

    .p_uslugi p {
        font-size: 12px;
    }

    .p_uslugi img {
        max-width: 38px;
        height: auto;
    }

    .btn {
        font-size: 12px;
        letter-spacing: 0px;
    }

    .pokupaem-block {
        padding: 5px;
        gap: 0;
    }

    .pokupaem_item {
        max-width: 170px;
    }

    .pokupaem_item p {
        max-width: 167px;
        font-size: 12px;
    }

    .col p {
        font-size: 12px;
    }

    .item-footer {
        margin: 10px;
    }
}

@media (max-width: 475px) {
    .btn {
        font-size: 13px;
        padding: 15px 8px;
    }

    .p_uslugi {
        width: 140px;
    }
}

@media (max-width: 382px) {
    h5 {
        font-size: 8px;
        padding: 0 5px;
    }

    p {
        padding: 5px;
    }

    .pokupaem_item {
        max-width: 150px;
    }

    .pokupaem_item h4 {
        max-width: 150px;
        font-size: 12px;
        margin-bottom: 68px;
    }

    .pokupaem_item p {
        max-width: 148px;
        font-size: 10px;
    }

    .text-news {
        padding-top: 1px;
        font-size: 9px;
    }
}

@media (max-width: 352px) {

    h2,
    h3 {
        padding-top: 15px;
        font-size: 20px;
    }

    .slide-title {
        font-size: 18px;
    }

    .slide-desc {
        padding: 8px 10px;
        font-size: 14px;
    }

    .header__logo {
        font-size: 11px;
    }

    .btn {
        font-size: 12px;
        padding: 12px 5px;
    }

    .online {
        margin: 8px 2px 10px;
        padding: 3px;
    }

    .p_uslugi {
        width: 122px;
        margin: 5px;
        padding: 5px;
    }

    .pokupaem-block {
        padding: 2px;
    }

    .pokupaem_item {
        max-width: 140px;
    }

    .pokupaem_item p {
        max-width: 140px;
        font-size: 9px;
    }

    .title p {
        font-size: 14px;
    }

    .form p {
        font-size: 13px;
    }

    .about__us-right p {
        font-size: 12px;
    }

    .about__us-right h2,
    h3 {
        font-size: 15px;
    }

    .about__us-right li {
        font-size: 12px;
    }

    .about__us img {
        width: 200px;
    }
}