.product-block--active {
    opacity: 1;
    visibility: visible;
}

.product-block {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.product-block__wrapper {
    width: 100%;
    border-radius: 5px;
    padding: 40px 0;
    color: var(--white);
}

.product-block__wrapper::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    border-radius: 5px;
}

.product-block__wrapper::-webkit-scrollbar-thumb {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 5px;
}

.product-block__wrapper::-webkit-scrollbar-track {
    height: 4px;
    background: var(--text);
    border-radius: 5px;
}

.product-block--active .popup__content,
.product-block--active .popup__content-normal,
.product-block--active .popup__wrapper {
    transform: translateY(0);
}

/* catalog product-block */

.product-block-top {
    margin-top: 30px;
    display: flex;
    gap: 40px;
}

.product-block-top__left {
    max-width: 40%;
    width: 100%;
}

.product-block-top__item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: white;
    position: relative;
    padding: 60% 0 0 0;
}

.product-block-top__img {
    position: absolute;
    top: 0;
    height: 100%;
    width: auto;
    mix-blend-mode: multiply;
}

.product-block-top__right {
    width: 100%;
}

.product-block-top-table {
    display: flex;
    flex-direction: column;
}

.table-wrapper table {
    width: 100%;
}

.product-block-top-table__item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    border-bottom: 1px solid #2D2D2D;
    padding-top: 5px;
    padding-bottom: 5px;
}


.product-block-top-table__title {
    color: var(--text);
}

.product-block__btn {
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 15px;
    width: 100%;
}

.product-block-bottom {
    margin-top: 60px;
}

.product-block-bottom__tabs-box {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-block-bottom__tab {
    width: max-content;
    padding: 7px 25px;
    border: 1px solid var(--gray);
    background: var(--dark-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all .3s ease;
}

.product-block-bottom__tab--active {
    color: var(--black);
    border-color: var(--yellow);
    background: var(--yellow);
}

.product-block-bottom__accordeon-box {
    margin-top: 35px;
}

.table-wrapper {
    overflow: auto;
}

.table-wrapper table tbody:first-child tr:first-child td {
    position: sticky;
    top: 0;
    color: var(--text);
    text-align: left;
    min-width: 100px;
    padding: 12px 8px;
    font-weight: 600;
}

.table-wrapper table tbody:first-child tr:first-child td {
    border-bottom: 1px solid var(--gray);
}

.table-wrapper table tbody:first-child tr:first-child td:first-child {
    padding-left: 0;
}

.table-wrapper table tr td {
    border-right: 1px solid var(--gray);
    padding: 5px 8px;
}

.table-wrapper table tr td:first-child {
    padding-left: 0;
}

.table-wrapper table tr td:last-child {
    border-right: 0;
}

.table-wrapper table tr:not(:first-child) {
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.product-block-bottom__accordeon {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.product-block-bottom__accordeon.popup-bottom__accordeon--active {
    visibility: visible;
    max-height: 3000px;
    opacity: 1;
}

/* Стили для скролла */
.table-wrapper::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 5px;
}

.table-wrapper::-webkit-scrollbar-track {
    height: 4px;
    background: var(--text);
    border-radius: 5px;
}

@media (max-width: 1150px) {

    .product-block-top {
        gap: 20px;
    }

    .product-block-bottom {
        margin-top: 50px;
    }

    .product-block__catalog-btn {
        margin-top: 20px;
    }

    .product-block-bottom__accordeon-box {
        margin-top: 20px;
    }
}

@media (max-width: 1140px) {

    .product-block-top-table {
        margin-top: 15px;
    }

    .catalog-product-block__btn {
        max-width: 100%;
    }
}

@media (max-width: 680px) {

    .product-block__catalog-btn--desk {
        display: none;
    }

    .product-block__catalog-btn--mobile {
        display: flex;
    }

    .product-block-top {
        max-width: inherit;
        display: flex;
        flex-direction: column;
    }

    .product-block-top__item {
        display: flex;
        justify-content: center;
        padding: 40% 0 0 0;
    }

    .product-block__title {
        text-align: center;
    }

    .tab--active {
        display: grid;
    }

    .mobile-product-block-tabs {
        margin-top: 30px;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: center;
    }

    .mobile-product-block-tabs__btn {
        max-width: 100%;
        width: 100%;
        padding: 10px 15px;
        border-radius: 20px;
        background: var(--green);
        color: #fff;
        border: 0;
        transition: all .3s ease;
    }

    .mobile-product-block-tabs__btn--active {
        background: var(--main);
    }

    .product-block-top__right {
        max-width: 100%;
    }

    .product-block-top__left {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-block__wrapper {
        padding: 45px 0;
        overflow: auto;
    }

    .product-block-bottom {
        margin-top: 40px;
    }

    #product-block .product-block-top__item {
        width: 100%;
    }
}

/*каталог*/

#catalog {
    margin: 0;
    padding: 75px 0 70px 0;
}

#catalog .catalog-categories-parent__link {
    color: white;
}

#catalog .catalog-categories-parent__link:hover {
    color: black;
}

.catalog__title {
    margin: 0 0 45px 0;
    line-height: 0.8;
}

.catalog-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 15px;
    width: 100%;
}

.catalog-items-item__image {
    padding-top: 100%;
    position: relative;
    margin: 0 0 20px 0;
    background: white;
}

.catalog-items-item__image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.catalog-items-item {
    display: flex;
    flex-direction: column;
}

.catalog-items-item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px 0 0 0;
    border-radius: 5px;
    background: var(--dark-gray);
    margin: 0 0 10px 0;
}

.catalog-items-item__title {
    padding: 15px;
    flex-grow: 1;
}

#catalog .catalog-items-item__link {
    padding: 8px 20px;
    color: var(--black);
}

.catalog-categories {
    width: 100%;
    margin: 0 0 45px 0;
}

.catalog-categories-child-list-item__image {
    width: 70px;
    height: 50px;
}

.catalog-categories-parent {
    width: 100%;
    margin: 0 0 20px 0;
}

.catalog-categories-parent__link {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    background: var(--dark-gray);
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.catalog-categories-parent__link:hover {
    color: var(--dark-gray);
    background: white;
}

.catalog-categories-child-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px 0;
}

.catalog-categories-child-list-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    background: white;
}

.catalog-categories .catalog-categories-child-list-item__link {
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.catalog-categories .catalog-categories-child-list-item__link:hover {
    text-decoration: underline;
}

@media (max-width: 1400px) {
    .catalog-categories-child-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1150px) {
    .catalog-categories-child-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1260px) {
    .catalog-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .catalog-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .catalog-categories-child-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 950px) {
    .catalog-categories-category {
        padding: 7px;
    }
}

@media (max-width: 900px) {
    .catalog-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .catalog-items-item__title {
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    .catalog-categories-child-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .catalog-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .catalog-categories-child-list {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 450px) {
    .catalog-items {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .catalog-items-item__title {
        font-size: 16px;
    }

    .catalog-items-item__image {
        padding-top: 60%;
    }

    .catalog-items-item__image img {
        position: absolute;
        top: 0;
        height: 100%;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.catalog-wrapper {
    display: flex;
    gap: 20px;
}

.catalog-widget-title {
    display: none;
}

.catalog-menu {
    width: 300px;
}

.catalog-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-menu-list {
    width: 300px;
}

.catalog-menu-list__switch {
    transform: rotate(0deg);
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.catalog-menu-list__switch path {
    fill: white;
}

.catalog-menu-list__switch.open {
    transform: rotate(90deg);
}

.catalog-menu-list__switch:hover path {
    fill: var(--yellow);
}

.catalog-menu-list__item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.catalog-menu li {
    background: var(--dark-gray);
    margin: 0 0 7px 0;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

.catalog-menu li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.catalog-menu li a:hover {
    color: var(--yellow);
}

.catalog-menu .child-list {
    display: none;
    margin-left: 20px;
}

.catalog-menu .child-list.open {
    display: block;
}

@media (max-width: 1024px) {

    .catalog-wrapper {
        flex-direction: column;
    }

    .catalog-widget-title {
        display: flex;
        gap: 10px;
        justify-content: center;
        align-items: center;
        padding: 15px;
        border-radius: 5px;
        font-size: 20px;
        font-weight: 600;
        background: var(--dark-gray);
    }

    .catalog-widget-title__icon {
        transform: rotate(0deg);
        display: inline-block;
        transition: all 0.3s ease;
    }

    .catalog-widget-title__icon path {
        fill: white;
    }

    .catalog-widget-title__icon:hover path {
        fill: var(--yellow);
    }

    .catalog-widget-title.open .catalog-widget-title__icon {
        transform: rotate(90deg);
    }

    .catalog-menu {
        display: none;
    }

    .catalog-menu.open {
        display: block;
        width: 100%;
    }

    .catalog-menu-list {
        width: 100%;
    }
}