/* 1. Сброс и базовые переменные */
:root {
    --color-primary-orange: #e88b3c;
    --color-primary-hover: #d6782a;
    --color-bg-light: #f6f9fc;
    --obvodka: #e4ebf0;
    --color-text-dark: #1f2a3a;
    --color-text-light: #7a8b9e;
    --color-white: #ffffff;
    --radius-card: 12px;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-orange);
    color: var(--color-white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
}

.catalog-page {
    display: flex;
    gap: 40px;
}

.catalog-sidebar {
    flex: 0 0 424px;
    background-color: var(--color-bg-light);
    border-radius: 30px;
    padding: 8px 20px;
    height: fit-content;
}

.catalog-menu__item {
    border-bottom: 1px solid var(--obvodka);
}

.catalog-menu__item:last-child {
    border-bottom: none;
}

.catalog-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
}

.catalog-menu__text {
    font-weight: 600;
    font-size: 16px;
    color: var(--siniy);
}

.catalog-menu__text:hover {
    color: var(--oranzh) !important;
}


.catalog-menu__toggle {
    width: 30px;
    height: 30px;
    border-radius: 100px;
    background: var(--obvodka);
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.750013 0.75L7 7.56818L13.25 0.75' stroke='%232C3E50' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
}

.catalog-menu__item--has-child.is-open > .catalog-menu__header .catalog-menu__toggle {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.750013 0.75L7 7.56818L13.25 0.75' stroke='%232C3E50' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.catalog-menu__sublist .catalog-menu__item--has-child.is-open > .catalog-menu__header .catalog-menu__toggle {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.750013 0.75L7 7.56818L13.25 0.75' stroke='%23e88b3c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.catalog-menu__sublist {
    display: none;
    padding: 0;
}

.catalog-menu__item--has-child.is-open > .catalog-menu__sublist {
    display: block;
}

.catalog-menu__sublist .catalog-menu__text {
    font-weight: 500;
    font-size: 16px;
    color: var(--siniy);
}

.catalog-menu__sublist .catalog-menu__header {
    justify-content: flex-start;
}

.catalog-menu__sublist .catalog-menu__header .catalog-menu__toggle {
    width: 14px;
    background-color: transparent;
    background-size: 12px;
}

.catalog-menu__sublist .catalog-menu__sublist .catalog-menu__text {
    font-weight: 400;
    font-size: 16px;
    color: var(--goluboy-2);
}

.catalog-menu__link {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.catalog-menu__link:hover {
    color: var(--color-text-dark);
}

/* Вложенное подменю */
.catalog-menu__sublist--deep {
    padding-left: 15px;
}

.catalog-menu__subitem--has-child .catalog-menu__header {
    padding: 4px 0;
}

.catalog-content {
    flex: 1;
    min-width: 0;
}

.catalog-section {
    margin-bottom: 40px;
}

.catalog-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-section__title {
    margin: 0;
    font-weight: 800;
    font-size: 28px;
    color: var(--siniy);
}

.catalog-section__all-btn {
    font-size: 14px;
    color: var(--color-primary-orange);
    border: 1px solid var(--color-primary-orange);
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.2s;
    font-weight: 500;
}

.catalog-section__all-btn:hover {
    background-color: var(--color-primary-orange);
    color: var(--color-white);
}

.catalog-content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.catalog-content__title {
    font-weight: 800;
    font-size: 52px;
    line-height: 122%;
    text-transform: uppercase;
    color: var(--siniy);
    margin: 0 0 30px;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-toggle__btn {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    border-radius: 4px;
    color: var(--goluboy);
}

.view-toggle__btn--active {
    color: var(--color-text-dark);
}

.view-toggle__btn svg {
    display: block;
    stroke: currentColor;
    fill: currentColor;
}

.catalog-section__header--level2 {
    margin-bottom: 20px;
    justify-content: flex-start;
}

.catalog-section__title--level2 {
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    color: var(--color-text-dark);
}

.catalog-menu__text--active,
.catalog-menu__sublist .catalog-menu__text--active,
.catalog-menu__sublist .catalog-menu__sublist .catalog-menu__text--active {
    color: var(--color-primary-orange);
    font-weight: 600;
}

.catalog-menu__link--active {
    color: var(--color-text-dark);
    font-weight: 600;
    pointer-events: none;
    /* На активную ссылку нельзя нажать */
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px 30px 0 0;
    height: 249px;
    overflow: hidden;
}

.product-card__image {
    object-fit: contain;
    max-height: 100%;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 20px;
    border-top: 1px solid var(--obvodka);
    padding-top: 20px;
}

.product-card__title {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card__title a {
    color: var(--color-text-dark);
}

.product-card__title a:hover {
    color: var(--color-primary-orange);
}

.product-card__specs {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-card__spec-item {
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: var(--siniy);
    align-items: baseline;
}

.product-card__spec-item:last-child {
    border-bottom: none;
}

.product-card__spec-label {
}

.product-card__spec-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #cbd5e0;
    margin: 0 2px;
    min-width: 15px;
}

.catalog-section:not(:last-child) {
    border-bottom: 1px solid var(--obvodka);
    padding-bottom: 50px;
    margin-bottom: 50px;
}

.product-card__spec-value {
    color: var(--color-text-dark);
    font-weight: 500;
    text-align: right;
}

@media (max-width: 1024px) {
    .catalog-sidebar {
        flex: 0 0 240px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .catalog-page {
        flex-direction: column;
        gap: 20px;
    }

    .catalog-sidebar {
        flex: 1 1 auto;
        width: 100%;
        padding: 10px 15px;
    }

    .catalog-content__title {
        font-weight: 800;
        font-size: 22px;
        text-transform: uppercase;
        color: var(--siniy);
        margin-bottom: 15px;
    }

    .catalog-grid {
        gap: 20px;
    }

    .catalog-section__header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .catalog-section__title {
        display: none;
    }

    .catalog-content__header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .catalog-content__controls {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .catalog-section__header--level2 {
        margin-bottom: 15px;
    }

    .catalog-pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
}


.swiper:not(.swiper-thumbs):not(.swiper-main) {
    position: relative;
    width: calc(100% + 20px);
    opacity: 0;
    transition: opacity .3s ease-in-out;
    transition-delay: .5s;
}

.airws-swiper-outer {
    overflow: hidden;
}

.airws-swiper-outer .swiper {
    overflow: visible;
}

.swiper.swiper-initialized,
.swiper:not(.swiper-thumbs):not(.swiper-main).swiper-initialized {
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    margin-top: -20px;
    transition: transform 0.3s ease;
    position: absolute;
    background: var(--obvodka);
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: translateY(-3px);
}

.swiper-button-prev:after {
    content: '' !important;
    font-size: 0 !important;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='26' viewBox='0 0 14 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.8789 23.8333L1.27285 13L11.8789 2.16663' stroke='%232C3E50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    display: block;
    background-position: center;
    background-repeat: no-repeat;
}

.swiper-button-next:after {
    content: '' !important;
    font-size: 0 !important;
    width: 100%;
    height: 100%;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='26' viewBox='0 0 14 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.12109 23.8333L12.7272 13L2.12109 2.16663' stroke='%232C3E50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.swiper.animated-translate {
    padding: 20px 10px;
    margin: -20px -10px;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex: none;
    width: 100%;
}

.swiper-container {
    position: relative;
}

.swiper-container .swiper-button-prev {
    left: -30px;
}

.swiper-container .swiper-button-next {
    right: -30px;
}

.swiper .swiper-pagination {
    bottom: 15px;
}

.swiper .swiper-pagination-bullet {
    background-color: var(--belyy);
    opacity: 1;
    margin: 0 1.5px;
}

.swiper .swiper-pagination-bullet-active {
    background: var(--siniy);
}

@media (max-width: 1310px) {
    .swiper-container .swiper-button-next {
        right: -15px;
    }

    .swiper-container .swiper-button-prev {
        left: -15px;
    }
}

@media (max-width: 1472px) {
    .swiper.animated-translate {
        padding: 16px 10px;
        margin: -16px -10px;
    }

    .swiper:not(.swiper-thumbs):not(.swiper-main) {
        width: calc(100% + 20px);
    }
}

@media (max-width: 1024px) {

}

@media (max-width: 960px) {
    .swiper.animated-translate {
        padding: 10px;
        margin: -10px;
    }

    .swiper:not(.swiper-thumbs):not(.swiper-main) {
        width: calc(100% + 20px);
    }

    .airws-sliders-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .swiper-button-next, .swiper-button-prev {
        width: 40px;
        height: 40px;
        top: 60px !important;
        transform: none !important;
        margin-top: 0 !important;
    }

    .swiper-button-prev:after, .swiper-button-next:after {
        background-size: 14px;
    }

    .airws-main {
        overflow: hidden;
    }
}
