* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    color: #000;
}
a{
    text-decoration: none;
    color: inherit;
}

main {
    flex-grow: 1;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0) 1.04%, #f5f5f5 100%);
}

.logo {
    max-width: 100px;
}

.logo img {
    width: 100%;
}

.btn {
    border-radius: 2px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    outline: none;
    cursor: pointer;
}

.btn-primary {
    background: #1890FF;
    color: #fff;
    border: 1px solid #1890FF;
}

.btn-outline {
    border: 1px solid #d9d9d9;
    background: transparent;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.00);
    color: #595959;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    min-height: 124px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1230px;
    height: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.header-box {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.banner {
    margin-bottom: 50px;
}

.banner-item {
    background-color: #FFF1B8;
    background-image: url(../images/baner-1.png);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 68px;
    box-shadow: 0 7px 12px 0 rgba(158, 158, 163, 0.1);
    border-radius: 10px;
}

.banner-item--title {
    font-weight: 700;
    font-size: 39px;
    color: #302c34;
    max-width: 50%;
    margin: 0 0 15px 0;
}

.banner-item--subtitle {
    font-weight: 400;
    font-size: 24px;
    color: #302c34;
    max-width: 50%;
}

.main-heading {
    display: flex;
}

.footer {
    min-height: 156px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.footer-box {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.footer-logo {}

.footer-nav {
    flex-grow: 1;
}

.footer-nav__list {
    display: flex;
    list-style-type: none;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-nav__list li {
    color: #595959;

    font-size: 18px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.products {}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.products-header--title {
    font-weight: 700;
    font-size: 36px;
    padding: 0;
    margin: 0;
}

.products-header--search {
    border: 1px solid #D9D9D9;
    border-radius: 2px;
    min-width: 306px;
    height: 34px;
    padding: 5px 12px;
}

.products-header--search:focus-visible {
    border: 1px solid #D9D9D9;
    outline: none;
}

.products-header--search::placeholder {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #bfbfbf;
}

.products-wrapper {
    margin: 44px 0 90px 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 30px;
}

.products-card {
    width: calc((100% - 48px) / 3);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
    background: var(--gray---gray-1);
    border-radius: 7px;
    overflow: hidden;
}

.products-card__image {
    width: 100%;
}

.products-card__image img {
    width: 100%;
}

.products-card__desription {
    padding: 20px 24px 34px 24px;
}

.products-card__desription--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-card__desription--row:not(:last-child) {
    margin-bottom: 10px;
}

.products-card__desription--title {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 133%;
}

.products-card__desription--bage {
    font-weight: 400;
    font-size: 12px;
    line-height: 167%;
    color: #fff;
    border-radius: 2px;
    padding: 1px 8px;
    background-color: #262626;
}

.products-card__desription-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 25px;
}

.products-card__desription-info--reiting {
    font-weight: 700;
    font-size: 18px;
    line-height: 32px;
    color: #ffc107;
}

.products-card__desription-info--price {
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    color: #8c8c8c;
}

.products-card__desription-info--group {
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    color: #8c8c8c;
    position: relative;
}

.products-card__desription-info--group::before {
    content: '';
    position: absolute;
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    left: -14px;
    top: 14px;
    background-color: #8c8c8c;
}

.products-card__desription--name {
    font-weight: 400;
    font-size: 24px;
    line-height: 133%;
    margin: 0;
    min-height: 65px;
}

.products-card__desription--text {
    margin: 0;
    font-weight: 400;
    font-size: 18px;
    color: #8c8c8c;
    min-height: 65px;
}

.products-card__desription-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 30px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.products-card__desription-controls--price {
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
}

.cart-modal__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    
    align-items: center;
    justify-content: center;
    display: none;
}
.cart-modal__overlay.open{
    display: flex;
}

.cart-modal {
    max-width: 780px;
    width: 100%;
    padding: 40px 45px;
    background-color: #fff;
}

.cart-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.cart-modal__header--title {
    font-weight: 700;
    font-size: 36px;
    margin: 0;
}

.cart-modal__header--close {
    cursor: pointer;
}

.cart-modal__body {}

.cart-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}

.cart-modal__footer--price {
    border-radius: 5px;
    background-color: #262626;
    color: #fafafa;
    font-weight: 700;
    font-size: 20px;
    padding: 15px 20px;
}

.cart-modal__footer-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #d9d9d9;
}
.cart-item:not(:last-child){
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.cart-item__title {
    margin: 0;
    gap: 10px;
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
}

.cart-item__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cart-item__controls--price {
    font-weight: 700;
    font-size: 20px;
    margin-right: 47px;
    line-height: 32px;
}

.btn-controls {
    border: 1px solid #40a9ff;
    border-radius: 2px;
    color: #40a9ff;
}

.cart-item__controls--count {
    margin: 0 15px;

}

@media (max-width: 991px) {
    .banner-item {
        background-image: none;
    }

    .banner-item--title {

        max-width: 100%;
    }


    .banner-item--subtitle {

        max-width: 100%;
    }

    .products-card {
        width: calc((100% - 24px) / 2);
    }

}

@media (max-width: 768px) {
    .products-card {
        width: 100%;
    }
}