html {
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
}

body {
    min-width: 320px;
    width: 100%;
    height: 100%;
    margin: 0px auto;
    font-family: 'Times New Roman', Times, serif;
    background-image: linear-gradient(0deg, #eae1e1, #468f0f);
    background-repeat: no-repeat;
}

.flex {
    display: flex;
}

.list-reset {
    margin: 0;
    padding: 0;
    list-style: none;
}

.burger {
    display: none;
}

.btn-reset {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.container {
    max-width: 1890px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.blok {
    border-radius: 20px;
    background-color: #ffffff;
}


/* header */

.header {
    padding: 40px 0 20px;
}

.header__blok {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    justify-content: space-around;
    align-items: center;
    border-radius: 20px;
    background-color: #ffffff;
}



.link {
    font-size: 35px;
    font-weight: 700;
    color: #9b7a10;
}


.header__link {
    transition: all 0.3s ease-in-out;
}

.header__link:hover {
    color: rgb(98, 83, 233);
    outline: 1px solid #d2b7b7;
    outline-offset: 10px;
    border-radius: 15px;
    opacity: 1;
}

.heder__img {
    max-width: 650px;
}

.header__address {
    justify-content: center;
   
}

.nav {
    
    padding: 10px 15px;
    border-radius: 20px;
    background-color: #ffffff;
    transition: background-color 1s;
}


.nav:hover {
    outline: 1px solid #746969;
    background-color: #d0c6c6;
}



.nav__list {
   

    flex-wrap: wrap;
    justify-content: space-around;
}

.nav__items {
    padding: 0 10px;
    font-family: "font", sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 37px;
    border: 1px solid #ffffff;
    border-radius: 15px;
    color: #6f6363;
    transition: color 0.3s ease-out;
}

.nav__items:hover {
    color: #ffffff;
}

.nav__items:active {
    color: #322cdd;
}

.lead__nav-list {
    padding: 70px 0 0 0;
    align-items: center;
    flex-direction: column;
    gap: 60px;
}

.lead__nav {
    display: none;
}

.lead__nav-items {
    color: #fbfbfb;
}

/* section-piter */

.hero {
    padding: 0px 0 20px 0;
}

.hero__block {
    padding: 20px;
}

.hero__text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: 500;
}

.section__blok {
 padding: 20px 0 40px;
}

.section__piter {
    justify-content: center;
    padding: 20px;
    gap: 48px;
    border-radius: 20px;
    background-color: #ffffff;
}

.reference__top {
    width: 100%;
    flex-direction: column;
    justify-content: space-around;
}

.reference__bottom {
    flex-direction: column;
}

.reference__img {
    justify-content: center;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.reference__caption {
    margin: 0;
    padding: 10px;
    font-size: 44px;
    text-align: center;
    color: #877777;
}

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

.reference__title {
    margin: 0;
    padding: 10px;
    font-size: 1.7rem;
}

.reference__link {
    width: 100%;
    min-width: 280px;
    padding: 10px 5px;
    text-align: center;
    font-size: 1.7rem;
    border: 1px solid #615454;
    border-radius: 15px;
    background-color: #cae0dc;
    transition: color 0.3s ease-in-out, border 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.reference__link:hover {
    color: #ffffff;
    border: 1px solid #b57171;
    background-color: #7587b9;
}

.reference__link:active {
    color: #d31e1e;
    border: 1px solid #cc2d2d;
    background-color: #90949e;
}

.reference__link:not(:last-child) {
    margin-bottom: 3px;
}


/* servises */

.servises {
    padding: 20px 0;
}

.servises__bottom {
    padding: 20px 0 50px;
}

.servises__caption {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 35px;
    font-weight: 800;
    line-height: 48px;
    color: #625959;
}

.servises__subtitle {
    flex-direction: column;
    justify-content: space-evenly;
}

.servises__span {
    margin: 0;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 48px;
    color: #ef0c0c;
}



.servises__list {
    padding: 0 40px;
}

.servises__items {
    font-family: Open Sans;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    color: #625959;
}

.servises__text {
    margin: 0;
    font-family: Open Sans;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    color: #cd2323;
}

.servises__not {
    padding: 0 20px;
}

.servises__text:not(:last-child) {
    margin-bottom: 15px;
}

.servises__subtitle {
    align-items: center;
    margin-top: 20px;
}

.servises__link {
    margin: 0;
    padding: 0;
}

/* rules */

.rules {
    padding: 20px 0 50px;
}

.rules__blok {
    padding: 20px;
}

.rules__list {
    flex-direction: column;
}

.rules__items {
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.rules__item {
    margin: 0;
    padding: 10px;
    font-family: italic;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    color: #625959;
}

.rules__items:not(:last-child) {
    border-bottom: 1px solid #c9c1c1;
}

.servises__blok {
    padding: 40px;
}

.rules__img {
    max-width: 130px;
    border-radius: 100%;
}

.rules__icon {
    padding-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid #c9c1c1;
}

.rules__caption {
    margin: 0;
    font-size: 3rem;
    text-align: center;
    color: #625959;
}


/* contact */

.contacts {
    padding: 20px 0 50px;
}

.contacts__blok {
    flex-direction: column;
    align-items: center;
   padding: 20px;
}

.contacts__slogan {
    margin: 0;
    padding-left: 40px;
    flex-direction: column;
    font-family: "font", sans-serif;
    font-size: 2.3rem;
    font-style: normal;
    font-weight: 700;
    color: #514646;
}

.contacts__list {
    margin-top: 50px;
}

.contacts__items {
    flex-direction: column;
    font-family: "font", sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    color: #423838;
}

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

.contacts__link {
    display: inline-block;
    margin: 0;
    margin-bottom: 30px;
}

/* --footer-- */

.footer {
    padding-bottom: 50px;
}


.footer__blok {
    padding: 20px;
    justify-content: space-evenly;
    flex-wrap: wrap;
    border-radius: 15px;
    background-color: #585454;
}

.footer__img {
    max-width: 550px;
    border-radius: 15px;
}


.footer__box {
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.footer__caption {
    color: #9b9292;
    font-size: 40px;
    font-weight: 500;
    line-height: 12px;
}


.footer__link {
    display: inline-block;
    padding-top: 22px;
    color: #9b9292;
    font-size: 40px;
    font-weight: 500;
    line-height: 12px;
    transition: all 0.4s ease-in-out;
}


.footer__link:hover {
    color: #ffffff;
}

.footer__link:active {
    color: #e01313;
}