/* ==========================================================================
   TriStyle Shop Belarus — Основные стили
   Спортивно-fashion тема. Графит + бирюзовый + электрик-синий + оранжевый + лайм
   ========================================================================== */

/* --- CSS переменные --- */
:root {
    /* Тёмная база — графит */
    --color-primary: #0F172A;          /* slate-900 */
    --color-primary-light: #1E293B;    /* slate-800 */
    --color-primary-medium: #334155;   /* slate-700 */

    /* Основной бренд-акцент — бирюзовый */
    --color-accent: #14B8A6;           /* teal-500 */
    --color-accent-light: #2DD4BF;     /* teal-400 */
    --color-accent-dark: #0F766E;      /* teal-700 */

    /* Вторичный — электрик-синий */
    --color-electric: #2563EB;         /* blue-600 */
    --color-electric-light: #3B82F6;   /* blue-500 */

    /* Горячий CTA — оранжевый */
    --color-gold: #F97316;             /* orange-500 — оставляем имя gold для совместимости */
    --color-gold-light: #FB923C;       /* orange-400 */

    /* Энергетический акцент — лайм */
    --color-lime: #84CC16;             /* lime-500 */
    --color-lime-light: #A3E635;       /* lime-400 */

    /* Базовые */
    --color-white: #ffffff;
    --color-text: #ffffff;
    --color-text-muted: #94a3b8;       /* slate-400 */
    --color-text-dark: #0F172A;
    --color-bg-light: #F8FAFC;         /* slate-50 */
    --color-bg-card: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: #E2E8F0;     /* slate-200 */
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-sale: #F97316;

    /* Градиенты бренда */
    --gradient-brand: linear-gradient(135deg, #14B8A6 0%, #2563EB 100%);
    --gradient-hot: linear-gradient(135deg, #F97316 0%, #84CC16 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 80px;
    --container-width: 1320px;
    --container-padding: 2rem;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* --- Container --- */
.container {
    max-width: min(var(--container-width), 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

html, body { overflow-x: hidden; }

/* ==========================================================================
   Верхняя полоса (Top Bar)
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 32px; /* под WP admin bar */
    left: 0;
    right: 0;
    z-index: 1001;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 0;
    text-align: center;
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body:not(.admin-bar) .top-bar {
    top: 0;
}

/* ==========================================================================
   Хедер
   ========================================================================== */
.site-header {
    position: fixed;
    top: calc(32px + 34px + 40px + 14px); /* admin bar + top-bar + ccn-gift-topbanner + отступ */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition);
}

body:not(.admin-bar) .site-header {
    top: calc(34px + 40px + 14px); /* top-bar + ccn-gift-topbanner + отступ */
}

.header--transparent {
    background-color: transparent;
}

.header--transparent.header--scrolled {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.header--solid {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.header__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    height: var(--header-height);
    gap: 16px;
    min-width: 0;
}
/* Правая ячейка: меню + иконки + бургер в одной строке */
.header__right {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}
.header__right .header__nav--right {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: clip;
    overflow-y: visible;
}
.header__right .header__actions {
    flex: 0 0 auto;
}

/* Навигация */
.header__nav {
    min-width: 0;
    overflow-x: clip; /* режем горизонтальный overflow, но дропдаун вниз остаётся видимым */
    overflow-y: visible;
}
.header__nav .nav-menu {
    overflow: visible;
}
/* Отступ между меню и иконками справа, чтобы точно не соприкасались */
.header__right { gap: 20px; }

.header__nav--left {
    display: flex;
    align-items: center;
    justify-content: flex-end;   /* прижимаем к логотипу */
    padding-right: 8px;
}

.header__nav--right {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* прижимаем к логотипу */
    padding-left: 8px;
}

/* Логотип позиционируется точно по центру viewport-ширины контейнера */
.header__logo {
    grid-column: 2;
    justify-self: center;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
}
/* На среднем ноутбуке — чуть сжимаем текст пунктов, чтобы влезли все */
@media (max-width: 1280px) {
    .nav-menu li a { font-size: 13px; letter-spacing: 0.06em; }
}
@media (max-width: 1100px) {
    .nav-menu { gap: 10px; }
    .nav-menu li a { font-size: 12px; letter-spacing: 0.04em; }
}

.nav-menu li a {
    white-space: nowrap;
}

.nav-menu li a {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: opacity var(--transition-fast);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a:hover {
    opacity: 0.8;
}

/* Дропдаун меню */
.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    min-width: 180px;
    padding: 12px 0 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    z-index: 500;
    flex-direction: column;
    gap: 0;
}

/* Невидимый мост между пунктом меню и подменю чтобы курсор не «проваливался» */
.nav-menu li.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-menu li:hover > .sub-menu {
    display: flex;
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0.75;
    transition: all var(--transition-fast);
}

.nav-menu .sub-menu li a::after {
    display: none;
}

.nav-menu .sub-menu li a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.05);
    padding-left: 24px;
}

/* Стрелка у родительского пункта */
.nav-menu li.menu-item-has-children > a::before {
    content: '';
    display: none;
}

.nav-menu li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Все пункты меню — одинаковое вертикальное выравнивание,
   иначе items без стрелки (Плавание) съезжают вниз/вверх на 1-2px
   относительно items со стрелкой (Бег ▼, Повседневная ▼). */
.nav-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.nav-menu > li { display: flex; align-items: center; }

/* Шапка использует ПОЛНУЮ ширину окна (а не 1320px, как остальной сайт),
   чтобы меню было максимально широким и все пункты помещались */
.site-header .container {
    max-width: 100%;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}

/* Логотип */
.header__logo {
    flex-shrink: 0;
    text-align: center;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--color-white);
}

.logo-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

.logo-subtitle {
    display: block;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-top: 4px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}
/* Логотип-картинка + подпись — центрируем подпись точно под картинкой */
.logo-link .logo-img {
    display: block;
    margin: 0 auto;
}
.logo-link .custom-logo,
.logo-link img.custom-logo {
    display: block;
    margin: 0 auto;
}

/* Иконки действий */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-white);
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast);
    position: relative;
}

.header__action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background-color: var(--color-gold);
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header__search-toggle {
    display: none;
    color: var(--color-white);
}

/* Гамбургер */
.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
    opacity: 0;
}

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Поисковая панель
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 22, 40, 0.98);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-form__input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    font-weight: 300;
    padding: var(--spacing-sm) 0;
    outline: none;
    transition: border-color var(--transition);
}

.search-form__input::placeholder {
    color: var(--color-text-muted);
}

.search-form__input:focus {
    border-color: var(--color-gold);
}

.search-form__submit,
.search-form__close {
    color: var(--color-white);
    padding: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.search-form__submit:hover,
.search-form__close:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   Мобильное меню
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__inner {
    padding: var(--spacing-xl) var(--container-padding);
}

.mobile-nav li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav li a {
    display: block;
    color: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--spacing-md) 0;
}

/* ==========================================================================
   Hero-баннер
   ========================================================================== */
.hero {
    position: relative;
    height: 66vh;
    min-height: 384px;
    overflow: hidden;
    background: var(--color-primary); /* тёмный фон до загрузки картинки */
}

/* На главной страница начинается под hero, а не под шапкой */
body.home #page,
body.front-page #page { padding-top: 0 !important; }

.hero__slider {
    position: relative;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero__slide--active {
    opacity: 1;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/wp-content/themes/ccn-belarus/assets/images/hero-race.jpg') center top/cover no-repeat;
}

/* Слайд 2 — без фото, только градиент */

.hero__bg--alt {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 50%, var(--color-accent-light) 100%);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.3) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: var(--header-height);
}

.hero__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--spacing-lg);
}

.hero__title {
    font-size: var(--font-size-6xl);
    font-weight: 800;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: none;
    white-space: nowrap;
}

.hero__nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-white);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.hero__dot--active {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    right: var(--container-padding);
    color: var(--color-white);
    opacity: 0.5;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ==========================================================================
   Секции
   ========================================================================== */
.section {
    padding: var(--spacing-4xl) 0;
}

.section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

.section__label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
}

.section__title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-dark);
}

.section__link {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

.section__link:hover {
    color: var(--color-gold-light);
}

/* --- Категории --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    aspect-ratio: 3/2;
    transition: transform var(--transition);
}

.category-card--large {
    aspect-ratio: 16/9;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.category-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.category-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.8) 0%, rgba(10, 22, 40, 0.2) 100%);
    transition: background var(--transition);
}

.category-card:hover .category-card__overlay {
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.3) 100%);
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    color: var(--color-white);
    z-index: 2;
}

.category-card__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card__count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.category-card__link {
    display: inline-block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gold);
    margin-top: var(--spacing-xs);
    letter-spacing: 0.05em;
}

/* --- Секция "О бренде" --- */
.section--about {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--about .section__title {
    color: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-grid__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #0f172a;
}
/* Реальное фото магазина */
.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform .6s ease;
}
.about-photo:hover { transform: scale(1.03); }

.about-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-primary-medium) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

/* Вариант с логотипом вместо "Фото бренда" */
.about-placeholder--logo {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    padding: clamp(32px, 6%, 72px);
    position: relative;
    overflow: hidden;
}
.about-placeholder--logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.about-placeholder--logo .about-logo-img {
    position: relative;
    z-index: 1;
    max-width: 78%;
    max-height: 78%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
[data-theme="light"] .about-placeholder--logo {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}
[data-theme="light"] .about-placeholder--logo .about-logo-img {
    filter: drop-shadow(0 8px 24px rgba(10,22,40,0.15));
}

.about-text {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* --- Преимущества --- */
.section--features {
    background-color: var(--color-bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: var(--color-gold);
}

.feature-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.feature-card__text {
    font-size: var(--font-size-sm);
    color: #6b7280;
    line-height: 1.6;
}

/* --- Рассылка --- */
.section--newsletter {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0;
}

.newsletter {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter__title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.newsletter__text {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.newsletter__form {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Чекбокс согласия (auto-inject от ccn-consent) — отдельной строкой под полем */
.newsletter__form .ccn-consent-field {
    flex: 1 1 100%;
    width: 100%;
    text-align: left;
    margin: 4px 0 0;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.45;
}
.newsletter__form .ccn-consent-text { font-size: 12px; }

.newsletter__input {
    flex: 1;
    padding: 14px 20px;
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color var(--transition);
}

.newsletter__input::placeholder {
    color: var(--color-text-muted);
}

.newsletter__input:focus {
    border-color: var(--color-gold);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-gold);
    color: var(--color-primary);
    border-color: var(--color-gold);
}

.btn--primary:hover {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 165, 90, 0.4);
}

.btn--secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary-light);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--large {
    padding: 18px 40px;
    font-size: var(--font-size-base);
}

.btn--filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
}

.btn--filter:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================================
   Подвал (Footer)
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer__main {
    padding: var(--spacing-3xl) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-3xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.footer__logo .logo-name {
    font-size: 1.5rem;
}

.footer__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary-light);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-primary);
}

.footer__title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    color: var(--color-white);
}

.footer__menu li {
    margin-bottom: var(--spacing-xs);
}

.footer__menu li a {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__menu li a:hover {
    color: var(--color-gold);
}

.footer__contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__contacts li a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__contacts li a:hover {
    color: var(--color-gold);
}

.footer__contacts svg {
    flex-shrink: 0;
    color: var(--color-gold);
}

/* Карта Яндекс в подвале */
.footer__map-link {
    display: block;
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    line-height: 0;
    border: 1px solid rgba(255,255,255,0.08);
    transition: opacity 0.2s, box-shadow 0.2s;
}

.footer__map-link:hover {
    opacity: 0.9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.footer__map-img,
.footer__map-iframe {
    width: 100%;
    height: 160px;
    display: block;
    border-radius: 8px 8px 0 0;
    border: none;
}

.footer__map-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--color-gold);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    border-radius: 0 0 8px 8px;
}

.footer__map-hint svg {
    flex-shrink: 0;
    color: var(--color-primary);
}


/* Нижняя полоса */
.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__copyright {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.footer__payments {
    display: flex;
    gap: var(--spacing-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */
.breadcrumbs {
    padding: var(--spacing-sm) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.breadcrumb-item a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--color-gold);
}

/* ==========================================================================
   Страница контента
   ========================================================================== */
.page-content {
    padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
    min-height: 60vh;
}

.page-content--fullwidth {
    padding: 0;
}

.page-content--fullwidth .entry-content {
    max-width: none;
}

.page-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-xl);
}

.entry-content {
    max-width: 800px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: var(--spacing-md);
}

.entry-content h2,
.entry-content h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Страница 404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: var(--spacing-4xl) 0;
}

.error-404__code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.error-404__title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.error-404__text {
    font-size: var(--font-size-lg);
    color: #6b7280;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   Аккордеон (страница товара)
   ========================================================================== */
.product-accordion {
    margin-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border-light);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border-light);
}

.accordion-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: left;
    color: var(--color-text-dark);
    transition: color var(--transition-fast);
}

.accordion-item__header:hover {
    color: var(--color-gold);
}

.accordion-item__header svg {
    transition: transform var(--transition);
}

.accordion-item__header[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.accordion-item__content {
    display: none;
    padding-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: #6b7280;
    line-height: 1.7;
}

.accordion-item__content.active {
    display: block;
}

/* ============================
   БЕГУЩАЯ СТРОКА (TICKER)
   ============================ */
.ticker-wrap {
    background: var(--color-gold);
    overflow: hidden;
    padding: 14px 0;
    position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--color-gold), transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--color-gold), transparent);
}

.ticker {
    display: flex;
    white-space: nowrap;
}

.ticker__inner {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 40s linear infinite;
}

.ticker__inner:hover {
    animation-play-state: paused;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding: 0 28px;
    white-space: nowrap;
}

.ticker__item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.ticker__sep {
    color: var(--color-primary);
    opacity: 0.4;
    font-size: 10px;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================
   СТРАНИЦА КАСТОМИЗАЦИИ
   ============================ */
.custom-hero {
    background: var(--color-primary);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.custom-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(197, 165, 90, 0.15) 0%, transparent 70%);
}

.custom-hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.custom-hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.custom-hero__desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.custom-process {
    padding: 100px 0;
    background: #fff;
}

.custom-process__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.custom-process__sub {
    text-align: center;
    color: #6b7280;
    margin-bottom: 64px;
    font-size: 1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    counter-reset: step;
}

.process-step {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.process-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

.process-step__icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--color-gold);
}

.process-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.process-step__text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.custom-collections {
    padding: 100px 0;
    background: var(--color-primary);
}

.custom-collections__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.custom-collections__sub {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 64px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.collection-card {
    background: var(--color-primary-light);
    border: 1px solid rgba(197, 165, 90, 0.2);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s;
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
}

.collection-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.collection-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.collection-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.custom-team-store {
    padding: 100px 0;
    background: #f5f7fa;
}

.team-store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.team-store__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.team-store__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.team-store__text {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

.team-store__image {
    background: var(--color-primary);
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 4rem;
}

.custom-cta {
    padding: 100px 0;
    background: var(--color-primary);
    text-align: center;
}

.custom-cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.custom-cta__text {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .team-store-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .custom-hero {
        padding: 80px 0 60px;
    }
}

/* ============================
   СТРАНИЦА О БРЕНДЕ
   ============================ */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.about-hero__media {
    position: absolute;
    inset: 0;
}

.about-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,22,40,0.3) 0%, rgba(10,22,40,0.6) 100%);
}

.about-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 60px;
    text-align: center;
}

.about-hero__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.about-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

/* Вводная секция */
.about-intro {
    padding: 80px 0 60px;
    background: #fff;
}

.about-intro__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-intro__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 32px;
    line-height: 1.2;
}

.about-intro__text p {
    font-size: 1.05rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 16px;
}

/* Секции с разбивкой изображение/текст */
.about-split {
    padding: 80px 0;
}

.about-split--light {
    background: #fff;
}

.about-split--dark {
    background: var(--color-primary);
}

.about-split--dark .about-split__label { color: var(--color-gold); }
.about-split--dark .about-split__title { color: #fff; }
.about-split--dark p { color: var(--color-text-muted); }

.about-split__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-split__grid--img-right .about-split__image { order: 2; }
.about-split__grid--img-right .about-split__content { order: 1; }

.about-split__image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-split__image:hover img {
    transform: scale(1.03);
}

.about-split__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.about-split__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-split__content p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Глобальное присутствие */
.about-global {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.about-global__media {
    position: absolute;
    inset: 0;
}

.about-global__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-global__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,0.6);
}

.about-global__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.about-global__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.about-global__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-global__text {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    max-width: 500px;
}

/* Статистика */
.about-stats {
    background: var(--color-primary);
    padding: 80px 0;
}

.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.about-stat__number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.about-stat__label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* О бренде в Беларуси */
.about-belarus {
    padding: 80px 0;
    background: #f5f7fa;
}

.about-belarus .about-split__title { color: var(--color-primary); }
.about-belarus .about-split__content p { color: #374151; }

.about-checkmarks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.about-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #374151;
}

.about-check span {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .about-split__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-split__grid--img-right .about-split__image { order: 1; }
    .about-split__grid--img-right .about-split__content { order: 2; }
    .about-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .about-checkmarks {
        grid-template-columns: 1fr;
    }
    .about-hero { height: 50vh; }
}

/* ==========================================================================
   Страница Кастомизации
   ========================================================================== */

/* --- Hero --- */
.custom-page-hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2d4a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 2rem 0;
}

.custom-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.ccnsport.com/cdn/shop/files/Winter_Promo.webp') center/cover no-repeat;
    opacity: 0.15;
}

.custom-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,22,40,0.5) 0%, rgba(10,22,40,0.2) 60%, rgba(10,22,40,0.8) 100%);
}

.custom-page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.custom-page-hero__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.custom-page-hero__title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.custom-page-hero__sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.custom-page-hero__stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    margin-top: 60px;
}

.custom-page-hero__stat {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.custom-page-hero__stat:last-child {
    border-right: none;
}

.custom-page-hero__stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.custom-page-hero__stat span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Tabs Navigation --- */
.custom-tabs-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.custom-tabs-nav__inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-tabs-nav__inner::-webkit-scrollbar {
    display: none;
}

.custom-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.custom-tab-btn:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}

.custom-tab-btn.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
    background: rgba(197,165,90,0.06);
}

.custom-tab-btn__badge {
    font-size: 1.3rem;
    line-height: 1;
}

.custom-tab-btn__label {
    font-size: 0.7rem;
}

/* --- Tab Header (colored band) --- */
.custom-tab-header {
    padding: 60px 0;
}

.custom-tab-header__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.custom-tab-header__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.custom-tab-header__title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.custom-tab-header__desc {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.custom-tab-header__img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-tab-header__img img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

/* --- Product Grid --- */
.custom-tab-products {
    padding: 60px 0;
    background: #f5f7fa;
}

.custom-tab-products__header {
    margin-bottom: 36px;
}

.custom-tab-products__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.custom-tab-products__sub {
    color: #6b7280;
    font-size: 0.875rem;
}

.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.custom-product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.custom-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.custom-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.custom-product-card__img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f2f5;
}

.custom-product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform var(--transition-slow);
}

.custom-product-card:hover .custom-product-card__img img {
    transform: scale(1.05);
}

/* Preview overlay (before MoySklad sync) */
.custom-product-card--preview .custom-product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,22,40,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.custom-product-card--preview:hover .custom-product-card__overlay {
    opacity: 1;
}

.custom-product-card__overlay span {
    background: var(--color-gold);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.custom-product-card__info {
    padding: 14px 16px;
}

.custom-product-card__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 4px;
}

.custom-product-card__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold);
}

.custom-product-card__note {
    font-size: 0.75rem;
    color: #9ca3af;
}

.custom-product-card__btn {
    margin: 0 16px 16px;
}

/* Sync notice */
.custom-sync-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 24px;
    color: #6b7280;
    font-size: 0.875rem;
}

.custom-sync-notice svg {
    flex-shrink: 0;
    color: var(--color-gold);
}

/* --- How to Order --- */
.custom-how {
    padding: 80px 0;
    background: var(--color-primary);
}

.custom-how__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 56px;
}

.custom-how__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.custom-how__steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: linear-gradient(to right, var(--color-gold), rgba(197,165,90,0.3));
}

.custom-how__step {
    text-align: center;
    position: relative;
}

.custom-how__num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.custom-how__icon {
    width: 56px;
    height: 56px;
    background: rgba(197,165,90,0.1);
    border: 1px solid rgba(197,165,90,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--color-gold);
}

.custom-how__step h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.custom-how__step p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- CTA Section --- */
.custom-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a3a5c 0%, #0a1628 100%);
    text-align: center;
}

.custom-cta-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.custom-cta-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto 36px;
}

.custom-cta-section__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .custom-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .custom-how__steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-how__steps::before { display: none; }
}

@media (max-width: 768px) {
    .custom-page-hero {
        min-height: 80vh;
        padding-top: 100px;
    }
    .custom-page-hero__stats {
        flex-wrap: wrap;
    }
    .custom-page-hero__stat {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .custom-tab-header__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .custom-tab-header__img { display: none; }
    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-how__steps {
        grid-template-columns: 1fr 1fr;
    }
    .custom-cta-section__btns {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .custom-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .custom-tab-btn {
        padding: 14px 14px;
    }
}

/* ==========================================================================
   Icons Strip — горизонтальная лента с иконками (аналог ccnsport.com)
   ========================================================================== */
.section--icons-strip {
    padding: 0;
    background-color: var(--color-bg-light);
    overflow: hidden;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.icons-strip {
    overflow: hidden;
    position: relative;
}

.icons-strip::before,
.icons-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.icons-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-light), transparent);
}
.icons-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-light), transparent);
}

.icons-strip__track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    animation: iconsScroll 32s linear infinite;
    width: max-content;
}
.icons-strip__track:hover {
    animation-play-state: paused;
}

@keyframes iconsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.icons-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 36px;
    min-width: 200px;
    border-right: 1px solid var(--color-border-light);
    flex-shrink: 0;
    transition: background-color 0.2s;
}
.icons-strip__item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.icons-strip__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icons-strip__icon svg {
    width: 100%;
    height: 100%;
}
.icons-strip__icon--text {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-text-dark);
    line-height: 1;
    letter-spacing: -0.04em;
}

.icons-strip__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin: 0 0 6px;
    line-height: 1.3;
}

.icons-strip__text {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   CCN Custom Banner — второй слайд героя + отдельная секция
   ========================================================================== */

/* Слайд-обёртка: flex-контейнер */
.hero__slide--custom {
    display: flex;
    align-items: stretch;
    background-color: var(--color-primary);
}

/* Начальное состояние — ждём активации слайда */
.hero__slide--custom .custom-banner__content {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.75s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero__slide--custom .custom-banner__grid {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.75s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero__slide--custom .custom-banner__grid-item {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero__slide--custom .custom-banner__grid-item--1 { transition-delay: 0.5s; }
.hero__slide--custom .custom-banner__grid-item--2 { transition-delay: 0.65s; }
.hero__slide--custom .custom-banner__grid-item--3 { transition-delay: 0.7s; }
.hero__slide--custom .custom-banner__grid-item--4 { transition-delay: 0.75s; }
.hero__slide--custom .custom-banner__grid-item--5 { transition-delay: 0.58s; }

/* Активный слайд — анимируем появление */
.hero__slide--active.hero__slide--custom .custom-banner__content,
.hero__slide--active.hero__slide--custom .custom-banner__grid {
    opacity: 1;
    transform: none;
}
.hero__slide--active.hero__slide--custom .custom-banner__grid-item {
    opacity: 1;
    transform: scale(1);
}

/* Индивидуальные фото для каждой ячейки */
.hero__slide--custom .custom-banner__grid-item {
    background-size: cover;
    background-position: center;
    transition: background-size 0.4s ease, opacity 0.5s ease, transform 0.5s ease;
}
.hero__slide--custom .custom-banner__grid-item--1 {
    background-image: url('/wp-content/themes/ccn-belarus/assets/images/custom-wide.jpg');
    background-position: center 30%;
}
.hero__slide--custom .custom-banner__grid-item--2 {
    background-image: url('/wp-content/themes/ccn-belarus/assets/images/custom-2.webp');
}
.hero__slide--custom .custom-banner__grid-item--3 {
    background-image: url('/wp-content/themes/ccn-belarus/assets/images/custom-3.webp');
}
.hero__slide--custom .custom-banner__grid-item--4 {
    background-image: url('/wp-content/themes/ccn-belarus/assets/images/custom-4.webp');
}
.hero__slide--custom .custom-banner__grid-item--5 {
    background-image: url('/wp-content/themes/ccn-belarus/assets/images/custom-wide.jpg');
    background-position: center 70%;
}

.custom-banner {
    display: flex;
    align-items: stretch;
    min-height: 520px;
    background-color: var(--color-primary);
    overflow: hidden;
    position: relative;
}

/* Левая часть — текст */
.custom-banner__content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 80px 60px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 2;

    /* Анимация входа */
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.custom-banner.is-visible .custom-banner__content {
    opacity: 1;
    transform: translateX(0);
}

.custom-banner__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    padding: 6px 14px;
    border: 1.5px solid var(--color-gold);
    border-radius: 2px;
    align-self: flex-start;
}

.custom-banner__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    margin: 0;
    letter-spacing: -0.02em;
}

.custom-banner__text {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 420px;
    margin: 0;
}

.custom-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-gold);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    align-self: flex-start;
    transition: background-color var(--transition-base), transform var(--transition-base);
}
.custom-banner__btn:hover {
    background-color: var(--color-gold-light);
    transform: translateX(4px);
    color: var(--color-primary);
}
.custom-banner__btn span {
    font-size: 1.1em;
    transition: transform var(--transition-base);
}
.custom-banner__btn:hover span {
    transform: translateX(4px);
}

/* Правая часть — сетка фото */
.custom-banner__grid {
    flex: 0 0 50%;
    max-width: 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    position: relative;
    overflow: hidden;

    /* Анимация входа */
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.custom-banner.is-visible .custom-banner__grid {
    opacity: 1;
    transform: translateX(0);
}

.custom-banner__grid-item {
    background-color: var(--color-primary-light);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

/* Тёмный оверлей поверх фото */
.custom-banner__grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.45);
    z-index: 1;
    transition: background 0.3s;
}
.custom-banner__grid-item:hover::before {
    background: rgba(10, 22, 40, 0.25);
}

/* Zoom при hover */
.custom-banner__grid-item {
    overflow: hidden;
}
.custom-banner__grid-item:hover {
    background-size: 110%;
}

/* Расположение ячеек в сетке */
.custom-banner__grid-item--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}
.custom-banner__grid-item--2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.custom-banner__grid-item--3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}
.custom-banner__grid-item--4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
.custom-banner__grid-item--5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Диагональный оверлей на правой части */
.custom-banner__grid::after {
    content: '';
    position: absolute;
    top: 0; left: -40px;
    width: 80px;
    height: 100%;
    background: var(--color-primary);
    clip-path: polygon(40px 0, 100% 0, 60px 100%, 0% 100%);
    z-index: 3;
}

/* Лого внутри ячейки */
.custom-banner__grid-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 2;
}
.custom-banner__grid-logo img {
    display: block;
    max-width: 110px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Подпись "Официальное представительство" */
.custom-banner__grid-label {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    padding: 0 14px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(197, 165, 90, 0.85);
    z-index: 2;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .custom-banner {
        flex-direction: column;
        min-height: auto;
    }
    .custom-banner__content,
    .custom-banner__grid {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .custom-banner__content {
        padding: 60px 40px;
        transform: translateY(-40px);
    }
    .custom-banner.is-visible .custom-banner__content {
        transform: translateY(0);
    }
    .custom-banner__grid {
        min-height: 280px;
        transform: translateY(40px);
    }
    .custom-banner.is-visible .custom-banner__grid {
        transform: translateY(0);
    }
    .custom-banner__grid::after { display: none; }
}

@media (max-width: 480px) {
    .custom-banner__content {
        padding: 40px 24px;
        gap: 16px;
    }
    .custom-banner__title {
        font-size: 1.8rem;
    }
    .custom-banner__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        min-height: 240px;
    }
    .custom-banner__grid-item--1 { grid-column: 1 / 3; }
    .custom-banner__grid-item--5 { grid-column: 1 / 3; }
}

/* ========================================
   Страницы: Постпродажная, Контакты, FAQ,
   Каталог, Таблица размеров
   ======================================== */

/* Убираем отступ сверху для hero-секций на страницах */
.page-template-default .site-content > .ccn-page-hero,
.page-template-default .site-content > div:first-child[style*="background"] {
    margin-top: 0;
}

/* Hero-баннер страниц */
.ccn-page-hero {
    width: 100%;
    overflow: hidden;
}

/* Мобильная адаптация: форма в 1 колонку */
@media (max-width: 600px) {
    .ccn-page-hero h1 { font-size: 1.8rem !important; }

    /* Сетка карточек контактов в 1 колонку */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Форма: двойная сетка → одна колонка */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Таблицы размеров: горизонтальный скролл */
    .ccn-size-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"] {
        grid-template-columns: 1fr !important;
    }
}

/* FAQ аккордеон */
.ccn-faq-answer {
    display: none;
    overflow: hidden;
}
.ccn-faq-answer.open {
    display: block;
    animation: ccnFadeIn 0.2s ease;
}
@keyframes ccnFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Таблицы размеров */
.ccn-size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 48px;
    font-size: 0.9rem;
}
.ccn-size-table thead tr {
    background: #0a1628;
    color: #fff;
}
.ccn-size-table thead th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.ccn-size-table thead th:first-child { text-align: left; }
.ccn-size-table tbody tr:nth-child(even) { background: #f5f7fa; }
.ccn-size-table tbody tr:hover { background: #e8f0fe; }
.ccn-size-table tbody td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #e4e9f4;
    color: #333;
}
.ccn-size-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: #0a1628;
    white-space: nowrap;
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.ccn-breadcrumbs { background: #f8fafc; border-bottom: 1px solid #e5eaf2; }
.ccn-breadcrumbs .container { padding-top: 12px; padding-bottom: 12px; }
.bc-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .83rem; }
.bc-item { display: flex; align-items: center; gap: 4px; color: #889; }
.bc-item a { color: #556; text-decoration: none; transition: color .15s; }
.bc-item a:hover { color: #0a1628; }
.bc-item--current { color: #0a1628; font-weight: 500; }
.bc-sep { color: #bbb; font-size: .75rem; }

/* ==========================================================================
   FLOATING CONTACTS (WhatsApp / Telegram / Call)
   ========================================================================== */
.ccn-float-contacts { position: fixed; bottom: 28px; right: 24px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ccn-float-toggle { width: 56px; height: 56px; border-radius: 50%; background: #0a1628; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(10,22,40,.35); transition: background .2s, transform .2s; color: #fff; position: relative; }
.ccn-float-toggle:hover { background: #1e3a5f; transform: scale(1.08); }
.ccn-float-icon { position: absolute; transition: opacity .2s, transform .2s; }
.ccn-float-icon--close { opacity: 0; transform: rotate(-90deg); }
.ccn-float-contacts.open .ccn-float-icon--chat { opacity: 0; transform: rotate(90deg); }
.ccn-float-contacts.open .ccn-float-icon--close { opacity: 1; transform: rotate(0); }
.ccn-float-contacts__btns { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.ccn-float-btn { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 28px; text-decoration: none; font-size: .88rem; font-weight: 700; color: #fff; box-shadow: 0 3px 14px rgba(0,0,0,.2); transition: transform .15s, box-shadow .15s; white-space: nowrap; transform: translateX(80px); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease, box-shadow .15s; }
.ccn-float-contacts.open .ccn-float-btn { transform: translateX(0); opacity: 1; pointer-events: auto; }
.ccn-float-contacts.open .ccn-float-btn:nth-child(1) { transition-delay: .05s; }
.ccn-float-contacts.open .ccn-float-btn:nth-child(2) { transition-delay: .10s; }
.ccn-float-contacts.open .ccn-float-btn:nth-child(3) { transition-delay: .15s; }
.ccn-float-btn:hover { transform: translateX(-4px) !important; box-shadow: 0 5px 18px rgba(0,0,0,.28); }
.ccn-float-btn--tg  { background: #229ED9; }
.ccn-float-btn--wa  { background: #25D366; }
.ccn-float-btn--call{ background: #0a1628; }
@media(max-width:480px) { .ccn-float-btn span { display: none; } .ccn-float-btn { padding: 12px; border-radius: 50%; width: 48px; height: 48px; justify-content: center; } }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.ccn-cookie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9980; background: #0a1628; color: #fff; padding: 16px 24px; }
.ccn-cookie__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ccn-cookie__text { flex: 1; font-size: .88rem; line-height: 1.55; min-width: 200px; }
.ccn-cookie__text a { color: #c5a55a; }
.ccn-cookie__btns { display: flex; gap: 10px; flex-shrink: 0; }
.ccn-cookie__accept { background: #c5a55a; color: #0a1628; border: none; padding: 9px 20px; border-radius: 6px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: background .2s; }
.ccn-cookie__accept:hover { background: #d4b86a; }
.ccn-cookie__decline { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); padding: 9px 16px; border-radius: 6px; font-size: .88rem; cursor: pointer; transition: border-color .2s; }
.ccn-cookie__decline:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ==========================================================================
   NEWSLETTER POPUP
   ========================================================================== */
.ccn-nl-overlay { position: fixed; inset: 0; z-index: 9970; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ccn-nl-modal { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; position: relative; overflow: hidden; }
.ccn-nl-close { position: absolute; top: 14px; right: 14px; background: none; border: none; cursor: pointer; color: #889; padding: 6px; z-index: 2; transition: color .15s; }
.ccn-nl-close:hover { color: #0a1628; }
.ccn-nl-body { padding: 48px 40px 36px; }
@media(max-width:480px) { .ccn-nl-body { padding: 40px 24px 28px; } }
.ccn-nl-label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #c5a55a; margin-bottom: 12px; }
.ccn-nl-title { font-size: 1.8rem; font-weight: 800; color: #0a1628; margin: 0 0 12px; line-height: 1.15; }
.ccn-nl-desc { font-size: .93rem; color: #556; line-height: 1.6; margin-bottom: 24px; }
.ccn-nl-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ccn-nl-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d1d9e6;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.ccn-nl-input:focus {
    outline: none;
    border-color: #0a1628;
    box-shadow: 0 0 0 3px rgba(10,22,40,.08);
}
/* Чекбоксы согласия — компактный список под полем */
.ccn-nl-consent {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 2px 0 4px !important;
    text-align: left !important;
}
.ccn-nl-consent label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    cursor: pointer;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #64748b !important;
    margin: 0 !important;
}
.ccn-nl-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #c5a55a;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.ccn-nl-consent a {
    color: #c5a55a !important;
    text-decoration: underline;
}
.ccn-nl-submit {
    background: #0a1628;
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
    width: 100%;
}
.ccn-nl-submit:hover { background: #1e3a5f; transform: translateY(-1px); }
.ccn-nl-success {
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: .93rem;
    margin-top: 16px;
}
.ccn-nl-privacy {
    font-size: .78rem;
    color: #94a3b8;
    margin-top: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================================
   QUICK VIEW MODAL
   ========================================================================== */
.ccn-qv-overlay { position: fixed; inset: 0; z-index: 9960; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ccn-qv-modal { background: #fff; border-radius: 14px; max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.ccn-qv-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: #f5f7fa; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #556; transition: background .15s; }
.ccn-qv-close:hover { background: #e5eaf2; }
.ccn-qv-loading { padding: 60px; text-align: center; color: #889; }
.qv-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media(max-width:640px) { .qv-inner { grid-template-columns: 1fr; } }
.qv-gallery { padding: 32px 24px 32px 32px; }
.qv-main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; display: block; }
.qv-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qv-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s; }
.qv-thumb--active, .qv-thumb:hover { border-color: #0a1628; }
.qv-info { padding: 32px 32px 32px 24px; display: flex; flex-direction: column; }
.qv-brand { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #c5a55a; margin-bottom: 8px; display: block; }
.qv-title { font-size: 1.4rem; font-weight: 800; color: #0a1628; margin: 0 0 12px; }
.qv-price { font-size: 1.4rem; font-weight: 800; color: #0a1628; margin-bottom: 16px; }
.qv-desc { font-size: .9rem; color: #556; line-height: 1.65; margin-bottom: 24px; flex: 1; }
.qv-actions { display: flex; flex-direction: column; gap: 10px; }
.qv-add-btn { background: #0a1628; color: #fff; border: none; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; text-align: center; text-decoration: none; display: block; transition: background .2s; }
.qv-add-btn:hover { background: #1e3a5f; }
.qv-detail-btn { background: transparent; color: #0a1628; border: 1.5px solid #0a1628; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: .93rem; text-align: center; text-decoration: none; display: block; transition: background .2s; }
.qv-detail-btn:hover { background: #f0f4fa; }

/* product card quick-view & wishlist buttons */
.product-card__quick-view,
.product-card__wishlist { background: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #556; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: color .15s, transform .15s; }
.product-card__quick-view:hover { color: #0a1628; transform: scale(1.1); }
.product-card__wishlist:hover, .product-card__wishlist.active { color: #e11d48; }
.product-card__wishlist.active svg { fill: #e11d48; stroke: #e11d48; }

/* ==========================================================================
   WISHLIST BUTTON — страница товара
   ========================================================================== */
.ccn-wl-btn--single { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid #d1d9e6; color: #556; padding: 12px 18px; border-radius: 8px; cursor: pointer; font-size: .88rem; font-weight: 600; font-family: inherit; margin-top: 10px; transition: border-color .2s, color .2s; width: 100%; justify-content: center; }
.ccn-wl-btn--single:hover, .ccn-wl-btn--single.active { border-color: #e11d48; color: #e11d48; }
.ccn-wl-btn--single.active svg { fill: #e11d48; stroke: #e11d48; }
.ccn-wl-btn--single.active .ccn-wl-label::before { content: "✓ "; }

/* Ссылка "Таблица размеров" под формой корзины */
.ccn-size-guide-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: #556; text-decoration: underline; text-decoration-color: transparent; border-bottom: 1px solid #d1d9e6; padding-bottom: 2px; transition: color .15s, border-color .15s; margin-top: 8px; }
.ccn-size-guide-link:hover { color: #0a1628; border-color: #0a1628; }

/* ==========================================================================
   BACK-IN-STOCK FORM
   ========================================================================== */
.ccn-bis-form { background: #f8fafc; border: 1.5px solid #e5eaf2; border-radius: 10px; padding: 20px 20px 16px; margin-top: 20px; }
.ccn-bis-title { font-size: .95rem; font-weight: 700; color: #0a1628; margin: 0 0 4px; }
.ccn-bis-desc { font-size: .85rem; color: #778; margin: 0 0 14px; }
.ccn-bis-inner { display: flex; gap: 8px; }
.ccn-bis-email { flex: 1; padding: 10px 14px; border: 1.5px solid #d1d9e6; border-radius: 6px; font-size: .9rem; font-family: inherit; }
.ccn-bis-email:focus { outline: none; border-color: #0a1628; }
.ccn-bis-submit { background: #0a1628; color: #fff; border: none; padding: 10px 16px; border-radius: 6px; font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; transition: background .2s; }
.ccn-bis-submit:hover { background: #1e3a5f; }
.ccn-bis-ok { background: #f0fdf4; color: #166534; border-radius: 6px; padding: 10px 14px; font-size: .88rem; margin-top: 10px; }

/* ==========================================================================
   НЕДАВНО ПРОСМОТРЕННЫЕ
   ========================================================================== */
.ccn-recently-viewed { padding: 56px 0 64px; background: #f8fafc; border-top: 1px solid #e5eaf2; }
.ccn-rv-title { font-size: 1.3rem; font-weight: 800; color: #0a1628; margin-bottom: 28px; }
.ccn-rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.ccn-rv-card { background: #fff; border: 1px solid #e5eaf2; border-radius: 8px; overflow: hidden; text-decoration: none; transition: box-shadow .2s; display: block; }
.ccn-rv-card:hover { box-shadow: 0 4px 16px rgba(10,22,40,.10); }
.ccn-rv-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #f0f4fa; }
.ccn-rv-card__info { padding: 10px 12px 12px; }
.ccn-rv-card__name { font-size: .82rem; font-weight: 600; color: #0a1628; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ccn-rv-card__price { font-size: .88rem; font-weight: 700; color: #1e3a5f; }

/* ==========================================================================
   INLINE SIZE TABLE (внутри аккордеона товара)
   ========================================================================== */
.ccn-inline-size-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin-top: 12px; }
.ccn-inline-size-table th, .ccn-inline-size-table td { border: 1px solid #e5eaf2; padding: 6px 10px; text-align: center; }
.ccn-inline-size-table th { background: #0a1628; color: #fff; font-weight: 700; }
.ccn-inline-size-table td:first-child { text-align: left; font-weight: 600; background: #f8fafc; }

/* ═══════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════ */
.ccn-404-page { min-height: 100vh; background: #f5f7fa; }
.ccn-404-hero { background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%); padding: 100px 0 80px; text-align: center; }
.ccn-404-code { font-size: clamp(5rem, 15vw, 10rem); font-weight: 900; color: #c5a55a; line-height: 1; margin-bottom: 16px; opacity: .9; }
.ccn-404-title { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; color: #fff; margin: 0 0 16px; }
.ccn-404-sub { font-size: 1rem; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; }
.ccn-404-search { display: flex; max-width: 480px; margin: 0 auto; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.25); border-radius: 50px; overflow: hidden; }
.ccn-404-search__input { flex: 1; background: none; border: none; outline: none; padding: 14px 20px; font-size: .95rem; color: #fff; font-family: inherit; }
.ccn-404-search__input::placeholder { color: rgba(255,255,255,.45); }
.ccn-404-search__btn { background: #c5a55a; border: none; padding: 0 22px; cursor: pointer; color: #0a1628; display: flex; align-items: center; transition: background .2s; }
.ccn-404-search__btn:hover { background: #d4b86a; }
.ccn-404-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 48px 0 32px; }
.ccn-404-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 24px; background: #fff; border-radius: 12px; text-decoration: none; color: #0a1628; font-size: .85rem; font-weight: 600; min-width: 110px; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.ccn-404-link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.ccn-404-link__icon { font-size: 1.8rem; }
.ccn-404-section { margin: 0 0 48px; }
.ccn-404-section__title { font-size: 1.15rem; font-weight: 800; color: #0a1628; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid #0a1628; }
.ccn-404-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.ccn-404-cat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 1.5px solid #e5eaf2; border-radius: 50px; text-decoration: none; color: #0a1628; font-size: .88rem; font-weight: 600; transition: border-color .2s, background .2s; }
.ccn-404-cat:hover { border-color: #c5a55a; background: #fdf9f0; }
.ccn-404-cat__count { font-size: .75rem; color: #aaa; font-weight: 400; }
.ccn-404-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .ccn-404-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ccn-404-products { grid-template-columns: repeat(2, 1fr); } }
.ccn-404-product { text-decoration: none; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.ccn-404-product:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.ccn-404-product__img { aspect-ratio: 3/4; overflow: hidden; background: #f0f0f0; }
.ccn-404-product__img img { width: 100%; height: 100%; object-fit: cover; }
.ccn-404-product__img--placeholder { background: linear-gradient(135deg, #e8edf2, #d0d8e4); }
.ccn-404-product__info { padding: 12px; }
.ccn-404-product__name { font-size: .82rem; font-weight: 600; color: #0a1628; margin-bottom: 4px; line-height: 1.4; }
.ccn-404-product__price { font-size: .88rem; color: #c5a55a; font-weight: 700; }
.ccn-404-back { text-align: center; padding: 16px 0 64px; }
.ccn-404-home-btn { display: inline-block; padding: 14px 32px; background: #0a1628; color: #fff; text-decoration: none; border-radius: 50px; font-weight: 700; font-size: .95rem; transition: background .2s; }
.ccn-404-home-btn:hover { background: #1e3a5f; }

/* ═══════════════════════════════════════
   TELEGRAM ORDER BUTTON
   ═══════════════════════════════════════ */
.ccn-tg-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 24px;
    background: #0088cc;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    transition: background .2s, transform .15s;
}
.ccn-tg-order-btn:hover {
    background: #0099dd;
    transform: translateY(-1px);
    color: #fff;
}
.ccn-tg-order-btn svg {
    flex-shrink: 0;
}

/* ============================================================
   1. STICKY CART BAR
   ============================================================ */
.ccn-sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0a1628;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.ccn-sticky-cart--active {
  transform: translateY(0);
}

.ccn-sticky-cart__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.ccn-sticky-cart__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  color: #fff;
}

.ccn-sticky-cart__price {
  color: #c5a55a;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.ccn-sticky-cart__btn {
  background: #c5a55a;
  color: #0a1628;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.ccn-sticky-cart__btn:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .ccn-sticky-cart__name {
    display: none;
  }
}

/* ============================================================
   2. SIZE CALCULATOR MODAL
   ============================================================ */
.ccn-sc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.ccn-sc-modal--active {
  display: flex;
}

.ccn-sc-wrap {
  background: #fff;
  max-width: 480px;
  width: 90%;
  border-radius: 16px;
  padding: 40px;
  position: relative;
}

.ccn-sc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #0a1628;
  line-height: 1;
}

.ccn-sc-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 24px;
}

.ccn-sc-field {
  margin-bottom: 16px;
}

.ccn-sc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a1628;
  margin-bottom: 6px;
}

.ccn-sc-field input {
  width: 100%;
  border: 1.5px solid #dde1ea;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #0a1628;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ccn-sc-field input:focus {
  border-color: #c5a55a;
  outline: none;
}

.ccn-sc-submit {
  width: 100%;
  background: #c5a55a;
  color: #0a1628;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.ccn-sc-submit:hover {
  opacity: 0.85;
}

.ccn-sc-result {
  display: none;
  margin-top: 24px;
  text-align: center;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 12px;
}

.ccn-sc-result--visible {
  display: block;
}

.ccn-sc-result__label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.ccn-sc-result__size {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a1628;
}

/* ============================================================
   3. COMPLETE THE LOOK
   ============================================================ */
.ccn-complete-look {
  background: #f5f7fa;
  padding: 64px 0;
}

.ccn-cl-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a1628;
  border-bottom: 2px solid #0a1628;
  padding-bottom: 10px;
  margin-bottom: 32px;
  display: inline-block;
}

.ccn-cl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .ccn-cl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ccn-cl-card {
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ccn-cl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.ccn-cl-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  display: block;
  background: #f5f7fa;
  padding: 12px;
  box-sizing: border-box;
}

.ccn-cl-card__info {
  padding: 12px;
}

.ccn-cl-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 4px;
}

.ccn-cl-card__price {
  font-size: 0.85rem;
  color: #c5a55a;
  font-weight: 600;
}

/* ============================================================
   4. ATHLETES SECTION
   ============================================================ */
.ccn-athletes {
  background: #0a1628;
  padding: 80px 0;
  color: #fff;
}

.ccn-ath-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c5a55a;
  margin-bottom: 10px;
}

.ccn-ath-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 40px;
}

.ccn-ath-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .ccn-ath-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ccn-ath-grid {
    grid-template-columns: 1fr;
  }
}

.ccn-ath-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
}

.ccn-ath-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #0d1f3c 0%, #060e1a 100%);
  position: relative;
  overflow: hidden;
}

.ccn-ath-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ccn-ath-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c5a55a;
  color: #0a1628;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.ccn-ath-info {
  padding: 20px;
}

.ccn-ath-info__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ccn-ath-info__sport {
  font-size: 0.8rem;
  color: rgba(197, 165, 90, 0.7);
  margin-bottom: 12px;
}

.ccn-ath-info__link {
  font-size: 0.8rem;
  color: #c5a55a;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.ccn-ath-info__link:hover {
  opacity: 0.75;
}

/* ============================================================
   5. COUNTDOWN TIMER BANNER
   ============================================================ */
.ccn-countdown-banner {
  background: #c5a55a;
  color: #0a1628;
  text-align: center;
  padding: 10px 20px;
  display: none;
}

.ccn-countdown-banner--active {
  display: block;
}

.ccn-countdown-banner__inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.ccn-countdown-banner__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a1628;
}

.ccn-countdown-banner__timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ccn-cd-digit {
  background: #fff;
  color: #0a1628;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 4px 10px;
  min-width: 2.2em;
  text-align: center;
  display: inline-block;
}

.ccn-cd-sep {
  font-weight: 700;
  font-size: 1rem;
  color: #0a1628;
  line-height: 1;
}

/* ============================================================
   6. REVIEW PHOTO STYLES
   ============================================================ */
.comment-form-photo {
  margin-top: 16px;
}

.ccn-review-photo-wrap {
  margin-bottom: 12px;
}

.ccn-review-photo-label {
  display: inline-block;
  border: 1.5px dashed #c5a55a;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #0a1628;
  font-weight: 600;
  transition: background 0.2s;
}

.ccn-review-photo-label:hover {
  background: rgba(197, 165, 90, 0.1);
}

.ccn-review-photo-name {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 6px;
}

.ccn-review-photo {
  display: block;
  max-width: 200px;
  max-height: 160px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   ATHLETES SECTION
   ═══════════════════════════════════════ */
.ccn-athletes { background: #0a1628; padding: 88px 0; }
.ccn-ath-header { text-align: center; margin-bottom: 52px; }
.ccn-ath-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #c5a55a; margin-bottom: 12px; }
.ccn-ath-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: #fff; margin: 0 0 12px; }
.ccn-ath-sub { font-size: .95rem; color: rgba(255,255,255,.6); max-width: 520px; margin: 0 auto; }
.ccn-ath-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .ccn-ath-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .ccn-ath-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.ccn-ath-card { background: rgba(255,255,255,.05); border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.ccn-ath-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.ccn-ath-photo { aspect-ratio: 4/5; background-size: cover; background-position: center; position: relative; }
.ccn-ath-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.9) 0%, transparent 60%); }
.ccn-ath-num { position: absolute; top: 14px; left: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: #c5a55a; color: #0a1628; font-size: .78rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.ccn-ath-info { padding: 18px 20px 22px; }
.ccn-ath-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ccn-ath-sport { font-size: .82rem; color: rgba(197,165,90,.8); margin-bottom: 12px; }
.ccn-ath-link { font-size: .82rem; color: #c5a55a; text-decoration: none; font-weight: 600; transition: opacity .2s; }
.ccn-ath-link:hover { opacity: .75; }

/* ═══════════════════════════════════════
   WISHLIST HEADER ICON
   ═══════════════════════════════════════ */
.header__wishlist-btn { position: relative; }
.wishlist-count { position: absolute; top: -6px; right: -6px; background: #c5a55a; color: #0a1628; font-size: .6rem; font-weight: 900; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════
   STICKY CART — thumbnail
   ═══════════════════════════════════════ */
.ccn-sticky-cart__thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }

/* ═══════════════════════════════════════
   SIZE ACTIONS ROW
   ═══════════════════════════════════════ */
.ccn-size-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.ccn-size-actions .ccn-size-guide-link { margin-top: 0; }

/* ═══════════════════════════════════════
   HEADER NAV — no text wrap
   ═══════════════════════════════════════ */
.header__nav .nav-menu a { white-space: nowrap; }

/* ==========================================================================
   FEATURE 1 — Мобильная нижняя навигация
   ========================================================================== */
.ccn-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: #0a1628;
    border-top: 1px solid rgba(197,165,90,0.25);
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .ccn-bottom-nav { display: flex; }
    body { padding-bottom: 60px !important; }
}
.ccn-bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    padding: 6px 4px;
    position: relative;
    transition: color .2s;
}
.ccn-bn-item span { margin-top: 2px; line-height: 1; }
.ccn-bn-item.active,
.ccn-bn-item:hover { color: #c5a55a; }
.ccn-bn-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #c5a55a;
    color: #0a1628;
    font-size: 0.55rem;
    font-weight: 900;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

/* ==========================================================================
   FEATURE 2 — Lightbox / зум фото товара
   ========================================================================== */
.ccn-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ccn-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ccn-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    touch-action: pinch-zoom;
    transition: transform .2s;
    user-select: none;
}
.ccn-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
}
.ccn-lightbox-close:hover { opacity: 1; }
.ccn-lightbox-prev,
.ccn-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,22,40,0.6);
    border: 1px solid rgba(197,165,90,0.4);
    color: #c5a55a;
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: background .2s, border-color .2s;
}
.ccn-lightbox-prev { left: 16px; }
.ccn-lightbox-next { right: 16px; }
.ccn-lightbox-prev:hover,
.ccn-lightbox-next:hover { background: #c5a55a; color: #0a1628; }

/* ==========================================================================
   FEATURE 3 — Свайп галереи (стили для активного thumb)
   ========================================================================== */
.product-gallery__thumb--active {
    border: 2px solid #c5a55a !important;
    opacity: 1 !important;
}

/* ==========================================================================
   FEATURE 4 — Свотчи атрибутов (цвет, пол, размер и т.д.)
   ========================================================================== */

/* Контейнер свотчей (создаётся через JS вместо <select>) */
.ccn-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 12px;
    align-items: center;
}
.ccn-swatch-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

/* Базовый стиль — авто-размер для текстовых кнопок (Мужской, Женский, XL, ...) */
.ccn-swatch {
    min-width: 36px;
    min-height: 36px;
    width: auto;
    height: auto;
    padding: 6px 14px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s, transform .15s, background .2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.2;
}
.ccn-swatch:hover { transform: scale(1.05); border-color: #c5a55a; background: rgba(197,165,90,0.12); }
.ccn-swatch.active,
.ccn-swatch.ccn-swatch--selected { border-color: #c5a55a; box-shadow: 0 0 0 2px rgba(197,165,90,0.35); background: rgba(197,165,90,0.15); color: #c5a55a; }
.ccn-swatch.ccn-swatch--unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.ccn-swatch-check { display: none; }

/* ==========================================================================
   FEATURE 5 — Кнопка «Поделиться»
   ========================================================================== */
.ccn-share-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.ccn-share-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
}
.ccn-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(197,165,90,0.4);
    background: rgba(197,165,90,0.1);
    color: #c5a55a;
    transition: background .2s, color .2s, border-color .2s;
}
.ccn-share-btn:hover {
    background: #c5a55a;
    color: #0a1628;
    border-color: #c5a55a;
}
.ccn-share-copy { font-family: inherit; }
.ccn-share-copy.copied {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

/* ==========================================================================
   FEATURE 6 — Умный поиск с превью
   ========================================================================== */
#ccnLiveResults {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    z-index: 9998;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
.ccn-search-form-wrap { position: relative; }
.ccn-sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background .15s;
    text-decoration: none;
    color: inherit;
}
.ccn-sr-item:last-child { border-bottom: none; }
.ccn-sr-item:hover { background: #f5f7fa; }
.ccn-sr-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.ccn-sr-info { flex: 1; min-width: 0; }
.ccn-sr-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ccn-sr-price {
    font-size: 0.8rem;
    color: #c5a55a;
    font-weight: 700;
    margin-top: 2px;
}
.ccn-sr-empty,
.ccn-sr-loading {
    padding: 16px;
    text-align: center;
    color: #888;
    font-size: 0.875rem;
}

/* ==========================================================================
   FEATURE 7 — Квиз «Подбор экипировки»
   ========================================================================== */
#ccnQuiz {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
}
#ccnQuiz.open { display: flex; }
.ccn-quiz-box {
    background: #0f1f3a;
    border: 1px solid rgba(197,165,90,0.3);
    border-radius: 20px;
    width: min(540px, 92vw);
    padding: 32px 28px 28px;
    position: relative;
    color: #fff;
}
.ccn-quiz-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}
.ccn-quiz-progress-fill {
    height: 100%;
    background: #c5a55a;
    border-radius: 4px;
    transition: width .35s ease;
}
.ccn-quiz-step { display: none; }
.ccn-quiz-step.active { display: block; }
.ccn-quiz-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}
.ccn-quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.ccn-quiz-option {
    padding: 14px 10px;
    border: 1.5px solid rgba(197,165,90,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, color .2s;
    font-family: inherit;
}
.ccn-quiz-option:hover,
.ccn-quiz-option.selected {
    border-color: #c5a55a;
    background: rgba(197,165,90,0.15);
    color: #c5a55a;
}
.ccn-quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.ccn-quiz-back,
.ccn-quiz-next {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    border: none;
    font-family: inherit;
}
.ccn-quiz-back {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
.ccn-quiz-back:hover { background: rgba(255,255,255,0.15); }
.ccn-quiz-next {
    background: #c5a55a;
    color: #0a1628;
    margin-left: auto;
}
.ccn-quiz-next:hover { background: #d4b86a; }
.ccn-quiz-next:disabled { opacity: 0.4; cursor: not-allowed; }
.ccn-quiz-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}
.ccn-quiz-close:hover { color: #fff; }
.ccn-quiz-loader {
    text-align: center;
    padding: 24px 0;
    font-size: 1rem;
    color: #c5a55a;
}
.ccn-quiz-step-counter {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-bottom: 6px;
}

/* ==========================================================================
   FEATURE 8 — Персональные рекомендации
   ========================================================================== */
.ccn-personal-recs {
    padding: 40px 0;
}
.ccn-personal-recs__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
}
.ccn-personal-recs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .ccn-personal-recs__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ccn-personal-recs__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ==========================================================================
   FEATURE 10 — «Купить в 1 клик» modal
   ========================================================================== */
#ccnOneClick {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99997;
    display: none;
    align-items: center;
    justify-content: center;
}
#ccnOneClick.open { display: flex; }
.ccn-oc-box {
    background: #fff;
    border-radius: 16px;
    width: min(420px, 92vw);
    padding: 32px 28px 28px;
    position: relative;
    color: #1a1a1a;
    box-shadow: 0 16px 60px rgba(0,0,0,0.35);
}
.ccn-oc-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 8px;
    text-align: center;
}
.ccn-oc-subtitle {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 22px;
}
.ccn-oc-form { display: flex; flex-direction: column; gap: 14px; }
.ccn-oc-input {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a1a;
    font-family: inherit;
    transition: border-color .2s;
    outline: none;
}
.ccn-oc-input:focus { border-color: #c5a55a; }
.ccn-oc-submit {
    padding: 14px;
    background: #c5a55a;
    color: #0a1628;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.ccn-oc-submit:hover { background: #d4b86a; }
.ccn-oc-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
}
.ccn-oc-close:hover { color: #1a1a1a; }
.ccn-oc-success {
    text-align: center;
    padding: 20px 0 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #22c55e;
    display: none;
}

/* ═══════════════════════════════════════
   INSTALLMENT BAR (Халва / Альфа)
   ═══════════════════════════════════════ */
.ccn-installment-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #f0f7ff; border: 1px solid #d0e4f7; border-radius: 8px; font-size: .8rem; color: #445; margin-bottom: 14px; }
.ccn-inst-item { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.ccn-inst-sep { color: #aaa; }

/* ═══════════════════════════════════════
   ONE CLICK / PRICE ALERT / ASK BUTTONS
   ═══════════════════════════════════════ */
.ccn-one-click-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 2px solid #0a1628; background: transparent; color: #0a1628; border-radius: 8px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: all .2s; margin-top: 10px; }
.ccn-one-click-btn:hover { background: #0a1628; color: #fff; }
.ccn-price-alert-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border: 1.5px dashed #c5a55a; background: transparent; color: #c5a55a; border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; margin-top: 8px; }
.ccn-price-alert-btn:hover { background: rgba(197,165,90,.08); }
.ccn-ask-btn { display: flex; align-items: center; gap: 7px; background: none; border: none; color: #667; font-size: .83rem; cursor: pointer; padding: 6px 0; margin-bottom: 4px; text-decoration: underline; text-decoration-style: dotted; transition: color .2s; }
.ccn-ask-btn:hover { color: #0a1628; }

/* ═══════════════════════════════════════
   TRUST BAR (hook woocommerce_after_add_to_cart_button)
   ═══════════════════════════════════════ */
.ccn-trust-bar { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 0 4px; border-top: 1px solid #eee; margin-top: 12px; }
.ccn-trust-item { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: #667; font-weight: 500; }

/* ═══════════════════════════════════════
   MODALS: ONE CLICK, PRICE ALERT, ASK
   ═══════════════════════════════════════ */
.ccn-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 9998; display: none; align-items: center; justify-content: center; padding: 20px; }
.ccn-modal-overlay.active { display: flex; }
.ccn-modal-box { background: #fff; border-radius: 16px; padding: 36px 32px; max-width: 440px; width: 100%; position: relative; }
.ccn-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #999; line-height: 1; }
.ccn-modal-title { font-size: 1.1rem; font-weight: 800; color: #0a1628; margin: 0 0 6px; }
.ccn-modal-sub { font-size: .85rem; color: #667; margin: 0 0 20px; }
.ccn-modal-field { margin-bottom: 14px; }
.ccn-modal-field label { display: block; font-size: .8rem; font-weight: 600; color: #445; margin-bottom: 5px; }
.ccn-modal-field input, .ccn-modal-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid #ddd; border-radius: 8px; font-size: .9rem; font-family: inherit; box-sizing: border-box; transition: border-color .2s; }
.ccn-modal-field input:focus, .ccn-modal-field textarea:focus { outline: none; border-color: #c5a55a; }
.ccn-modal-submit { width: 100%; padding: 13px; background: #0a1628; color: #fff; border: none; border-radius: 8px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.ccn-modal-submit:hover { background: #1e3a5f; }
.ccn-modal-success { text-align: center; padding: 20px 0; font-size: 1rem; color: #2a7; font-weight: 600; }

/* ═══════════════════════════════════════
   Q&A СЕКЦИЯ НА ТОВАРЕ
   ═══════════════════════════════════════ */
.ccn-qa-section { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.ccn-qa-title { font-size: 1.1rem; font-weight: 800; color: #0a1628; border-bottom: 2px solid #0a1628; padding-bottom: 10px; margin-bottom: 20px; }
.ccn-qa-item { padding: 16px 0; border-bottom: 1px solid #eee; }
.ccn-qa-q { font-weight: 700; color: #0a1628; margin-bottom: 6px; font-size: .92rem; }
.ccn-qa-q::before { content: 'Q: '; color: #c5a55a; }
.ccn-qa-a { font-size: .88rem; color: #556; line-height: 1.65; }
.ccn-qa-a::before { content: 'A: '; color: #2a7; font-weight: 600; }
.ccn-qa-meta { font-size: .75rem; color: #aaa; margin-top: 4px; }
.ccn-qa-empty { color: #aaa; font-size: .9rem; }

/* ═══════════════════════════════════════
   BOTTOM NAV MOBILE SPACER
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    body { padding-bottom: 65px !important; }
}

/* ===== BLOG ARCHIVE & SINGLE ===== */
.blog-page { background: var(--color-bg-light); min-height: 60vh; }
.blog-hero { background: var(--color-primary); padding: 60px 0 40px; text-align: center; }
.blog-hero__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--color-text); margin: 0 0 8px; }
.blog-hero__sub { color: var(--color-text-muted); font-size: 1rem; margin: 0; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px 0 60px; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } .blog-sidebar { display: none; } }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.blog-card__img-wrap { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card__img-wrap:hover .blog-card__img { transform: scale(1.05); }
.blog-card__img--placeholder { background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--color-text-muted); }
.blog-card__cat { position: absolute; top: 12px; left: 12px; background: var(--color-gold); color: var(--color-primary); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; letter-spacing: .05em; }
.blog-card__body { padding: 20px; }
.blog-card__meta { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--color-text-muted); margin-bottom: 10px; }
.blog-card__meta svg { vertical-align: middle; margin-right: 4px; }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin: 0 0 10px; line-height: 1.4; }
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--color-gold); }
.blog-card__excerpt { font-size: .88rem; color: #555; line-height: 1.6; margin-bottom: 14px; }
.blog-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--color-gold); text-decoration: none; }
.blog-card__more:hover { gap: 10px; }
.blog-card--mini .blog-card__img-wrap { aspect-ratio: 3/2; }
.blog-pagination { margin-top: 40px; }
.blog-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.blog-pagination .page-numbers { padding: 8px 14px; border: 1px solid #ddd; border-radius: 6px; color: var(--color-primary); text-decoration: none; font-size: .9rem; transition: all .2s; }
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.blog-empty { text-align: center; padding: 80px 0; color: var(--color-text-muted); }
.blog-empty svg { display: block; margin: 0 auto 16px; opacity: .4; }

/* Сайдбар блога */
.blog-widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.blog-widget__title { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary-light); }
.blog-search-form { display: flex; }
.blog-search-form__input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-right: none; border-radius: 6px 0 0 6px; font-size: .9rem; outline: none; }
.blog-search-form__input:focus { border-color: var(--color-gold); }
.blog-search-form__btn { padding: 8px 14px; background: var(--color-primary); color: #fff; border: none; border-radius: 0 6px 6px 0; cursor: pointer; }
.blog-cats { list-style: none; padding: 0; margin: 0; }
.blog-cats__item { border-bottom: 1px solid #f0f0f0; }
.blog-cats__item:last-child { border-bottom: none; }
.blog-cats__link { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: #444; text-decoration: none; font-size: .9rem; transition: color .2s; }
.blog-cats__link:hover, .blog-cats__link--active { color: var(--color-gold); }
.blog-cats__count { background: var(--color-primary-light); color: var(--color-text-muted); font-size: .75rem; padding: 2px 8px; border-radius: 20px; }
.blog-recent { list-style: none; padding: 0; margin: 0; }
.blog-recent__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.blog-recent__item:last-child { border-bottom: none; }
.blog-recent__img-wrap { flex-shrink: 0; width: 60px; height: 60px; overflow: hidden; border-radius: 6px; }
.blog-recent__img { width: 100%; height: 100%; object-fit: cover; }
.blog-recent__info { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.blog-recent__title { font-size: .85rem; font-weight: 600; color: var(--color-primary); text-decoration: none; line-height: 1.3; }
.blog-recent__title:hover { color: var(--color-gold); }
.blog-recent__date { font-size: .75rem; color: var(--color-text-muted); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag { padding: 4px 12px; border: 1px solid #ddd; border-radius: 20px; font-size: .8rem; color: #555; text-decoration: none; transition: all .2s; }
.blog-tag:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.blog-products { list-style: none; padding: 0; margin: 0; }
.blog-products__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.blog-products__item:last-child { border-bottom: none; }
.blog-products__img-wrap { flex-shrink: 0; width: 56px; height: 56px; overflow: hidden; border-radius: 6px; }
.blog-products__img { width: 100%; height: 100%; object-fit: cover; }
.blog-products__info { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.blog-products__name { font-size: .85rem; font-weight: 600; color: var(--color-primary); text-decoration: none; line-height: 1.3; }
.blog-products__name:hover { color: var(--color-gold); }
.blog-products__price { font-size: .8rem; color: var(--color-gold); font-weight: 600; }

/* Одиночный пост */
.single-post__hero { position: relative; background: var(--color-primary); min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; }
.single-post__hero-img { position: absolute; inset: 0; }
.single-post__hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-post__hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.9) 0%, rgba(10,22,40,.3) 100%); }
.single-post__hero-content { position: relative; z-index: 1; padding-bottom: 40px; padding-top: 80px; }
.single-post__hero--has-img .single-post__hero-content { color: #fff; }
.single-post__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.single-post__cat { background: var(--color-gold); color: var(--color-primary); font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; text-decoration: none; }
.single-post__date, .single-post__read { font-size: .85rem; color: rgba(255,255,255,.75); }
.single-post__title { font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 800; color: #fff; max-width: 800px; line-height: 1.2; margin: 0; }
.single-breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 20px 0; font-size: .85rem; color: var(--color-text-muted); }
.single-breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.single-breadcrumbs a:hover { color: var(--color-gold); }
.single-breadcrumbs__current { color: var(--color-primary); font-weight: 500; }
.single-post__content { background: #fff; border-radius: 12px; padding: 32px; margin-bottom: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.06); font-size: 1rem; line-height: 1.8; color: #333; }
.single-post__content h2, .single-post__content h3 { color: var(--color-primary); margin-top: 28px; }
.single-post__content img { max-width: 100%; border-radius: 8px; }
.single-post__content blockquote { border-left: 4px solid var(--color-gold); padding: 12px 20px; background: #f9f7f2; margin: 20px 0; font-style: italic; }
.single-post__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.single-post__tags-label { font-size: .85rem; font-weight: 600; color: var(--color-primary); }
.single-post__share { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid #eee; margin-bottom: 20px; }
.single-post__share-label { font-size: .85rem; font-weight: 600; color: var(--color-primary); }
.single-post__share-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; transition: transform .2s, opacity .2s; text-decoration: none; }
.single-post__share-btn:hover { transform: scale(1.1); opacity: .85; }
.single-post__share-btn--tg { background: #0088cc; color: #fff; }
.single-post__share-btn--vk { background: #4a76a8; color: #fff; }
.single-post__share-btn--copy { background: #f0f0f0; color: #444; }
.single-post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.single-post__nav-btn { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; background: #fff; border-radius: 10px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: box-shadow .2s; }
.single-post__nav-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.single-post__nav-btn--next { text-align: right; }
.single-post__nav-dir { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }
.single-post__nav-title { font-size: .9rem; font-weight: 600; color: var(--color-primary); line-height: 1.3; }
.related-posts { margin-bottom: 40px; }
.related-posts__title { font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 600px) { .related-posts__grid { grid-template-columns: 1fr; } .single-post__nav { grid-template-columns: 1fr; } }

/* ===== ГЛАВНАЯ: СЕКЦИЯ БЛОГА ===== */
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 900px) { .home-blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .home-blog-grid { grid-template-columns: 1fr; } }
.home-blog-card { background: var(--color-primary-light); border-radius: 12px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.home-blog-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.home-blog-card__img-wrap { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.home-blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-blog-card__img-wrap:hover .home-blog-card__img { transform: scale(1.06); }
.home-blog-card__img--placeholder { background: var(--color-accent); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--color-text-muted); }
.home-blog-card__cat { position: absolute; top: 12px; left: 12px; background: var(--color-gold); color: var(--color-primary); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.home-blog-card__body { padding: 20px; }
.home-blog-card__date { font-size: .78rem; color: var(--color-text-muted); display: block; margin-bottom: 8px; }
.home-blog-card__title { font-size: 1rem; font-weight: 700; color: var(--color-text); margin: 0 0 10px; line-height: 1.4; }
.home-blog-card__title a { color: inherit; text-decoration: none; }
.home-blog-card__title a:hover { color: var(--color-gold); }
.home-blog-card__excerpt { font-size: .85rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 14px; }
.home-blog-card__more { font-size: .85rem; font-weight: 600; color: var(--color-gold); text-decoration: none; }
.home-blog-card__more:hover { color: #fff; }
.section--blog { background: var(--color-primary); padding: 80px 0; }
.section__footer { text-align: center; margin-top: 40px; }

/* ===== COOKIE BANNER ===== */
.ccn-cookie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--color-primary); border-top: 1px solid var(--color-accent); padding: 16px 0; transform: translateY(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); }
.ccn-cookie.ccn-cookie--visible { transform: translateY(0); }
.ccn-cookie .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ccn-cookie__text { flex: 1; min-width: 200px; font-size: .88rem; color: var(--color-text-muted); }
.ccn-cookie__text a { color: var(--color-gold); }
.ccn-cookie__btns { display: flex; gap: 10px; flex-shrink: 0; }
.ccn-cookie__accept { background: var(--color-gold); color: var(--color-primary); border: none; padding: 8px 20px; border-radius: 6px; font-size: .88rem; font-weight: 700; cursor: pointer; transition: opacity .2s; }
.ccn-cookie__accept:hover { opacity: .85; }
.ccn-cookie__decline { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-accent); padding: 8px 20px; border-radius: 6px; font-size: .88rem; cursor: pointer; transition: color .2s, border-color .2s; }
.ccn-cookie__decline:hover { color: var(--color-text); border-color: var(--color-text-muted); }
@media (max-width: 600px) { .ccn-cookie .container { flex-direction: column; align-items: stretch; } .ccn-cookie__btns { flex-direction: column; } }

/* ===== СРАВНЕНИЕ ТОВАРОВ ===== */
.ccn-compare-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); z-index: 800; background: var(--color-primary); border: 1px solid var(--color-accent); border-top-left-radius: 12px; border-top-right-radius: 12px; border-radius: 12px 12px 0 0; padding: 12px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 -4px 24px rgba(0,0,0,.4); transition: transform .35s cubic-bezier(.22,1,.36,1); white-space: nowrap; }
.ccn-compare-bar.ccn-compare-bar--visible { transform: translateX(-50%) translateY(0); }
.ccn-compare-bar__items { display: flex; gap: 8px; align-items: center; }
.ccn-compare-bar__item { width: 52px; height: 52px; border: 2px dashed var(--color-accent); border-radius: 8px; overflow: hidden; position: relative; }
.ccn-compare-bar__item img { width: 100%; height: 100%; object-fit: cover; }
.ccn-compare-bar__item-rm { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.7); color: #fff; border: none; width: 16px; height: 16px; font-size: 10px; cursor: pointer; line-height: 16px; text-align: center; padding: 0; }
.ccn-compare-bar__count { font-size: .85rem; color: var(--color-text-muted); }
.ccn-compare-bar__go { background: var(--color-gold); color: var(--color-primary); border: none; padding: 8px 18px; border-radius: 6px; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.ccn-compare-bar__clear { background: transparent; color: var(--color-text-muted); border: none; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.ccn-compare-btn { background: none; border: 1px solid var(--color-border); color: var(--color-text-muted); padding: 6px 12px; border-radius: 6px; font-size: .8rem; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.ccn-compare-btn.ccn-compare-btn--active { border-color: var(--color-gold); color: var(--color-gold); background: rgba(197,165,90,.1); }
.ccn-compare-btn svg { width: 14px; height: 14px; }

/* Страница сравнения */
.ccn-compare-page { padding: 60px 0; }
.ccn-compare-table { overflow-x: auto; }
.ccn-compare-table table { width: 100%; border-collapse: collapse; min-width: 600px; }
.ccn-compare-table th, .ccn-compare-table td { padding: 12px 16px; border: 1px solid #e0e4ea; text-align: left; font-size: .9rem; vertical-align: top; }
.ccn-compare-table th { background: var(--color-primary); color: #fff; font-weight: 600; }
.ccn-compare-table tr:nth-child(even) { background: #f8f9fc; }
.ccn-compare-table .ccn-ct-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }

/* ============================================================
   ФИЧА 1: Exit-intent popup
   ============================================================ */
.ccn-exit-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.8);
    align-items: center;
    justify-content: center;
}
.ccn-exit-modal {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: var(--color-primary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}
.ccn-exit-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.ccn-exit-close:hover { color: #fff; }
.ccn-exit-badge {
    background: var(--color-gold);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: .05em;
}
.ccn-exit-title {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 12px;
}
.ccn-exit-sub {
    color: rgba(255,255,255,.85);
    margin: 0 0 20px;
    font-size: 1rem;
}
.ccn-exit-sub strong { color: var(--color-gold); }
.ccn-exit-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.ccn-exit-btn {
    background: var(--color-gold);
    color: var(--color-primary);
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
}
.ccn-exit-btn:hover { opacity: .9; }
.ccn-exit-btn:disabled { opacity: .6; cursor: not-allowed; }
.ccn-exit-note {
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    margin: 12px 0 0;
}
.ccn-exit-skip {
    background: none;
    border: none;
    color: var(--color-text-muted, rgba(255,255,255,.4));
    font-size: .8rem;
    cursor: pointer;
    margin-top: 16px;
    text-decoration: underline;
    display: block;
    width: 100%;
}

/* ============================================================
   ФИЧА 2: Social proof toast
   ============================================================ */
.ccn-sp-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    max-width: 300px;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 1000;
    transform: translateY(120%);
    transition: transform .3s ease;
    font-size: .85rem;
    color: #333;
}
.ccn-sp-toast--show { transform: translateY(0); }
.ccn-sp-toast__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--color-primary-light, #1a2332);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.ccn-sp-toast__body strong { display: block; margin-bottom: 2px; }

/* ============================================================
   ФИЧА 3: Прогресс-бар «До бесплатной доставки»
   ============================================================ */
.ccn-shipping-progress {
    background: var(--color-primary-light, #1a2332);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.ccn-sp-text {
    font-size: .9rem;
    color: var(--color-text, #fff);
    margin: 0 0 8px;
}
.ccn-sp-text strong { color: var(--color-gold); }
.ccn-sp-bar {
    height: 6px;
    background: var(--color-accent, #2d3f55);
    border-radius: 3px;
    overflow: hidden;
}
.ccn-sp-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 3px;
    transition: width .5s ease;
}
.ccn-shipping-progress--free {
    background: rgba(46,213,115,.1);
    color: #2ed573;
}
.ccn-shipping-progress--free p {
    margin: 0;
    font-size: .95rem;
    color: #2ed573;
}

/* ============================================================
   ФИЧА 4: Upsell в корзине
   ============================================================ */
.ccn-cart-upsell {
    margin: 32px 0;
    padding: 24px;
    background: var(--color-primary-light, #1a2332);
    border-radius: 12px;
}
.ccn-cart-upsell h3 {
    font-size: 1.1rem;
    margin: 0 0 16px;
    color: var(--color-text, #fff);
}
.ccn-cu-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.ccn-cu-item {
    min-width: 160px;
    background: var(--color-primary);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    flex-shrink: 0;
}
.ccn-cu-img,
.ccn-cu-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 8px;
}
.ccn-cu-name {
    font-size: .8rem;
    color: var(--color-text, #fff);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ccn-cu-price {
    font-size: .85rem;
    color: var(--color-gold);
    margin: 0 0 8px;
    font-weight: 600;
}
.ccn-cu-btn {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-primary);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    text-decoration: none;
    transition: opacity .2s;
}
.ccn-cu-btn:hover { opacity: .85; color: var(--color-primary); }


/* ============================================================
 * ФИЧА 1: Post-purchase Upsell (Thank You page)
 * ============================================================ */
.ccn-thankyou-upsell {
    background: #0a1628;
    border: 2px solid #c5a55a;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}
.ccn-tyu-header {
    text-align: center;
    margin-bottom: 24px;
}
.ccn-tyu-header h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.ccn-tyu-header p {
    color: #8a9bb5;
    margin-bottom: 14px;
}
.ccn-tyu-code {
    font-family: monospace;
    color: #c5a55a;
    background: rgba(197, 165, 90, .15);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 1.1rem;
    letter-spacing: .05em;
}
.ccn-tyu-copy {
    background: none;
    border: 1px solid #c5a55a;
    color: #c5a55a;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
    transition: background .2s, color .2s;
}
.ccn-tyu-copy:hover {
    background: #c5a55a;
    color: #0a1628;
}
.ccn-thankyou-upsell h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
}
.ccn-tyu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 600px) {
    .ccn-tyu-grid { grid-template-columns: 1fr; }
}
.ccn-tyu-card {
    background: #132240;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.ccn-tyu-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 12px 12px 0;
}
.ccn-tyu-card__img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
}
.ccn-tyu-card__name {
    color: #d0dff0;
    font-size: .85rem;
    margin: 8px 0 4px;
    line-height: 1.3;
}
.ccn-tyu-card__price {
    color: #c5a55a;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 4px;
}
.ccn-tyu-card__btn {
    display: block;
    background: #c5a55a;
    color: #0a1628;
    font-weight: 700;
    font-size: .8rem;
    padding: 9px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    margin-top: auto;
    transition: opacity .2s;
}
.ccn-tyu-card__btn:hover { opacity: .85; }


/* ============================================================
 * ФИЧА 3: Header Points Badge
 * ============================================================ */
.header__points {
    font-size: .75rem;
    background: rgba(197, 165, 90, .2);
    color: var(--color-gold, #c5a55a);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 4px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}


/* ============================================================
 * ФИЧА 4: Popular Now shortcode block
 * ============================================================ */
.ccn-popular-now__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .ccn-popular-now__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ccn-popular-now__grid { grid-template-columns: 1fr 1fr; }
}
.ccn-popular-now__card {
    background: #0a1628;
    border: 1px solid rgba(197,165,90,.15);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ccn-popular-now__img-link { display: block; }
.ccn-popular-now__img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}
.ccn-popular-now__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.ccn-popular-now__name {
    color: #d0dff0;
    font-size: .88rem;
    text-decoration: none;
    line-height: 1.3;
}
.ccn-popular-now__name:hover { color: #c5a55a; }
.ccn-popular-now__price { color: #c5a55a; font-weight: 700; font-size: .9rem; }
.ccn-popular-now__btn {
    margin-top: auto;
    text-align: center;
    font-size: .82rem;
    padding: 8px 14px;
}


/* ============================================================
 * ФИЧА 6: Quick Size Selector in product card
 * ============================================================ */
.product-card__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.product-card__size-btn,
.product-card__size-more {
    border: 1px solid var(--color-border, #2a3a55);
    color: var(--color-text-muted, #8a9bb5);
    font-size: .72rem;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    transition: border-color .18s, color .18s;
    display: inline-block;
}
.product-card__size-btn:hover {
    border-color: var(--color-gold, #c5a55a);
    color: var(--color-gold, #c5a55a);
}
.product-card__size-more {
    opacity: .6;
    cursor: default;
}

/* ===== FIX: SIZE CALC MODAL POSITIONING ===== */
#ccnSizeCalc.ccn-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    background: rgba(0,0,0,.75) !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#ccnSizeCalc .ccn-modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    cursor: pointer;
}
#ccnSizeCalc .ccn-modal__content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
#ccnSizeCalc .ccn-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
}
#ccnSizeCalc .ccn-modal__close:hover { color: #333; }
#ccnSizeCalc .ccn-modal__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 20px;
}
#ccnSizeCalc .ccn-modal__field { margin-bottom: 16px; }
#ccnSizeCalc .ccn-modal__field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #445;
    margin-bottom: 6px;
}
#ccnSizeCalc .ccn-modal__field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s;
}
#ccnSizeCalc .ccn-modal__field input:focus { outline: none; border-color: #c5a55a; }
#ccnSizeCalc .ccn-btn {
    width: 100%;
    padding: 13px;
    background: #0a1628;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
#ccnSizeCalc .ccn-btn:hover { background: #1e3a5f; }
#ccnSizeCalc .ccn-size-result__label { font-size: .8rem; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; margin-top: 20px; }
#ccnSizeCalc .ccn-size-result__value { font-size: 2.5rem; font-weight: 800; color: #c5a55a; }
#ccnSizeCalc .ccn-size-result__note { font-size: .85rem; color: #666; margin-top: 8px; }

/* ==========================================================================
   ФИЧА 1: Slim header при скролле
   ========================================================================== */
#masthead {
    transition: all .3s ease;
}
.site-header--slim {
    padding: 0 !important;
}
.site-header--slim .header__logo {
    transform: scale(0.85);
    transition: transform .3s;
}
.site-header--slim .logo-subtitle {
    display: none;
}

/* ==========================================================================
   ФИЧА 2: Кнопка Scroll to top
   ========================================================================== */
.ccn-scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-primary);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.ccn-scroll-top--visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ФИЧА 4: Прогресс-бар чтения
   ========================================================================== */
.ccn-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-gold);
    z-index: 10000;
    width: 0;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   ФИЧА 5: Zoom изображения товара при hover
   ========================================================================== */
.woocommerce-product-gallery__image {
    overflow: hidden;
}
.woocommerce-product-gallery__image img {
    transition: transform .4s ease;
    cursor: zoom-in;
}
.woocommerce-product-gallery__image:hover img {
    transform: scale(1.08);
}

/* ==========================================================================
   ФИЧА 6: Тёмная/светлая тема
   ========================================================================== */
[data-theme="light"] {
    /* Базовые поверхности — светлые, но не кипельно белые */
    --color-primary:         #ffffff;
    --color-primary-light:   #f8fafc;   /* для hover/секций */
    --color-primary-medium:  #e2e8f0;

    /* Текст — тёмный на светлом */
    --color-text:            #0a1628;
    --color-text-muted:      #64748b;
    --color-text-dark:       #0a1628;
    --color-white:           #0a1628;   /* всё, что раньше было белым текстом на тёмном — теперь тёмное */

    /* Границы и фоны вспомогательных блоков */
    --color-border:          rgba(10, 22, 40, 0.1);
    --color-border-light:    #e2e8f0;
    --color-bg-light:        #f8fafc;
    --color-bg-card:         #ffffff;

    /* Брендовые акценты (teal/orange/blue/lime) — НЕ трогаем,
       остаются яркими и на светлом фоне */
    --gradient-dark: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ---- Шапка в светлой теме ---- */
[data-theme="light"] .top-bar {
    background-color: #0a1628;
    color: #ffffff;
}
[data-theme="light"] .site-header {
    color: #0a1628;
}
[data-theme="light"] .header--solid,
[data-theme="light"] .header--transparent.header--scrolled {
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(10,22,40,0.08), 0 4px 12px rgba(10,22,40,0.04);
}
[data-theme="light"] .header--transparent:not(.header--scrolled) {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* Логотип */
[data-theme="light"] .logo-name,
[data-theme="light"] .logo-subtitle {
    color: #0a1628;
}
[data-theme="light"] .logo-img {
    filter: invert(1) brightness(0.2);
}
/* Навигация в шапке */
[data-theme="light"] .header__nav .nav-menu li a {
    color: #0a1628;
}
[data-theme="light"] .header__nav .nav-menu li a::after {
    background: #14B8A6;
}
[data-theme="light"] .header__nav .nav-menu li a:hover {
    color: #14B8A6;
}
/* Дропдаун подменю — светлый фон */
[data-theme="light"] .nav-menu .sub-menu {
    background: #ffffff;
    border: 1px solid rgba(10, 22, 40, 0.08);
    box-shadow: 0 16px 40px rgba(10, 22, 40, 0.12);
}
[data-theme="light"] .nav-menu .sub-menu li a {
    color: #0a1628;
    opacity: 0.75;
}
[data-theme="light"] .nav-menu .sub-menu li a:hover {
    background: #f5f7fa;
    opacity: 1;
    color: #14B8A6;
}
/* Иконки / кнопки действий */
[data-theme="light"] .header__action-btn,
[data-theme="light"] .header__search-toggle {
    color: #0a1628;
}
[data-theme="light"] .header__action-btn:hover {
    background-color: rgba(10, 22, 40, 0.06);
    color: #14B8A6;
}
/* Бургер */
[data-theme="light"] .header__burger span {
    background-color: #0a1628;
}
/* Мобильное меню */
[data-theme="light"] .mobile-menu {
    background-color: #ffffff;
    color: #0a1628;
}
[data-theme="light"] .mobile-nav li a {
    color: #0a1628;
    border-bottom-color: rgba(10, 22, 40, 0.06);
}
/* Поисковая панель */
[data-theme="light"] .search-overlay {
    background-color: rgba(255, 255, 255, 0.98);
    color: #0a1628;
}
[data-theme="light"] .search-form__input {
    color: #0a1628;
    border-bottom-color: rgba(10, 22, 40, 0.15);
}
[data-theme="light"] .search-form__input::placeholder {
    color: rgba(10, 22, 40, 0.4);
}
[data-theme="light"] .search-form__submit,
[data-theme="light"] .search-form__close {
    color: #0a1628;
}

/* ---- Тело страницы в светлой теме ---- */
[data-theme="light"] body {
    background-color: #ffffff;
    color: #0a1628;
}
[data-theme="light"] .site-content {
    background-color: #ffffff;
}
[data-theme="light"] .section {
    background-color: #ffffff;
    color: #0a1628;
}
[data-theme="light"] .section--dark {
    background-color: #f8fafc;
}
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6 {
    color: #0a1628;
}
[data-theme="light"] .section__title,
[data-theme="light"] .section__subtitle {
    color: #0a1628;
}

/* ---- Подвал ---- */
[data-theme="light"] .site-footer {
    background-color: #0a1628;
    color: #ffffff;
}
[data-theme="light"] .site-footer a {
    color: #cbd5e1;
}
[data-theme="light"] .site-footer a:hover {
    color: #14B8A6;
}

/* ---- Карточки товаров ---- */
[data-theme="light"] .product-card,
[data-theme="light"] ul.products li.product {
    background-color: #ffffff;
    border: 1px solid rgba(10, 22, 40, 0.06);
    color: #0a1628;
}
[data-theme="light"] .product-card__title,
[data-theme="light"] ul.products li.product .woocommerce-loop-product__title {
    color: #0a1628;
}
[data-theme="light"] .product-card__price,
[data-theme="light"] ul.products li.product .price {
    color: #0a1628;
}

/* ---- Каталог: сайдбар и тулбар ---- */
[data-theme="light"] .shop-sidebar,
[data-theme="light"] .shop-breadcrumbs,
[data-theme="light"] .shop-header,
[data-theme="light"] .shop-toolbar {
    background-color: #ffffff;
    color: #0a1628;
}
[data-theme="light"] .sidebar__title,
[data-theme="light"] .sidebar__section-title,
[data-theme="light"] .sidebar__link {
    color: #0a1628;
}
[data-theme="light"] .sidebar__link:hover {
    background: #f5f7fa;
}
[data-theme="light"] .sidebar__count {
    color: #94a3b8;
}

/* ---- Кнопки ---- */
[data-theme="light"] .btn--secondary,
[data-theme="light"] .btn--outline {
    background-color: transparent;
    border-color: #0a1628;
    color: #0a1628;
}
[data-theme="light"] .btn--secondary:hover,
[data-theme="light"] .btn--outline:hover {
    background-color: #0a1628;
    color: #ffffff;
}

/* ---- Формы / инпуты ---- */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="tel"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="number"],
[data-theme="light"] select,
[data-theme="light"] textarea {
    background-color: #ffffff;
    color: #0a1628;
    border-color: rgba(10, 22, 40, 0.15);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: rgba(10, 22, 40, 0.4);
}

/* ---- Badge баллов в шапке ---- */
[data-theme="light"] .header__points {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

/* Плавный переход между темами */
[data-theme="light"] body,
[data-theme="light"] .site-header,
[data-theme="light"] .top-bar {
    transition: background-color .25s ease, color .25s ease;
}

/* ==========================================================================
   ФИЧА 7: Плавные переходы между страницами
   ========================================================================== */
.page-exit {
    animation: pageExit .25s ease forwards;
}
.page-enter {
    animation: pageEnter .3s ease;
}
@keyframes pageExit {
    to { opacity: 0; transform: translateY(-8px); }
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ФИЧА 8: Skeleton loading для карточек товаров
   ========================================================================== */
.product-card--skeleton .product-card__image,
.product-card--skeleton .product-card__title,
.product-card--skeleton .product-card__price {
    background: linear-gradient(90deg, #e8ecf0 25%, #f5f7fa 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    color: transparent !important;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   ФИЧА 9: Hover-превью мини-корзины
   ========================================================================== */
.ccn-cart-preview {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--color-primary);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    padding: 16px;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}
.ccn-cart-preview--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.ccn-cart-preview__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-accent);
    font-size: .85rem;
    color: var(--color-text);
}
.ccn-cart-preview__item:last-child {
    border-bottom: none;
}
.ccn-cart-preview__img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.ccn-cart-preview__name {
    flex: 1;
    font-weight: 600;
}
.ccn-cart-preview__price {
    color: var(--color-gold);
    font-weight: 700;
    white-space: nowrap;
}
.ccn-cart-preview__empty {
    color: var(--color-text-muted);
    font-size: .9rem;
    text-align: center;
    padding: 8px 0;
}

/* ==========================================================================
   FEATURE 1: WELCOME POPUP
   ========================================================================== */
.ccn-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ccnFadeIn .3s ease;
}
.ccn-welcome-overlay.ccn-hidden {
    display: none;
}
@keyframes ccnFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ccn-welcome-modal {
    position: relative;
    max-width: 500px;
    width: calc(100% - 32px);
    background: var(--color-primary);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    animation: ccnSlideUp .35s ease;
}
@keyframes ccnSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.ccn-welcome-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .2s;
}
.ccn-welcome-close:hover { color: var(--color-white); }
.ccn-welcome-badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    letter-spacing: .05em;
}
.ccn-welcome-modal h2 {
    font-size: 1.8rem;
    color: var(--color-white);
    margin: 16px 0 10px;
}
.ccn-welcome-modal p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.ccn-welcome-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.ccn-welcome-btn {
    background: var(--color-gold);
    color: var(--color-primary);
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity .2s;
}
.ccn-welcome-btn:hover { opacity: .9; }
.ccn-welcome-skip {
    display: block;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: .8rem;
    cursor: pointer;
    margin-top: 16px;
    text-decoration: underline;
    width: 100%;
}
.ccn-welcome-success {
    color: var(--color-success);
    font-weight: 700;
    font-size: 1rem;
    margin-top: 12px;
}

/* ==========================================================================
   FEATURE 2: QUANTITY STEPPER
   ========================================================================== */
.ccn-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}
.ccn-qty-btn {
    background: var(--color-primary-light);
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text);
    transition: background .2s;
    flex-shrink: 0;
}
.ccn-qty-btn:hover { background: var(--color-accent); }
.ccn-qty-input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-size: 1rem;
    padding: 0;
}

/* ==========================================================================
   FEATURE 3: SAVE CART TO EMAIL
   ========================================================================== */
.ccn-save-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    background: transparent;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .9rem;
    cursor: pointer;
    margin-top: 12px;
    transition: border-color .2s, color .2s;
    width: 100%;
    justify-content: center;
}
.ccn-save-cart-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.ccn-save-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ccn-save-cart-overlay.ccn-hidden { display: none; }
.ccn-save-cart-modal {
    position: relative;
    max-width: 420px;
    width: calc(100% - 32px);
    background: var(--color-primary);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
}
.ccn-save-cart-modal h3 {
    color: var(--color-white);
    margin: 0 0 16px;
    font-size: 1.3rem;
}
.ccn-save-cart-modal .ccn-welcome-input { margin-bottom: 12px; }
.ccn-save-cart-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   FEATURE 4: RECENTLY VIEWED IN CART
   ========================================================================== */
.ccn-rv-cart {
    margin-bottom: 32px;
}
.ccn-rv-cart__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
}
.ccn-rv-cart__scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}
.ccn-rv-cart__card {
    display: flex;
    flex-direction: column;
    min-width: 130px;
    max-width: 130px;
    text-decoration: none;
    color: var(--color-text);
    background: var(--color-primary-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s;
    flex-shrink: 0;
}
.ccn-rv-cart__card:hover { transform: translateY(-3px); }
.ccn-rv-cart__thumb { aspect-ratio: 1; overflow: hidden; }
.ccn-rv-cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ccn-rv-cart__info { padding: 8px; }
.ccn-rv-cart__name {
    font-size: .75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.ccn-rv-cart__price {
    font-size: .8rem;
    color: var(--color-gold);
    font-weight: 700;
}

/* ==========================================================================
   FEATURE 5: ADD ALL WISHLIST TO CART
   ========================================================================== */
.ccn-add-all-btn {
    background: var(--color-gold);
    color: var(--color-primary);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 24px;
    transition: opacity .2s;
    display: block;
    text-align: center;
}
.ccn-add-all-btn:hover { opacity: .88; }
@media (max-width: 768px) {
    .ccn-add-all-btn { width: 100%; }
}

/* ==========================================================================
   FEATURE 6: STAR RATING IN PRODUCT CARD
   ========================================================================== */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.product-card__rating .star-rating { font-size: .85rem; }
.product-card__rating-count {
    font-size: .75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   FEATURE 7: TRUST BADGES
   ========================================================================== */
.ccn-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.ccn-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--color-text-muted);
    background: var(--color-primary-light);
    padding: 6px 12px;
    border-radius: 20px;
}
.ccn-trust-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-gold);
}

/* ==========================================================================
   FEATURE 8: CONTINUE SHOPPING
   ========================================================================== */
.ccn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: .9rem;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color .2s;
}
.ccn-continue-shopping:hover { color: var(--color-gold); }

/* ==========================================================================
   Task 1 — Мобильные фильтры как bottom drawer
   ========================================================================== */
@media (max-width: 899px) {
  .shop-sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-height: 80vh; overflow-y: auto; z-index: 900;
    background: var(--color-primary); border-radius: 20px 20px 0 0;
    padding: 20px; transform: translateY(100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    box-shadow: 0 -8px 40px rgba(0,0,0,.4);
  }
  .shop-sidebar.shop-sidebar--open { transform: translateY(0); }
  .ccn-filter-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 899; display: none; }
  .ccn-filter-overlay--visible { display: block; }
}
.shop-sidebar__handle {
  width: 40px; height: 4px; background: var(--color-accent); border-radius: 2px; margin: 0 auto 16px;
}

/* ==========================================================================
   Task 2 — Swipe для горизонтального скролла категорий
   ========================================================================== */
@media (max-width: 899px) {
  .categories-grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .categories-grid::-webkit-scrollbar { display: none; }
  .categories-grid .category-card,
  .categories-grid .category-card--large {
    scroll-snap-align: start;
    flex: 0 0 80vw;
    min-width: 240px;
  }
}

/* ==========================================================================
   Task 4 — iOS Safe Area
   ========================================================================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .ccn-bottom-nav { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(var(--footer-pb, 32px) + env(safe-area-inset-bottom)); }
  .ccn-cookie { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Task 6 — Tap-to-zoom в галерее товара
   ========================================================================== */
.woocommerce-product-gallery__image img {
  transition: transform .3s ease;
  cursor: zoom-in;
}
.woocommerce-product-gallery__image img.ccn-zoomed {
  transform: scale(2);
  transform-origin: var(--tx, 50%) var(--ty, 50%);
  cursor: zoom-out;
}

/* ==========================================================================
   Task 7 — Voice Search кнопка
   ========================================================================== */
.search-form__voice {
  background: none; border: none; padding: 8px; cursor: pointer;
  color: var(--color-text-muted); transition: color .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-form__voice:hover { color: var(--color-gold); }
.search-form__voice--listening { color: #e74c3c; animation: ccn-pulse 1s infinite; }
@keyframes ccn-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ==========================================================================
   Task 8 — PWA Install Banner для iOS
   ========================================================================== */
.ccn-pwa-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  background: var(--color-primary); border-top: 1px solid var(--color-accent);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.ccn-pwa-banner__icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.ccn-pwa-banner__text { flex: 1; font-size: .85rem; color: var(--color-text); }
.ccn-pwa-banner__close {
  background: none; border: none; color: var(--color-text-muted);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
}

/* ==========================================================================
   Task 5 — Verified purchase badge in reviews
   ========================================================================== */
.ccn-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: #2ecc71;
  background: rgba(46, 204, 113, .1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ==========================================================================
   Task 6 — Buyer counter widget
   ========================================================================== */
.ccn-buyer-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1rem;
  color: var(--color-text, #333);
}
.ccn-buyer-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent, #c5a55a);
}
.ccn-buyer-counter__label {
  color: var(--color-text-muted, #888);
  font-size: .9rem;
}

/* ===== MEGA-MENU ===== */
.ccn-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--color-primary);
    border-top: 1px solid var(--color-accent);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    padding: 32px 0;
}
.ccn-mega--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.ccn-mega__inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .ccn-mega__inner { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .ccn-mega__inner { grid-template-columns: repeat(3, 1fr); } }
.ccn-mega__cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    padding: 12px 8px;
    border-radius: 10px;
    transition: background .2s;
}
.ccn-mega__cat:hover { background: var(--color-primary-light); }
.ccn-mega__cat-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    transition: border-color .2s;
}
.ccn-mega__cat:hover .ccn-mega__cat-img { border-color: var(--color-gold); }
.ccn-mega__cat-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    border: 2px solid var(--color-accent);
}
.ccn-mega__cat-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.ccn-mega__cat-count {
    font-size: .72rem;
    color: var(--color-text-muted);
}
.ccn-mega__loading {
    grid-column: 1/-1;
    text-align: center;
    color: var(--color-text-muted);
    padding: 20px;
}

/* Стрелка у пунктов с выпадающим меню (ВЕЛООДЕЖДА и любые другие с подпунктами) */
.header__nav .nav-menu li.menu-item-has-children > a::after,
.header__nav .nav-menu li.menu-item--veloodezda > a::after,
.header__nav .nav-menu a[href*="veloodezh"]::after,
.header__nav .nav-menu a[href*="veloodezda"]::after,
.header__nav .nav-menu a[href*="%D0%B2%D0%B5%D0%BB%D0%BE%D0%BE%D0%B4"]::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    margin-left: 5px;
    opacity: .6;
    position: static;
    background: none;
    transition: transform var(--transition-fast);
}

/* ===== LOAD MORE ===== */
.ccn-load-more-wrap {
    text-align: center;
    padding: 40px 0;
}
.ccn-load-more-btn {
    min-width: 200px;
    position: relative;
    overflow: hidden;
}
.ccn-load-more-btn.ccn-lm-loading {
    pointer-events: none;
    opacity: .7;
}
.ccn-load-more-btn.ccn-lm-loading .ccn-lm-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ccn-load-more-progress {
    margin-top: 14px;
    font-size: .85rem;
    color: var(--color-text-muted);
}
.ccn-lm-bar {
    width: 200px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    margin: 10px auto 0;
    overflow: hidden;
}
.ccn-lm-bar-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 2px;
    transition: width .4s ease;
}
.ccn-load-more-btn.ccn-lm-done {
    display: none;
}


/* ===== FOOTER DISTRIBUTOR BADGE ===== */
.footer-distributor-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197,165,90,.15);
    color: var(--color-gold);
    border: 1px solid rgba(197,165,90,.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    margin-top: 12px;
}

/* ===== UGC ГАЛЕРЕЯ ===== */
.ccn-ugc-section { padding: 60px 0; }
.ccn-ugc-header { text-align: center; margin-bottom: 32px; }
.ccn-ugc-title { font-size: 1.8rem; font-weight: 800; color: var(--color-text); margin: 0 0 8px; }
.ccn-ugc-sub { color: var(--color-text-muted); margin: 0 0 20px; }
.ccn-ugc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .ccn-ugc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ccn-ugc-grid { grid-template-columns: repeat(2, 1fr); } }
.ccn-ugc-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--color-primary-light); }
.ccn-ugc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ccn-ugc-item:hover img { transform: scale(1.05); }
.ccn-ugc-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.ccn-ugc-name { font-size: .78rem; color: #fff; font-weight: 600; display: block; }
.ccn-ugc-tag { font-size: .72rem; color: var(--color-gold); }
.ccn-ugc-loading { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--color-text-muted); }
.ccn-ugc-form-wrap { max-width: 500px; margin: 32px auto 0; background: var(--color-primary-light); border-radius: 16px; padding: 32px; }
.ccn-ugc-form h3 { margin: 0 0 20px; color: var(--color-text); }
.ccn-ugc-input { width: 100%; padding: 10px 14px; border: 1px solid var(--color-accent); border-radius: 8px; background: var(--color-primary); color: var(--color-text); font-family: inherit; font-size: .9rem; margin-bottom: 12px; box-sizing: border-box; }
.ccn-ugc-input:focus { outline: none; border-color: var(--color-gold); }
.ccn-ugc-file-label { display: block; padding: 10px 14px; border: 2px dashed var(--color-accent); border-radius: 8px; text-align: center; cursor: pointer; color: var(--color-text-muted); font-size: .9rem; margin-bottom: 12px; transition: border-color .2s; }
.ccn-ugc-file-label:hover { border-color: var(--color-gold); }
.ccn-ugc-file-label input[type=file] { display: none; }
.ccn-ugc-note { font-size: .78rem; color: var(--color-text-muted); text-align: center; margin-top: 8px; }

/* ==========================================================================
   EXIT-INTENT POPUP
   ========================================================================== */
.ccn-exit-popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.ccn-exit-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.ccn-exit-popup__box {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0a1628 0%, #132240 100%);
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    padding: 44px 40px 36px;
    max-width: 480px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
    animation: ccnExitIn .35s cubic-bezier(.22,1,.36,1);
}
@keyframes ccnExitIn {
    from { opacity:0; transform: scale(.9) translateY(20px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}
.ccn-exit-popup__close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    color: rgba(255,255,255,.4);
    font-size: 1.2rem; cursor: pointer;
    transition: color .2s;
    padding: 4px;
    line-height: 1;
}
.ccn-exit-popup__close:hover { color: #fff; }
.ccn-exit-popup__badge {
    display: inline-block;
    background: rgba(197,165,90,.15);
    color: var(--color-gold);
    border: 1px solid rgba(197,165,90,.3);
    font-size: .7rem; font-weight: 700;
    letter-spacing: .12em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.ccn-exit-popup__title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ccn-exit-popup__sub {
    color: #8a9bb5;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 28px;
}
.ccn-exit-popup__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ccn-exit-popup__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.ccn-exit-popup__btn:hover { opacity: .85; transform: translateY(-1px); }
.ccn-exit-popup__btn--tg  { background: #0088cc; color: #fff; }
.ccn-exit-popup__btn--tel { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.ccn-exit-popup__note { color: rgba(255,255,255,.35); font-size: .82rem; margin: 0; }
.ccn-exit-popup__note a { color: rgba(255,255,255,.5); text-decoration: underline; }
.ccn-exit-popup__note a:hover { color: #fff; }
@media (max-width: 480px) {
    .ccn-exit-popup__box { padding: 36px 24px 28px; }
    .ccn-exit-popup__title { font-size: 1.3rem; }
    .ccn-exit-popup__actions { flex-direction: column; }
    .ccn-exit-popup__btn { justify-content: center; }
}

/* ==========================================================================
   HERO СЛАЙД 3 — РАСПРОДАЖА
   ========================================================================== */
.hero__slide--sale {
    background: linear-gradient(135deg, #0a1628 0%, #1a0a10 60%, #2d0f1a 100%);
    display: flex !important;
    align-items: stretch;
}

/* =========================================
   Слайд — ПОДАРОЧНЫЙ СЕРТИФИКАТ
   ========================================= */
.hero__slide--gift {
    background:
        radial-gradient(circle at 15% 25%, rgba(197,165,90,.22) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(20,184,166,.18) 0%, transparent 55%),
        linear-gradient(135deg, #0a1628 0%, #12213a 60%, #0a1628 100%);
}
.hero__slide--gift.hero__slide--active { display: flex !important; align-items: stretch; }
.gift-slide {
    display: flex;
    align-items: center;
    gap: 56px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 114px 20px 40px;
}
.gift-slide__left {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
    max-width: 520px;
}
.gift-slide__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: rgba(197,165,90,.15);
    color: #c5a55a;
    border: 1px solid rgba(197,165,90,.35);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.gift-slide__title {
    margin: 4px 0 0;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -1px;
    color: #ffffff;
}
.gift-slide__sub {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #cbd5e1;
    max-width: 480px;
}
.gift-slide__cta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.gift-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    text-decoration: none;
    transition: all .15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.gift-slide__btn--main {
    background: #c5a55a;
    color: #0a1628;
}
.gift-slide__btn--main:hover {
    background: #d4b768;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(197,165,90,.35);
}
.gift-slide__btn--ghost {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(255,255,255,.25);
}
.gift-slide__btn--ghost:hover { border-color: #ffffff; background: rgba(255,255,255,.05); }

/* Превью-сертификат справа */
.gift-slide__preview {
    flex: 0 1 460px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 460px;
}
.gift-slide__preview .ccn-cert {
    transform: rotate(-3deg);
    transition: transform .4s ease;
    box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(197,165,90,.2);
}
.hero__slide--gift.hero__slide--active .gift-slide__preview .ccn-cert {
    animation: giftCardEnter .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes giftCardEnter {
    from { transform: rotate(-10deg) translateY(30px) scale(.92); opacity: 0; }
    to   { transform: rotate(-3deg)  translateY(0)    scale(1);   opacity: 1; }
}
.gift-slide__preview .ccn-cert:hover { transform: rotate(0deg) scale(1.02); }

/* Адаптив */
@media (max-width: 900px) {
    .gift-slide { flex-direction: column; gap: 28px; padding-top: 90px; }
    .gift-slide__left { order: 2; flex: 0 0 auto; text-align: center; align-items: center; max-width: 100%; }
    .gift-slide__badge { align-self: center; }
    .gift-slide__sub { margin-left: auto; margin-right: auto; }
    .gift-slide__cta { justify-content: center; }
    .gift-slide__preview { order: 1; max-width: 340px; width: 100%; }
    .gift-slide__preview .ccn-cert { transform: rotate(-2deg); }
}
@media (max-width: 500px) {
    .gift-slide { padding-top: 80px; padding-bottom: 30px; }
    .gift-slide__title { font-size: 32px; }
    .gift-slide__sub { font-size: 14px; }
    .gift-slide__btn { padding: 12px 18px; font-size: 13px; }
}

.sale-slide {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 114px; /* под шапку */
    padding-bottom: 40px;
}

/* Левая колонка */
.sale-slide__left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sale-slide__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 53, 69, .15);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, .35);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    padding: 5px 14px;
    border-radius: 20px;
    width: fit-content;
}

.sale-slide__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0;
}

.sale-slide__sub {
    color: #8a9bb5;
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
}

.sale-slide__cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sale-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.sale-slide__btn:hover { opacity: .85; transform: translateY(-1px); }
.sale-slide__btn--main { background: #dc3545; color: #fff; }
.sale-slide__btn--ghost {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.15);
}

/* Правая колонка — карточки товаров */
.sale-slide__products {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    align-items: stretch;
}
.sale-slide__products::-webkit-scrollbar { display: none; }

/* Карточка товара в баннере */
.sale-card {
    flex: 0 0 160px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s, border-color .25s, background .25s;
    display: flex;
    flex-direction: column;
}
.sale-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220,53,69,.5);
    background: rgba(255,255,255,.1);
}

.sale-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255,255,255,.04);
}
.sale-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.sale-card:hover .sale-card__img img { transform: scale(1.05); }

.sale-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.2);
}

.sale-card__info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.sale-card__name {
    font-size: .78rem;
    color: rgba(255,255,255,.75);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sale-card__price {
    font-size: .95rem;
    font-weight: 700;
    color: #ff6b7a;
    margin-top: auto;
}
.sale-card__price small {
    font-size: .7rem;
    font-weight: 400;
    color: rgba(255,255,255,.4);
}

/* Адаптив */
@media (max-width: 1024px) {
    .sale-slide { gap: 24px; }
    .sale-slide__left { flex: 0 0 260px; }
    .sale-card { flex: 0 0 140px; }
}
@media (max-width: 768px) {
    .sale-slide {
        flex-direction: column;
        padding-top: 120px;
        padding-bottom: 20px;
        gap: 20px;
        justify-content: center;
    }
    .sale-slide__left { flex: none; }
    .sale-slide__title { font-size: 1.8rem; }
    .sale-slide__products { gap: 10px; }
    .sale-card { flex: 0 0 130px; }
}

/* Цены в sale-карточках баннера */
.sale-card__prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: auto;
}
.sale-card__old {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    text-decoration: line-through;
    line-height: 1.2;
}
.sale-card__price--red {
    color: #ff6b7a !important;
}

/* =====================================================
   СТАТЬИ / ЗАПИСИ БЛОГА
   ===================================================== */
.single-post .entry-content,
.page .entry-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    color: var(--color-text-dark, #1a1a2e);
    font-size: 1.05rem;
    line-height: 1.8;
}
.single-post .entry-title,
.single-post h1.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-primary);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 0;
}
.single-post .entry-meta {
    max-width: 860px;
    margin: 0 auto 30px;
    padding: 0 20px;
    color: var(--color-text-muted);
    font-size: .9rem;
}
.single-post .entry-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 36px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}
.single-post .entry-content blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 16px 24px;
    margin: 28px 0;
    background: rgba(10,22,40,.04);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.single-post .entry-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: .9rem;
    color: var(--color-text-muted);
    font-style: normal;
    font-weight: 600;
}

/* Таблицы результатов гонок */
.race-results {
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.race-results h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-gold);
    margin: 0 0 10px;
}
.race-results ol {
    padding-left: 20px;
    margin: 0;
    list-style: decimal;
}
.race-results ol li {
    padding: 3px 0;
    font-size: .95rem;
}

/* Галерея */
.single-post .gallery {
    margin: 28px 0;
}
.single-post .gallery-item img {
    border-radius: 8px;
    transition: transform .2s;
}
.single-post .gallery-item img:hover {
    transform: scale(1.02);
}

/* Кредиты фото */
.photo-credits {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,.1);
    font-size: .9rem;
    color: var(--color-text-muted);
}
.photo-credits a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.photo-credits a:hover { text-decoration: underline; }

/* =====================================================
   CCN SLIDER (статьи, страницы)
   ===================================================== */
.ccn-slider {
    position: relative;
    width: 100%;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0a1628;
    user-select: none;
}
.ccn-slider__track {
    display: grid;
    width: 100%;
    overflow: hidden;
}
.ccn-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity .55s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}
.ccn-slide--active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
/* Все слайды участвуют в расчёте высоты, невидимые — через visibility */
.ccn-slide img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}
.ccn-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Стрелки */
.ccn-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10,22,40,.65);
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(6px);
}
.ccn-slider__arrow:hover {
    background: rgba(197,165,90,.85);
    transform: translateY(-50%) scale(1.08);
}
.ccn-slider__arrow--prev { left: 14px; }
.ccn-slider__arrow--next { right: 14px; }

/* Счётчик */
.ccn-slider__counter {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(10,22,40,.6);
    color: rgba(255,255,255,.85);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: .03em;
    z-index: 10;
}

/* Точки */
.ccn-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.ccn-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.ccn-slider__dot--active {
    background: var(--color-gold, #c5a55a);
    transform: scale(1.3);
}

/* Прогресс-полоса автоперелистывания */
.ccn-slider__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-gold, #c5a55a);
    width: 0%;
    z-index: 10;
    transition: width linear;
}

@media (max-width: 600px) {
    .ccn-slider__arrow { width: 36px; height: 36px; }
    .ccn-slider__arrow--prev { left: 8px; }
    .ccn-slider__arrow--next { right: 8px; }
    .ccn-slide img { max-height: 60vh; }
}

/* =====================================================
   ПАГИНАЦИЯ КАТАЛОГА
   ===================================================== */
.ccn-pagination-wrap {
    padding: 40px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.ccn-pagination-info {
    font-size: .875rem;
    color: var(--color-text-muted, #8a9bb5);
}
.ccn-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.ccn-pagination a,
.ccn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 0;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Inter', Arial, sans-serif;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s;
    border: 2px solid #e2e8f0;
    color: var(--color-primary, #0a1628);
    background: #fff;
    line-height: 1;
}
.ccn-pagination a:hover {
    background: var(--color-primary, #0a1628);
    color: #fff;
    border-color: var(--color-primary, #0a1628);
}
.ccn-pagination .current {
    background: var(--color-gold, #c5a55a);
    color: #fff;
    border-color: var(--color-gold, #c5a55a);
    cursor: default;
}
.ccn-pagination .dots {
    border-color: transparent;
    background: transparent;
    color: #aaa;
    width: 28px;
    letter-spacing: .05em;
}
.ccn-pagination .prev,
.ccn-pagination .next {
    color: var(--color-primary, #0a1628);
    font-size: 1.1rem;
}
.ccn-pagination .prev:hover,
.ccn-pagination .next:hover {
    background: var(--color-primary, #0a1628);
    color: #fff;
    border-color: var(--color-primary, #0a1628);
}
.ccn-pagination svg { display: block; }

@media (max-width: 480px) {
    .ccn-pagination a,
    .ccn-pagination span { width: 36px; height: 36px; font-size: .85rem; }
}

/* ═══════════════════════════════════════════════════════════
   TRISTYLE — 5 PARENT CATEGORIES GRID
   Sport + Fashion hybrid: bold type, gradient accents, chips
   ═══════════════════════════════════════════════════════════ */

.ts-cats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(320px, auto);
    gap: 20px;
    margin-top: 40px;
}

.ts-cat-card {
    position: relative;
    grid-column: span 2;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
    box-shadow: 0 4px 20px rgba(15,23,42,.08);
}
.ts-cat-card--large { grid-column: span 3; }
.ts-cat-card--wide  { grid-column: span 6; min-height: 280px; }

@media (max-width: 980px) {
    .ts-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .ts-cat-card,
    .ts-cat-card--large { grid-column: span 1; }
    .ts-cat-card--wide  { grid-column: span 2; }
}
@media (max-width: 560px) {
    .ts-cats-grid { grid-template-columns: 1fr; gap: 16px; }
    .ts-cat-card,
    .ts-cat-card--large,
    .ts-cat-card--wide { grid-column: span 1; min-height: 260px; }
}

.ts-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,.25);
}

/* Градиентная «аура» фона — разная для каждой карточки */
.ts-cat-card__bg {
    position: absolute; inset: 0;
    opacity: .9;
    z-index: 0;
    transition: opacity .4s ease, transform .6s ease;
}
.ts-cat-card:hover .ts-cat-card__bg { opacity: 1; transform: scale(1.04); }

.ts-cat-card[data-cat="cycling"]   .ts-cat-card__bg { background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.55), transparent 60%), linear-gradient(135deg,#0F172A,#1E293B); }
.ts-cat-card[data-cat="triathlon"] .ts-cat-card__bg { background: radial-gradient(circle at 20% 30%, rgba(20,184,166,.55), transparent 60%), linear-gradient(135deg,#0F172A,#1E293B); }
.ts-cat-card[data-cat="running"]   .ts-cat-card__bg { background: radial-gradient(circle at 70% 80%, rgba(249,115,22,.55), transparent 60%), linear-gradient(135deg,#0F172A,#1E293B); }
.ts-cat-card[data-cat="swimming"]  .ts-cat-card__bg { background: radial-gradient(circle at 30% 70%, rgba(37,99,235,.6), transparent 60%), linear-gradient(135deg,#0F172A,#1E293B); }
.ts-cat-card[data-cat="lifestyle"] .ts-cat-card__bg { background: radial-gradient(circle at 85% 50%, rgba(132,204,22,.45), transparent 55%), radial-gradient(circle at 15% 80%, rgba(249,115,22,.35), transparent 55%), linear-gradient(135deg,#0F172A,#1E293B); }

/* Контент карточки */
.ts-cat-card__body {
    position: relative;
    z-index: 1;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ts-cat-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Inter', sans-serif;
}
.ts-cat-card__en {
    font-size: 11px;
    letter-spacing: .22em;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
}
.ts-cat-card__num {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,.45);
    letter-spacing: .05em;
}

.ts-cat-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    backdrop-filter: blur(8px);
    margin-top: 8px;
    transition: background .3s ease, border-color .3s ease, transform .4s ease;
}
.ts-cat-card[data-cat="cycling"]:hover   .ts-cat-card__icon { background: rgba(37,99,235,.3);  border-color: rgba(59,130,246,.6); }
.ts-cat-card[data-cat="triathlon"]:hover .ts-cat-card__icon { background: rgba(20,184,166,.3); border-color: rgba(45,212,191,.6); }
.ts-cat-card[data-cat="running"]:hover   .ts-cat-card__icon { background: rgba(249,115,22,.3); border-color: rgba(251,146,60,.6); }
.ts-cat-card[data-cat="swimming"]:hover  .ts-cat-card__icon { background: rgba(37,99,235,.3);  border-color: rgba(59,130,246,.6); }
.ts-cat-card[data-cat="lifestyle"]:hover .ts-cat-card__icon { background: rgba(132,204,22,.3); border-color: rgba(163,230,53,.6); }
.ts-cat-card:hover .ts-cat-card__icon { transform: rotate(-4deg) scale(1.05); }

.ts-cat-card__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}
.ts-cat-card--large .ts-cat-card__title,
.ts-cat-card--wide  .ts-cat-card__title { font-size: 36px; }

.ts-cat-card__desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,.75);
    max-width: 420px;
}

.ts-cat-card__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}
.ts-cat-chip {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ts-cat-card:hover .ts-cat-chip { background: rgba(255,255,255,.14); }

.ts-cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin-top: 8px;
    position: relative;
}
.ts-cat-card__link::after {
    content: '';
    position: absolute;
    left: 0; right: auto; bottom: -4px;
    width: 24px; height: 2px;
    background: currentColor;
    transition: width .3s ease;
}
.ts-cat-card:hover .ts-cat-card__link::after { width: 100%; }
.ts-cat-card__link svg { transition: transform .3s ease; }
.ts-cat-card:hover .ts-cat-card__link svg { transform: translateX(4px); }

/* Цвет акцента ссылки по категории */
.ts-cat-card[data-cat="cycling"]   .ts-cat-card__link { color: #3B82F6; }
.ts-cat-card[data-cat="triathlon"] .ts-cat-card__link { color: #2DD4BF; }
.ts-cat-card[data-cat="running"]   .ts-cat-card__link { color: #FB923C; }
.ts-cat-card[data-cat="swimming"]  .ts-cat-card__link { color: #3B82F6; }
.ts-cat-card[data-cat="lifestyle"] .ts-cat-card__link { color: #A3E635; }

/* Лёгкая «полоска» сверху на больших карточках */
.ts-cat-card--large::before,
.ts-cat-card--wide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity .3s ease;
}
.ts-cat-card--large:hover::before,
.ts-cat-card--wide:hover::before { opacity: .6; }
.ts-cat-card[data-cat="cycling"]   { --_c: #3B82F6; }
.ts-cat-card[data-cat="triathlon"] { --_c: #2DD4BF; }
.ts-cat-card[data-cat="running"]   { --_c: #FB923C; }
.ts-cat-card[data-cat="swimming"]  { --_c: #3B82F6; }
.ts-cat-card[data-cat="lifestyle"] { --_c: #A3E635; }
.ts-cat-card--large::before,
.ts-cat-card--wide::before { color: var(--_c); }

/* ═══════════════════════════════════════════════════════════
   LOGO-SUBTITLE — SPORT & LIFESTYLE badge
   ═══════════════════════════════════════════════════════════ */
.logo-subtitle {
    display: block;
    font-size: 10px;
    letter-spacing: .32em;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    margin-top: 4px;
    background: linear-gradient(90deg, #14B8A6, #2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Блог — глянцевый журнальный стиль
   ========================================================================== */
.blog-hero {
    padding: 80px 0 48px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #14B8A6 150%);
    color: #fff;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.25), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.25), transparent 50%);
    pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero__kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #F97316;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
}
.blog-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #fff;
    letter-spacing: -0.02em;
}
.blog-hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    max-width: 680px;
    margin: 0 auto;
    opacity: 0.85;
    line-height: 1.6;
}

.blog-page {
    padding: 48px 0 96px;
    background: #ffffff;
}
[data-theme="light"] .blog-page { background: #ffffff; }
[data-theme="dark"] .blog-page,
:root:not([data-theme]) .blog-page { background: #ffffff; color: #0a1628; }

/* Featured — большой первый пост */
.blog-featured {
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 40px rgba(10,22,40,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(10,22,40,0.15);
}
.blog-featured__link {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    text-decoration: none;
    color: inherit;
    min-height: 420px;
}
.blog-featured__image {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A, #14B8A6);
}
.blog-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-featured:hover .blog-featured__img {
    transform: scale(1.04);
}
.blog-featured__emoji {
    font-size: 10rem;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
    opacity: 0.95;
}
.blog-featured__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}
.blog-featured__content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #0a1628;
}
.blog-featured__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 12px 0 16px;
    color: #0a1628;
    letter-spacing: -0.01em;
}
.blog-featured__excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

/* Грид карточек */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10,22,40,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10,22,40,0.12);
}
.blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
}
.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__img {
    transform: scale(1.05);
}
.blog-card__emoji {
    font-size: 5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    opacity: 0.95;
}
.blog-card__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #0a1628;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
.blog-featured .blog-card__tag {
    position: static;
    align-self: flex-start;
    background: rgba(20, 184, 166, 0.1);
    color: #14B8A6;
    margin-bottom: 0;
}
.blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.blog-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0a1628;
    margin: 0;
    letter-spacing: -0.005em;
    transition: color 0.2s;
}
.blog-card:hover .blog-card__title {
    color: #14B8A6;
}
.blog-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
}
.blog-card__date {
    color: #94a3b8;
    font-weight: 500;
}
.blog-card__read {
    color: #F97316;
    font-weight: 600;
    transition: transform 0.2s, color 0.2s;
}
.blog-card:hover .blog-card__read {
    color: #14B8A6;
    transform: translateX(4px);
}

/* Пагинация блога */
.blog-page .navigation.pagination,
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}
.blog-page .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.blog-page .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    color: #0a1628;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-page .page-numbers.current {
    background: #0a1628;
    color: #fff;
}
.blog-page .page-numbers:hover:not(.current) {
    background: #14B8A6;
    color: #fff;
}

/* Адаптив */
@media (max-width: 860px) {
    .blog-featured__link {
        grid-template-columns: 1fr;
    }
    .blog-featured__image {
        aspect-ratio: 16/10;
        min-height: 240px;
    }
    .blog-featured__emoji { font-size: 6rem; }
    .blog-featured__content { padding: 32px 24px; }
    .blog-hero { padding: 56px 0 32px; }
}
@media (max-width: 520px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card__emoji { font-size: 4rem; }
}

/* Светлая тема — всё остаётся читаемым */
[data-theme="light"] .blog-featured,
[data-theme="light"] .blog-card { background: #ffffff; }
[data-theme="light"] .blog-featured__content,
[data-theme="light"] .blog-featured__title,
[data-theme="light"] .blog-card__title { color: #0a1628; }

/* ==========================================================================
   Комментарии блога — глянцевый стиль
   ========================================================================== */
.ccn-comments {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #e2e8f0;
}

.ccn-comments__header {
    margin-bottom: 32px;
}
.ccn-comments__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.ccn-comments__icon {
    color: #14B8A6;
    flex-shrink: 0;
}
.ccn-comments__subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Список комментариев */
.ccn-comments__list,
.ccn-comments__list ol.children {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}
.ccn-comments__list ol.children {
    margin: 20px 0 0;
    padding-left: 28px;
    border-left: 2px solid #e2e8f0;
}
@media (max-width: 520px) {
    .ccn-comments__list ol.children {
        padding-left: 16px;
    }
}

.ccn-comment {
    margin-bottom: 20px;
    list-style: none;
}
.ccn-comment__body {
    background: #ffffff;
    border: 1px solid #e8ecf3;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(10,22,40,0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.ccn-comment__body:hover {
    box-shadow: 0 6px 20px rgba(10,22,40,0.08);
    border-color: #cfd6e2;
}

.ccn-comment__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.ccn-comment__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}
.ccn-comment__meta { flex: 1; min-width: 0; }
.ccn-comment__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0a1628;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 2px;
}
.ccn-comment__author a {
    color: inherit;
    text-decoration: none;
}
.ccn-comment__author a:hover { color: #14B8A6; }
.ccn-comment__badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #14B8A6, #2563EB);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
}
.ccn-comment__date {
    font-size: 0.8rem;
    color: #94a3b8;
}
.ccn-comment__actions {
    flex-shrink: 0;
}
.ccn-comment__actions .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    color: #0a1628;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.ccn-comment__actions .comment-reply-link:hover {
    background: #14B8A6;
    color: #fff;
}

.ccn-comment__content {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.65;
}
.ccn-comment__content p {
    margin: 0 0 10px;
}
.ccn-comment__content p:last-child { margin-bottom: 0; }
.ccn-comment__pending {
    padding: 8px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.ccn-comment__edit {
    margin-top: 8px;
    font-size: 0.8rem;
}
.ccn-comment__edit a {
    color: #F97316;
    text-decoration: none;
}

.ccn-comments__pagination {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 32px;
    font-size: 0.9rem;
}
.ccn-comments__pagination a {
    color: #14B8A6;
    font-weight: 600;
    text-decoration: none;
}

.ccn-comments__closed {
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
}

/* Форма добавления комментария */
.ccn-comments__form-wrap {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e8ecf3;
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}
.ccn-comments__form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14B8A6 0%, #2563EB 50%, #F97316 100%);
}
@media (max-width: 520px) {
    .ccn-comments__form-wrap { padding: 24px 20px; }
}

.ccn-comments__form-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.ccn-comments__user-note {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 20px;
}
.ccn-comments__user-note a {
    color: #F97316;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

/* Поля формы */
.ccn-comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ccn-comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 520px) {
    .ccn-comment-form__row { grid-template-columns: 1fr; }
}

.ccn-comment-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ccn-comment-form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}
.ccn-comment-form__label span {
    color: #F97316;
}
.ccn-comment-form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d9e6;
    border-radius: 12px;
    background: #fff;
    color: #0a1628;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ccn-comment-form__input:focus {
    outline: none;
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.ccn-comment-form__input::placeholder {
    color: #94a3b8;
}
textarea.ccn-comment-form__input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.ccn-comment-form__field--checkbox .ccn-comment-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1.5;
}
.ccn-comment-form__check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #14B8A6;
    cursor: pointer;
}

/* Кнопка отправки */
.ccn-comment-form__submit,
#ccn-comment-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #14B8A6 0%, #2563EB 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}
.ccn-comment-form__submit:hover,
#ccn-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.5);
}
.ccn-comment-form__submit:active,
#ccn-comment-submit:active {
    transform: translateY(0);
}

/* Заголовок «Отменить ответ» */
#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 12px;
    font-size: 0.85rem;
    color: #F97316;
    text-decoration: none;
}

/* Скрываем дефолтные wp-подсказки (notes/must_log_in) */
.ccn-comment-form .comment-notes,
.ccn-comment-form .logged-in-as,
.ccn-comment-form .must-log-in {
    display: none;
}

/* Тёмная тема (если на single.php используется) */
[data-theme="light"] .ccn-comments__form-wrap {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* ========================================================
   Hero — vitrina slide (главная витрина TRISTYLE × CCN)
   ======================================================== */
.hero__slide--vitrina {
    background: #0e1a12;
    padding: 0;
}
.hero__slide--vitrina .hero__vitrina-frame {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    overflow: hidden;
}
.hero__slide--vitrina .hero__vitrina-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    display: block;
}
/* Плавный переход тёмной панели в фото + затемнение верха под меню */
.hero__slide--vitrina .hero__vitrina-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #0e1a14 0%, rgba(14,26,20,.5) 6%, rgba(14,26,20,0) 14%),
        linear-gradient(180deg, rgba(8,16,24,.45) 0%, transparent 28%);
    pointer-events: none;
    z-index: 1;
}
.hero__slide--vitrina .hero__vitrina-text {
    position: absolute;
    left: clamp(24px, 6vw, 120px);
    top: 50%;
    transform: translateY(-40%);
    width: 24%;
    max-width: 380px;
    z-index: 2;
    color: #fff;
}
.hero__slide--vitrina .hero__vitrina-kicker {
    margin: 0 0 18px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #c5a55a;
}
.hero__slide--vitrina .hero__vitrina-title {
    margin: 0 0 16px;
    font-family: var(--font-primary);
    font-size: clamp(24px, 2.3vw, 38px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}
.hero__slide--vitrina .hero__vitrina-sub {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255,255,255,.78);
}
.hero__slide--vitrina .hero__vitrina-cta {
    margin-top: 26px;
}
.hero__slide--vitrina .hero__vitrina-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: #c5a55a;
    color: #0a1628;
    font-size: 12px;
    letter-spacing: 2px;
    white-space: nowrap;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 10px 30px rgba(197,165,90,.35);
}
.hero__slide--vitrina .hero__vitrina-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(197,165,90,.5);
}
.hero__slide--vitrina .hero__vitrina-btn span {
    font-size: 20px;
    line-height: 1;
}
@media (max-width: 768px) {
    .hero__slide--vitrina .hero__vitrina-frame { width: 100%; }
    .hero__slide--vitrina .hero__vitrina-img { object-position: 50% 0%; }
    .hero__slide--vitrina .hero__vitrina-overlay {
        background: linear-gradient(180deg, rgba(8,16,24,.15) 0%, transparent 40%, rgba(8,16,24,.85) 100%);
    }
    .hero__slide--vitrina .hero__vitrina-text {
        top: auto;
        bottom: 70px;
        left: 20px;
        right: 20px;
        width: auto;
        transform: none;
    }
    .hero__slide--vitrina .hero__vitrina-kicker { font-size: 9px; letter-spacing: 2px; margin-bottom: 10px; }
    .hero__slide--vitrina .hero__vitrina-title { font-size: 26px; }
    .hero__slide--vitrina .hero__vitrina-sub { display: none; }
    .hero__slide--vitrina .hero__vitrina-cta {
        margin-top: 20px;
    }
    .hero__slide--vitrina .hero__vitrina-btn {
        padding: 14px 28px;
        font-size: 12px;
        letter-spacing: 2px;
    }
}

/* ========================================================
   Слайд — БЕЗОПАСНОСТЬ (шлемы, бегущая строка)
   ======================================================== */
.hero__slide--safety {
    background:
        radial-gradient(circle at 20% 30%, rgba(197,165,90,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 53, 69, .12) 0%, transparent 50%),
        linear-gradient(135deg, #0a1628 0%, #131f38 60%, #0a1628 100%);
}
.hero__slide--safety.hero__slide--active { display: flex !important; align-items: stretch; }
.safety-slide {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 60px clamp(24px, 4vw, 80px);
    max-width: 1600px;
    margin: 0 auto;
}
.safety-slide__left {
    flex: 0 0 380px;
    color: #fff;
}
.safety-slide__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    font-size: 11px; letter-spacing: 3px; font-weight: 800;
    text-transform: uppercase;
    background: rgba(220, 53, 69, .15);
    color: #ff6b7c;
    border: 1px solid rgba(220, 53, 69, .35);
    border-radius: 999px;
    margin-bottom: 20px;
}
.safety-slide__title {
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.02;
    margin: 0 0 18px;
    letter-spacing: -.5px;
    color: #fff;
}
.safety-slide__sub {
    font-size: 15px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0 0 28px;
    max-width: 380px;
}
.safety-slide__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.safety-slide__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px;
    border-radius: 4px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.safety-slide__btn:hover { transform: translateY(-1px); opacity: .92; }
.safety-slide__btn--main {
    background: #c5a55a;
    color: #0a1628;
    box-shadow: 0 8px 24px rgba(197,165,90,.3);
}
.safety-slide__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

/* Marquee */
.safety-slide__marquee {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    /* Fade по бокам, чтобы карточки красиво выходили и заходили */
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.safety-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
}
.safety-marquee__track {
    display: flex;
    gap: 20px;
    animation: safetyMarquee 40s linear infinite;
    width: max-content;
    padding: 6px 0;
}
.safety-marquee__track:hover { animation-play-state: paused; }
@keyframes safetyMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Карточка шлема */
.safety-card {
    flex: 0 0 220px;
    display: flex; flex-direction: column;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(197,165,90,.15);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.safety-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    border-color: rgba(197,165,90,.5);
}
.safety-card__img {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.safety-card__img img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
}
.safety-card__no-img { color: #6b7280; }
.safety-card__info { padding: 12px 14px 14px; }
.safety-card__name {
    display: block;
    font-size: 13px; font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.safety-card__tag {
    display: inline-block;
    font-size: 10px; letter-spacing: 1px;
    color: #c5a55a;
    text-transform: uppercase;
    font-weight: 700;
}

/* Адаптив */
@media (max-width: 1024px) {
    .safety-slide { flex-direction: column; padding: 40px 24px; gap: 24px; }
    .safety-slide__left { flex: none; text-align: center; }
    .safety-slide__title br { display: none; }
    .safety-slide__sub { margin-left: auto; margin-right: auto; }
    .safety-slide__cta { justify-content: center; }
}
@media (max-width: 640px) {
    .safety-card { flex: 0 0 160px; }
    .safety-marquee__track { gap: 12px; }
}

/* Safety card — цена */
.safety-card__price-row {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 6px;
}
.safety-card__old {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
}
.safety-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}
.safety-card__price small { font-size: 10px; opacity: .7; letter-spacing: .5px; }
.safety-card__price--red { color: #ff6b7c; }
.safety-card__price--muted { color: #c5a55a; font-weight: 600; font-size: 12px; }

/* ========================================================
   Сайдбар — новые части (аксессуары, счётчики родителя)
   ======================================================== */
.sidebar__parent-name { flex: 1; }
.sidebar__link--parent {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
}
.sidebar__count--parent {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(197,165,90,.14);
    color: #c5a55a;
    font-weight: 700;
}
.sidebar__accessory-title {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    width: 100%;
    background: none; border: 0;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.sidebar__accessory-chevron {
    transition: transform .2s;
    color: currentColor;
    opacity: .6;
}
.sidebar__group--accessory.sidebar__group--open .sidebar__accessory-chevron,
.sidebar__accessory-title.sidebar__toggle--open .sidebar__accessory-chevron {
    transform: rotate(180deg);
}
.sidebar__count--accessory {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.18);
    color: #94a3b8;
    font-weight: 700;
    margin-left: auto;
}

/* ========================================================
   Chip-фильтры (пол, цвет, и др.)
   ======================================================== */
.sidebar__chips {
    display: flex; flex-wrap: wrap;
    gap: 8px;
}
.sidebar__chip {
    display: inline-flex; align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(197,165,90,.08);
    color: #cbd5e1;
    border: 1px solid rgba(197,165,90,.18);
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
    line-height: 1.15;
}
.sidebar__chip:hover {
    background: rgba(197,165,90,.16);
    color: #fff;
    border-color: rgba(197,165,90,.35);
}
.sidebar__chip--active {
    background: #c5a55a;
    color: #0a1628;
    border-color: #c5a55a;
}
.sidebar__chip--active:hover {
    background: #d5b46a;
    color: #0a1628;
    border-color: #d5b46a;
}
.sidebar__chip-count {
    font-size: 11px; font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(0,0,0,.18);
    color: inherit;
    opacity: .8;
}
.sidebar__chip--active .sidebar__chip-count {
    background: rgba(10,22,40,.22);
}

/* Индикатор загрузки для AJAX */
.shop-grid {
    transition: opacity .18s ease-out;
}

/* ==========================================================================
   Фильтры-кнопки (Пол, Рукава, Утепление) на белой панели (компьютер):
   контрастные — тёмный текст и рамка; выбранная — тёмно-синяя с белым текстом
   ========================================================================== */
@media (min-width: 900px) {
    .shop-sidebar .sidebar__chip {
        background: #ffffff;
        color: #0a1628;
        border: 1.5px solid #cbd5e1;
        font-weight: 600;
    }
    .shop-sidebar .sidebar__chip:hover {
        background: #f8fafc;
        color: #0a1628;
        border-color: #0a1628;
    }
    .shop-sidebar .sidebar__chip-count {
        background: #eef2f6;
        color: #475569;
        opacity: 1;
    }
    .shop-sidebar .sidebar__chip--active,
    .shop-sidebar .sidebar__chip--active:hover {
        background: #0a1628;
        color: #ffffff;
        border-color: #0a1628;
    }
    .shop-sidebar .sidebar__chip--active .sidebar__chip-count {
        background: rgba(255,255,255,.2);
        color: #ffffff;
    }
}

/* Логотипы платёжных систем в подвале */
.footer__payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__payments .footer__pay { display: inline-flex; line-height: 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* ==========================================================================
   Дерево категорий в боковой панели: только ветка текущего раздела
   ========================================================================== */
.ccn-cattree { --ct-text: #0a1628; --ct-muted: #64748b; --ct-active-bg: #0a1628; --ct-active-text: #fff; --ct-hover: #f1f5f9; }
@media (max-width: 899px) {
    .ccn-cattree { --ct-text: #0a1628; --ct-muted: #64748b; --ct-active-bg: #c5a55a; --ct-active-text: #0a1628; --ct-hover: #f1f5f9; }
}
.ccn-cattree__back { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ct-muted); text-decoration: none; }
.ccn-cattree__back:hover { color: var(--ct-text); }
.ccn-cattree__root { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(148,163,184,.3); font-size: 16px; font-weight: 800; color: var(--ct-text); text-decoration: none; }
.ccn-cattree__list, .ccn-cattree__sub { list-style: none; margin: 0; padding: 0; }
.ccn-cattree__item { margin: 2px 0; }
.ccn-cattree__link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ct-text); text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s; }
.ccn-cattree__link:hover { background: var(--ct-hover); }
.ccn-cattree__link--sub { padding: 5px 10px 5px 22px; font-size: 13px; font-weight: 500; }
.ccn-cattree__link--section { font-size: 15px; }
.ccn-cattree__link.is-active, .ccn-cattree__root.is-active { background: var(--ct-active-bg); color: var(--ct-active-text); padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.ccn-cattree .sidebar__count { font-size: 11px; font-weight: 600; color: var(--ct-muted); }
.ccn-cattree .is-active .sidebar__count, .ccn-cattree__link.is-active .sidebar__count { color: inherit; opacity: .75; }
/* подкатегории второго уровня — всегда раскрыты */

/* === Правое меню (Бег и фитнес / Теннис / Повседневная) — как левое (02.10.2026) ===
   Раньше блок правого меню обрезал выпадашку слева (overflow-x: clip) и обрезал «Повседневная». */
@media (min-width: 961px) {
    body .header__nav,
    body .header__right .header__nav--right { overflow: visible; }
    body .header__nav--right { padding-left: 0; }
    body .header__right { gap: 12px; }
}
@media (min-width: 961px) and (max-width: 1600px) {
    body .header__nav .nav-menu { gap: 12px; }
    body .header__nav .nav-menu > li > a { font-size: 13px; letter-spacing: 0.04em; }
    body .header__actions { gap: 10px; }
}
@media (min-width: 961px) and (max-width: 1366px) {
    body .header__nav .nav-menu { gap: 10px; }
    body .header__nav .nav-menu > li > a { font-size: 12px; letter-spacing: 0.02em; }
}
@media (min-width: 961px) and (max-width: 1200px) {
    body .header__nav .nav-menu { gap: 8px; }
    body .header__nav .nav-menu > li > a { font-size: 11px; letter-spacing: 0; }
}

/* Логотип: без сплющивания — высота по пропорции файла (2579×355 ≈ 7,3:1) (02.10.2026) */
.logo-link .logo-img { width: 240px !important; max-width: 100%; height: auto !important; aspect-ratio: 2579 / 355; object-fit: contain; }
@media (max-width: 1280px) { .logo-link .logo-img { width: 210px !important; } }
@media (max-width: 960px) { .logo-link .logo-img { width: min(150px, 40vw) !important; } }
