html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit; /* Наследование box-sizing от главного родителя, в данном случае html */    
    margin: 0;
    padding: 0;
}

body {
    font-family: "Comfortaa", sans-serif;
    /* font-family: "Yeseva One", serif; */
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    padding: 0;
    border: none;
    border-radius: 0; 
    cursor: pointer;
}

.section {
    padding-bottom: 150px;
}

.container {
    max-width: 1180px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
}

.title {
    font-family: "Yeseva One", serif;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 15px;
}

.button {   
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 18px 54px;
    background-color: #FFBD59;   
    color: #272727; 
}

.section--decor {
    position: relative;
}

.section--decor::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url(../images/imgs-about/section-decor.png);
    width: 22px;
    height: 30px;
}

.section--decor::after {
    content: '';
    position: absolute;
    left: 22px;
    bottom: 10px;
    background-color: #7B6152;
    width: 1000%;
    height: 1px;
}

.menu__btn {
    display: none;   
    width: 30px;
    height: 25px;
    background-color: transparent;
    flex-direction: column;
    justify-content: space-between;
}

.menu__btn span {
    width: 100%;
    height: 1px;
    background-color: #7B6152;
}

.header {
    background-color: #FFF8F3;
}

.header__inner {    
    display: flex;
    padding-top: 4px;
    justify-content: space-between;
    align-items: center;
}

.menu__list {    
    display: flex;
    gap: 20px;
}

.menu__list-link {
    text-transform: uppercase;
}

.phone {
    position: relative;
}

.phone::before {
    content: '';
    position: absolute;
    background-image: url(../images/phone.svg);
    width: 20px;
    height: 20px;
    left: -23px;
    top: -3px;
}

.main {
    overflow-x: clip; /* Чтобы при сжатии при адаптации картинка уходила за экран */
    background-color: #FFF8F3;
}

.top {
    padding: 40px 0 150px;
}

.top__inner {
    position: relative;
}

.top__content {
    width: 370px;
    padding: 150px 0 250px;
}

.top__title {
    font-family: "Yeseva One", serif;
    font-size: 30px;
    margin-bottom: 15px;
}

.top__text {
    margin-bottom: 48px;
}

.top__buy {    
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 18px 54px;
    background-color: #FFBD59;   
    color: #272727; 
}

.top__img {
    position: absolute;
    top: 0;
    left: 240px;
}

.about {
    padding: 50px 0;
    background-color: #A5978E;
    color: #FAFAFA;
    margin-bottom: 150px;
}

.about__inner {
    display: flex;
    align-items: center;
}

.about__content {
    min-width: 370px;
}

.about__text {
    margin-bottom: 15px;
}

.about__list {
    display: flex;
    padding-left: 110px;
    padding-bottom: 48px;
    align-items: center;
    flex-basis: 930px;
    gap: 0 20px;
}

.about__item-img {
    margin-bottom: 10px;
}

.about__item-text {
    font-size: 11px;
}

.section__inner {
    display: grid;
    grid-template-columns: 370px auto;
}

.section__content-descr {
    display: grid;
    grid-template-columns: auto auto;
    padding-bottom: 92px;
}

.products__content {
    gap: 50px 90px;
}

.products__item {
    width: 290px;
    margin: 0 auto;
    text-align: center;
}

.products__item-img {
    margin-bottom: 8px;
}

.products__item-price {
    margin-bottom: 12px;
    font-family: "Yeseva One", serif;
    font-size: 16px;
    font-weight: 400;
}

.products__item-title {
    margin-bottom: 16px;
    font-family: "Yeseva One", serif;
    font-size: 16px;
    font-weight: 400;
}

.products__item-text {
    font-size: 12px;
    margin-bottom: 27px;
}

.steps__list {
    gap: 70px 25px;
    counter-reset: number;
}

.steps__item {
    display: flex;
    gap: 40px;
    list-style-type: none;
    position: relative;
}

.steps__item::before {
    counter-increment: number;
    content: '0' counter(number);
    position: absolute;
    bottom: 0;
    left: 0;
    font-family: "Yeseva One", serif;
    font-size: 30px;
    font-weight: 400;
    color: #BEA495;
}

.steps__item.steps__item--even::before {
    left: auto;
    right: 0;
}

.steps__item:nth-child(n+10)::before {
    content: counter(number);
}

.steps__item-text {
    flex-basis: 174px;
    padding-bottom: 40px;
}

.courses__item-img {
    position: relative;
    color: #fff;
    font-family: "Yeseva One", serif;
    font-size: 11px;
}

.courses__item, 
.courses__item img {
    margin-bottom: 28px;
}

/* .products__item-text--courses {
    font-size: 14px;
    margin-bottom: 24px;
} */

.products__item-text.courses-text {
    font-size: 14px;
    margin-bottom: 24px;
}

.courses__title, .courses__time, .courses__price {
    position: absolute;
    background-color: #BEA495;
}

.courses__title {
    padding: 15px;
    top: 44%;
    left: 10px;
}

.courses__time {
    padding: 7px 10px;
    top: 60%;
    left: 10px;
}

.courses__time span {
    font-family: "Comfortaa", sans-serif;
    font-size: 10px;
}

.courses__price {
    padding: 19px 10px;
    right: 0;
    bottom: 18px;
}

.team {
    padding: 61px 0 83px;
    background-color: #A5978E;
    color: #fff;
    margin-bottom: 150px;
}

.team__content {
    padding-bottom: 0;
    gap: 75px;
}

.team__item {
    position: relative;
}

.team__item-box {
    position: absolute;
    width: 165px;
    padding: 15px 10px 16px;
    background-color: #7B6152;
    text-align: center;
    z-index: 4;
    right: 33px;
    bottom: 13px;
}

.team__item-name {
    font-family: "Yeseva One", serif;
    font-size: 12px;
    margin-bottom: 6px;
}

.team__item-descr {
    font-size: 10px;
}

.feedback__descr {
    margin-right: 20px;
}

.feedback__content {
    padding-bottom: 110px;
}

.feedback__slider {
    width: 760px;
    overflow: hidden;
}

.feedback__item {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 0 16px;
}

.feedback__item-video {
    position: relative;
}

.feedback__item-videobtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
}

.feedback__item-content {
    padding-bottom: 78px;
}

.feedback__item-sociallink-img {
    margin-bottom: 9px;
}

.feedback__item-name {
    font-family: "Yeseva One", serif;
    font-size: 16px;
    margin-bottom: 15px;
}

.feedback__item-text {
    margin-bottom: 15px;
}

.feedback__item-btn {
    position: absolute;
    bottom: 11px;
    right: 0;
}

.feedback__content .swiper-pagination {
    bottom: 50px;
}

.swiper-pagination-bullet {
    background-color: #BEA495;
    width: 53px;
    height: 4px;
    border-radius: 0;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #7B6152;
}

.certificates__descr {
    margin-right: 20px;
}

.certificates__content {
    padding-bottom: 114px;
}

.certificates__content .swiper-pagination {
    text-align: left;
    bottom: 60px;
}

.certificates__slider {
    width: 1135px;
    overflow: hidden;
}

.accordeon__item {
    margin-bottom: 10px;
    background-color: #FAFAFA;
}

.accordeon__title {
    padding: 16px 50px 16px 13px;    
    display: block;
    width: 100%;
    text-align: left;
    background-color: transparent;
    font-family: "Yeseva One", serif;
    font-size: 16px;
    position: relative;
}

.accordeon__title::after {
    content: '';
    background-image: url(../images/arrow.svg);
    width: 16px;
    height: 16px;
    position: absolute;
    top: 17px;
    right: 26px;
}

.accordeon__title.accordeon__title--active::after {
    transform: rotate(180deg);
}

.accordeon__text {
    opacity: 0;
    max-height: 0;
    transition: opacity .3s, max-height .3s;
}

.accordeon__text ol {
    padding: 20px 40px;
}

.accordeon__text.accordeon__text--visible {
    opacity: 1;
}

.promo {
    background-image: url(../images/promo-bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 140px 0;
}

.promo__inner {
    display: flex;
    align-items: center;
}

.promo__text {
    max-width: 813px;
    margin-right: 109px;
    padding-left: 10px;
    color: #fff;
    font-family: "Yeseva One", serif;
    font-size: 40px;
}

.promo__link {
    display: inline-block;
    padding: 17px 45px;
    background-color: #FFBD59;
    color: #272727;
    font-weight: 600;
}

.contacts {
    padding: 150px 0 50px;
}

.contacts__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form {
    padding: 75px 42px 67px;
    width: 664px;
    background-color: #fff;
}

.form__title {
    font-family: "Yeseva One", serif;
    font-size: 40px;
    margin-bottom: 60px;
}

.form__input {
    display: block;
    border: none;
    border-bottom: 1px solid #000;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px 7px;
    color: #000;
}

.form__input::placeholder {
    color: #B3B3B3;
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}
.form__btn {
    margin-top: 50px;
    padding: 17px 34px;
    color: #272727;
    background-color: #FFBD59;
    font-family: "Comfortaa", sans-serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
}

.footer {
    padding-top: 40px;
    padding-bottom: 35px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    width: 230px;
}

.email {
    margin: 17px 0;
}
.footer__social {
    display: flex;
    gap: 15px;
}


@media (max-width: 1110px) {
.promo__link {
    min-width: 169px;
    text-align: center;
}

}


@media (max-width: 1050px) {
    .steps__list {
        gap: 37px 35px;
    }
    .steps__item {
        gap: 0 30px;
    }
}

@media (max-width: 1000px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .top__content {
        width: 333px;
        padding: 95px 0 70px;
    }
    .top__text {
        margin-bottom: 30px;
    }
    .top__img {
        left: 300px;
    }
    .top__img-l {
        width: 655px;
    }
    .about__content {
        min-width: 300px;
    }
    .about__list {
        padding-left: 22px;
    }
    .section__inner {
        grid-template-columns: 290px auto;
        gap: 0 10px;
    }
    .section__text {
        font-size: 10px;
    }
    .products__content {
        gap: 67px;
    }

    .team {
        padding: 50px 0;
    }
    .team__content {
        gap: 30px 20px;
    }
    .team__item-box {
        padding: 14px 9px 15px;
        right: -7px;
        bottom: 10px;
    }
    
    .feedback__inner {
        grid-template-columns: 260px auto;
        gap: 0 10px;
    }
    .feedback__slider {
        width: 690px;
    }
    .certificates__content img {
        width: 280px;
    }
    .certificates__slider {
        width: 880px;
    }
    .certificates__content .swiper-pagination {
        text-align: center;
    }

    .promo__text {        
        padding-left: 0;
    }

    .contacts__img {
        width: 335px;
    }

}

@media (max-width: 980px) {
    .steps__title {
        font-size: 30px;
    }
    .steps__list {
        gap: 24px 34px;
    }
    .steps__item {
        gap: 0 20px;
    }
    .steps__item-img {
        width: 86px;
        object-fit: cover;
    }
    .steps__item-text {
        font-size: 8px;
    }
    .steps__item::before {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .footer__inner {
        flex-wrap: wrap;
    }
    .footer__contacts {
        width: 100%;
        padding-top: 15px;
        text-align: center;
    }
    .footer__social {
        justify-content: center;
    }
    .section__inner {
        grid-template-columns: 200px auto;
        gap: 0 10px;
    }
    .products__content {
        gap: 30px 16px;
    }
    .title {
    font-size: 28px;
    }
    /* .certificates__content img {
        width: 200px;
    }
    .certificates__slider {
        width: 880px;
    } */
}

@media (max-width: 768px) {
    body {
        font-size: 10px;
    }
    .container {
        max-width: 640px;
    }
    .phone::before {
        width: 14px;
        height: 14px;
        left: -16px;
        top: -5px;
        background-size: cover;
    }     
    .top__content {
        width: 230px;
    }
    .top__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .top__text {
        margin-bottom: 20px;
    }
    .top__img {
        left: 180px;
    }
    .about__content {
        min-width: 200px;
    }    
    .title {
        font-size: 15px;
    }
    .about__list {
        margin-left: 27px;       
        margin-bottom: 33px;
        gap: 0 10px;
    }
    .about__item-img {
        margin-bottom: 6px;
    }
    .about__item-img--1,
    .about__item-img--3 {
        width: 120px;
    }
    .about__item-img--2 {
        width: 190px;
    }
    .about__item-text {
        font-size: 6px;
    }
    .products__item {
        width: 200px;
    }
    .products__item-img {
        width: 200px;
        margin-bottom: 6px;
    }
    .products__item-price {
        font-size: 12px;
        margin-bottom: 7px;
    }
    .products__item-title {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .products__item-text {
        font-size: 8px;
        margin-bottom: 19px;
    }
    .button {
        padding: 10px 26px;
        font-size: 12px;
    }
    .courses__title, .courses__time, .courses__time span, .courses__price {
        font-size: 8px;
    }
    .courses__title {
        padding: 10px;
        top: 45%;
        left: -1px;
    }
    .courses__time {
        padding: 5px;
        top: 59%;
        left: -1px;
    }
    .courses__price {
        padding: 12px 10px;
        right: -8px;
        bottom: 3px;
    }
    .products__item-text.courses-text {
        font-size: 10px;
    } 
    .team__img {
        width: 140px;
    }
    .team__item-box {
        width: 109px;
        padding: 9px 6px 10px;
        right: -24px;
        bottom: 8px;
    }
    .team__item-name {
        font-size: 8px;
        margin-bottom: 5px;
    }
    .team__item-descr {
        font-size: 7px;
    }
    .feedback__slider {
        width: 447px;
    }
    .feedback__content {
        padding-bottom: 70px;
    }
    .feedback__item-video {
        width: 200px;
    }
    .feedback__item-img {
        width: 200px;
    }
    .feedback__item-content {
        padding-bottom: 45px;
    }
    .feedback__item-btn {
        font-size: 8px;
        padding: 15px 20px;
        bottom: 0;
    }
    .feedback__content .swiper-pagination {
        bottom: 60px;
    }
    .swiper-pagination-bullet {
        width: 28px;
    }
    .certificates__content {
        padding-bottom: 80px;
    }
    .certificates__content .swiper-pagination {
        bottom: 60px;
    }

    .promo {
        padding: 67px 0;
    }
    .promo__text {
        font-size: 15px;
    }
    .promo__link {
        font-size: 12px;
    }

    .form {
        width: 440px;
        padding: 27px 22px;
    }
    .form__title {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .form__btn {
        margin-top: 10px;
    }
    .contacts__img {
        width: 187px;
        object-fit: cover;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .header__menu {
        order: 1;
    }
    .header__menu-list {
        flex-direction: column;
        position: absolute;
        width: 153px;
        padding: 25px 35px 25px 45px;
        gap: 20px 0;
        background-color: #7B6152;
        color: #FFF8F3; 
        top: 0;       
        left: 0;
        transform: translateY(-110%);
        transition: transform .5s ease;
    }
    .header__menu-list.menu--open {
        transform: translateY(0%);
    }
    .menu__btn {
        display: flex;
    }
    .section__inner {
        display: block;
    }
    .section__descr {
        margin-bottom: 30px;
        text-align: center;
    }

    .team__item-box {
        right: auto;
        left: 100px;
    }
}

@media (max-width: 500px) {
    .footer {
        padding: 50px 0;
        font-size: 14px;
    }
    .footer__inner {
        flex-direction: column;
    }
    .footer__menu {
        padding: 50px 0;
        text-align: center;
    }   
    .footer__menu-list {
        flex-direction: column;
    }
    .footer__contacts {
        padding-top: 0;
    }    
}

@media (max-width: 480px) {
    .top {
        padding: 30px 0 50px;
    }
    .top__content {
        width: 180px;
    }
    .top__title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .top__text {
        font-size: 8px;
        margin-bottom: 15px;
    }
    .top__buy {
        font-size: 10px;
        padding: 14px 41px;
    }
    .top__img {
        left: 160px;
    }
    .top__img-l {
        width: 309px;
    }
    .about__inner {
        align-items: flex-end;
    }
    .about__content {
        min-width: 173px;
    }
    .about__list {
        align-items: flex-end;
        margin-left: 0;
        padding-left: 17px;
        gap: 0 5px;
        margin-bottom: 0;
    }
    .about__item-img--1,
    .about__item-img--3 {
        width: 80px;
    }
    .about__item-img--2 {
        width: 140px;
    }
    .about__item-text {
        display: none;
    }
    .about {
        margin-bottom: 50px;
    }
    .section {
        padding-bottom: 50px;
    }
    .section__descr {
        margin: 0 auto 30px;
        width: 300px;;
    }
    .section__content-descr {
        padding-bottom: 62px;
    }
    .steps__list {
        gap: 24px 39px;
    }

    .team {
        margin-bottom: 50px;
    }
    .team__content {
        padding-bottom: 0;
    }

    .certificates__slider {
        width: 415px;
        margin: 0 auto;
    }
    .certificates__content img {
        width: 200px;
    }

    .promo {
        padding: 42px 0;
    }
    .promo__link {
        min-width: 85px;
        font-size: 8px;
        padding: 11px 16px;
    }

    .contacts {
        padding-top: 50px;
    }
    .form__input {
        font-size: 10px;
    }
    .form__btn {
        width: 85px;
        font-size: 8px;
        padding: 15px 13px;
    }
    .contacts__img {
        display: none;
    }
}

@media (max-width: 404px) {
    .steps__list {
        gap: 20px 25px;
    }
    .steps__item {
        gap: 0 16px;
    }
    .steps__item-img {
        width: 66px;
    }

    .courses__content {
        grid-template-columns: auto;
    }

    .team__content {
        grid-template-columns: auto;
    }
    .team__img {
        width: 204px;
    }
    .team__item-box {
        width: 152px;
        left: 148px;
        bottom: 11px;
    }
    .team__item-name {
        font-size: 11px;
    }
    .team__item-descr {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .body {        
        font-size: 8px;
    }
    .top__content {
        width: 200px;
        padding: 20px 0 0;
    }
    .top__title {
        font-size: 18px;
    }
    .top__text {
        font-size: 10px;
    }
    .top__img {
        left: auto;
        right: 0;
    }   
    .top__img-l {
        width: 185px;
    }
    .about {
        padding: 25px 0 10px;
    }
    .about__content {
        min-width: 233px;
    }
    .title {
        margin-bottom: 10px;
    }
    .about__text {
        font-size: 8px;
    } 
    .about__list {
        margin-left: 12px;
        padding-left: 12px;
        padding-bottom: 30px;
        gap: 0 15px;
    }
    .about__item-img--2 {
        display: none;
    }
    .section__descr {
        margin: 0 auto 25px;
        width: 235px;
    }
    .products__content {
        gap: 41px 7px;
    }
    .products__item {
        width: 150px;
    }
    .products__item-img {
        width: 150px;
        margin-bottom: 4px;
    }
    .products__item-price {
        font-size: 10px;
        margin-bottom: 6px;
    }
    .products__item-title {
        font-size: 10px;
        margin-bottom: 8px;
    }
    .products__item-text {
        margin-bottom: 17px;
    }
    .button {
        padding: 10px 22px;
        font-size: 8px;
    }    
    .steps__item-text {
        font-size: 6px;
    }

    .courses__item,
    .courses__item img {
        width: 255px;
        margin-bottom: 26px;
    }
    .products__item-text.courses-text {
        margin: 9px 0 11px;
    }
    .products__item-title.courses-title {
        font-size: 12px;
    }    

    .feedback__slider {
        width: 250px;
        margin: 0 auto;
    }
    .feedback__item {
        grid-template-columns: auto;
        text-align: center;
    }
    .feedback__item-video {
        width: 250px;
    }
    .feedback__item-img {
        width: 250px;
        margin: 0 auto 10px;
    }
    .feedback__item-btn {
        max-width: 96px;
        margin: 0 auto;
        left: 0;
        bottom: 0;
        padding: 15px 20px;
    }
    .feedback__content .swiper-pagination {
        bottom: 45px;
    }

    .certificates__slider {
        width: 200px;
    }

    .promo__text {
        margin-right: 50px;
    }
}