.tc-catalog-page {
    --primary: var(--tc-primary, #0058be);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 34px 0 96px;
    overflow-x: hidden;
    overflow-x: clip;
    color: var(--tc-text, #0b1c30);
}

.tc-catalog-page *,
.tc-catalog-page *::before,
.tc-catalog-page *::after {
    min-width: 0;
    box-sizing: border-box;
}

.tc-catalog-page :where(h1, h2, h3, h4, p, li, a, span, label) {
    overflow-wrap: anywhere;
}

.tc-catalog-page :where(img, video, iframe) {
    max-width: 100%;
    height: auto;
}

.tc-catalog-page__container {
    width: min(100%, var(--tc-container, 1280px));
    max-width: 100%;
    margin: 0 auto;
    padding-right: var(--tc-gutter, 48px);
    padding-left: var(--tc-gutter, 48px);
}

.tc-catalog-page__breadcrumbs {
    margin-bottom: 18px;
}

.tc-catalog-page__hero {
    position: relative;
    min-height: 270px;
    padding: clamp(32px, 5vw, 58px);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
    align-items: center;
    gap: clamp(26px, 5vw, 64px);
    border-radius: 26px;
    background:
        radial-gradient(circle at 87% 18%, rgba(107, 216, 203, 0.28), transparent 28%),
        linear-gradient(135deg, #17283e 0%, #213b5c 58%, #0058be 145%);
    color: #fff;
    box-shadow: 0 24px 64px rgba(11, 28, 48, 0.17);
}

.tc-catalog-page__hero::after {
    position: absolute;
    right: -85px;
    bottom: -190px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.035), 0 0 0 90px rgba(255, 255, 255, 0.022);
    content: "";
}

.tc-catalog-page__hero-content,
.tc-catalog-page__hero-aside {
    position: relative;
    z-index: 1;
}

.tc-catalog-page__eyebrow {
    margin: 0 0 14px;
    color: #9fe9df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tc-catalog-page__hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.tc-catalog-page__lead {
    max-width: 750px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.tc-catalog-page__hero-aside {
    padding: 24px;
    display: grid;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.tc-catalog-page__hero-aside span {
    position: relative;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.tc-catalog-page__hero-aside span::before {
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tc-accent, #6bd8cb);
    content: "";
}

.tc-catalog-page__content {
    margin-top: clamp(38px, 6vw, 68px);
}

.tc-catalog-page__content > :first-child {
    margin-top: 0;
}

.tc-catalog-page .btn {
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    box-shadow: none;
}

.tc-catalog-page .btn-primary {
    border-color: var(--tc-primary, #0058be);
    background: var(--tc-primary, #0058be);
    color: #fff;
}

.tc-catalog-page .btn-primary:hover,
.tc-catalog-page .btn-primary:focus,
.tc-catalog-page .btn-primary:active {
    border-color: var(--tc-primary-hover, #2170e4);
    background: var(--tc-primary-hover, #2170e4);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.14);
}

.tc-catalog-page .btn-link {
    color: var(--tc-primary, #0058be);
}

/* Разделы каталога */
.tc-catalog-page :where(.catalog-section-list-tile-list, .catalog-section-list-text-list) {
    margin-bottom: 0 !important;
    padding: 0;
    row-gap: 22px;
    list-style: none;
}

.tc-catalog-page .catalog-section-list-item {
    list-style: none;
}

.tc-catalog-page .catalog-section-list-tile-img-container,
.tc-catalog-page .catalog-section-list-line-img-container {
    height: 210px;
    overflow: hidden;
    border: 1px solid rgba(198, 198, 205, 0.68);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 28, 48, 0.065);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-catalog-page .catalog-section-list-item:hover .catalog-section-list-tile-img-container,
.tc-catalog-page .catalog-section-list-item:focus-within .catalog-section-list-tile-img-container {
    border-color: rgba(0, 88, 190, 0.34);
    box-shadow: 0 18px 42px rgba(11, 28, 48, 0.11);
    transform: translateY(-3px);
}

.tc-catalog-page .catalog-section-list-item-img {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.tc-catalog-page .catalog-section-list-item-inner {
    padding: 14px 4px 0;
}

.tc-catalog-page .catalog-section-list-item-title,
.tc-catalog-page .catalog-section-list-list-title {
    margin: 0;
    color: var(--tc-text, #0b1c30);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.tc-catalog-page .catalog-section-list-item-link,
.tc-catalog-page .catalog-section-list-list-link {
    color: inherit;
    text-decoration: none;
}

.tc-catalog-page .catalog-section-list-item-link:hover,
.tc-catalog-page .catalog-section-list-item-link:focus-visible,
.tc-catalog-page .catalog-section-list-list-link:hover,
.tc-catalog-page .catalog-section-list-list-link:focus-visible {
    color: var(--tc-primary, #0058be);
    outline: none;
}

.tc-catalog-page .catalog-section-list-item-counter {
    color: var(--tc-text-muted, #596574);
    font-size: 12px;
    font-weight: 600;
}

.tc-catalog-page .catalog-section-list-item-description,
.tc-catalog-page .catalog-section-description {
    color: var(--tc-text-muted, #596574);
    line-height: 1.7;
}

.tc-catalog-page .catalog-section-description {
    padding: 22px 24px;
    border: 1px solid rgba(198, 198, 205, 0.62);
    border-radius: 16px;
    background: #fff;
}

.tc-catalog-page .catalog-section-description > :last-child {
    margin-bottom: 0;
}

/* Карточки товаров */
.tc-catalog-page .catalog-section [data-entity="items-row"] {
    row-gap: 22px;
}

.tc-catalog-page :where(.product-item-big-card, .product-item-small-card, .product-item-line-card) {
    margin-bottom: 0;
}

.tc-catalog-page .product-item-container {
    height: 100%;
}

.tc-catalog-page .product-item {
    position: relative;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(198, 198, 205, 0.68);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(11, 28, 48, 0.065);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-catalog-page .bx-no-touch .product-item-container.hover .product-item,
.bx-no-touch .tc-catalog-page .product-item-container.hover .product-item {
    position: relative;
    right: auto;
    left: auto;
    width: 100%;
    padding: 20px;
    border-color: rgba(0, 88, 190, 0.3);
    box-shadow: 0 18px 42px rgba(11, 28, 48, 0.12);
    animation: none;
    transform: translateY(-3px);
}

.tc-catalog-page .product-item-image-wrapper {
    margin-bottom: 17px;
    padding-top: 78%;
    overflow: hidden;
    border-radius: 13px;
    background: var(--tc-background, #f8f9ff);
}

.tc-catalog-page :where(.product-item-image-original, .product-item-image-alternative, .product-item-image-slide) {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.tc-catalog-page .product-item-title {
    min-height: 2.75em;
    margin: 0 0 11px;
    overflow: visible;
    color: var(--tc-text, #0b1c30);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.38;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
}

.tc-catalog-page .product-item-title a,
.tc-catalog-page .product-item-big-card .product-item-title a,
.tc-catalog-page .product-item-line-card .product-item-title a {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

.tc-catalog-page .product-item-title a:hover,
.tc-catalog-page .product-item-title a:focus-visible {
    color: var(--tc-primary, #0058be);
    outline: none;
}

.tc-catalog-page .product-item-price-container {
    margin: auto 0 12px;
    text-align: left;
    line-height: 1.3;
}

.tc-catalog-page .product-item-price-current,
.tc-catalog-page .product-item-big-card .product-item-price-current {
    color: var(--tc-text, #0b1c30);
    font-size: 20px;
    font-weight: 800;
    white-space: normal;
}

.tc-catalog-page .product-item-price-old,
.tc-catalog-page .product-item-big-card .product-item-price-old {
    color: var(--tc-text-muted, #596574);
    font-size: 13px;
}

.tc-catalog-page .product-item-button-container,
.tc-catalog-page .product-item-info-container {
    text-align: left;
}

.bx-no-touch .tc-catalog-page .product-item-container .product-item-info-container.product-item-hidden,
.tc-catalog-page .product-item-container.hover .product-item-info-container.product-item-hidden,
.tc-catalog-page .product-item-line-card .product-item-container .product-item-info-container.product-item-hidden {
    display: block;
    opacity: 1;
}

.tc-catalog-page .product-item-info-container[data-entity="props-block"],
.tc-catalog-page .product-item-info-container[data-entity="quantity-block"],
.tc-catalog-page .product-item-info-container[data-entity="buttons-block"],
.tc-catalog-page .product-item-container [id$="_prop_div"] {
    position: relative;
    z-index: 1;
}

.tc-catalog-page .product-item-properties {
    margin: 4px 0 12px;
    color: var(--tc-text-muted, #596574);
    font-size: 12px;
    line-height: 1.45;
}

.tc-catalog-page .product-item-properties dl {
    margin-bottom: 6px;
}

.tc-catalog-page .product-item-scu-container {
    margin-bottom: 11px;
    text-align: left;
}

.tc-catalog-page .product-item-scu-container-title,
.tc-catalog-page .product-item-scu-block-title {
    margin-bottom: 6px;
    color: var(--tc-text-muted, #596574);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.tc-catalog-page .product-item-scu-item-list {
    margin: -3px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.tc-catalog-page :where(.product-item-scu-item-color-container, .product-item-scu-item-text-container) {
    margin: 3px;
}

.tc-catalog-page .product-item-button-container .btn {
    width: 100%;
    margin: 0;
}

.tc-catalog-page .product-item-amount-field-container {
    max-width: 170px;
    border-color: var(--tc-border, #c6c6cd);
    border-radius: 9px;
}

.tc-catalog-page .product-item-amount-field {
    max-width: 82px;
    border-radius: 0;
}

.tc-catalog-page :where(.product-item-scu-item-text-block, .product-item-scu-item-color-block) {
    border-radius: 7px;
    outline-color: var(--tc-border, #c6c6cd);
}

.tc-catalog-page :where(.product-item-scu-item-text-container.selected .product-item-scu-item-text-block, .product-item-scu-item-color-container.selected .product-item-scu-item-color-block) {
    outline-color: var(--tc-primary, #0058be);
}

.tc-catalog-page .product-item-label-text span,
.tc-catalog-page .product-item-label-ring {
    background: var(--tc-primary, #0058be);
}

/* Умный фильтр */
.tc-catalog-filter-toggle {
    width: 100%;
    min-height: 48px;
    margin: 0 0 14px;
    padding: 11px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 88, 190, 0.28);
    border-radius: 11px;
    background: #fff;
    color: var(--tc-primary, #0058be);
    font: 700 14px/1.25 Inter, Arial, sans-serif;
    cursor: pointer;
}

.tc-catalog-filter-toggle::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.tc-catalog-filter-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.tc-catalog-page .smart-filter {
    overflow: visible;
    border: 1px solid rgba(198, 198, 205, 0.7);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(11, 28, 48, 0.06);
}

.tc-catalog-page .smart-filter-section {
    padding: 20px;
}

.tc-catalog-page .smart-filter-title {
    margin: 0 0 18px;
    color: var(--tc-text, #0b1c30);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.tc-catalog-page .smart-filter-parameters-box {
    margin-bottom: 0 !important;
    padding: 14px 0;
    border-top: 1px solid rgba(198, 198, 205, 0.48);
}

.tc-catalog-page .smart-filter-parameters-box-title {
    color: var(--tc-text, #0b1c30);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    cursor: pointer;
}

.tc-catalog-page .smart-filter-block {
    margin-top: 11px;
}

.tc-catalog-page :where(.smart-filter .form-control, .smart-filter-dropdown-block) {
    min-height: 42px;
    border: 1px solid var(--tc-border, #c6c6cd);
    border-radius: 8px;
    background: #fff;
    color: var(--tc-text, #0b1c30);
    box-shadow: none;
}

.tc-catalog-page .smart-filter .form-control:focus,
.tc-catalog-page .smart-filter-dropdown-block:focus-within {
    border-color: var(--tc-primary, #0058be);
    box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.11);
}

.tc-catalog-page .smart-filter-checkbox-text,
.tc-catalog-page .smart-filter-param-text,
.tc-catalog-page .smart-filter-dropdown-text {
    color: var(--tc-text-muted, #596574);
    font-size: 13px;
    line-height: 1.45;
}

.tc-catalog-page .smart-filter-slider-track-container {
    margin-top: 18px;
}

.tc-catalog-page .smart-filter-slider-price-bar-v,
.tc-catalog-page .smart-filter-slider-range {
    background: var(--tc-primary, #0058be);
}

.tc-catalog-page .smart-filter-slider-handle {
    border-color: var(--tc-primary, #0058be);
}

.tc-catalog-page .smart-filter-button-box .btn,
.tc-catalog-page .smart-filter-button-box input[type="submit"] {
    margin: 4px 5px 4px 0;
}

.tc-catalog-page .smart-filter-popup-result {
    z-index: 20;
    border-radius: 9px;
    box-shadow: var(--tc-shadow, 0 12px 32px rgba(11, 28, 48, 0.14));
}

/* Детальная страница */
.tc-catalog-page .bx-catalog-element {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(198, 198, 205, 0.68);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(11, 28, 48, 0.075);
}

.tc-catalog-page .product-item-detail-slider-container {
    overflow: hidden;
    border: 1px solid rgba(198, 198, 205, 0.62);
    border-radius: 17px;
    background: var(--tc-background, #f8f9ff);
}

.tc-catalog-page .product-item-detail-slider-image {
    background-size: contain;
}

.tc-catalog-page .product-item-detail-pay-block {
    padding: 24px;
    border-radius: 17px;
    background: var(--tc-surface-low, #eff4ff);
}

.tc-catalog-page .product-item-detail-price-current {
    color: var(--tc-text, #0b1c30);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.tc-catalog-page .product-item-detail-price-old {
    color: var(--tc-text-muted, #596574);
}

.tc-catalog-page .product-item-detail-buy-button {
    width: 100%;
}

.tc-catalog-page .product-item-detail-properties {
    margin: 0;
    padding: 0;
}

.tc-catalog-page .product-item-detail-properties-item {
    gap: 8px;
    color: var(--tc-text-muted, #596574);
    line-height: 1.55;
}

.tc-catalog-page .product-item-detail-tabs-container {
    margin-top: 28px;
    border-bottom-color: var(--tc-border, #c6c6cd);
}

.tc-catalog-page .product-item-detail-tabs-list {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tc-catalog-page .product-item-detail-tab {
    margin: 0;
}

.tc-catalog-page .product-item-detail-tab-link {
    padding: 11px 15px;
    display: block;
    border-radius: 9px 9px 0 0;
    color: var(--tc-text-muted, #596574);
    font-weight: 700;
    text-decoration: none;
}

.tc-catalog-page .product-item-detail-tab.active .product-item-detail-tab-link,
.tc-catalog-page .product-item-detail-tab-link:hover,
.tc-catalog-page .product-item-detail-tab-link:focus-visible {
    background: var(--tc-surface-low, #eff4ff);
    color: var(--tc-primary, #0058be);
    outline: none;
}

.tc-catalog-page .product-item-detail-tab-content {
    padding: 24px 0 8px;
    color: var(--tc-text-muted, #596574);
    line-height: 1.75;
}

.tc-catalog-page .catalog-block-header {
    margin: 34px 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(198, 198, 205, 0.7);
    color: var(--tc-text, #0b1c30);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
}

/* Боковые включаемые области */
.tc-catalog-sidebar {
    display: grid;
    gap: 16px;
}

.tc-catalog-sidebar__block:empty {
    display: none;
}

.tc-catalog-sidebar__block {
    padding: 18px;
    border: 1px solid rgba(198, 198, 205, 0.65);
    border-radius: 15px;
    background: #fff;
    color: var(--tc-text-muted, #596574);
    line-height: 1.6;
}

.tc-catalog-sidebar__block > :first-child {
    margin-top: 0;
}

.tc-catalog-sidebar__block > :last-child {
    margin-bottom: 0;
}

/* Навигация, таблицы и служебные состояния */
.tc-catalog-page :where(.modern-page-navigation, .bx-pagination) {
    margin: 30px 0 0;
}

.tc-catalog-page :where(.modern-page-navigation a, .modern-page-current, .bx-pagination a, .bx-pagination span) {
    border-radius: 8px;
}

.tc-catalog-page table {
    max-width: 100%;
}

.tc-catalog-page .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tc-catalog-page input,
.tc-catalog-page select,
.tc-catalog-page textarea,
.tc-catalog-page button {
    max-width: 100%;
}

@media (max-width: 960px) {
    .tc-catalog-page__hero {
        grid-template-columns: 1fr;
    }

    .tc-catalog-page__hero-aside {
        max-width: 560px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tc-catalog-page .catalog-section-list-tile-img-container,
    .tc-catalog-page .catalog-section-list-line-img-container {
        height: 185px;
    }
}

@media (max-width: 767px) {
    .tc-catalog-page {
        padding-top: 22px;
        padding-bottom: 72px;
    }

    .tc-catalog-page__hero {
        min-height: 0;
        padding: 30px 24px;
        border-radius: 20px;
    }

    .tc-catalog-page__hero-aside {
        grid-template-columns: 1fr;
    }

    .tc-catalog-page__content {
        margin-top: 38px;
    }

    .tc-catalog-filter-toggle {
        display: flex;
    }

    .tc-catalog-filter-ready .smart-filter:not(.is-open) {
        display: none;
    }

    .tc-catalog-page .smart-filter-section,
    .tc-catalog-page .product-item-detail-pay-block {
        padding: 18px;
    }

    .tc-catalog-page .bx-catalog-element {
        padding: 20px;
        border-radius: 18px;
    }

    .tc-catalog-page .product-item-detail-tabs-list {
        flex-direction: column;
    }

    .tc-catalog-page .product-item-detail-tab-link {
        border-radius: 8px;
    }

    .tc-catalog-page .product-item-detail-short-card-fixed,
    .tc-catalog-page .product-item-detail-tabs-container-fixed {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .tc-catalog-page :where(.product-item-big-card, .product-item-small-card, .product-item-line-card) {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .tc-catalog-page .product-item {
        padding: 18px;
    }

    .tc-catalog-page .bx-no-touch .product-item-container.hover .product-item,
    .bx-no-touch .tc-catalog-page .product-item-container.hover .product-item {
        padding: 18px;
    }

    .tc-catalog-page .product-item-image-wrapper {
        padding-top: 72%;
    }

    .tc-catalog-page .product-item-title {
        min-height: 0;
    }
}

@media (max-width: 420px) {
    .tc-catalog-page__hero {
        padding: 28px 20px;
    }

    .tc-catalog-page .catalog-section-list-item[class*="col-"] {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .tc-catalog-page .catalog-section-list-tile-img-container,
    .tc-catalog-page .catalog-section-list-line-img-container {
        height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-catalog-page *,
    .tc-catalog-page *::before,
    .tc-catalog-page *::after {
        transition: none !important;
        animation: none !important;
    }
}
