.manager-chat-page {
    margin: 0;
    background: #f4f6fb;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
}

.manager-chat-wrap {
    max-width: 640px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 12px;
}

.manager-chat-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4e8f0;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.manager-chat-head {
    padding: 16px 20px;
    border-bottom: 1px solid #e9edf5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.manager-chat-title {
    margin: 0;
    font-size: 20px;
}

.manager-chat-subtitle {
    margin: 6px 0 0;
    color: #6f7785;
    font-size: 14px;
}

.manager-chat-exit {
    border: none;
    border-radius: 10px;
    background: #212733;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    padding: 11px 14px;
    cursor: pointer;
}

.manager-chat-exit:disabled {
    opacity: .55;
    cursor: default;
}

.manager-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px;
    background: linear-gradient(180deg, #f9fbff 0%, #f2f5fb 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manager-chat-msg {
    max-width: 78%;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.manager-chat-msg--user {
    align-self: flex-start;
    color: #1f2736;
    background: #ffffff;
    border: 1px solid #dfe5f0;
}

.manager-chat-msg--manager {
    align-self: flex-end;
    color: #fff;
    background: #2f6cf3;
}

.manager-chat-msg--system {
    align-self: center;
    color: #556070;
    background: #e9eef8;
    font-size: 13px;
}

.manager-chat-msg-text {
    display: block;
}

.manager-chat-msg-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1;
    font-style: italic;
    color: #b8c0cc;
    text-align: right;
}

.manager-chat-form {
    padding: 14px 16px;
    border-top: 1px solid #e9edf5;
    display: flex;
    gap: 10px;
}

.manager-chat-input {
    flex: 1 1 auto;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #d4dbe8;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
}

.manager-chat-send {
    border: none;
    border-radius: 10px;
    background: #2f6cf3;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    padding: 0 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .manager-chat-wrap {
        padding: 0;
    }

    .manager-chat-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .manager-chat-head {
        padding: 12px;
        gap: 10px;
    }

    .manager-chat-title {
        font-size: 17px;
    }

    .manager-chat-subtitle {
        font-size: 12px;
    }

    .manager-chat-messages {
        padding: 12px;
    }

    .manager-chat-form {
        padding: 10px 12px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    touch-action: manipulation;
}

html {
    height: 100%;
}

/* Футер внизу экрана при коротком контенте; виджеты после footer — position: fixed */
body:not(.manager-chat-page) {
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body:not(.manager-chat-page) > main,
body:not(.manager-chat-page) > .home-main {
    flex: 1 0 auto;
    width: 100%;
}

body:not(.manager-chat-page) > .site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

body {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-weight: 400;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--shop-font-heading, 'Montserrat', sans-serif);
    font-weight: 400;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: none;
    height: 96px;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

/* Внутренние страницы: шапка сразу белая, тень после прокрутки */
.header.header--solid {
    background-color: #fff;
    box-shadow: none;
    transition: box-shadow 0.45s ease;
}

.header.header--solid.scrolled {
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

.header.header--theme-light {
    background-color: #fff;
    box-shadow: none;
}

.header.header--theme-light.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

.header.header--theme-light .nav-list a,
.header.header--theme-light .icon-btn,
.header.header--theme-light .nav-list .icon-btn,
.header.header--theme-light .menu-btn {
    color: #000;
}

.header.header--theme-dark {
    background-color: #111827;
    box-shadow: none;
}

.header.header--theme-dark.scrolled {
    background-color: #111827;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.28);
}

.header.header--theme-dark .nav-list a,
.header.header--theme-dark .icon-btn,
.header.header--theme-dark .nav-list .icon-btn,
.header.header--theme-dark .menu-btn {
    color: #fff;
}


.header.header--transparent-dark-scroll.scrolled {
    background-color: #111827;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.28);
}

.header.header--transparent-dark-scroll.scrolled .nav-list a,
.header.header--transparent-dark-scroll.scrolled .icon-btn,
.header.header--transparent-dark-scroll.scrolled .nav-list .icon-btn,
.header.header--transparent-dark-scroll.scrolled .menu-btn {
    color: #fff;
}


.header.header--theme-dark.scrolled .nav-list a,
.header.header--theme-dark.scrolled .icon-btn,
.header.header--theme-dark.scrolled .nav-list .icon-btn,
.header.header--theme-dark.scrolled .menu-btn {
    color: #fff;
}

.header.header--solid .nav-list a,
.header.header--solid .icon-btn,
.header.header--solid .nav-list .icon-btn,
.header.header--solid .menu-btn {
    color: #000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    line-height: 0;
}

@media (min-width: 1025px) {
    .header-inner.header-inner--logo-left-menu-center {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        height: 100%;
    }

    .header-inner.header-inner--logo-left-menu-center > * {
        grid-row: 1;
        margin-top: 0;
        margin-bottom: 0;
    }

    .header-inner.header-inner--logo-left-menu-center .logo-link {
        position: static;
        transform: none;
        left: auto;
        grid-column: 1;
        display: block;
        justify-self: start;
        align-self: center;
        line-height: 0;
    }

    .header-inner.header-inner--logo-left-menu-center .header-nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-self: center;
        align-self: center;
    }

    .header-inner.header-inner--logo-left-menu-center .header-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-self: end;
        align-self: center;
    }

    .header-inner.header-inner--logo-left-menu-center .nav-list {
        height: auto;
    }
}

.logo-link picture.logo img {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    transition: color 0.3s ease;
}

.menu-btn .menu-btn__icon {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    height: 100%;
}

.nav-list > li {
    display: flex;
    align-items: center;
}

.nav-list .icon-btn {
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    position: relative;
   /* padding-top: 10px;
    padding-bottom: 10px;*/
    height: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.nav-list a.active .dropdown-icon {
    transform: rotate(180deg);
}

.nav-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-list a:hover::before {
    opacity: 0.8;
}

.nav-list a[aria-current="page"]::before {
    opacity: 1;
}

.nav-item-dropdown {
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.dropdown-menu {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.dropdown-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.dropdown-inner.catalog-dropdown-inner {
    align-items: start;
}

@media (max-width: 1519px) {
    .header-inner,
    .dropdown-inner,
    .catalog-page,
    .blog-page,
    .product-page-inner,
    .site-footer__inner {
        padding-left: 80px;
        padding-right: 80px;
    }
}

/* Каталог: родитель жирным, под ним дочерние 1-го уровня */
.catalog-menu-block {
    margin-bottom: 32px;
}

.catalog-menu-block:last-child {
    margin-bottom: 0;
}

.catalog-menu-parent {
    display: block;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-weight: 700;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    margin-bottom: 14px;
    line-height: 1.3;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.catalog-menu-parent:hover {
    color: #000;
    opacity: 0.85;
}

.catalog-menu-count {
    margin-left: 4px;
    color: #b9b9b9;
    font-weight: 400;
}

.catalog-menu-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-menu-children li {
    margin-bottom: 12px;
}

.catalog-menu-children li:last-child {
    margin-bottom: 0;
}

.catalog-menu-children li a {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    text-decoration: none;
}

.catalog-menu-children li a:hover {
    color: #000;
    text-decoration: underline;
}

.catalog-menu-empty {
    text-align: center;
    color: #666;
    font-size: 15px;
}

.dropdown-column h4 {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 40px;
}

.dropdown-column ul {
    list-style: none;
}

.dropdown-column ul li {
    margin-bottom: 20px;
}

.dropdown-column ul li a {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    text-decoration: none;
}

.dropdown-column ul li a:hover {
    color: #000;
    text-decoration: underline;
}

.header.scrolled .dropdown-menu,
.header.scrolled .dropdown-menu-small {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.dropdown-menu-small {
    position: absolute;
    width: 250px;
    left: 0;
    padding: 20px 30px;
    top: calc(100% + 28px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.dropdown-menu-small.show {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

.dropdown-inner-small ul {
    list-style: none;
    padding-top: 20px;
}

.dropdown-inner-small ul li {
    margin-bottom: 20px;
}

.dropdown-inner-small ul li a {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 0;
    text-decoration: none;
    height: auto;
}

.dropdown-inner-small ul li a:hover {
    color: #000;
    text-decoration: underline;
}

.dropdown-inner-small ul li a::before {
    display: none;
}

.header-info-dropdown-empty {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.45;
    padding-right: 8px;
}

.logo-link picture.logo {
    display: none;
    line-height: 0;
}

.logo-link picture.logo--dark {
    display: inline-block;
}

.logo-link picture.logo img {
    height: var(--shop-header-logo-height-desktop, 50px);
    width: auto;
    filter: none !important;
    transition: opacity 0.25s ease;
}

/* Светлая версия логотипа: тёмный текст/иконки в шапке */
.header.scrolled .logo-link picture.logo--light,
.header.header--solid .logo-link picture.logo--light,
.header.header--theme-light .logo-link picture.logo--light,
.header.header--over-light-hero:not(.scrolled) .logo-link picture.logo--light,
.header.header--transparent-dark-scroll.header--over-light-hero:not(.scrolled) .logo-link picture.logo--light {
    display: inline-block !important;
}

.header.scrolled .logo-link picture.logo--dark,
.header.header--solid .logo-link picture.logo--dark,
.header.header--theme-light .logo-link picture.logo--dark,
.header.header--over-light-hero:not(.scrolled) .logo-link picture.logo--dark,
.header.header--transparent-dark-scroll.header--over-light-hero:not(.scrolled) .logo-link picture.logo--dark {
    display: none !important;
}

/* Тёмная версия логотипа: белый текст/иконки */
.header.header--theme-dark .logo-link picture.logo--light,
.header.header--transparent-dark-scroll.scrolled .logo-link picture.logo--light {
    display: none !important;
}

.header.header--theme-dark .logo-link picture.logo--dark,
.header.header--transparent-dark-scroll.scrolled .logo-link picture.logo--dark {
    display: inline-block !important;
}

.header.scrolled .nav-list a,
.header.scrolled .icon-btn,
.header.scrolled .nav-list .icon-btn,
.header.scrolled .menu-btn {
    color: #000;
}

/* Главная: светлый слой Hero — шапка поверх яркого фона читается в тёмных тонах */
.header.header--over-light-hero:not(.scrolled) .nav-list a,
.header.header--over-light-hero:not(.scrolled) .icon-btn,
.header.header--over-light-hero:not(.scrolled) .nav-list .icon-btn,
.header.header--over-light-hero:not(.scrolled) .menu-btn {
    color: #111827;
}

.header.header--over-light-hero:not(.scrolled) .icon-btn.is-favorites-active {
    color: #e53935;
}

.header.header--theme-light.header--over-light-hero:not(.scrolled) .nav-list a,
.header.header--theme-light.header--over-light-hero:not(.scrolled) .icon-btn,
.header.header--theme-light.header--over-light-hero:not(.scrolled) .nav-list .icon-btn,
.header.header--theme-light.header--over-light-hero:not(.scrolled) .menu-btn {
    color: #000;
}

.header.header--theme-dark.header--over-light-hero:not(.scrolled) .nav-list a,
.header.header--theme-dark.header--over-light-hero:not(.scrolled) .icon-btn,
.header.header--theme-dark.header--over-light-hero:not(.scrolled) .nav-list .icon-btn,
.header.header--theme-dark.header--over-light-hero:not(.scrolled) .menu-btn {
    color: #fff;
}

.header.header--transparent-dark-scroll.header--over-light-hero:not(.scrolled) .nav-list a,
.header.header--transparent-dark-scroll.header--over-light-hero:not(.scrolled) .icon-btn,
.header.header--transparent-dark-scroll.header--over-light-hero:not(.scrolled) .nav-list .icon-btn,
.header.header--transparent-dark-scroll.header--over-light-hero:not(.scrolled) .menu-btn {
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.icon-btn-cart {
    position: relative;
}
.icon-cart-bag {
    width: 24px;
    height: 24px;
    display: block;
}
.icon-btn-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    border: none;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.icon-btn-badge[hidden] {
    display: none !important;
}

.icon-btn:hover {
    transform: scale(1.1);
}


.icon {
    display: block;
}

/* Демо-витрина: промо покупки скрипта вместо cookie-баннера */
.site-demo-promo {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1090;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 22px;
    border-radius: 12px;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.4;
    transition: opacity 0.25s ease;
}

.site-demo-promo:hover {
    opacity: 1;
}

.site-demo-promo__text {
    margin: 0;
    text-align: center;
}

.site-demo-promo__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-demo-promo__buy:hover {
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.site-demo-promo__buy:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .site-demo-promo {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px 16px;
    }

    .site-demo-promo__text {
        font-size: 13px;
    }
}

.site-cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1090;
    width: min(420px, calc(100vw - 40px));
    padding: 20px 48px 20px 20px;
    border-radius: 0;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    line-height: 1.45;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-cookie-banner.is-dismissed {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.site-cookie-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-cookie-banner__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-cookie-banner__text {
    margin: 0 0 16px;
}

.site-cookie-banner__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-cookie-banner__link:hover {
    color: #fff;
    opacity: 0.9;
}

.site-cookie-banner__agree {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-cookie-banner__agree:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.site-cookie-banner__agree:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .site-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding-right: 44px;
    }
}

.site-message-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2f80ed 0%, #1f5fbf 100%);
    box-shadow: 0 10px 28px rgba(31, 95, 191, 0.35);
    cursor: pointer;
    z-index: 1100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-message-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(31, 95, 191, 0.42);
}

.site-message-fab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.site-message-fab-icon {
    display: block;
    width: 30px;
    height: 30px;
}

.site-message-fab-icon--close {
    display: none;
}

.site-message-fab.is-chat-open .site-message-fab-icon--chat {
    display: none;
}

.site-message-fab.is-chat-open .site-message-fab-icon--close {
    display: block;
}

.site-message-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.site-chat-widget {
    --site-chat-control-radius: 8px;
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: min(360px, calc(100vw - 32px));
    height: min(520px, calc(100vh - 160px));
    display: none;
    flex-direction: column;
    border-radius: var(--site-chat-control-radius);
    background: #fff;
    box-shadow: 0 14px 48px rgba(22, 36, 66, 0.24);
    z-index: 1101;
    overflow: hidden;
    opacity: 0;
    transform-origin: center center;
    --chat-genie-x: 28px;
    --chat-genie-y: 72px;
    transform: translate(var(--chat-genie-x), var(--chat-genie-y)) scale(0.12, 0.05);
    transition: opacity 0.36s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.46s cubic-bezier(0.2, 0.72, 0.12, 1);
    will-change: transform, opacity;
}

.site-chat-widget.is-open {
    opacity: 1;
    transform: translate(0, 0) scale(1, 1);
    border-radius: var(--site-chat-control-radius);
}

.site-chat-widget.is-closing {
    opacity: 0;
    transform: translate(var(--chat-genie-x), var(--chat-genie-y)) scale(0.12, 0.05);
    border-radius: var(--site-chat-control-radius);
}

.site-chat-head {
    min-height: 56px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e7edf6;
    background: linear-gradient(135deg, #2f80ed 0%, #1f5fbf 100%);
    color: #fff;
    flex-shrink: 0;
}

.site-chat-close {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -6px -8px -6px 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-chat-close:hover,
.site-chat-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}

.site-chat-close svg {
    display: block;
}

.site-chat-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-chat-title {
    font-size: 14px;
}

.site-chat-subtitle {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.9;
}

.site-chat-messages {
    flex: 1;
    overflow: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fbff;
}

.site-chat-msg {
    max-width: 86%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
}

.site-chat-msg-text {
    display: block;
}

.site-chat-msg-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1;
    font-style: italic;
    color: #b8c0cc;
    text-align: right;
}

.site-chat-msg--bot {
    align-self: flex-start;
    background: #e9f2ff;
    color: #223149;
}

.site-chat-msg--bot a {
    color: #1f5fbf;
    text-decoration: underline;
    font-weight: 500;
    word-break: break-word;
}

.site-chat-msg--typing {
    font-style: italic;
    opacity: 0.8;
}

.site-chat-msg--user {
    align-self: flex-end;
    background: #2f80ed;
    color: #fff;
}

.site-chat-msg--system {
    align-self: center;
    max-width: 92%;
    background: #4a4f57;
    color: #f2f4f7;
    font-size: 11px;
    font-style: italic;
    text-align: center;
    padding: 6px 10px;
    border-radius: 10px;
}

.site-chat-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #e7edf6;
    background: #fff;
}

.site-chat-call-manager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d6deeb;
    border-radius: var(--site-chat-control-radius, 8px);
    background: #f8fafc;
    color: #2f80ed;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-chat-call-manager:hover {
    background: #eef4ff;
    border-color: #b8c9e8;
}

.site-chat-call-manager:focus-visible {
    outline: 2px solid #2f80ed;
    outline-offset: 2px;
}

.site-chat-call-manager[hidden] {
    display: none;
}

.site-chat-call-manager:disabled {
    cursor: default;
}

.site-chat-call-manager.is-waiting:hover,
.site-chat-call-manager.is-connected:hover {
    background: #f8fafc;
    border-color: #d6deeb;
}

.site-chat-call-manager.is-connected {
    background: #ecfdf3;
    border-color: #86efac;
    color: #16a34a;
}

.site-chat-call-manager__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-chat-call-manager__spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d6deeb;
    border-top-color: #2f80ed;
    border-radius: 50%;
    animation: site-chat-call-manager-spin 0.7s linear infinite;
}

.site-chat-call-manager.is-waiting .site-chat-call-manager__icon {
    display: none;
}

.site-chat-call-manager.is-waiting .site-chat-call-manager__spinner {
    display: block;
}

@keyframes site-chat-call-manager-spin {
    to {
        transform: rotate(360deg);
    }
}

.site-chat-call-manager img {
    display: block;
    width: 22px;
    height: 22px;
}

.site-chat-input {
    min-height: 38px;
    border: 1px solid #d6deeb;
    border-radius: var(--site-chat-control-radius, 8px);
    padding: 0 10px;
    font-size: 13px;
    font-family: inherit;
}

.site-chat-send {
    min-height: 38px;
    border: none;
    border-radius: var(--site-chat-control-radius, 8px);
    background: #2f80ed;
    color: #fff;
    font-size: 13px;
    padding: 0 12px;
    cursor: pointer;
}

body.site-chat-mobile-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-chat-widget {
        inset: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        max-height: none;
        z-index: 1200;
        box-shadow: none;
        border-radius: 0;
        --chat-genie-x: 0;
        --chat-genie-y: 0;
        transition: opacity 0.28s ease;
    }

    .site-chat-widget.is-open,
    .site-chat-widget.is-closing {
        border-radius: 0;
    }

    .site-chat-widget.is-open,
    .site-chat-widget.is-closing {
        transform: none;
    }

    .site-chat-widget.is-closing {
        opacity: 0;
    }

    .site-chat-head {
        min-height: 56px;
        padding: calc(10px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) 10px calc(14px + env(safe-area-inset-left, 0px));
    }

    .site-chat-close {
        display: inline-flex;
    }

    .site-chat-form {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .site-message-fab.is-chat-open {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 1024px) {
    .dropdown-inner.catalog-dropdown-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 32px;
    }

    .menu-btn {
        display: block;
    }
    
    .nav-list {
        display: none;
    }
    
    .logo-link {
        position: static;
        order: 2;
        transform: none;
    }
    
    .header-nav {
        order: 1;
    }
    
    .header-actions {
        order: 3;
    }
    
    .logo-link picture.logo img {
        height: var(--shop-header-logo-height-mobile, 28px);
        max-height: var(--shop-header-logo-height-mobile, 28px);
        max-width: min(34vw, 120px);
        width: auto;
        object-fit: contain;
    }

    .header-inner {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .header-actions {
        gap: calc(8px / 3);
    }
    
    .hero {
        height: 100vh;
        max-height: none;
    }

    /* Мобильное меню: панель слева + затемнение (off-canvas) */
    #catalog-dropdown {
        display: none !important;
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1004;
        background: rgba(17, 24, 39, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .mobile-nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1005;
        width: min(100vw - 56px, 360px);
        max-width: 100%;
        background: #fff;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-nav-drawer.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 16px 22px;
        border-bottom: 1px solid #eceef2;
        min-height: 56px;
    }

    .mobile-nav-drawer__title {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #64748b;
    }

    .mobile-nav-drawer__close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -8px -10px -8px 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: #111827;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-drawer__close:hover {
        background: #f1f5f9;
    }

    .mobile-nav-drawer__body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-nav-accordion {
        border-bottom: 1px solid #eceef2;
    }

    .mobile-nav-accordion--nested {
        border-bottom: none;
    }

    .mobile-nav-accordion--nested + .mobile-nav-accordion--nested {
        margin-top: 0;
    }

    .mobile-nav-accordion__summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 22px;
        font-size: 15px;
        font-weight: 600;
        color: #111827;
        cursor: pointer;
        user-select: none;
    }

    .mobile-nav-accordion__summary::-webkit-details-marker {
        display: none;
    }

    .mobile-nav-accordion__summary--row {
        padding: 12px 16px 12px 22px;
        font-weight: 500;
    }

    .mobile-nav-accordion__label {
        flex: 1;
    }

    .mobile-nav-accordion__link {
        flex: 1;
        text-align: left;
        text-decoration: none;
        color: #111827;
        font-size: 15px;
        font-weight: 600;
        padding: 4px 0;
        min-width: 0;
    }

    .mobile-nav-accordion__link:hover {
        color: #334155;
    }

    .mobile-nav-accordion__count {
        margin-left: 6px;
        font-weight: 400;
        color: #94a3b8;
        font-size: 14px;
    }

    .mobile-nav-accordion__caret {
        flex-shrink: 0;
        width: 10px;
        height: 10px;
        border-right: 2px solid #94a3b8;
        border-bottom: 2px solid #94a3b8;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform 0.25s ease;
    }

    details.mobile-nav-accordion[open] > .mobile-nav-accordion__summary > .mobile-nav-accordion__caret {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    details.mobile-nav-accordion--nested[open] > .mobile-nav-accordion__summary > .mobile-nav-accordion__caret {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    .mobile-nav-accordion__content {
        padding: 0 0 12px;
    }

    .mobile-nav-accordion--nested .mobile-nav-accordion__summary--row {
        background: #f8fafc;
        border-radius: 0;
    }

    .mobile-nav-sublist {
        list-style: none;
        margin: 0;
        padding: 4px 0 8px 0;
    }

    .mobile-nav-sublist--padded {
        padding: 4px 0 14px 0;
    }

    .mobile-nav-sublist li {
        margin: 0;
    }

    .mobile-nav-sublist a {
        display: block;
        padding: 11px 22px 11px 32px;
        font-size: 14px;
        color: #475569;
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .mobile-nav-sublist a:hover {
        background: #f8fafc;
        color: #0f172a;
    }

    .mobile-nav-leaf {
        display: block;
        padding: 16px 22px;
        font-size: 15px;
        font-weight: 600;
        color: #111827;
        text-decoration: none;
        border-bottom: 1px solid #eceef2;
        transition: background 0.15s ease;
    }

    .mobile-nav-leaf:hover {
        background: #f8fafc;
    }

    .mobile-nav-leaf--solo {
        font-weight: 600;
    }

    .mobile-nav-leaf[aria-current="page"] {
        background: #eff6ff;
        color: #1e40af;
    }

    .mobile-nav-empty {
        margin: 0;
        padding: 12px 22px 20px;
        font-size: 14px;
        color: #64748b;
    }

    .menu-btn .menu-btn__icon--close {
        display: none;
    }

    .menu-btn.is-open .menu-btn__icon--bars {
        display: none;
    }

    .menu-btn.is-open .menu-btn__icon--close {
        display: block;
    }
}

body.mobile-nav-is-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    body.mobile-nav-is-open .site-message-fab {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (min-width: 1025px) {
    .mobile-nav-backdrop,
    .mobile-nav-drawer {
        display: none !important;
        pointer-events: none !important;
    }

    body.mobile-nav-is-open {
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .dropdown-inner.catalog-dropdown-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dropdown-menu {
        padding: 28px 0;
    }
}

.hero {
    height: 56.25vw;
    max-height: 100vh;
    background-image: url('../img/main.webp');
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 130px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 2px;
}

/* Конструктор главной: пресет Hero на всю ширину */
.home-hero-fullbleed {
    position: relative;
    width: 100%;
    min-height: var(--hero-min-height, 100vh);
    padding-top: var(--hero-pad-top, 0px);
    padding-bottom: var(--hero-pad-bottom, 0px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-fullbleed--height-content {
    min-height: auto;
}

.home-hero-fullbleed__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #e8ecf1;
}

.home-hero-fullbleed__media--fallback {
    background: linear-gradient(160deg, #cbd5e1 0%, #94a3b8 100%);
}

.home-hero-fullbleed__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-hero-fullbleed__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-hero-fullbleed__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-hero-fullbleed__overlay--dark {
    background: #000;
}

.home-hero-fullbleed__overlay--light {
    background: #fff;
}

.home-hero-fullbleed__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-fullbleed--content-left {
    justify-content: center;
}

.home-hero-fullbleed--content-left .home-hero-fullbleed__content {
    text-align: left;
}

.home-hero-fullbleed--content-right {
    justify-content: center;
}

.home-hero-fullbleed--content-right .home-hero-fullbleed__content {
    text-align: right;
}

.home-hero-fullbleed__content--light-text .home-hero-fullbleed__subtitle,
.home-hero-fullbleed__content--light-text .home-hero-fullbleed__title {
    color: #fff;
}

.home-hero-fullbleed__content--dark-text .home-hero-fullbleed__subtitle,
.home-hero-fullbleed__content--dark-text .home-hero-fullbleed__title {
    color: #111827;
}

.home-hero-fullbleed__subtitle {
    font-size: var(--hero-subtitle-size, 28px);
    font-weight: var(--hero-subtitle-weight, 400);
    text-transform: var(--hero-subtitle-transform, uppercase);
    letter-spacing: clamp(2px, 0.35vw, 4px);
    margin-bottom: var(--hero-title-body-gap, clamp(8px, 1.5vw, 18px));
}

.home-hero-fullbleed__title {
    margin: 0;
    font-size: var(--hero-title-size, 64px);
    font-weight: var(--hero-title-weight, 600);
    text-transform: var(--hero-title-transform, uppercase);
    letter-spacing: clamp(1px, 0.2vw, 2px);
    line-height: 1.08;
}

.home-hero-fullbleed__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 64px;
    padding: 14px 30px;
    border-radius: 0;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.home-hero-fullbleed__content--light-text .home-hero-fullbleed__cta {
    background: #ffffff;
    border-color: #ffffff;
    color: #111827;
}

.home-hero-fullbleed__content--dark-text .home-hero-fullbleed__cta {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.home-hero-fullbleed__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

@media (max-width: 900px) {
    .home-hero-fullbleed--content-left .home-hero-fullbleed__content,
    .home-hero-fullbleed--content-right .home-hero-fullbleed__content {
        text-align: center;
    }
}

.home-builder-block:last-child.home-builder-block--hero:not(.home-builder-responsive-spacing--margin) {
    margin-bottom: 48px;
}

/* Конструктор главной: баннерные пресеты */
.home-main {
    display: block;
}

/* Hero — на всю ширину; остальные блоки конструктора — в колонку 1440px + боковые поля на узких экранах */
.home-builder-block:not(.home-builder-block--hero) {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Заголовки, кнопка, блог, FAQ, отзывы, текстовые колонки: цвет фона секции на всю ширину вьюпорта; контент — во внутренней колонке */
.home-builder-block.home-builder-block--heading-text,
.home-builder-block.home-builder-block--heading-button,
.home-builder-block.home-builder-block--blog,
.home-builder-block.home-builder-block--faq,
.home-builder-block.home-builder-block--reviews,
.home-builder-block.home-builder-block--zero,
.home-builder-block.home-builder-block--hero-content,
.home-builder-block.home-builder-block--text-columns {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.home-blog-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.home-blog-block__grid {
    display: grid;
    gap: clamp(18px, 2.5vw, 28px);
    align-items: stretch;
}

.home-blog-block__grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-blog-block__grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-blog-block__grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-blog-block__empty {
    margin: 0;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

.home-blog-block__slider {
    padding-left: 44px;
    padding-right: 44px;
}

.home-gallery-slider__slide .home-blog-block__slide-card {
    box-sizing: border-box;
    height: 100%;
    display: flex;
}

.home-blog-block__slide-card .blog-card {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

/* Блог на главной: без рамки/тени, без анонса и кнопки — только дата и заголовок */
.home-blog-block__card.blog-card {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.home-blog-block__card .blog-card-body {
    padding: 0 15% 0 0;
    margin-top: clamp(18px, 2.8vw, 32px);
    gap: clamp(14px, 2vw, 22px);
}

.home-blog-block__card .blog-card-date {
    margin: 0;
}

.home-blog-block__card .blog-card-title {
    font-size: clamp(17px, 1.95vw, 24px);
    font-weight: 400;
    line-height: 1.35;
}

.home-blog-block__card .blog-card-image-wrap .blog-card-image,
.home-blog-block__card .blog-card-image-wrap .blog-card-image--empty {
    transition: transform 0.5s ease;
    will-change: transform;
}

.home-blog-block__card .blog-card-image-link:hover .blog-card-image,
.home-blog-block__card .blog-card-image-link:focus-visible .blog-card-image,
.home-blog-block__card .blog-card-image-link:hover .blog-card-image--empty,
.home-blog-block__card .blog-card-image-link:focus-visible .blog-card-image--empty {
    transform: scale(1.08);
}

@media (max-width: 980px) {
    .home-blog-block__grid--cols-4,
    .home-blog-block__grid--cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-blog-block__grid--cols-4,
    .home-blog-block__grid--cols-3,
    .home-blog-block__grid--cols-2 {
        grid-template-columns: 1fr;
    }

    .home-blog-block__slider {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.home-faq-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 864px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.home-hero-content {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.home-hero-content__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #e8ecf1;
}

.home-hero-content__media--fallback {
    background: linear-gradient(160deg, #cbd5e1 0%, #94a3b8 100%);
}

.home-hero-content__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-hero-content__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-hero-content__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-hero-content__overlay--dark {
    background: #000;
}

.home-hero-content__overlay--light {
    background: #fff;
}

.home-hero-content--height-vh-100,
.home-hero-content--height-min-75,
.home-hero-content--height-min-50 {
    min-height: var(--hero-content-min-height, 100vh);
}

.home-hero-content--height-content {
    min-height: auto;
}

.home-hero-content__inner {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.home-hero-content__title {
    margin: 0;
    line-height: 1.2;
    font-size: var(--hero-content-title-size, 48px);
}

.home-hero-content__body {
    margin: 0 0 28px;
    line-height: 1.65;
    max-width: 720px;
    font-size: var(--hero-content-body-size, 18px);
}

.home-hero-content__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.home-faq-block__title {
    margin: 0 0 var(--faq-title-body-gap, 24px);
    line-height: 1.25;
    color: #0f172a;
    text-align: center;
    font-size: var(--faq-title-size, 32px);
    font-weight: var(--faq-title-weight, 700);
    text-transform: var(--faq-title-transform, none);
}

.home-faq-block__empty {
    margin: 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.home-reviews-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.home-reviews-block__title {
    margin: 0 0 var(--reviews-title-body-gap, 24px);
    line-height: 1.25;
    color: #0f172a;
    text-align: center;
    font-size: var(--reviews-title-size, 32px);
    font-weight: var(--reviews-title-weight, 700);
    text-transform: var(--reviews-title-transform, none);
}

.home-reviews-block__empty {
    margin: 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.home-reviews-block__slider {
    margin-top: 0;
}

.home-zero-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-zero-block__empty {
    margin: 0;
    padding: 24px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.home-review-card {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.home-review-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-review-card__photo,
.home-review-card__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.home-review-card__photo {
    display: block;
    object-fit: cover;
    background: #e2e8f0;
}

.home-review-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.home-review-card__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-review-card__name {
    margin: 0;
    color: #0f172a;
    font-size: var(--reviews-name-size, 16px);
    font-weight: var(--reviews-name-weight, 600);
    text-transform: var(--reviews-name-transform, none);
    line-height: 1.3;
}

.home-review-card__stars {
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.home-review-card__star {
    color: #cbd5e1;
    font-size: 16px;
}

.home-review-card__star.is-filled {
    color: #f59e0b;
}

.home-review-card__text {
    margin: 0;
    color: #334155;
    font-size: var(--reviews-text-size, 15px);
    font-weight: var(--reviews-text-weight, 400);
    text-transform: var(--reviews-text-transform, none);
    line-height: 1.6;
}

.home-faq-block__list {
    display: flex;
    flex-direction: column;
}

.home-faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.home-faq-item__trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: var(--faq-question-size, 16px);
    font-weight: var(--faq-question-weight, 600);
    text-transform: var(--faq-question-transform, none);
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
}

.home-faq-item__trigger:focus-visible {
    outline: 2px solid #2f80ed;
    outline-offset: 2px;
}

.home-faq-item__question {
    flex: 1;
    min-width: 0;
}

.home-faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    font-size: 22px;
    line-height: 1;
    color: #2f80ed;
    text-align: center;
}

.home-faq-item__body {
    display: none;
    padding: 0 0 20px;
}

.home-faq-item.is-open .home-faq-item__body {
    display: block;
}

.home-faq-item__answer {
    color: #475569;
    font-size: var(--faq-answer-size, 15px);
    font-weight: var(--faq-answer-weight, 400);
    text-transform: var(--faq-answer-transform, none);
    line-height: 1.65;
}

.home-badges-block__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.home-badges-block__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--home-badge-gap, 10px);
    justify-content: center;
}

.home-badges-block__empty {
    margin: 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--home-badge-py, 8px) var(--home-badge-px, 14px);
    border-radius: 999px;
    background: var(--home-badge-bg, #eef4ff);
    color: var(--home-badge-color, #0f172a);
    font-size: var(--home-badge-fs, 14px);
    font-weight: var(--home-badge-fw, 600);
    text-transform: var(--home-badge-tt, none);
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.home-builder-block--heading-text.home-heading-text {
    display: block;
}

.home-heading-text__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.home-heading-text__text {
    font-size: var(--home-heading-fs, 40px);
}

.home-builder-block--heading-button.home-heading-button-section {
    display: block;
}

.home-heading-button-section__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.home-heading-button {
    display: inline-block;
    box-sizing: border-box;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    border-style: solid;
    border-width: 1px;
}

a.home-heading-button:hover {
    opacity: 0.92;
}

.home-heading-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.home-heading-button--static {
    cursor: default;
}

.home-heading-button--bg-white {
    background: #ffffff;
    color: #111827;
}

.home-heading-button--bg-black {
    background: #111827;
    color: #ffffff;
}

.home-heading-button--bg-transparent {
    background: transparent;
}

.home-heading-button--bg-transparent.home-heading-button--border-black {
    color: #111827;
}

.home-heading-button--bg-transparent.home-heading-button--border-white {
    color: #ffffff;
}

.home-heading-button--bg-transparent.home-heading-button--border-none {
    color: #111827;
}

.home-heading-button--border-none {
    border: none;
}

.home-heading-button--border-black {
    border-color: #111827;
}

.home-heading-button--border-white {
    border-color: #ffffff;
}

.home-builder-block--product-gallery {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

@media (max-width: 1519px) {
    .home-builder-block:not(.home-builder-block--hero):not(.home-builder-block--product-gallery):not(.home-builder-block--text-columns):not(.home-builder-block--heading-text):not(.home-builder-block--heading-button):not(.home-builder-block--blog):not(.home-builder-block--faq):not(.home-builder-block--reviews):not(.home-builder-block--zero):not(.home-builder-block--hero-content):not(.home-builder-block--two-squares):not(.home-builder-block--three-squares):not(.home-builder-block--two-rectangles-16x9):not(.home-builder-block--l-shape):not(.home-builder-block--l-shape-reverse):not(.home-builder-block--single-wide) {
        padding-left: 80px;
        padding-right: 80px;
    }

    .home-builder-block--two-squares,
    .home-builder-block--three-squares,
    .home-builder-block--two-rectangles-16x9,
    .home-builder-block--l-shape,
    .home-builder-block--l-shape-reverse,
    .home-builder-block--single-wide {
        padding-left: 80px;
        padding-right: 80px;
    }

    .home-product-gallery__inner {
        padding-left: 80px;
        padding-right: 80px;
    }

    .home-text-columns__inner {
        padding-left: 80px;
        padding-right: 80px;
    }

    .home-heading-text__inner,
    .home-heading-button-section__inner,
    .home-blog-block__inner,
    .home-faq-block__inner,
    .home-reviews-block__inner,
    .home-hero-content__inner,
    .home-badges-block__inner {
        padding-left: 80px;
        padding-right: 80px;
    }
}

.home-main .home-builder-block:not(:first-child) {
    margin-top: 96px;
}

/* Фон и оверлей задаются на .home-builder-block--product-gallery (см. также классы __bg / __overlay на секции) */
.home-builder-block--product-gallery.home-product-gallery {
    max-width: none;
    width: 100%;
    margin: 0;
}

.home-product-gallery__inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
}

.home-builder-block--product-gallery.home-product-gallery__bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.home-builder-block--product-gallery.home-product-gallery__bg--fixed {
    background-attachment: fixed;
}

.home-builder-block--product-gallery.home-product-gallery__bg--none {
    background-color: #fff;
}

.home-builder-block--product-gallery.home-product-gallery__overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-builder-block--product-gallery.home-product-gallery__overlay--dark::after {
    background: #000;
    opacity: var(--gallery-overlay-opacity, 0.35);
}

.home-builder-block--product-gallery.home-product-gallery__overlay--light::after {
    background: #fff;
    opacity: var(--gallery-overlay-opacity, 0.35);
}

.home-builder-block--product-gallery.home-product-gallery__overlay--transparent::after {
    opacity: 0;
    background: transparent;
}

.home-product-gallery__head {
    margin-bottom: 48px;
    text-align: center;
}

.home-product-gallery__subtitle {
    margin: 0 0 10px;
    color: #94a3b8;
    font-size: var(--gallery-subtitle-size, 14px);
    font-weight: var(--gallery-subtitle-weight, 500);
    letter-spacing: 0.08em;
    text-transform: var(--gallery-subtitle-transform, uppercase);
}

.home-product-gallery__title {
    margin: 0 0 var(--gallery-title-body-gap, 0);
    font-size: var(--gallery-title-size, clamp(24px, 3vw, 40px));
    font-weight: var(--gallery-title-weight, 300);
    line-height: 1.2;
    text-transform: var(--gallery-title-transform, uppercase);
}

.home-product-gallery--light-text .home-product-gallery__subtitle {
    color: #cbd5e1;
}

.home-product-gallery--light-text .home-product-gallery__title {
    color: #fff;
}

.home-product-gallery__cta-wrap {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Светлый оверлей / тёмный текст секции — белый фон, тёмная обводка и текст */
.home-product-gallery__cta {
    display: inline-block;
    box-sizing: border-box;
    padding: 14px 36px;
    border: 1px solid #111827;
    border-radius: 0;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.home-product-gallery__cta:hover {
    opacity: 0.92;
}

.home-product-gallery__cta:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

/* Тёмный оверлей — белая обводка, белый текст, прозрачный фон */
.home-product-gallery--light-text .home-product-gallery__cta {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.home-product-gallery--light-text .home-product-gallery__cta:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.home-product-gallery--light-text .home-product-gallery__cta:focus-visible {
    outline-color: #fff;
}

.catalog-product-grid.home-product-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 40px;
    column-gap: 8px;
}

.catalog-product-grid.home-product-gallery__grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-product-grid.home-product-gallery__grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Главная: слайдер в один ряд (настройки → сетка товаров → главная) */
@media (max-width: 1024px) {
    .catalog-product-grid.home-product-gallery__grid.home-product-gallery__grid--mobile-peek-slider {
        --home-gallery-peek-ratio: 0.125;
        --home-gallery-peek-gap: 12px;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        gap: var(--home-gallery-peek-gap);
        grid-template-columns: unset;
        row-gap: 0;
        column-gap: var(--home-gallery-peek-gap);
        width: calc(100% + 40px);
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
    }

    .catalog-product-grid.home-product-gallery__grid.home-product-gallery__grid--mobile-peek-slider::-webkit-scrollbar {
        display: none;
    }

    .catalog-product-grid.home-product-gallery__grid.home-product-gallery__grid--mobile-peek-slider > .catalog-card {
        flex: 0 0 calc((100% - var(--home-gallery-peek-gap)) * (1 - var(--home-gallery-peek-ratio)));
        width: calc((100% - var(--home-gallery-peek-gap)) * (1 - var(--home-gallery-peek-ratio)));
        max-width: calc((100% - var(--home-gallery-peek-gap)) * (1 - var(--home-gallery-peek-ratio)));
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }
}

@media (max-width: 1519px) {
    .catalog-product-grid.home-product-gallery__grid.home-product-gallery__grid--mobile-peek-slider {
        width: calc(100% + 160px);
        margin-left: -80px;
        margin-right: -80px;
        padding-left: 80px;
        padding-right: 80px;
        scroll-padding-inline: 80px;
    }
}

@media (max-width: 768px) {
    .catalog-product-grid.home-product-gallery__grid.home-product-gallery__grid--mobile-peek-slider {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scroll-padding-inline: 20px;
    }
}

.home-product-gallery--light-text .catalog-card-cat,
.home-product-gallery--light-text .catalog-card-title,
.home-product-gallery--light-text .catalog-card-price,
.home-product-gallery--light-text .catalog-card-price-old,
.home-product-gallery--light-text .catalog-card-price-current,
.home-product-gallery--light-text .price-with-discount {
    color: #fff;
}

/* Текстовые колонки: фон секции (inline background-color) на <section>, контент — .home-text-columns__inner 1440px */
.home-builder-block.home-builder-block--text-columns.home-text-columns {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: transparent;
}

.home-text-columns__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-text-columns__bg--none {
    background-color: transparent;
}

.home-text-columns__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-text-columns__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-text-columns__bg--fixed .home-text-columns__image {
    background-attachment: fixed;
}

.home-text-columns__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-text-columns__overlay--dark {
    background: #000;
}

.home-text-columns__overlay--light {
    background: #fff;
}

.home-text-columns__overlay--transparent {
    opacity: 0 !important;
    background: transparent;
}

.home-text-columns__inner {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
}

.home-text-columns__grid {
    display: grid;
    gap: var(--text-columns-gap, clamp(20px, 3vw, 40px));
    align-items: start;
}

.home-text-columns__grid--cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.home-text-columns__grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-text-columns__grid--ratio-1-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.home-text-columns__grid--ratio-2-1 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

/* Широкая колонка (2fr): высота картинки = высоте квадрата в узкой (1fr), ширина в 2 раза больше */
.home-text-columns__grid--ratio-1-2 .home-text-columns__cell:nth-child(2) .home-text-columns__figure--ar-1-1,
.home-text-columns__grid--ratio-2-1 .home-text-columns__cell:nth-child(1) .home-text-columns__figure--ar-1-1 {
    aspect-ratio: 2 / 1;
}

.home-text-columns__grid--ratio-1-2 .home-text-columns__cell:nth-child(2) .home-text-columns__figure--ar-4-3,
.home-text-columns__grid--ratio-2-1 .home-text-columns__cell:nth-child(1) .home-text-columns__figure--ar-4-3 {
    aspect-ratio: 8 / 3;
}

.home-text-columns__grid--ratio-1-2 .home-text-columns__cell:nth-child(2) .home-text-columns__figure--ar-3-2,
.home-text-columns__grid--ratio-2-1 .home-text-columns__cell:nth-child(1) .home-text-columns__figure--ar-3-2 {
    aspect-ratio: 3 / 1;
}

.home-text-columns__grid--ratio-1-2 .home-text-columns__cell:nth-child(2) .home-text-columns__figure--ar-2-1,
.home-text-columns__grid--ratio-2-1 .home-text-columns__cell:nth-child(1) .home-text-columns__figure--ar-2-1 {
    aspect-ratio: 4 / 1;
}

.home-text-columns__grid--ratio-1-2 .home-text-columns__cell:nth-child(2) .home-text-columns__figure--ar-3-1,
.home-text-columns__grid--ratio-2-1 .home-text-columns__cell:nth-child(1) .home-text-columns__figure--ar-3-1 {
    aspect-ratio: 6 / 1;
}

.home-text-columns__grid--ratio-1-2 .home-text-columns__cell:nth-child(2) .home-text-columns__figure--ar-16-9,
.home-text-columns__grid--ratio-2-1 .home-text-columns__cell:nth-child(1) .home-text-columns__figure--ar-16-9 {
    aspect-ratio: 32 / 9;
}

.home-text-columns__grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-text-columns__grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-text-columns__grid--cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-text-columns__grid--cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-text-columns__cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-text-columns__cell--align-left {
    text-align: left;
    align-items: stretch;
}

.home-text-columns__cell--align-center {
    text-align: center;
    align-items: center;
}

.home-text-columns__cell--align-right {
    text-align: right;
    align-items: flex-end;
}

a.home-text-columns__cell--linkall {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

a.home-text-columns__cell--linkall:hover {
    opacity: 0.92;
}

a.home-text-columns__cell--linkall:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 4px;
}

.home-text-columns--light-text a.home-text-columns__cell--linkall:focus-visible {
    outline-color: #fff;
}

.home-text-columns__figure {
    margin: 0 0 16px;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #e2e8f0;
}

.home-text-columns__figure--empty {
    min-height: 0;
}

.home-text-columns__figure--ar-1-1 {
    aspect-ratio: 1 / 1;
}

.home-text-columns__figure--ar-4-3 {
    aspect-ratio: 4 / 3;
}

.home-text-columns__figure--ar-3-2 {
    aspect-ratio: 3 / 2;
}

.home-text-columns__figure--ar-2-1 {
    aspect-ratio: 2 / 1;
}

.home-text-columns__figure--ar-3-1 {
    aspect-ratio: 3 / 1;
}

.home-text-columns__figure--ar-16-9 {
    aspect-ratio: 16 / 9;
}

.home-text-columns__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-text-columns__heading {
    margin: 0 0 var(--text-columns-title-body-gap, 10px);
    font-size: var(--text-columns-title-size, 28px);
    font-weight: var(--text-columns-title-weight, 300);
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: var(--text-columns-title-transform, uppercase);
}

.home-text-columns--cols-1 .home-text-columns__heading {
    font-size: var(--text-columns-title-size, clamp(1.75rem, 4vw, 3rem));
}

.home-text-columns--cols-2 .home-text-columns__heading {
    font-size: var(--text-columns-title-size, clamp(1.5rem, 2.8vw, 2.35rem));
}

.home-text-columns--cols-3 .home-text-columns__heading {
    font-size: var(--text-columns-title-size, clamp(1.25rem, 2.2vw, 1.85rem));
}

.home-text-columns--cols-4 .home-text-columns__heading {
    font-size: var(--text-columns-title-size, clamp(1.05rem, 1.6vw, 1.45rem));
}

.home-text-columns--cols-5 .home-text-columns__heading {
    font-size: var(--text-columns-title-size, clamp(0.9rem, 1.35vw, 1.15rem));
}

.home-text-columns--cols-6 .home-text-columns__heading {
    font-size: var(--text-columns-title-size, clamp(0.75rem, 1.1vw, 0.95rem));
}

.home-text-columns__desc {
    margin: 0 0 18px;
    font-size: var(--text-columns-body-size, clamp(13px, 1.1vw, 15px));
    line-height: 1.55;
    font-weight: var(--text-columns-body-weight, 400);
    text-transform: var(--text-columns-body-transform, none);
}

.home-text-columns--light-text .home-text-columns__heading,
.home-text-columns--light-text .home-text-columns__desc {
    color: #fff;
}

.home-text-columns--dark-text .home-text-columns__heading,
.home-text-columns--dark-text .home-text-columns__desc {
    color: #111827;
}

.home-text-columns__btn {
    display: inline-block;
    box-sizing: border-box;
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.home-text-columns__cell--align-center .home-text-columns__btn {
    align-self: center;
}

.home-text-columns__cell--align-right .home-text-columns__btn {
    align-self: flex-end;
}

.home-text-columns__btn--dark {
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
}

.home-text-columns__btn--dark:hover {
    opacity: 0.9;
}

.home-text-columns__btn--dark:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

.home-text-columns__btn--light {
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
}

.home-text-columns__btn--light:hover {
    opacity: 0.92;
}

.home-text-columns__btn--light:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

.home-text-columns--light-text .home-text-columns__btn--dark {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

.home-text-columns--light-text .home-text-columns__btn--dark:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Товарная галерея 50/50: слева пусто, справа контент + слайдер */
.home-builder-block--product-gallery-slider-right-content .home-product-gallery-slider-right-content__inner {
    display: flex;
    gap: 32px;
    align-items: start;
}

.home-product-gallery-slider-right-content__left {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
    min-height: 1px;
}

.home-product-gallery-slider-right-content__right {
    flex: 0 0 calc(50% - 16px);
    max-width: calc(50% - 16px);
    min-width: 0;
    --home-slider-side-pad: 52px;
}

.home-product-gallery-slider-split--cards-left .home-product-gallery-slider-right-content__left {
    order: 2;
}

.home-product-gallery-slider-split--cards-left .home-product-gallery-slider-right-content__right {
    order: 1;
}

.home-product-gallery-slider-right-content__title {
    margin: 0 0 var(--gallery-title-body-gap, 12px);
    font-size: var(--gallery-title-size, clamp(26px, 2.6vw, 44px));
    font-weight: var(--gallery-title-weight, 300);
    line-height: 1.2;
    text-transform: var(--gallery-title-transform, uppercase);
    letter-spacing: 0.04em;
    padding-left: var(--home-slider-side-pad);
}

.home-product-gallery-slider-right-content__desc {
    margin: 0 0 26px;
    font-size: var(--gallery-desc-size, 15px);
    font-weight: var(--gallery-desc-weight, 400);
    text-transform: var(--gallery-desc-transform, none);
    line-height: 1.55;
    max-width: 760px;
    padding-left: var(--home-slider-side-pad);
}

.home-product-gallery--light-text .home-product-gallery-slider-right-content__title,
.home-product-gallery--light-text .home-product-gallery-slider-right-content__desc {
    color: #fff;
}

.home-product-gallery--dark-text .home-product-gallery-slider-right-content__title,
.home-product-gallery--dark-text .home-product-gallery-slider-right-content__desc {
    color: #111827;
}

.home-gallery-slider {
    position: relative;
    padding: 0 52px;
}

.home-gallery-slider__viewport {
    overflow: hidden;
}

.home-gallery-slider__track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
    gap: 8px;
}

.home-gallery-slider__slide {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
    padding-right: 0;
}

.home-gallery-slider__slide .catalog-card {
    width: 100%;
}

.home-content-slider-4__inner .home-product-gallery__title,
.home-content-slider-4__inner .home-product-gallery-slider-right-content__desc {
    text-align: left;
    max-width: 980px;
}

.home-content-slider-4__image-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-sizing: border-box;
    aspect-ratio: var(--content-slider-image-aspect, 1 / 1);
    overflow: hidden;
    background-color: #e8ecf1;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

a.home-content-slider-4__image-card,
.home-content-slider-4__image-card--interactive {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.js-home-slider-lightbox-trigger {
    cursor: zoom-in;
}

.js-home-slider-lightbox-trigger:focus-visible {
    outline: 2px solid rgba(126, 184, 232, 0.9);
    outline-offset: 3px;
}

.home-builder-block--content-slider-4 .catalog-card-media {
    aspect-ratio: var(--content-slider-image-aspect, 1 / 1);
}

.home-gallery-slider__arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.3);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.home-gallery-slider__arrow-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.home-product-gallery--light-text .home-gallery-slider__arrow {
    background: rgba(17, 24, 39, 0.86);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.home-gallery-slider__arrow--prev {
    left: 0;
}

.home-gallery-slider__arrow--next {
    right: 0;
}

@media (max-width: 980px) {
    .home-builder-block--product-gallery-slider-right-content .home-product-gallery-slider-right-content__inner {
        display: block;
    }
    .home-product-gallery-slider-right-content__left {
        display: none;
    }
    .home-product-gallery-slider-right-content__right {
        max-width: none;
        width: 100%;
        --home-slider-side-pad: 0px;
    }
    .home-gallery-slider__slide {
        flex-basis: 100%;
        max-width: 100%;
        padding-right: 0;
    }
}

.home-text-columns--light-text .home-text-columns__btn--dark:focus-visible {
    outline-color: #fff;
}

.home-text-columns--light-text .home-text-columns__btn--light {
    border-color: #fff;
    background: #fff;
    color: #111827;
}

.home-text-columns--light-text .home-text-columns__btn--light:hover {
    opacity: 0.94;
}

.home-text-columns--dark-text .home-text-columns__btn--dark {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.home-text-columns--dark-text .home-text-columns__btn--light {
    border-color: #111827;
    background: #fff;
    color: #111827;
}

@media (max-width: 900px) {
    .home-text-columns__grid--cols-2,
    .home-text-columns__grid--cols-3,
    .home-text-columns__grid--cols-4,
    .home-text-columns__grid--cols-5,
    .home-text-columns__grid--cols-6,
    .home-text-columns__grid--ratio-1-2,
    .home-text-columns__grid--ratio-2-1 {
        grid-template-columns: 1fr;
    }
}

.home-banner-frame {
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

/* Отступы конструктора: CSS-переменные --hb-* (ПК) и --hb-*-m (мобильные ≤768px) */
.home-builder-responsive-spacing {
    padding-top: var(--hb-pt, 0);
    padding-bottom: var(--hb-pb, 0);
}

.home-builder-responsive-spacing--margin {
    margin-top: var(--hb-mt, 0);
    margin-bottom: var(--hb-mb, 0);
}

@media (max-width: 768px) {
    .home-builder-responsive-spacing {
        padding-top: var(--hb-pt-m, var(--hb-pt, 0));
        padding-bottom: var(--hb-pb-m, var(--hb-pb, 0));
    }

    .home-builder-responsive-spacing--margin {
        margin-top: var(--hb-mt-m, var(--hb-mt, 0));
        margin-bottom: var(--hb-mb-m, var(--hb-mb, 0));
    }
}

.home-banner-frame--two-squares {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--banner-gap, 16px);
}

.home-banner-frame--three-squares {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--banner-gap, 16px);
}

.home-banner-frame--two-rectangles-16x9 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--banner-gap, 16px);
}

.home-banner-frame--single-wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--banner-gap, 16px);
}

.home-banner-slot--rich {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    background: #e8ecf1;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.home-banner-frame--two-squares > .home-banner-slot--rich {
    aspect-ratio: 1 / 1;
}

.home-banner-frame--three-squares > .home-banner-slot--rich {
    aspect-ratio: 1 / 1;
}

.home-banner-frame--two-rectangles-16x9 > .home-banner-slot--rich {
    aspect-ratio: 16 / 9;
}

.home-banner-frame--single-wide > .home-banner-slot--rich {
    aspect-ratio: 2 / 1;
}

.home-banner-frame--single-wide-3x1 > .home-banner-slot--rich {
    aspect-ratio: 3 / 1;
}

.home-banner-frame--single-wide-4x1 > .home-banner-slot--rich {
    aspect-ratio: 4 / 1;
}

.home-banner-slot--linkall {
    cursor: pointer;
}

.home-banner-slot__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #e8ecf1;
}

.home-banner-slot__media--fallback {
    background: linear-gradient(160deg, #cbd5e1 0%, #94a3b8 100%);
}

.home-banner-slot__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner-slot__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.home-banner-slot__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.home-banner-slot__overlay--dark {
    background: #000;
}

.home-banner-slot__overlay--light {
    background: #fff;
}

.home-banner-slot__text-layer {
    position: absolute;
    z-index: 2;
    box-sizing: border-box;
    padding: 16px 20px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.home-banner-slot__text-layer .home-banner-slot__btn {
    pointer-events: auto;
}

.home-banner-slot__text-stack {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: var(--banner-title-body-gap, 8px);
    width: 100%;
}

.home-banner-slot__pos-top-left {
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    align-items: flex-start;
    text-align: left;
}

.home-banner-slot__pos-top-right {
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    align-items: flex-end;
    text-align: right;
}

.home-banner-slot__pos-bottom-left {
    bottom: 0;
    left: 0;
    right: auto;
    top: auto;
    align-items: flex-start;
    text-align: left;
}

.home-banner-slot__pos-bottom-right {
    bottom: 0;
    right: 0;
    left: auto;
    top: auto;
    align-items: flex-end;
    text-align: right;
}

.home-banner-slot__pos-bottom-center {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    align-items: center;
    text-align: center;
}

.home-banner-slot__pos-top-center {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    align-items: center;
    text-align: center;
}

.home-banner-slot__pos-center {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
    align-items: center;
    text-align: center;
}

.home-banner-slot__text-layer--light-text .home-banner-slot__title,
.home-banner-slot__text-layer--light-text .home-banner-slot__desc {
    color: #fff;
}

.home-banner-slot__text-layer--dark-text .home-banner-slot__title,
.home-banner-slot__text-layer--dark-text .home-banner-slot__desc {
    color: #111827;
}

.home-banner-slot__title {
    margin: 0;
    font-size: var(--banner-title-size, 28px);
    font-weight: var(--banner-title-weight, 400);
    text-transform: var(--banner-title-transform, uppercase);
    line-height: 1.2;
}

.home-banner-slot__desc {
    margin: 0;
    font-size: var(--banner-desc-size, 15px);
    line-height: 1.45;
    font-weight: var(--banner-desc-weight, 400);
    text-transform: var(--banner-desc-transform, none);
}

@media (max-width: 768px) {
    .home-banner-responsive-font .home-banner-slot__title {
        font-size: var(--banner-title-size-m, var(--banner-title-size, 28px));
    }

    .home-banner-responsive-font .home-banner-slot__desc {
        font-size: var(--banner-desc-size-m, var(--banner-desc-size, 15px));
    }

    .home-hero-fullbleed__title {
        font-size: var(--hero-title-size-m, var(--hero-title-size, 64px));
    }

    .home-hero-fullbleed__subtitle {
        font-size: var(--hero-subtitle-size-m, var(--hero-subtitle-size, 28px));
    }

    .home-hero-content__title {
        font-size: var(--hero-content-title-size-m, var(--hero-content-title-size, 48px));
    }

    .home-hero-content__body {
        font-size: var(--hero-content-body-size-m, var(--hero-content-body-size, 18px));
    }

    .home-product-gallery__subtitle {
        font-size: var(--gallery-subtitle-size-m, var(--gallery-subtitle-size, 14px));
    }

    .home-product-gallery__title,
    .home-product-gallery-slider-right-content__title {
        font-size: var(--gallery-title-size-m, var(--gallery-title-size, 32px));
    }

    .home-product-gallery-slider-right-content__desc {
        font-size: var(--gallery-desc-size-m, var(--gallery-desc-size, 16px));
    }

    .home-text-columns__heading,
    .home-text-columns--cols-1 .home-text-columns__heading,
    .home-text-columns--cols-2 .home-text-columns__heading,
    .home-text-columns--cols-3 .home-text-columns__heading,
    .home-text-columns--cols-4 .home-text-columns__heading,
    .home-text-columns--cols-5 .home-text-columns__heading,
    .home-text-columns--cols-6 .home-text-columns__heading {
        font-size: var(--text-columns-title-size-m, var(--text-columns-title-size, 28px));
    }

    .home-text-columns__desc {
        font-size: var(--text-columns-body-size-m, var(--text-columns-body-size, 15px));
    }

    .home-faq-block__title {
        font-size: var(--faq-title-size-m, var(--faq-title-size, 32px));
    }

    .home-faq-item__question {
        font-size: var(--faq-question-size-m, var(--faq-question-size, 16px));
    }

    .home-faq-item__answer {
        font-size: var(--faq-answer-size-m, var(--faq-answer-size, 15px));
    }

    .home-reviews-block__title {
        font-size: var(--reviews-title-size-m, var(--reviews-title-size, 32px));
    }

    .home-review-card__name {
        font-size: var(--reviews-name-size-m, var(--reviews-name-size, 16px));
    }

    .home-review-card__text {
        font-size: var(--reviews-text-size-m, var(--reviews-text-size, 15px));
    }

    .home-badge {
        font-size: var(--home-badge-fs-m, var(--home-badge-fs, 14px));
    }

    .home-heading-text__text {
        font-size: var(--home-heading-fs-m, var(--home-heading-fs, 40px));
    }
}

.home-banner-slot__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.home-banner-slot__text-layer--light-text .home-banner-slot__btn {
    background: #fff;
    color: #111;
}

.home-banner-slot__text-layer--dark-text .home-banner-slot__btn {
    background: #111;
    color: #fff;
}

.home-banner-slot__btn:hover {
    background: #333;
}

.home-banner-slot__text-layer--light-text .home-banner-slot__btn:hover {
    background: #f1f5f9;
}

.home-banner-slot__text-layer--dark-text .home-banner-slot__btn:hover {
    background: #333;
}

.home-banner-slot__btn:active {
    background: #000;
}

.home-banner-slot__text-layer--light-text .home-banner-slot__btn:active {
    background: #e2e8f0;
}

.home-banner-frame--l-shape {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--banner-gap, 16px);
    aspect-ratio: 2 / 1;
    max-height: min(72vw, 720px);
    align-items: stretch;
}

.home-banner-frame--l-shape-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--banner-gap, 16px);
    aspect-ratio: 2 / 1;
    max-height: min(72vw, 720px);
    align-items: stretch;
}

.home-banner-stack {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--banner-gap, 16px);
    min-height: 0;
    height: 100%;
}

/* В L-раскладке левая колонка — две полосы 1fr + gap, без квадрата (как в макете). */
.home-banner-stack .home-banner-slot--rich {
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

/* Колонки 50/50; высокий слот — квадрат вписанный в ячейку (не шире/выше колонки). */
.home-banner-frame--l-shape .home-banner-slot--tall.home-banner-slot--rich {
    grid-column: 2;
    grid-row: 1 / span 2;
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    min-height: 0;
    min-width: 0;
}

.home-banner-frame--l-shape-reverse .home-banner-stack {
    grid-column: 2;
}

.home-banner-frame--l-shape-reverse .home-banner-slot--tall.home-banner-slot--rich {
    grid-column: 1;
    grid-row: 1 / span 2;
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    min-height: 0;
    min-width: 0;
}

@media (max-width: 768px) {
    .header-inner,
    .dropdown-inner,
    .catalog-page,
    .blog-page,
    .product-page-inner,
    .site-footer__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-builder-block:not(.home-builder-block--hero):not(.home-builder-block--product-gallery):not(.home-builder-block--text-columns):not(.home-builder-block--heading-text):not(.home-builder-block--heading-button):not(.home-builder-block--blog):not(.home-builder-block--faq):not(.home-builder-block--reviews):not(.home-builder-block--zero):not(.home-builder-block--hero-content),
    .home-builder-block.home-builder-block--two-squares,
    .home-builder-block.home-builder-block--three-squares,
    .home-builder-block.home-builder-block--two-rectangles-16x9,
    .home-builder-block.home-builder-block--l-shape,
    .home-builder-block.home-builder-block--l-shape-reverse,
    .home-builder-block.home-builder-block--single-wide {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-banner-frame {
        padding-left: 0;
        padding-right: 0;
    }

    .home-product-gallery__inner,
    .home-text-columns__inner,
    .home-heading-text__inner,
    .home-heading-button-section__inner,
    .home-blog-block__inner,
    .home-badges-block__inner,
    .home-reviews-block__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-hero-content__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-faq-block__inner {
        max-width: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .home-faq-block__title,
    .home-faq-block__empty,
    .home-faq-item__trigger,
    .home-faq-item__body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-faq-item__trigger {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .home-faq-item__body {
        padding-bottom: 20px;
    }

    .home-hero-fullbleed__content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-gallery-slider {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-blog-block__slider {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .home-banner-frame--two-squares {
        grid-template-columns: 1fr;
    }

    .home-banner-frame--three-squares {
        grid-template-columns: 1fr;
    }

    .home-banner-frame--two-rectangles-16x9 {
        grid-template-columns: 1fr;
    }

    .home-banner-frame--single-wide > .home-banner-slot--rich {
        aspect-ratio: 2 / 1;
    }

    .home-banner-frame--single-wide-3x1 > .home-banner-slot--rich {
        aspect-ratio: 3 / 1;
    }

    .home-banner-frame--single-wide-4x1 > .home-banner-slot--rich {
        aspect-ratio: 4 / 1;
    }

    .home-banner-frame--l-shape,
    .home-banner-frame--l-shape-reverse {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        aspect-ratio: auto;
        max-height: none;
    }

    .home-banner-stack {
        grid-column: 1;
        grid-row: auto;
        grid-template-rows: auto auto;
    }

    /* На узкой колонке высоту задаём соотношением сторон — иначе слоты с absolute media схлопываются. */
    .home-banner-stack .home-banner-slot--rich {
        aspect-ratio: 2 / 1;
        height: auto;
    }

    .home-banner-frame--l-shape .home-banner-slot--tall.home-banner-slot--rich,
    .home-banner-frame--l-shape-reverse .home-banner-slot--tall.home-banner-slot--rich {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .home-banner-slot__text-layer {
        padding: 12px 14px 16px;
    }

    .home-banner-slot__btn {
        min-height: 44px;
        padding: 0 18px;
        font-size: 13px;
    }

}

/* --- Страница «Каталог» --- */
.catalog-page {
    padding-top: calc(96px + 96px);
    max-width: 1440px;
    margin: 0 auto;
}

.catalog-page-inner,
.catalog-page-intro {
    text-align: center;
}

.catalog-page-intro {
    margin-bottom: 96px;
}

.catalog-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 96px;
    text-align: left;
}

.catalog-sidebar-wrap {
    flex: 0 0 322px; /* было 280px; +~15% ширины колонки меню */
    max-width: 100%;
}

.catalog-sidebar {
    border: 1px solid #e0e0e0;
    background: #fff;
}

.catalog-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    text-align: left;
}

.catalog-sidebar-head-title {
    flex: 1;
}

.catalog-sidebar-chevron {
    flex-shrink: 0;
    color: #333;
    transition: transform 0.25s ease;
}

.catalog-sidebar.is-collapsed .catalog-sidebar-chevron {
    transform: rotate(-90deg);
}

.catalog-sidebar.is-collapsed .catalog-sidebar-body {
    display: none;
}

.catalog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px;
}

.catalog-sidebar-item {
    margin: 0;
    padding: 0;
}

.catalog-sidebar-sub {
    list-style: none;
    margin: 0;
    padding: 2px 0 6px 14px;
    border-left: 1px solid #ececec;
}

.catalog-sidebar-sub .catalog-sidebar-row {
    padding-left: 12px;
}

.catalog-sidebar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease, background 0.2s ease;
}

.catalog-sidebar-row:hover {
    color: #000;
    background: #fafafa;
}

.catalog-sidebar-row.is-active {
    color: #111;
    font-weight: 500;
    background: #f5f5f5;
}

/* Корень меню: «Все товары» и все родительские категории верхнего уровня; вложенные — 400 */
.catalog-sidebar-list > li:first-child > a.catalog-sidebar-row,
.catalog-sidebar-list > li.catalog-sidebar-item > a.catalog-sidebar-row {
    font-weight: 600;
}

.catalog-sidebar-list > li:first-child > a.catalog-sidebar-row.is-active,
.catalog-sidebar-list > li.catalog-sidebar-item > a.catalog-sidebar-row.is-active {
    font-weight: 600;
}

.catalog-sidebar-sub .catalog-sidebar-row {
    font-weight: 400;
}

.catalog-sidebar-sub .catalog-sidebar-row.is-active {
    font-weight: 400;
}

.catalog-sidebar-row-icon {
    flex-shrink: 0;
    color: #b0b0b0;
    font-size: 12px;
    line-height: 1;
    width: 1em;
}

.catalog-sidebar-row-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.catalog-sidebar-row-count {
    flex-shrink: 0;
    margin-left: 6px;
    color: #b9b9b9;
    font-size: 13px;
    font-weight: 400;
}

.catalog-sidebar-wrap .catalog-filter-panel {
    margin-top: 12px;
}

.catalog-filter-panel .catalog-sidebar-body {
    padding: 16px 18px 18px;
}

.catalog-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-filter-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.catalog-filter-group-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.catalog-filter-price-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.catalog-filter-price-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.catalog-filter-price-label {
    font-size: 12px;
    color: #666;
}

.catalog-filter-price-input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    background: #fff;
    color: #111;
    box-sizing: border-box;
}

.catalog-filter-price-input:focus {
    outline: 2px solid #111;
    outline-offset: 0;
    border-color: #111;
}

.catalog-filter-values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-filter-value {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    line-height: 1.35;
}

.catalog-filter-value input {
    margin-top: 3px;
    flex-shrink: 0;
}

.catalog-filter-value-label {
    flex: 1;
    min-width: 0;
}

.catalog-filter-value-count {
    flex-shrink: 0;
    color: #b9b9b9;
    font-size: 13px;
}

.catalog-filter-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 4px;
}

.catalog-filter-submit {
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 0;
}

.catalog-filter-submit:hover {
    background: #333;
    color: #fff;
}

.catalog-filter-submit:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.catalog-filter-reset {
    align-self: center;
    font-size: 14px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.catalog-filter-reset:hover {
    color: #111;
}

.catalog-products {
    flex: 1;
    min-width: 0;
}

.catalog-products-empty {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--catalog-grid-desktop-cols, 3), minmax(0, 1fr));
    row-gap: 40px;
    column-gap: 8px;
}

/* Каталог без категорий: сетка на всю ширину контейнера, 4 колонки на десктопе */
body.page-catalog--no-categories .catalog-layout {
    display: block;
}

body.page-catalog--no-categories .catalog-products {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 641px) {
    body.page-catalog--no-categories .catalog-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.catalog-card {
    margin: 0;
    position: relative;
}
.catalog-card--clickable {
    cursor: pointer;
}

.catalog-card-hit {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: block;
    text-decoration: none;
    color: inherit;
}

.catalog-card-media {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--catalog-card-bg, #e6e6e6);
    border-radius: 0;
    transition: background-color 0.35s ease;
}

.catalog-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .catalog-card:hover .catalog-card-actions {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (hover: none) {
    .catalog-card .catalog-card-actions {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.catalog-card-action {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    background: #fff;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.catalog-card-action:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.catalog-card-action.is-active {
    color: #e53935;
}

.catalog-card-action:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.catalog-card-action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

.catalog-card-action-icon--cart {
    width: 22px;
    height: 22px;
}

.catalog-card-media .catalog-card-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center center;
    transform-origin: center center;
    border-radius: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.catalog-card-media .catalog-card-img--primary {
    object-fit: var(--catalog-card-fit, cover);
    transform: scale(calc(var(--catalog-card-scale, 100) / 100));
}

.catalog-card-media .catalog-card-img--secondary {
    object-fit: var(--catalog-card-fit-secondary, var(--catalog-card-fit, cover));
    transform: scale(calc(var(--catalog-card-scale-secondary, var(--catalog-card-scale, 100)) / 100));
}

.catalog-card--has-secondary .catalog-card-img--primary {
    z-index: 1;
}

.catalog-card--has-secondary .catalog-card-img--secondary {
    z-index: 2;
    opacity: 0;
}

@media (hover: hover) {
    .catalog-card--has-secondary:hover .catalog-card-media {
        background: var(--catalog-card-bg-secondary, var(--catalog-card-bg, #e6e6e6));
    }
}

.catalog-card--has-secondary.is-secondary-active .catalog-card-media {
    background: var(--catalog-card-bg-secondary, var(--catalog-card-bg, #e6e6e6));
}

@media (hover: hover) {
    .catalog-card--has-secondary:hover .catalog-card-img--primary {
        opacity: 0;
    }

    .catalog-card--has-secondary:hover .catalog-card-img--secondary {
        opacity: 1;
    }
}

.catalog-card--has-secondary.is-secondary-active .catalog-card-img--primary {
    opacity: 0;
}

.catalog-card--has-secondary.is-secondary-active .catalog-card-img--secondary {
    opacity: 1;
}

.catalog-card-media-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 1px;
    background: #efefef;
    transition: transform 0.45s ease;
}

@media (hover: hover) {
    .catalog-card--zoom-hover:hover .catalog-card-img--primary {
        transform: scale(calc(var(--catalog-card-scale, 100) / 100 * 1.07));
    }

    .catalog-card--zoom-hover:hover .catalog-card-media-placeholder {
        transform: scale(calc(var(--catalog-card-scale, 100) / 100 * 1.07));
    }
}

.catalog-card-meta {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    --catalog-card-line-gap: 6px;
}

.catalog-card-cat {
    margin: 0 0 var(--catalog-card-line-gap);
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.3;
    color: #666;
    text-transform: uppercase;
}

.catalog-card-title {
    margin: 0;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #111;
}

.catalog-card-price {
    margin: calc(var(--catalog-card-line-gap) * 2) 0 0;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: #111;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.catalog-card-price-old {
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    font-size: 14px;
}
.catalog-card-price-current {
    color: #111;
    font-weight: 700;
}

.price-with-discount {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}
.price-discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 128px;
    background: #2d9f4a;
    color: #fff;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    bottom: 16px;
}
.product-price .price-discount-badge {
    font-size: 12px;
    padding: 3px 7px;
}

.catalog-card-price .price-with-discount {
    align-items: flex-end;
}
.catalog-card-price .price-discount-badge {
    position: relative;
    bottom: 1px;
}

/* --- Страница товара --- */
.product-page {
    padding-top: calc(96px + 32px);
    padding-bottom: 96px;
}
.product-page-inner {
    max-width: 1440px;
    margin: 64px auto 0 auto;
}
.product-breadcrumbs {
    margin-bottom: 0;
}
.product-breadcrumbs .breadcrumbs-list {
    justify-content: flex-start;
}
.product-layout {
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 64px;
    align-items: start;
}
.product-media {
    width: 100%;
}
.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    background: #efefef;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.product-main-image--placeholder {
    aspect-ratio: 1 / 1;
}
.product-gallery {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
}

/* Десктоп: ровно 4 миниатюры в ряд (вместо ~6 при auto-fill) */
@media (min-width: 769px) {
    body.page-product .product-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.product-gallery-item {
    aspect-ratio: 1 / 1;
    background-color: #efefef;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-width: 0;
}

.product-gallery-item--video {
    position: relative;
    overflow: hidden;
    background: #111;
    padding: 0;
}

.product-gallery-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-item--video:not(.is-playing) .product-gallery-video-thumb {
    pointer-events: none;
}

.product-gallery-item--video.is-playing .product-gallery-video-thumb {
    pointer-events: auto;
}

.product-gallery-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-gallery-video-play:hover {
    transform: scale(1.06);
}

.product-gallery-video-play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.product-gallery-item--video.is-playing .product-gallery-video-play {
    opacity: 0;
    pointer-events: none;
}

/* Полноэкранное воспроизведение: сохраняем пропорции (letterbox), не растягиваем */
body.page-product .product-gallery-video-thumb:fullscreen,
body.page-product .product-gallery-video-thumb:-webkit-full-screen {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

body.page-product .product-gallery-video-thumb:-moz-full-screen {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

body.page-product .product-gallery-video-thumb:-ms-fullscreen {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

body.page-product .product-gallery-video-thumb::backdrop {
    background: #000;
}

.product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.product-info-head {
    order: 1;
    min-width: 0;
}
.product-info-body {
    order: 3;
    min-width: 0;
}
.product-info-purchase {
    order: 4;
    min-width: 0;
}
.product-info-tail {
    order: 5;
    min-width: 0;
}
.product-title {
    margin: 0;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.12;
    color: #111;
    font-weight: 500;
}
.product-article {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: #9ca3af;
}
.product-info-head + .product-price {
    margin-top: 24px;
}
.product-price {
    order: 2;
    margin: 0 0 48px;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.12;
    color: #111;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.product-price-old {
    color: #9a9a9a;
    text-decoration: line-through;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
}
.product-price-current,
.product-price-on-request {
    color: #111;
    font-size: inherit;
    font-weight: 500;
}
.product-separator {
    border: none;
    border-top: 1px solid #efefef;
    margin: 0 0 24px;
}
.product-description {
    margin: 0;
    color: #666666;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
}
.product-specs {
    margin-top: 20px;
}
.product-specs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.product-specs-item {
    margin: 0;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #111;
    font-weight: 400;
    border-bottom: 1px solid #efefef;
}
.product-specs-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.product-specs-label {
    color: #111;
    font-weight: 600;
    margin-right: 0.35em;
}

.product-specs-value {
    font-weight: 400;
}

.product-info-purchase {
    margin-top: 48px;
}
.product-info-purchase .product-cart-actions {
    margin-top: 0;
}
.product-cart-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}

.product-stock-status-badge {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #111;
}

.product-stock-status-badge--in_stock {
    color: #15803d;
}

.product-stock-status-badge--out_of_stock {
    color: #b45309;
}

.product-stock-status-badge--preorder {
    color: #1d4ed8;
}

.product-stock-status-badge--discontinued {
    color: #6b7280;
}

.product-stock-action-btn {
    width: 100%;
    max-width: 100%;
}

.product-desc-accordion {
    margin-top: 48px;
    width: 100%;
    border-radius: 0 !important;
}

.product-desc-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border: none;
    border-radius: 0;
    border-bottom: none;
    position: relative;
    background: transparent;
    cursor: pointer;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    text-align: left;
    color: #111;
    transition: opacity 0.15s ease;
}

.product-desc-accordion-trigger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #e0e0e0;
    border-radius: 0 !important;
}

.product-desc-accordion-trigger:hover {
    opacity: 0.85;
}

.product-desc-accordion-trigger:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.product-desc-accordion-title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.product-desc-accordion-icon {
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: #111;
}

.product-desc-accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-desc-accordion-panel.is-open {
    grid-template-rows: 1fr;
}

.product-desc-accordion-panel-inner {
    overflow: hidden;
    min-height: 0;
}

.product-desc-accordion-body {
    margin: 0;
    padding-top: 18px;
    color: #666666;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-desc-accordion-panel.is-open .product-desc-accordion-body {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .product-desc-accordion-panel {
        transition-duration: 0.01ms;
    }

    .product-desc-accordion-body {
        transition-duration: 0.01ms;
    }
}

.product-cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.product-cart-favorite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #8c8c8c;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    transition: color 0.15s ease;
}

.product-cart-favorite:hover {
    color: #666;
}

.product-cart-favorite:active {
    color: #555;
}

.product-cart-favorite:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.product-cart-favorite-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.product-cart-favorite-text {
    color: inherit;
}

.product-cart-favorite.is-active {
    color: #e53935;
}

.favorites-layout {
    display: block;
}

.page-favorites .catalog-products-empty {
    text-align: center;
}

.page-favorites .catalog-product-grid {
    grid-template-columns: repeat(var(--catalog-grid-desktop-cols, 3), minmax(0, 1fr));
}

.cart-layout {
    display: block;
}

.page-cart .catalog-products-empty {
    text-align: center;
    margin-bottom: 18px;
}

.cart-order-notice {
    margin: 12px auto 18px;
    max-width: 40rem;
    padding: 14px 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
}

.cart-order-notice--ok {
    color: #166534;
    background: #ecfdf5;
    border-color: #86efac;
}

.cart-order-notice--pending {
    color: #92400e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.cart-order-notice--error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fca5a5;
}

.cart-order-notice--error a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.cart-order-notice--error a:hover {
    text-decoration: none;
}

.cart-thanks-banner {
    margin: 0 0 1rem;
    max-width: 42rem;
}

.cart-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 72px;
    align-items: start;
}

.cart-table {
    border: 1px solid #e4e4e4;
    background: #fff;
}

.cart-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 16px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #6d6d6d;
    font-weight: 600;
}

.cart-table-head > :last-child {
    text-align: right;
}

.cart-table-body:empty {
    min-height: 72px;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border-bottom: 1px solid #efefef;
}

.cart-row:last-child {
    border-bottom: none;
}

.cart-row-product {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.cart-row-media {
    width: 84px;
    height: 84px;
    display: block;
    background: #efefef;
}

.cart-row-media img,
.cart-row-media-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cart-row-info {
    min-width: 0;
}

.cart-row-title {
    color: #1d1d1d;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.cart-row-title:hover {
    text-decoration: underline;
}

.cart-row-price {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-row-price-old {
    color: #444;
    text-decoration: line-through;
    font-size: 13px;
}

.cart-row-price-current {
    color: #222;
    font-size: 15px;
}

.cart-row-specs {
    margin-top: 6px;
}

.cart-row-spec {
    font-size: 12px;
    color: #222;
    line-height: 1.4;
}

.cart-row-spec-label {
    color: #222;
}

.cart-row-spec-value {
    color: #222;
    font-weight: 600;
}

.cart-row-qty-controls {
    margin-top: 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cart-row-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8d8d8;
    min-height: 34px;
}

.cart-row-qty-btn {
    width: 34px;
    min-height: 34px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.cart-row-qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.cart-row-remove {
    margin-top: 10px;
    border: none;
    background: transparent;
    padding: 0;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    color: #8a8a8a;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

.cart-row-total {
    text-align: right;
    font-size: 18px;
    color: #2b2b2b;
    align-self: start;
}

.cart-checkout-right {
    border: 1px solid transparent;
    background: #fff;
    padding: 0;
}

.cart-checkout-right-title {
    margin: 14px 0 32px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6d6d6d;
    font-weight: 600;
}

.cart-checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 48px;
}

.cart-checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-checkout-field span {
    font-size: 13px;
    color: #444;
}

.cart-checkout-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ddd;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 0;
    box-sizing: border-box;
}

.cart-checkout-user-block {
    border: 1px solid #e4e4e4;
    padding: 16px 18px;
    margin-bottom: 24px;
    background: #fafafa;
}

.cart-checkout-user-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.cart-checkout-user-row:last-child {
    margin-bottom: 0;
}

.cart-checkout-user-label {
    min-width: 72px;
    color: #6d6d6d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.cart-checkout-user-value {
    color: #1d1d1d;
    font-weight: 500;
    word-break: break-word;
}

.cart-checkout-reg-hint {
    font-size: 13px;
    color: #555;
    line-height: 1.45;
    margin: 0 0 12px 0;
}

.cart-checkout-reg-err {
    margin-bottom: 12px;
}

.cart-checkout-field--modal {
    margin-bottom: 12px;
}

.cart-checkout-field-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #ddd;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.cart-existing-login-summary {
    border: 1px solid #e4e4e4;
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-size: 14px;
    line-height: 1.5;
}

.cart-existing-login-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    margin-bottom: 8px;
}

.cart-existing-login-row:last-child {
    margin-bottom: 0;
}

.cart-existing-login-label {
    min-width: 64px;
    color: #6d6d6d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.cart-existing-login-value {
    font-weight: 600;
    color: #1d1d1d;
    word-break: break-word;
}

.cart-existing-login-recover {
    margin: 1rem 0 0.75rem;
    font-size: 14px;
}

.cart-existing-login-recover a {
    color: #111;
    text-decoration: underline;
}

.cart-existing-login-recover a:hover {
    opacity: 0.8;
}

.cart-checkout-submit {
    margin-top: 12px;
    width: 100%;
    min-height: 48px;
    border: none;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.cart-promo-accordion {
    margin-top: 10px;
    border-top: 1px solid #ececec;
}

.cart-promo-toggle {
    width: 100%;
    min-height: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 16px;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-weight: 400;
    color: #666;
    cursor: pointer;
    padding: 12px 0;
}

.cart-promo-toggle-icon {
    color: #666;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cart-promo-toggle[aria-expanded="true"] .cart-promo-toggle-icon {
    transform: rotate(180deg);
}

.cart-promo-panel {
    display: none;
    padding-bottom: 12px;
}

.cart-promo-panel.is-open {
    display: block;
}

.cart-promo-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 8px;
}

.cart-promo-input {
    min-height: 42px;
    border: 1px solid #1f1f1f;
    padding: 0 12px;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    border-radius: 0;
}

.cart-promo-apply {
    min-height: 42px;
    border: none;
    background: #111;
    color: #fff;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    cursor: pointer;
}

.cart-promo-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
}

.cart-promo-note.is-success {
    color: #2e7d32;
}

.cart-promo-note.is-error {
    color: #e53935;
}

.cart-totals {
    margin-top: 0;
    border-top: 1px solid #ececec;
}

.cart-totals-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    color: #666;
    border-bottom: 1px solid #ececec;
}

.cart-totals-row-total {
    font-size: 24px;
    color: #505050;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 20px;
}

.cart-totals-row-total > span:last-child {
    font-size: 26px;
}

.cart-checkout-consent .shop-consent-field {
    margin-top: 0;
    margin-bottom: 16px;
}

.cart-pay-now {
    margin-top: 10px;
    width: 100%;
    min-height: 48px;
    border: none;
    background: #2e7d32;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cart-pay-now-icon {
    display: block;
}

.cart-or-divider {
    margin: 12px 0;
    text-align: center;
    position: relative;
    color: #777;
    font-size: 16px;
}

.cart-or-divider::before,
.cart-or-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 28px);
    height: 1px;
    background: #d9d9d9;
}

.cart-or-divider::before {
    left: 0;
}

.cart-or-divider::after {
    right: 0;
}

@media (max-width: 900px) {
    .cart-checkout-layout {
        grid-template-columns: 1fr;
    }
}

.product-cart-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 4px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
}

.product-cart-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #222;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.product-cart-qty-btn:hover {
    background: #f3f3f3;
}

.product-cart-qty-btn:active {
    background: #e8e8e8;
}

.product-cart-qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.product-cart-qty-value {
    min-width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #222;
}

.product-cart-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 0;
    background: #111;
    color: #fff;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-cart-submit:hover {
    background: #333;
}

.product-cart-submit:active {
    background: #000;
}

.product-cart-submit.is-added-temporary {
    background: #2e7d32;
}

.product-cart-submit.is-added-temporary:hover,
.product-cart-submit.is-added-temporary:active {
    background: #2e7d32;
}

.product-merge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 48px;
}

.product-merge-thumb {
    display: block;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 0;
    border: 1px solid #ececec;
    box-sizing: border-box;
    background-color: #efefef;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-merge-thumb:hover {
    border-color: #fff;
    box-shadow: 0 0 0 3px #d9d9d9;
}

.product-merge-thumb--current {
    border-width: 3px;
    border-color: #fff;
    box-shadow: 0 0 0 3px #1f1f1f;
}

.product-merge-thumb--empty {
    background-image: none;
}

.product-fusion-picker {
    margin-top: 48px;
}
.product-fusion-picker-label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}
.product-fusion-picker-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.product-fusion-value-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 0;
    border: 1px solid #d0d0d0;
    background: #f0f0f0;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.product-fusion-value-btn:hover:not(.is-current) {
    border-color: #b0b0b0;
    background: #e4e4e4;
    color: #333;
}
.product-fusion-value-btn.is-current {
    border-color: #000;
    background: #0d0d0d;
    color: #fff;
    font-weight: 500;
    cursor: default;
}
.product-fusion-value-btn.is-current:hover {
    border-color: #000;
    background: #0d0d0d;
    color: #fff;
}

.js-product-lightbox-trigger {
    cursor: zoom-in;
}
.js-product-lightbox-trigger:focus-visible {
    outline: 2px solid rgba(126, 184, 232, 0.9);
    outline-offset: 3px;
}

.js-home-banner-lightbox-trigger {
    cursor: zoom-in;
}
.js-home-banner-lightbox-trigger:focus-visible {
    outline: 2px solid rgba(126, 184, 232, 0.9);
    outline-offset: 3px;
}
.home-banner-slot--lightbox .home-banner-slot__btn {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

body.product-lightbox-open {
    overflow: hidden;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    box-sizing: border-box;
}
.product-lightbox[hidden] {
    display: none !important;
}
.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: zoom-out;
}
.product-lightbox-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px clamp(56px, 8vw, 96px);
    pointer-events: none;
}
.product-lightbox-frame {
    position: relative;
    max-width: min(92vw, 1200px);
    max-height: min(82vh, 900px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-lightbox-img {
    display: block;
    max-width: min(92vw, 1200px);
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}
.product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    pointer-events: auto;
}
.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}
.product-lightbox-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.product-lightbox-close-svg {
    display: block;
}
.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    pointer-events: auto;
}
.product-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.product-lightbox-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.product-lightbox-prev {
    left: clamp(12px, 3vw, 28px);
}
.product-lightbox-next {
    right: clamp(12px, 3vw, 28px);
}
.product-lightbox--single .product-lightbox-nav {
    display: none;
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.page-product .product-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-width: 0;
    }

    body.page-product .product-info {
        display: contents;
    }

    body.page-product .product-info-head {
        order: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-product .product-media {
        order: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-product .product-info-head + .product-price {
        order: 3;
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-product .product-info-purchase {
        order: 4;
        margin-top: 0;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-product .product-main-image {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Контейнер — не шире окна минус 20px с каждой стороны; прокрутка только по горизонтали */
    body.page-product .product-gallery {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        max-width: min(100%, calc(100vw - 40px));
        min-width: 0;
        box-sizing: border-box;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        margin-top: 8px;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 2px;
    }

    body.page-product .product-gallery-item {
        flex: 0 0 clamp(64px, 22vw, 88px);
        width: clamp(64px, 22vw, 88px);
        height: clamp(64px, 22vw, 88px);
        min-width: clamp(64px, 22vw, 88px);
        max-width: clamp(64px, 22vw, 88px);
        max-height: clamp(64px, 22vw, 88px);
        scroll-snap-align: start;
        aspect-ratio: 1 / 1;
    }

    body.page-product .product-info-body {
        order: 5;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-product .product-info-tail {
        order: 6;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.page-product .product-info-body .product-separator {
        margin-top: 0;
    }
}

.catalog-page-title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 1.25rem;
    text-align: center;
}

.breadcrumbs {
    margin: 0;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 0.35rem 0.5rem;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.breadcrumbs-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs-list a:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumbs-sep {
    color: #bbb;
    user-select: none;
}

.breadcrumbs-current {
    color: #333;
}

@media (max-width: 1024px) {
    .catalog-layout {
        flex-direction: column;
    }

    .catalog-sidebar-wrap {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .catalog-page {
        padding-top: calc(96px + 96px);
    }

    /* Карточки на всю ширину колонки товаров; отступы 20px от краёв экрана задаёт padding у .catalog-page (см. max-width: 768px) */
    body.page-catalog .catalog-products {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    body.page-catalog .catalog-product-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .catalog-product-grid:not(.home-product-gallery__grid),
    .page-favorites .catalog-product-grid {
        grid-template-columns: repeat(var(--catalog-grid-mobile-cols, 1), minmax(0, 1fr));
        column-gap: 8px;
    }

    .catalog-product-grid.home-product-gallery__grid:not(.home-product-gallery__grid--mobile-peek-slider),
    .catalog-product-grid.home-product-gallery__grid--cols-3:not(.home-product-gallery__grid--mobile-peek-slider),
    .catalog-product-grid.home-product-gallery__grid--cols-5:not(.home-product-gallery__grid--mobile-peek-slider) {
        grid-template-columns: repeat(var(--home-grid-mobile-cols, 1), minmax(0, 1fr));
        column-gap: 8px;
    }
}

/* Блог (шапка и отступы как у страницы «Каталог») */
.blog-page {
    padding-top: calc(96px + 96px);
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 96px;
    min-height: 50vh;
    text-align: left;
}

.contacts-blocks {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 64px;
    box-sizing: border-box;
}

.contacts-block {
    margin-bottom: 40px;
}

.contacts-block:last-child {
    margin-bottom: 0;
}

.contacts-block-title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #0f172a;
}

.contacts-block-body {
    margin: 0;
}

.contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacts-line {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.55;
    color: #334155;
}

.contacts-line:last-child {
    margin-bottom: 0;
}

.contacts-block a {
    color: #2563eb;
    text-decoration: none;
}

.contacts-block a:hover {
    text-decoration: underline;
}

.contacts-empty {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
}

.contacts-extra-body {
    text-align: left;
    font-size: 16px;
    line-height: 1.55;
    color: #334155;
}

.contacts-extra-body p,
.contacts-extra-body ul,
.contacts-extra-body ol {
    margin: 0 0 8px;
}

.contacts-extra-body p:last-child,
.contacts-extra-body ul:last-child,
.contacts-extra-body ol:last-child {
    margin-bottom: 0;
}

.contacts-extra-body ul,
.contacts-extra-body ol {
    padding-left: 1.25em;
}

.contacts-extra-body a {
    color: #2563eb;
    text-decoration: none;
}

.contacts-extra-body a:hover {
    text-decoration: underline;
}

.contacts-map-wrap {
    margin-top: 8px;
}

.contacts-block--map {
    margin-bottom: 0;
}

.contacts-map-embed {
    margin-top: 4px;
    max-width: 100%;
    overflow: hidden;
}

.contacts-map-embed iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 360px;
    border: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    margin-top: 0;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
    border: 1px solid #e9edf0;
}

.blog-card-image-link {
    display: block;
    text-decoration: none;
}

.blog-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f0f1f3;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-image--empty {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: linear-gradient(120deg, #e8ebf0, #f5f5f5);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 18px;
    gap: 8px;
}

.blog-card-date {
    font-size: 12px;
    color: #7a818c;
    letter-spacing: 0.02em;
}

.blog-card-title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.blog-card-title a {
    color: #111;
    text-decoration: none;
}

.blog-card-title a:hover {
    text-decoration: underline;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #4a4f5a;
    margin: 0 0 4px;
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.btn.blog-card-more {
    align-self: flex-start;
    margin-top: auto;
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

a.btn.blog-card-more:hover {
    background: #333;
}

.blog-empty {
    text-align: center;
    color: #666;
    margin-top: 2rem;
}

/* Статья блога */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 0.5rem;
}

.blog-article-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-article-title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    margin: 0.5rem 0 0;
    color: #111;
}

.blog-article-hero {
    margin: 0 0 1.5rem;
    border-radius: 0;
    overflow: hidden;
    background: #f0f1f3;
}

.blog-article-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.blog-article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #2a2e36;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.25;
}

.blog-article-content p {
    margin: 0 0 1rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.blog-article-catalog-integration {
    margin: 1.5rem 0;
    padding: 0;
    border: none;
}

.blog-article-catalog-integration__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
}

.blog-article-catalog-integration__substrate {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #f0f1f4;
    border-radius: 0;
    padding: 14px 16px;
    box-sizing: border-box;
}

.blog-article-catalog-integration__media {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    align-self: stretch;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #f0f1f4;
    background: #e2e4e8;
}

.blog-article-catalog-integration__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5c6370;
}

.blog-article-catalog-integration__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: top;
}

.blog-article-catalog-integration__media-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, #e8e9ed 0%, #dde0e6 100%);
}

.blog-article-catalog-integration__brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c6370;
    margin: 0;
    line-height: 1.3;
}

.blog-article-catalog-integration__title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: clamp(15px, 2.5vw, 17px);
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    color: #111;
}

.blog-article-catalog-integration__price {
    margin: 0;
    font-size: 15px;
    /* как у .catalog-card-price: между старой и новой ценой должен быть зазор */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.blog-article-catalog-integration__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.blog-article-catalog-integration__actions .btn {
    margin-top: 0;
}

@media (max-width: 520px) {
    .blog-article-catalog-integration__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-article-catalog-integration__substrate {
        flex: 0 0 auto;
        width: 100%;
    }

    .blog-article-catalog-integration__media {
        flex: 0 0 auto;
        align-self: stretch;
        width: 100%;
        aspect-ratio: 4 / 5;
        min-height: 200px;
        margin: 0;
    }
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-page {
        padding-top: calc(96px + 96px);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Личный кабинет / авторизация */
a.icon-btn {
    text-decoration: none;
}

.icon-btn.icon-btn--logged .icon {
    opacity: 1;
}

.account-layout {
    max-width: 440px;
    margin: 0 auto 4rem;
    padding: 0 16px;
}

.account-layout--wide {
    max-width: 920px;
}

.account-dashboard-flash {
    margin: 0 0 1.25rem;
}

.account-dashboard-layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .account-dashboard-layout {
        grid-template-columns: 200px 1fr;
        align-items: start;
    }
}

.account-dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .account-dashboard-nav {
        flex-direction: column;
        gap: 0.35rem;
    }
}

.account-dashboard-nav-btn {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    border: 1px solid #e8eaef;
    background: #fff;
    color: #4a4f5a;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.account-dashboard-nav-btn:hover {
    color: #111;
    border-color: #cfd3dc;
}

.account-dashboard-nav-btn.is-active {
    color: #111;
    border-color: #111;
    background: #fafafa;
}

.account-dashboard-panel[hidden] {
    display: none !important;
}

.account-profile-dl {
    margin: 0 0 1.5rem;
}

.account-profile-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.account-profile-row:last-of-type {
    border-bottom: none;
}

.account-profile-row dt {
    margin: 0;
    color: #7a818c;
    font-weight: 500;
}

.account-profile-row dd {
    margin: 0;
    color: #111;
}

.account-orders-empty {
    font-size: 14px;
    color: #4a4f5a;
    line-height: 1.5;
    margin: 0;
}

.account-orders-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-order-card {
    border: 1px solid #e8eaef;
    padding: 1rem 1rem 0.75rem;
    background: #fafafa;
}

.account-order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8eaef;
}

.account-order-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    flex: 1 1 auto;
}

.account-order-id {
    font-weight: 600;
    color: #111;
}

.account-order-date {
    font-size: 13px;
    color: #7a818c;
}

.account-order-status {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 8px;
}

.account-order-total {
    margin-left: auto;
    font-weight: 600;
    font-size: 16px;
    color: #111;
}

.account-order-discount-note {
    font-size: 12px;
    color: #7a818c;
    margin: -0.35rem 0 0.5rem;
}

.account-order-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
    font-size: 14px;
    padding: 0.35rem 0;
    border-top: 1px solid #eceef2;
}

.account-order-item:first-child {
    border-top: none;
    padding-top: 0;
}

.account-order-item-name {
    color: #111;
    text-decoration: none;
}

.account-order-item-name:hover {
    text-decoration: underline;
}

.account-order-item-qty {
    color: #7a818c;
    font-size: 13px;
}

.account-order-item-sum {
    font-weight: 600;
    color: #111;
    white-space: nowrap;
}

.account-order-refs {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eceef2;
}

.account-order-refs-row {
    margin: 0 0 0.5rem;
    font-size: 14px;
    color: #111;
}

.account-order-refs-label {
    display: block;
    font-size: 12px;
    color: #7a818c;
    margin-bottom: 0.15rem;
}

.account-order-refs-value {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.account-order-refs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.35rem 0 0;
}

@media (max-width: 540px) {
    .account-order-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-order-total {
        margin-left: 0;
    }

    .account-order-item {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.account-card {
    background: #fff;
    border: 1px solid #e8eaef;
    padding: 1.75rem 1.5rem 1.5rem;
}

.account-card-title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #111;
}

.account-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 1.5rem;
    border-bottom: 1px solid #e8eaef;
}

.account-tab {
    flex: 1 1 50%;
    padding: 12px 8px;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #7a818c;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.account-tab:hover {
    color: #111;
}

.account-tab.is-active {
    color: #111;
    border-bottom-color: #111;
}

.account-tab-panel {
    padding-top: 0.25rem;
}

.account-tab-panel[hidden] {
    display: none !important;
}

/* Вход при режиме «звонок»: переключатель телефон / почта (бейджи) */
.account-login-method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.account-login-method__btn {
    flex: 0 0 auto;
    padding: 0.45rem 0.95rem;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: #fff;
    color: #5c6370;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-login-method__btn:hover {
    color: #111;
    border-color: #c5cbd6;
    background: #f8f9fb;
}

.account-login-method__btn.is-active {
    color: #fff;
    background: #111;
    border-color: #111;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08);
}

.account-login-method__btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.account-phone-verified-badge {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    white-space: nowrap;
}

.account-profile-phone-action {
    margin: 1rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eaef;
}

.account-profile-phone-ok {
    margin: 0.75rem 0 1rem;
}

.cart-checkout-phone-alert {
    margin-bottom: 1rem;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.cart-checkout-phone-alert a {
    font-weight: 600;
    text-decoration: underline;
}

.account-field {
    display: block;
    margin-bottom: 1rem;
}

.account-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4a4f5a;
    margin-bottom: 6px;
}

.account-req {
    color: #c62828;
}

.account-field-note {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #7a818c;
    margin: -2px 0 6px;
}

.account-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    border: 1px solid #cfd3dc;
    border-radius: 0;
    background: #fff;
}

.account-input:focus {
    outline: none;
    border-color: #111;
}

.account-hint {
    font-size: 14px;
    color: #4a4f5a;
    margin: 0 0 1rem;
    line-height: 1.45;
}

.account-msg {
    font-size: 13px;
    margin: 0 0 1rem;
}

.account-msg--error {
    color: #c62828;
}

.account-msg--ok {
    color: #2e7d32;
}

.account-submit {
    width: 100%;
    margin-top: 0.25rem;
}

/* .btn задаёт display и перекрывает атрибут hidden у кнопок */
.account-page button[hidden],
.account-page .btn[hidden],
.account-page .account-submit[hidden],
.account-modal button[hidden],
.account-modal .btn[hidden] {
    display: none !important;
}

.recover-phone-verify-btn {
    margin-top: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

a.btn:hover,
a.btn:focus {
    text-decoration: none;
}

.btn-primary {
    background: #111;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: #fff;
    color: #111;
    border: 1px solid #111;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.account-recover-link-wrap {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eaef;
    text-align: center;
}

.account-recover-link {
    font-size: 14px;
    color: #111;
    text-decoration: underline;
}

.account-recover-link:hover {
    opacity: 0.75;
}

.page-account-recover #recover-phone-call-block .account-modal__lead {
    margin-top: 0;
}

.page-account-recover #recover-phone-call-block .account-modal__number-wrap {
    max-width: 100%;
}

.account-logged-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: #111;
}

.account-logged-email {
    font-size: 14px;
    color: #4a4f5a;
    margin: 0 0 1.25rem;
}

.account-card--logged .account-logout-btn {
    width: 100%;
}

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.account-modal[hidden] {
    display: none !important;
}

.account-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 24, 0.45);
    cursor: pointer;
}

.account-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e8eaef;
    padding: 1.5rem 1.35rem 1.25rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.account-modal__title {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #111;
}

.account-modal__lead {
    font-size: 14px;
    line-height: 1.5;
    color: #4a4f5a;
    margin: 0 0 1rem;
}

.account-modal__number-wrap {
    margin: 0 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.account-modal__number {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 1rem;
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.25;
    color: #111;
    border: 2px solid #111;
    background: #fafafa;
    word-break: break-all;
}

.account-modal__number-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.account-modal__number-link:hover,
.account-modal__number-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.account-modal__poll-status {
    font-size: 14px;
    color: #4a4f5a;
    margin: 0 0 0.75rem;
}

.account-modal__poll-status--success {
    color: #15803d;
    font-weight: 600;
}

.cart-register-phone-confirmed {
    margin: 0 0 1rem;
}

.account-modal__err {
    margin: 0 0 0.75rem;
}

.account-modal__loading {
    font-size: 14px;
    color: #4a4f5a;
    margin: 0 0 0.75rem;
}

.account-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
}

.account-modal__btn {
    width: 100%;
}

.account-modal__btn--ghost {
    background: transparent;
    border: 1px solid #cfd3dc;
    color: #4a4f5a;
}

.account-modal__btn--ghost:hover {
    background: #f5f6f8;
}

.cart-checkout-review-modal .cart-checkout-review-modal__dialog {
    max-width: 520px;
}

.cart-co-lead {
    font-size: 14px;
    color: #4a4f5a;
    margin: 0 0 1rem;
}

.cart-co-subtitle {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a818c;
    margin: 1rem 0 0.5rem;
}

.cart-co-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #eceef2;
    border-radius: 8px;
    overflow: hidden;
}

.cart-co-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.75rem;
    font-size: 14px;
    border-bottom: 1px solid #eceef2;
}

.cart-co-line:last-child {
    border-bottom: none;
}

.cart-co-line-name {
    color: #111;
}

.cart-co-line-qty {
    color: #7a818c;
    font-size: 13px;
}

.cart-co-line-sum {
    font-weight: 600;
    white-space: nowrap;
}

.cart-co-summary-totals {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
    background: #f6f7f9;
    border-radius: 8px;
    font-size: 14px;
}

.cart-co-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.cart-co-total-row--grand {
    font-weight: 700;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e3e8;
    margin-bottom: 0;
}

.cart-co-contacts {
    font-size: 14px;
    color: #111;
    line-height: 1.5;
}

.cart-co-contact-line {
    margin: 0.25rem 0 0;
}

.cart-co-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    .page-account .catalog-page {
        padding-top: calc(96px + 24px);
    }
}

/* Общий футер витрины (pages/site_footer.php) */
.site-footer {
    background: #000;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    line-height: 1.55;
    width: 100%;
    margin-top: 0;
}

.site-footer__main {
    padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
}

.site-footer__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 40px);
    align-items: start;
}

.site-footer__brand-logo {
    margin: 0 0 32px;
}

.site-footer__logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.site-footer__logo-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
    border-radius: 4px;
}

.site-footer__logo-img {
    display: block;
    height: auto;
    max-height: clamp(36px, 5vw, 52px);
    width: auto;
    max-width: min(220px, 100%);
    object-fit: contain;
}

.site-footer__lead {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.65;
    max-width: 38ch;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer__social-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: opacity 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    opacity: 0.82;
}

.site-footer__social-img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 14px 0 0;
}

.site-footer__legal-link {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__legal-link:hover,
.site-footer__legal-link:focus-visible {
    color: #fff;
}

.shop-consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 4px;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
    cursor: pointer;
}

.shop-consent-field__input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #1e293b;
    cursor: pointer;
}

.shop-consent-field__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-consent-field__text a:hover,
.shop-consent-field__text a:focus-visible {
    color: #0f172a;
}

.cart-checkout-form .shop-consent-field,
.account-form .shop-consent-field,
.site-footer-contact-modal__form .shop-consent-field {
    margin-top: 12px;
    margin-bottom: 8px;
}

.site-footer-contact-modal__form .shop-consent-field {
    color: #334155;
}

.cms-static-page .shop-legal-muted {
    color: #64748b;
    font-size: 14px;
}

.cms-static-page .blog-article-body h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.15rem;
}

.site-footer__heading {
    font-family: var(--shop-font-body, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
}

.site-footer__column-empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
    color: #fff;
}

.site-footer__news-text {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.site-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-footer__cta-btn:hover,
.site-footer__cta-btn:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.75);
}

.site-footer-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.site-footer-contact-modal.site-footer-contact-modal--open {
    display: flex;
}

.site-footer-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.site-footer-contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #fff;
    color: #111827;
    border-radius: 0;
    padding: 24px 22px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.site-footer-contact-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.site-footer-contact-modal__close:hover,
.site-footer-contact-modal__close:focus-visible {
    background: #e2e8f0;
}

.site-footer-contact-modal__title {
    margin: 0 36px 18px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.site-footer-contact-modal__form {
    margin: 0;
}

.site-footer-contact-modal__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer-contact-modal__field {
    margin-bottom: 14px;
}

.site-footer-contact-modal__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.site-footer-contact-modal__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
}

.site-footer-contact-modal__field input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
    border-color: #3b82f6;
}

.site-footer-contact-modal__status {
    min-height: 1.25em;
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
}

.site-footer-contact-modal__status.site-footer-contact-modal__status--error {
    color: #b91c1c;
}

.site-footer-contact-modal__status.site-footer-contact-modal__status--ok {
    color: #15803d;
}

.product-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.product-inquiry-modal.product-inquiry-modal--open {
    display: flex;
}

.product-inquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.product-inquiry-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #fff;
    color: #111827;
    border-radius: 0;
    padding: 24px 22px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.product-inquiry-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-inquiry-modal__close:hover,
.product-inquiry-modal__close:focus-visible {
    background: #e2e8f0;
}

.product-inquiry-modal__title {
    margin: 0 36px 18px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.product-inquiry-modal__form {
    margin: 0;
}

.product-inquiry-modal__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.product-inquiry-modal__field {
    margin-bottom: 14px;
}

.product-inquiry-modal__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.product-inquiry-modal__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
}

.product-inquiry-modal__form .shop-consent-field {
    margin-bottom: 14px;
}

.product-inquiry-modal__status {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
}

.product-inquiry-modal__status--error {
    color: #b91c1c;
}

.product-inquiry-modal__status--ok {
    color: #15803d;
}

.product-inquiry-modal__submit {
    width: 100%;
}

.site-footer-contact-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.site-footer-contact-modal__btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
}

.site-footer-contact-modal__btn--ghost {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.site-footer-contact-modal__btn--ghost:hover,
.site-footer-contact-modal__btn--ghost:focus-visible {
    background: #f1f5f9;
}

.site-footer-contact-modal__btn--primary {
    background: #111827;
    color: #fff;
}

.site-footer-contact-modal__btn--primary:hover:not(:disabled),
.site-footer-contact-modal__btn--primary:focus-visible:not(:disabled) {
    background: #334155;
}

.site-footer-contact-modal__btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.site-footer__subscribe {
    margin: 0;
}

.site-footer__email-wrap {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    max-width: 100%;
}

.site-footer__email-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    padding: 12px 14px;
    font-size: 13px;
    font-family: inherit;
    color: #111827;
    outline: none;
}

.site-footer__email-input::placeholder {
    color: #94a3b8;
}

.site-footer__email-submit {
    flex-shrink: 0;
    width: 46px;
    border: none;
    background: #111827;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.site-footer__email-submit:hover,
.site-footer__email-submit:focus-visible {
    background: #334155;
}

.site-footer__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 28px;
}

.site-footer__inner--bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.site-footer__copy {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__credit {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__credit-link {
    color: #22c55e;
    font-weight: 600;
    text-decoration: none;
}

.site-footer__credit-link:hover,
.site-footer__credit-link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__col--brand {
        grid-column: 1 / -1;
    }

    .site-footer__lead {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__inner--bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Быстрый поиск (оверлей сверху) */
.site-search {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.site-search[hidden] {
    display: none !important;
}

.site-search.is-open {
    pointer-events: auto;
}

.site-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.site-search.is-visible .site-search__backdrop {
    opacity: 1;
}

.site-search__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88vh, 720px);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: none;
    transform: translateY(-100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.site-search.is-visible .site-search__panel {
    transform: translateY(0);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
}

.site-search__head {
    flex-shrink: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #e8edf3;
}

.site-search__form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto;
}

.site-search__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid #d8e0ea;
    border-radius: 0;
    background: #f8fafc;
}

.site-search__field:focus-within {
    border-color: #94a3b8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.site-search__icon {
    flex-shrink: 0;
    color: #64748b;
}

.site-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 17px;
    line-height: 1.3;
    color: #0f172a;
    outline: none;
}

.site-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.site-search__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-search__close:hover,
.site-search__close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

.site-search__body {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 24px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.site-search__hint,
.site-search__status {
    margin: 20px 0 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.site-search__hint--empty {
    color: #475569;
}

.site-search__section {
    margin-top: 20px;
}

.site-search__section-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.site-search__group-link {
    color: inherit;
    text-decoration: none;
}

.site-search__group-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.site-search__cat-list,
.site-search__product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-search__cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-search__cat-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.site-search__cat-link:hover {
    background: #e2e8f0;
}

.site-search__product {
    border-bottom: 1px solid #eef2f6;
}

.site-search__product:last-child {
    border-bottom: none;
}

.site-search__product-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.site-search__product-link:hover {
    background: #f8fafc;
}

.site-search__product-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-search__product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-search__product-thumb--empty {
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.site-search__product-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-search__product-name {
    font-size: 15px;
    line-height: 1.35;
    color: #0f172a;
}

.site-search__product-price {
    font-size: 14px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.site-search__product-price .catalog-card-price-old {
    flex-shrink: 0;
}

.site-search__product-price .price-with-discount {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0;
}

.site-search__product-price .catalog-card-price-current {
    display: inline;
}

.site-search__product-price .price-discount-badge {
    position: static;
    bottom: auto;
    margin: 0 0 2px 5px;
}

.site-search__meta {
    margin: 16px 0 0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

.site-search-mark {
    background: #fef08a;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

body.site-search-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .site-search__head {
        padding: 10px 12px;
    }

    .site-search__body {
        padding: 4px 12px 20px;
    }

    .site-search__input {
        font-size: 16px;
        padding: 12px 0;
    }
}

/* Модальные окна — без скруглений (панель и элементы управления). */
.account-modal__dialog,
.cart-checkout-review-modal__dialog,
.site-footer-contact-modal__dialog,
.product-inquiry-modal__dialog,
.site-search__panel {
    border-radius: 0 !important;
}

.site-footer-contact-modal__close,
.product-inquiry-modal__close,
.site-search__close,
.mobile-nav-drawer__close,
.site-chat-close {
    border-radius: 0 !important;
}

.site-footer-contact-modal__field input,
.product-inquiry-modal__field input,
.site-search__field {
    border-radius: 0 !important;
}

/* Закругление кнопок: --shop-btn-radius задаётся в includes/shop_head.php (настройка «Закругление кнопок на сайте»). */
button:not(.site-message-fab):not(.site-chat-widget button):not(.catalog-card-action),
input[type="submit"]:not(.site-chat-widget input),
input[type="button"]:not(.site-chat-widget input),
input[type="reset"]:not(.site-chat-widget input),
.btn,
a.btn,
a.icon-btn,
.site-footer__cta-btn,
.home-heading-button,
.home-banner-slot__btn,
.site-footer-contact-modal__btn {
    border-radius: var(--shop-btn-radius, 0px) !important;
}

/* Лайк на карточке товара: всегда круг, независимо от «Закругление кнопок на сайте». */
.catalog-card-action,
.catalog-card-action.js-favorite-toggle {
    border-radius: 50% !important;
}

/* Чат-бот: не использует --shop-btn-radius */
.site-message-fab {
    border-radius: 50% !important;
}

.site-chat-widget .site-chat-send,
.site-chat-widget .site-chat-input,
.site-chat-widget .site-chat-call-manager {
    border-radius: var(--site-chat-control-radius, 8px) !important;
}