/* start base */
:root {
    --none-color: transparent;
    --white-color: #fff;
    --primary-color: #E89201;
    --bg-color: #242528;
}

body {
    display: flex;
    flex-direction: column;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.section {
    margin-bottom: 120px;
}
/* end base */
.contact-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-block__wrap {
    display: flex;
}
/* start text-info */
.text-info {
    margin: 0;
    font-size: 14px;
}

.text-info_light {
    color: var(--white-color);
}

.menu-mobile .contact-block {
    flex-direction: row;
}

.menu-mobile .contacts-block__text {
    margin-bottom: 20px;
}

.links__text {
    margin-bottom: 20px;
    text-align: center;
}

/* .text-info_abs {
    position: absolute;
    top: -100%;
    left: 0;
} */
/* end text-info */

.main__title,
.blog__title {
    margin-bottom: 40px;
}

/* start footer */
.footer {
    margin-top: auto;
}
/* end footer */

/* start list-card */
.list-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 12px;
}

.card-link {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
}

.card-link__img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-link__text-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
    min-height: 30px;
    font-weight: 600;
    text-align: center;
    background-color: var(--white-color);
    transition: color .2s linear;
}

.card-link__text {
    margin: 0;
    padding: 0;
}
/* end list-card */

/* start categories-list */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 40px;
}

.categories-list__item.active .categories-list__item-link {
    color: var(--primary-color);
}

.categories-list__item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-color);
    padding: 10px;
    color: var(--white-color);
    background-color: var(--bg-color);
    transition: color .2s linear;
}
/* end categories-list */

.add__content-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-right: 30px;
}

.add-content-top {
    display: flex;
    z-index: 1;
    border: 1px solid #262F36;
    background-color: #fff;
}

.add-content-top__img-wrap {
    position: relative;
    display: flex;
    max-width: 437px;
    /* max-height: 160px; */
    max-height: 100%;
    border-right: 1px solid #262F36;
    overflow: hidden;
}

.add-content-top__img-tag {
    position: absolute;
    z-index: 100;
    top: 10px;
    left: 10px;
    background-color: #F8DEB2;
}

.add-content-top__img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    font-size: 0;
    line-height: 0;
    object-fit: cover;
    transition: transform .2s linear;
}

.add-content-top__content-wrap {
    display: flex;
    flex-direction: column;
    padding: 33px 33px 20px 20px;
    max-width: 726px;
    width: 100%;
}

.add-content-top__title, .add-content-top__descr {
    margin: 0;
    padding: 0;
}

.add-content-top__title {
    margin-bottom: 12px;
    font-size: 16px;
    text-transform: uppercase;
    transition: color .2s linear;
}

.add-content-top__descr {
    max-width: 496px;
    font-size: 14px;
}

.add-content-top__icon {
    flex-shrink: 0;
    margin-top: auto;
    margin-left: auto;
    width: 32px;
    height: 26px;
    fill: #ea9911;
    transition: fill .2s linear, transform .2s linear;
}

.add-content-bottom {
    position: absolute;
    z-index: 0;
    width: calc(100% - 30px);
    height: 100%;
    top: 30px;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-right: 50px;
    padding-bottom: 4px;
    border: 1px solid #262F36;
    background-color: #fff;
}

.add-content-bottom__link {
    background-color: #F8DEB2;
    transition: opacity .2s linear;
}

.service .wrap-inner__right {
    max-width: 712px;
    width: 100%;
}

@media (max-width: 1280px) {
    .service .wrap-inner__right {
        max-width: 525px;
    }
}

/* start small */
@media (max-width: 991px) {
    /* start list-card */
    .list-card {
        grid-template-columns: repeat(2, 1fr);
    }
    /* end list-card */
    .footer .links {
        margin-left: 0;
    }
}
/* end small */

/* start phone */
@media (max-width: 767px) {
    /* start base */
    .section {
        margin-bottom: 80px;
    }
    /* end base */
    
    /* start list-card */
    .list-card {
        grid-template-columns: 1fr;
    }
    /* end list-card */
    
     .service .wrap-inner__right {
        max-width: 712px;
    } 
    
    .add__content-wrap {
        padding-right: 22px;
    }
    
    .add-content-top {
        flex-direction: column;
    }
    
    .add-content-top__img-wrap {
        max-width: 100%;
        border-right: none;
    }
    
    .add-content-top__content-wrap {
        flex-direction: row;
        justify-content: space-between;
        padding: 6px;
        max-width: 100%;
    }
    
    .add-content-top__title {
        max-width: 268px;
        font-weight: 500;
        font-size: 14px;
    }
    
    .add-content-top__descr {
        display: none;
    }
    
    .add-content-top__icon {
        margin: 0;
    }
    
    .add-content-bottom {
        width: calc(100% - 22px);
        top: 30px;
        padding-right: 20px;
        padding-bottom: 6px;
    } 
}
/* start phone */

/* start hover */
@media(hover: hover) {
    /* start list-card */
    .card-link:hover .card-link__text-wrap {
       color: var(--primary-color);
    }
    /* end list-card */
    
    /* start categories-list */
    .categories-list__item-link:hover {
        color: var(--primary-color);
    }
    /* end categories-list */
    
    .add-content-top:hover .add-content-top__img {
        transform: scale(1.02);
    }
    
    .add-content-top:hover .add-content-top__icon {
        fill: #262F36;
        transform: scale(1.1);
    }
    
    .add-content-top:hover .add-content-top__title {
        color: #ea9911;
    }
    
    .add-content-bottom__link:hover {
        opacity: .7;
    }
}
/* end hover */