:root {
    --color-primary-start: #ffb7c5;
    --color-primary-end: #fb7185;
    --color-bg: #fff1f2;
    --color-text-main: #44403c;
    --color-text-muted: #78716c;
    --font-serif: 'Manrope', 'Times New Roman', serif;
    --font-sans: 'Manrope', 'Times New Roman', serif;
    --btn-radius: 9999px;
}

html,
body {
    width: 100%;
}

/* Фон сайта: "Vivid Aurora" (Насыщенная Аврора) */
/* Яркие, плотные цветовые пятна, создающие глубокий и видимый фон */
body {
    font-family: var(--font-sans);
    font-variant-numeric: tabular-nums;
    color: var(--color-text-main);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    position: relative;
    isolation: isolate;
    background: transparent !important;
    background-color: #111827;
}

.site-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('upload/fon1.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Chrome perf: removed blanket translate3d/isolation/backface-visibility
   from glass elements — each one creates a separate compositor layer,
   and Chrome handles 10+ layers much worse than Firefox/Safari.
   backdrop-filter already promotes to its own layer. */

/* Chrome perf: removed forced translate3d/isolation/backface-visibility
   from all backdrop-filter elements — they already get compositor
   promotion from backdrop-filter itself. Double-promoting caused
   excessive layer count and scroll jank in Chrome. */



@media (max-width: 768px) {

    /* Удаляем переопределения фона для мобильных, чтобы сохранить Aurora Fixed стиль */
    /* body { ... } удалено */

    /* Mobile background overrides removed to show bg image */

    .glass-btn-primary,
    .glass-btn-secondary,
    .glass-btn-white,
    .glass-control-action,
    .btn-details-custom,
    .btn-add-circle {
        box-shadow: 0 2px 8px rgba(251, 113, 133, 0.3) !important;
    }

    /* Скрываем старые пятна */



    .desktop-header-fixed {
        backdrop-filter: none !important;
    }

    .animate-on-scroll {
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    .card {
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    .modal-backdrop {
        backdrop-filter: blur(4px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: var(--font-serif);
}

h1 {
    line-height: 1.2;
}

h2 {
    line-height: 1.3;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.5rem;
    }

    h2[class*="md:text-"] {
        font-size: 2.5rem;
    }
}

.container,
.content-container {
    width: 100%;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box;
}

.content-section {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .content-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

.hero-section {
    height: 100vh !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home-page section.content-section:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (min-width: 1024px) {
    body:not(.home-page) {
        padding-top: 120px;
    }
}

@media (min-width: 1024px) {
    .desktop-header-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        column-gap: 2rem;
        row-gap: 0.4rem;
        width: 100%;
        max-width: min(980px, calc(100vw - 760px));
    }

    .desktop-header-nav-link {
        text-align: center;
    }
}

@media (min-width: 1024px) and (max-width: 1650px) {
    .desktop-header-nav {
        flex-wrap: wrap;
        column-gap: 1.35rem;
    }
}

@media (min-width: 1024px) and (max-width: 1450px) {
    .desktop-header-nav {
        max-width: calc(100vw - 720px);
    }

    body:not(.home-page) {
        padding-top: 150px;
    }
}

@media (min-width: 1024px) and (max-width: 1260px) {
    .desktop-header-nav {
        max-width: calc(100vw - 680px);
        column-gap: 1rem;
    }

    .desktop-header-nav-link {
        font-size: 0.9rem;
        letter-spacing: 0.06em;
    }

    body:not(.home-page) {
        padding-top: 176px;
    }
}

section.content-section:first-child .floating-card {
    transform: translateY(0);
}

/* Мобильная версия книжного формата */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh !important;
        min-height: 100vh !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons-container a {
        width: auto;
        min-width: 200px;
        text-align: center;
    }

    /* Убираем "полосу" от старого хедера на главной в мобильной книжной версии */
}

.glass-panel-3d {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 20px 40px -4px rgba(251, 113, 133, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.5);
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Internal page shell: keep the same glass silhouette, but avoid live
   backdrop blur on the huge page-wide container that Chrome repaints on scroll. */
.glass-panel-3d.page-shell-panel {
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 248, 250, 0.93) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.glass-card-hover {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.glass-card-hover:hover {
    transform: translate3d(0, -8px, 0) scale(1.01);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(251, 113, 133, 0.1);
    border-color: rgba(251, 113, 133, 0.3);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(251, 113, 133, 0.1), inset 0 2px 4px rgba(255, 255, 255, 1);
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card-strong:hover {
    transform: translate3d(0, -8px, 0);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(251, 113, 133, 0.25), inset 0 2px 4px rgba(255, 255, 255, 1);
    border-color: rgba(251, 113, 133, 0.3);
}

.radical-glass-block {
    position: relative;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 245, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 4px solid rgba(251, 113, 133, 0.1);
    box-shadow: 0 20px 60px -10px rgba(251, 113, 133, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 5px 15px rgba(255, 255, 255, 0.9);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, background-color 0.5s ease;
    overflow: hidden;
    z-index: 20;
}

.radical-glass-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
    opacity: 0.3;
    pointer-events: none;
}

.radical-glass-block:hover {
    transform: translate3d(0, -5px, 0) scale(1.01);
    box-shadow: 0 30px 70px -10px rgba(251, 113, 133, 0.35), 0 15px 30px -5px rgba(0, 0, 0, 0.1), inset 0 0 0 2px rgba(255, 255, 255, 1);
}

.floating-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-radius: 2rem;
    box-shadow: 0 20px 50px -10px rgba(251, 113, 133, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
    margin-bottom: 1.5rem;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    z-index: 10;
}

.content-inner-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(243, 244, 246, 0.85));
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 6px rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.content-inner-card:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 20px rgba(251, 113, 133, 0.1);
}

.text-gradient-rose {
    background: linear-gradient(135deg, #be123c 0%, #fb7185 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-btn-primary,
.glass-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    color: white !important;
    border: none;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    padding: 0.8rem 2rem;
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.glass-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-btn-primary:hover::after {
    opacity: 1;
}

.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-primary-end) !important;
    border: 1px solid var(--color-primary-end);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-add-circle {
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.btn-add-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-add-circle:hover {
    transform: translate3d(0, -2px, 0) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.5);
}

.btn-add-circle:hover::after {
    opacity: 1;
}

.glass-btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--color-primary-end) !important;
    border: 1px solid rgba(251, 113, 133, 0.2);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    padding: 1rem 2.5rem;
    border-radius: var(--btn-radius);
    box-shadow: 0 10px 25px rgba(251, 113, 133, 0.15);
    cursor: pointer;
}

.glass-btn-white:hover,
.glass-btn-secondary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 15px 30px rgba(251, 113, 133, 0.25);
    border-color: var(--color-primary-end);
}

.glass-nav-link {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-nav-link.active {
    background: linear-gradient(135deg, #ffb7c5, #fb7185);
    color: white;
    box-shadow: 0 4px 10px rgba(251, 113, 133, 0.3);
}

/* === PRICE BUTTON ANIMATION === */
.price-btn-split .price-text-wrapper {
    position: relative;
    min-width: 50px;
}

.price-btn-split .price-text-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Начальное смещение вниз чтобы "Прайс" был по центру */
    transform: translateY(8px);
}

.price-btn-split .price-date {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 1px;
}

.price-btn-split:hover .price-text-inner {
    /* При наведении поднимаем всё вверх */
    transform: translateY(0);
}

.price-btn-split:hover .price-date {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-pending {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.is-instant {
    transition: none !important;
}


input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(251, 113, 133, 0.2);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary-end);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(251, 113, 133, 0.4);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* === PRODUCT ITEM STYLES === */
.product-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -5px rgba(251, 113, 133, 0.15);
    border: 1px solid rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.product-item:hover {
    transform: translate3d(0, -12px, 0) scale(1.02);
    box-shadow: 0 25px 50px -10px rgba(251, 113, 133, 0.25), 0 15px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(251, 113, 133, 0.3);
    z-index: 10;
}

.product-item>div:last-child {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-item--hidden {
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.14), 0 8px 18px -8px rgba(120, 113, 108, 0.22);
}

.product-item--hidden::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(41, 37, 36, 0.18);
    pointer-events: none;
    z-index: 1;
}

.product-item--hidden:hover {
    transform: translate3d(0, -6px, 0) scale(1.01);
    box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.18), 0 12px 22px -10px rgba(120, 113, 108, 0.26);
}

.product-hidden-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 9999px;
    background: rgba(28, 25, 23, 0.82);
    color: transparent;
    font-size: 0;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px -10px rgba(28, 25, 23, 0.7);
}

.product-hidden-badge::before {
    content: "\0421\043A\0440\044B\0442";
    font-size: 0.68rem;
    color: #fff;
}

.product-hidden-badge--detail {
    background: rgba(68, 64, 60, 0.88);
    color: #f8fafc;
}

.product-hidden-badge--detail::before {
    content: "\0421\043A\0440\044B\0442 \043E\0442 \043F\043E\043B\044C\0437\043E\0432\0430\0442\0435\043B\0435\0439";
}

#prodIsHidden + span {
    font-size: 0;
    color: transparent;
}

#prodIsHidden + span::before {
    content: "\0421\043A\0440\044B\0442\044C \0442\043E\0432\0430\0440 \043E\0442 \043E\0431\044B\0447\043D\044B\0445 \043F\043E\043B\044C\0437\043E\0432\0430\0442\0435\043B\0435\0439";
    font-size: 1rem;
    color: #57534e;
    font-weight: 700;
}

.btn-details-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb7c5, #fb7185);
    color: white !important;
    border-radius: var(--btn-radius);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4);
    border: none;
    width: auto;
    margin: 0 auto;
}

.btn-details-custom:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.5);
}

/* === SLIDER STYLES (REWRITTEN) === */
.hits-slider-wrapper {
    position: relative;
    padding: 0 10px;
    width: 100%;
    overflow: hidden;
    /* Важно: чтобы слайдер не растягивал Grid */
}

.hits-slider-container {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 30px 10px 50px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Плавная прокрутка на iOS */
}

.hits-slider-container::-webkit-scrollbar {
    display: none;
}

.hits-slider-item {
    flex: 0 0 320px;
    width: 320px;
    /* Fallback */
    max-width: 100%;
    /* Защита от переполнения */
    scroll-snap-align: center;
}

/* Fallback для aspect-square, если Tailwind не сработает */
.aspect-square {
    aspect-ratio: 1 / 1;
}

@media (max-width: 1024px) {
    .hits-slider-item {
        flex: 0 0 280px;
        width: 280px;
    }
}

@media (max-width: 768px) {

    /* Исправления для мобильного слайдера Хиты продаж */
    .hits-slider-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .hits-slider-container {
        gap: 0;
        padding: 20px 0 40px 0;
        scroll-padding-left: 0;
    }

    .hits-slider-item {
        /* 100% ширины - показываем только один товар */
        flex: 0 0 100%;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .hits-slider-item>.product-item {
        width: 100%;
        max-width: 320px;
    }

    .product-item {
        border-radius: 1.5rem;
    }

    /* Гарантируем, что картинка остается квадратной и не ломается */
    .hits-slider-item .aspect-square {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .hits-slider-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.glass-control-group {
    background: #ffffff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: var(--btn-radius);
    padding: 0.5rem;
    gap: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -5px rgba(251, 113, 133, 0.3), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.glass-control-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: var(--color-primary-end);
    transition:
        transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background-color 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
    box-shadow: 0 10px 20px -5px rgba(251, 113, 133, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
    flex-shrink: 0;
}

.glass-control-btn:hover {
    transform: translate3d(0, -4px, 0) scale(1.1);
    color: #e11d48;
    box-shadow: 0 15px 30px -5px rgba(251, 113, 133, 0.5), 0 8px 10px -2px rgba(0, 0, 0, 0.1);
    border-color: #fff1f2;
}

.glass-control-action {
    padding: 0.9rem 2rem;
    border-radius: var(--btn-radius);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    background: linear-gradient(135deg, #ffb7c5, #fb7185);
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.glass-control-action:hover {
    box-shadow: 0 8px 25px rgba(251, 113, 133, 0.5);
    transform: translate3d(0, -2px, 0);
}

.card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Blobs removed */

/* --- ОБНОВЛЕННЫЙ СТИЛЬ ДЛЯ КАРТИНОК В КОНТЕНТЕ --- */
.about-image-wrapper {
    position: relative;
    border-radius: 2rem;
    z-index: 10;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 30px -5px rgba(251, 113, 133, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate3d(0, 0, 0);
    /* Аппаратное ускорение */
    background: white;
    /* На случай прозрачных картинок */
}

.about-image-wrapper img {
    border-radius: 2rem;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.about-image-wrapper:hover {
    transform: translate3d(0, -8px, 0) scale(1.02);
    box-shadow:
        0 35px 60px -15px rgba(0, 0, 0, 0.3),
        0 15px 40px -5px rgba(251, 113, 133, 0.7),
        0 0 0 2px rgba(255, 255, 255, 1);
}

/* === PRODUCT DETAIL SHOWCASE V2 === */
.product-showcase-head {
    position: relative;
}

.product-photo-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #be123c;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 1px 1px 1px rgba(255, 255, 255, 0.9),
        0 8px 18px -8px rgba(244, 63, 94, 0.45);
}

.product-media-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-shell {
    position: relative;
}

.product-main-frame {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 28px 50px -20px rgba(15, 23, 42, 0.3),
        0 10px 24px -14px rgba(244, 63, 94, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.product-main-frame:hover {
    transform: translate3d(0, -7px, 0) scale(1.01);
    box-shadow:
        0 36px 62px -20px rgba(15, 23, 42, 0.33),
        0 18px 36px -15px rgba(244, 63, 94, 0.66),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-main-frame-glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.45), transparent 52%),
        linear-gradient(20deg, rgba(255, 255, 255, 0.16), transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.product-main-corner-thumb {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 92px;
    min-width: 92px;
    aspect-ratio: 1 / 1;
    z-index: 30;
    transform: rotate(-12deg) !important;
    box-shadow:
        0 20px 34px -14px rgba(15, 23, 42, 0.58),
        0 12px 24px -12px rgba(244, 63, 94, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    pointer-events: auto;
}

.product-main-corner-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
}

.product-main-corner-thumb:hover {
    transform: translateY(-8px) scale(1.07) rotate(-6deg) !important;
}

.product-main-corner-thumb.active-thumb {
    transform: translateY(-6px) scale(1.06) rotate(-8deg) !important;
}

.product-main-corner-thumb.active-thumb:hover {
    transform: translateY(-8px) scale(1.08) rotate(-6deg) !important;
}

#main-photo-container {
    aspect-ratio: 1 / 1;
}

#main-photo-container img {
    display: block;
}

#main-product-image {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

.product-main-frame:hover #main-product-image {
    transform: scale(1.05);
}

.product-thumb-wall {
    --thumb-gap: 0.72rem;
    --thumb-size-4: calc((100% - (3 * var(--thumb-gap))) / 4);
    display: grid;
    gap: var(--thumb-gap);
    align-items: stretch;
    width: 100%;
    padding: 0.2rem;
}

.product-thumb-wall.thumb-layout-1 {
    grid-template-columns: var(--thumb-size-4);
    justify-content: center;
}

.product-thumb-wall.thumb-layout-2 {
    grid-template-columns: repeat(2, var(--thumb-size-4));
    justify-content: center;
}

.product-thumb-wall.thumb-layout-3 {
    grid-template-columns: repeat(3, var(--thumb-size-4));
    justify-content: center;
}

.product-thumb-wall.thumb-layout-4 {
    grid-template-columns: repeat(4, var(--thumb-size-4));
    justify-content: center;
}

.product-thumb-wall.thumb-layout-6,
.product-thumb-wall.thumb-layout-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-thumb-wall.thumb-layout-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-photo-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 1.2rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 228, 237, 0.7));
    box-shadow:
        12px 12px 24px rgba(15, 23, 42, 0.14),
        -8px -8px 16px rgba(255, 255, 255, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transform-origin: center;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        filter 0.35s ease;
}

.product-thumb-wall .product-photo-chip:nth-child(odd) {
    transform: rotate(-1.2deg);
}

.product-thumb-wall .product-photo-chip:nth-child(even) {
    transform: rotate(1.2deg);
}

.product-thumb-wall .product-photo-chip:hover {
    transform: translateY(-7px) rotate(0deg) scale(1.04);
}

.product-photo-chip::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 2;
}

.product-photo-chip::after {
    content: '';
    position: absolute;
    inset: -35%;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    transform: translateX(-75%) rotate(8deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.product-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    filter: saturate(1.03);
    transition: transform 0.55s ease, filter 0.55s ease;
}

.product-photo-chip-index {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 3;
    min-width: 1.65rem;
    height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(68, 64, 60, 0.85);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 6px 12px -8px rgba(15, 23, 42, 0.55);
}

.product-photo-chip:hover {
    box-shadow:
        16px 16px 28px rgba(15, 23, 42, 0.18),
        -10px -10px 18px rgba(255, 255, 255, 0.95),
        0 22px 32px -18px rgba(244, 63, 94, 0.62);
}

.product-photo-chip:hover .product-photo-image {
    transform: scale(1.13);
}

.product-photo-chip:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.95),
        0 0 0 5px rgba(251, 113, 133, 0.45),
        16px 16px 28px rgba(15, 23, 42, 0.18);
}

.product-photo-chip.active-thumb {
    transform: translateY(-6px) scale(1.06) rotate(0deg) !important;
    border-color: rgba(251, 113, 133, 0.7);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.82),
        0 0 0 4px rgba(251, 113, 133, 0.36),
        18px 20px 34px rgba(15, 23, 42, 0.18),
        -10px -10px 18px rgba(255, 255, 255, 0.98),
        0 28px 36px -18px rgba(244, 63, 94, 0.75);
    animation: activeThumbPulse 2.4s ease-in-out infinite;
}

.product-photo-chip.active-thumb::after {
    opacity: 1;
    animation: activeThumbSweep 2.8s ease-in-out infinite;
}

.product-photo-chip.active-thumb .product-photo-image {
    transform: scale(1.1);
    filter: saturate(1.16) contrast(1.05);
}

.product-photo-chip.active-thumb .product-photo-chip-index {
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    border-color: rgba(255, 255, 255, 0.78);
}

.product-detail-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(255, 237, 242, 0.34));
    box-shadow:
        20px 20px 40px rgba(15, 23, 42, 0.1),
        -12px -12px 24px rgba(255, 255, 255, 0.88),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-detail-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% 8%, rgba(251, 113, 133, 0.16), transparent 48%);
    pointer-events: none;
}

.product-description-text {
    line-height: 1.88;
}

.product-attributes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-attribute-item {
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 243, 246, 0.6));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        10px 12px 22px rgba(15, 23, 42, 0.08);
}

.product-attribute-item:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        14px 16px 26px rgba(15, 23, 42, 0.12),
        0 16px 24px -16px rgba(244, 63, 94, 0.55);
}

.product-attribute-icon {
    box-shadow:
        inset 3px 3px 6px rgba(255, 255, 255, 0.8),
        inset -3px -3px 6px rgba(217, 211, 206, 0.5);
}

@keyframes activeThumbSweep {
    0% {
        transform: translateX(-75%) rotate(8deg);
    }

    55%,
    100% {
        transform: translateX(95%) rotate(8deg);
    }
}

@keyframes activeThumbPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(255, 255, 255, 0.82),
            0 0 0 4px rgba(251, 113, 133, 0.36),
            18px 20px 34px rgba(15, 23, 42, 0.18),
            -10px -10px 18px rgba(255, 255, 255, 0.98),
            0 28px 36px -18px rgba(244, 63, 94, 0.75);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(255, 255, 255, 0.85),
            0 0 0 6px rgba(251, 113, 133, 0.28),
            20px 22px 36px rgba(15, 23, 42, 0.2),
            -12px -12px 20px rgba(255, 255, 255, 0.98),
            0 30px 42px -16px rgba(244, 63, 94, 0.8);
    }
}

@media (max-width: 1024px) {
    .product-attributes-grid {
        grid-template-columns: 1fr;
    }

    .product-thumb-wall.thumb-layout-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .product-main-frame {
        border-radius: 1.45rem;
    }

    .product-main-corner-thumb {
        top: 0.65rem;
        left: 0.65rem;
        width: 70px;
        min-width: 70px;
    }

    .product-thumb-wall {
        --thumb-gap: 0.5rem;
        gap: var(--thumb-gap);
    }

    .product-thumb-wall.thumb-layout-1 {
        grid-template-columns: var(--thumb-size-4);
    }

    .product-thumb-wall.thumb-layout-2 {
        grid-template-columns: repeat(2, var(--thumb-size-4));
        justify-content: center;
    }

    .product-thumb-wall.thumb-layout-3 {
        grid-template-columns: repeat(3, var(--thumb-size-4));
        justify-content: center;
    }

    .product-thumb-wall.thumb-layout-4 {
        grid-template-columns: repeat(4, var(--thumb-size-4));
        justify-content: center;
    }

    .product-thumb-wall.thumb-layout-6,
    .product-thumb-wall.thumb-layout-9,
    .product-thumb-wall.thumb-layout-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-photo-chip {
        border-radius: 0.9rem;
    }

    .product-photo-chip::before {
        border-radius: 0.7rem;
    }

    .product-detail-card {
        border-radius: 1.5rem;
    }
}

.glass-badge-unified {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #f43f5e;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(251, 113, 133, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    animation: badgeFloat 3s ease-in-out infinite;
}

.modal-backdrop {
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.glass-badge-unified::before {
    content: '';
    display: block;
    width: 0.375rem;
    height: 0.375rem;
    background-color: #fb7185;
    border-radius: 9999px;
    box-shadow: 0 0 4px rgba(251, 113, 133, 0.5);
}

@media (max-width: 768px) {
    .glass-badge-unified {
        font-size: 10px;
        padding: 0.4rem 0.8rem;
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.glass-filter-display {
    background: #fdf2f8;
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: var(--btn-radius);
    padding: 0;
    overflow: hidden;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    color: var(--color-text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease;
}

.search-container {
    padding: 0 1rem;
    min-width: 240px;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input-field {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    height: 100%;
}

.search-input-field::placeholder {
    color: #a8a29e;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .glass-control-group {
        width: 100%;
        justify-content: space-between;
    }

    .search-container {
        flex-grow: 1;
    }

    .glass-filter-display {
        height: 2.5rem;
    }

    .search-container {
        height: 2.5rem;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    #search-btn {
        display: none;
    }
}

#filter-text-anim {
    display: inline-block;
    white-space: nowrap;
    padding: 0 1.5rem;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#palette-toggle-btn {
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#palette-wrapper {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-map-src] {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mini-cart-header {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#pjax-container {
    position: relative;
}

/* ───── SPA fade transition classes ───── */
/*
 * Chrome bug workaround: class-driven transitions are processed more
 * reliably by Chrome's compositor than rapid inline style mutations.
 *
 * Flow:
 *   1. Add .spa-fade-ready  → applies will-change + transition rule
 *   2. (force style recalc)
 *   3. Add .spa-fade-out    → triggers opacity: 0 transition
 *   4. (swap content)
 *   5. Add .spa-no-transition → prevents flash on content swap
 *   6. Remove .spa-fade-out + .spa-no-transition → triggers opacity: 1 transition
 *   7. Remove .spa-fade-ready → clean up
 */

#pjax-container.spa-fade-ready {
    will-change: opacity;
    transition: opacity 400ms ease;
}

#pjax-container.spa-fade-out {
    opacity: 0;
}

#pjax-container.spa-no-transition {
    transition: none !important;
}

/* pjax-entering: only disable child animations, no compositor hints */

body.pjax-entering #pjax-container .animate-on-scroll,
body.pjax-entering #pjax-container .card,
body.pjax-entering #pjax-container .hero-slide {
    transition: none !important;
    animation: none !important;
}

.spa-transition-out {
    opacity: 1;
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    #pjax-container {
        min-height: calc(100vh - 80px);
    }

    #pjax-container.spa-fade-ready {
        transition: opacity 200ms ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    #pjax-container,
    #pjax-container.spa-fade-ready {
        transition: none !important;
    }

    .spa-transition-out {
        transition: none !important;
    }
}

/* --- НОВЫЙ ДИЗАЙН РАЗДЕЛИТЕЛЯ И МИНИ-КОРЗИНЫ --- */
.product-details-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
    position: relative;
    opacity: 0.9;
}

.separator-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
            rgba(251, 113, 133, 0.01) 0%,
            rgba(251, 113, 133, 0.2) 50%,
            rgba(251, 113, 133, 0.4) 100%);
}

.separator-line.left {
    background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.3));
}

.separator-line.right {
    background: linear-gradient(90deg, rgba(251, 113, 133, 0.3), transparent);
}

.separator-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 1px solid rgba(251, 113, 133, 0.2);
    box-shadow:
        0 4px 10px rgba(251, 113, 133, 0.15),
        inset 0 0 10px rgba(255, 255, 255, 0.8);
    color: #fb7185;
    animation: pulse-rose 3s infinite ease-in-out;
}

@keyframes pulse-rose {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(251, 113, 133, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(251, 113, 133, 0);
    }
}

.mini-cart-list {
    perspective: 1000px;
    padding-top: 0.5rem;
    min-height: 40px;
}

#mini-cart-display-wrapper {
    min-height: 60px;
    transition: min-height 0.3s ease;
}

.mini-cart-item {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: visible;
    background: white;
    border: 2px solid white;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(251, 113, 133, 0.1);
    transition:
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    animation: rosebud-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes rosebud-appear {
    from {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mini-cart-item:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow:
        0 8px 16px rgba(251, 113, 133, 0.25),
        inset 0 0 0 2px rgba(251, 113, 133, 0.3);
    z-index: 20;
    border-color: #fff1f2;
    border-radius: 8px;
}

.mini-cart-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #fb7185;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.mini-cart-size {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #22c55e;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.mini-cart-remove {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(251, 113, 133, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.mini-cart-item:hover .mini-cart-remove {
    opacity: 1;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #clear-cart-btn {
        padding: 0.75rem !important;
        min-width: 44px;
        justify-content: center;
        border-radius: 50% !important;
        width: 44px;
        height: 44px;
    }

    #clear-cart-btn span {
        display: none;
    }

    #clear-cart-btn i {
        width: 20px !important;
        height: 20px !important;
    }
}

/* === SORTABLE DRAG & DROP STYLES === */
.drag-handle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.attr-item {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sortable-ghost {
    opacity: 0.4;
    background: rgba(251, 113, 133, 0.1);
    border: 2px dashed rgba(251, 113, 133, 0.3);
    border-radius: 0.75rem;
}

.attr-item:hover {
    background: rgba(251, 113, 133, 0.02);
    border-radius: 0.75rem;
}

/* ===================================================================
   ПАЛИТРА ЦВЕТОВ ДЛЯ КАТАЛОГА (ОРИГИНАЛЬНЫЙ CLAYMORPHISM)
   =================================================================== */

.color-picker-clay {
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

.clay-slab {
    max-width: 360px;
    /* (50px * 5) + (12px * 4) + padding + safe margin */
    width: 100%;
    padding: 1rem;
    border-radius: 40px;
    background: #fdf2f8;
    border: 1px solid rgba(251, 113, 133, 0.2);
    box-shadow:
        0 20px 40px -5px rgba(251, 113, 133, 0.3),
        0 10px 15px -5px rgba(0, 0, 0, 0.05),
        inset 0 6px 12px rgba(0, 0, 0, 0.08),
        inset 0 2px 4px rgba(0, 0, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8);
}

.container-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.item-color {
    /* Фикс для кнопки */
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: var(--color);
    /* Улучшение для мобильных */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    /* КРУГЛАЯ ФОРМА */
    border-radius: 50%;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 400ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 400ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    /* СТЕКЛЯННЫЙ ЭФФЕКТ С ОБЪЕМОМ */
    box-shadow:
        /* Внешние тени для эффекта парения */
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        /* Свет сверху для стеклянности */
        inset 0 -4px 8px rgba(255, 255, 255, 0.4),
        /* Внутреннее свечение цвета */
        inset 0 4px 12px rgba(255, 255, 255, 0.3),
        /* Глубина */
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Без рамки для чистого вида */
    border: none;
}

/* Эффект блика на поверхности */
.item-color::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 30%;
    height: 20%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

/* ЭФФЕКТ ПАРЕНИЯ при наведении */
.item-color:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow:
        /* Усиленные тени для эффекта поднятости */
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.15),
        /* Свет сверху усилен */
        inset 0 -6px 12px rgba(255, 255, 255, 0.5),
        inset 0 6px 16px rgba(255, 255, 255, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* АКТИВНОЕ СОСТОЯНИЕ - только легкое свечение без рамок */
.item-color.active {
    transform: translateY(-4px) scale(1.05);
    /* Только мягкое свечение */
    box-shadow:
        0 0 24px rgba(244, 63, 94, 0.35),
        0 0 48px rgba(244, 63, 94, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Убираем все псевдоэлементы в активном состоянии */
.item-color.active::before,
.item-color.active::after {
    display: none;
}

/* Специальный стиль для белого цвета */
.item-color[style*="#ffffff"],
.item-color[data-color="Белый"] {
    border: none;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05),
        inset 0 -4px 8px rgba(255, 255, 255, 1),
        inset 0 4px 12px rgba(245, 245, 245, 0.8);
}

.item-color[style*="#ffffff"].active,
.item-color[data-color="Белый"].active {
    box-shadow:
        0 0 24px rgba(244, 63, 94, 0.4),
        0 0 48px rgba(244, 63, 94, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Поиск с иконкой (обновление) */
.search-container {
    position: relative;
    width: 100%;
}

.search-input-field {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-weight: 600;
    color: #44403c;
    font-size: 15px;
    padding: 0 16px 0 0;
    text-align: center;
}

.search-input-field::placeholder {
    color: rgba(68, 64, 60, 0.5);
    font-weight: 500;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .clay-slab {
        max-width: 100%;
        padding: 0.75rem;
        border-radius: 24px;
    }

    .item-color {
        width: 44px;
        height: 44px;
    }

    .container-items {
        gap: 10px;
    }
    
    /* Активное состояние на мобильных - компактнее */
    .item-color.active {
        transform: translateY(-2px) scale(1.03);
    }
    
    .item-color.active::before {
        width: 20px;
        height: 20px;
    }
    
    .item-color.active::after {
        width: 10px;
        height: 7px;
        border-width: 2px;
    }
}

/* ===================================================================
   RESET FILTER BUTTON - Кнопка сброса фильтров
   =================================================================== */
.filter-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
    /* Центрирование по вертикали */
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    /* Неактивное состояние - серая/бесцветная */
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(148, 163, 184, 0.15) 100%);
    color: rgba(148, 163, 184, 0.6);
    transition:
        transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        background-color 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        color 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Стеклянный эффект */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.03),
        inset 0 -2px 4px rgba(255, 255, 255, 0.6),
        inset 0 2px 6px rgba(255, 255, 255, 0.4);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* АКТИВНОЕ СОСТОЯНИЕ - когда есть выбранные фильтры */
.filter-reset-btn.active {
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(251, 113, 133, 0.15) 100%);
    color: rgba(244, 63, 94, 0.8);
    box-shadow:
        0 4px 12px rgba(244, 63, 94, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 -2px 4px rgba(255, 255, 255, 0.6),
        inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.filter-reset-btn.active:hover {
    transform: translateY(-3px) scale(1.05) rotate(-10deg);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(251, 113, 133, 0.25) 100%);
    color: rgba(244, 63, 94, 0.95);
    box-shadow:
        0 8px 20px rgba(244, 63, 94, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 -2px 4px rgba(255, 255, 255, 0.7),
        inset 0 2px 6px rgba(255, 255, 255, 0.5);
}

.filter-reset-btn.active:active {
    transform: translateY(-1px) scale(0.98) rotate(-5deg);
    box-shadow:
        0 2px 8px rgba(244, 63, 94, 0.2),
        inset 0 2px 4px rgba(244, 63, 94, 0.1);
}

/* ===================================================================
   SELECTED COLORS CONTAINER - Контейнер для выбранных цветов
   =================================================================== */
#selected-colors-container {
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    flex: 0 1 auto;
    gap: 8px;
    overflow: hidden;
    transition: max-width 400ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease, padding 300ms ease;
    max-width: 0;
    opacity: 0;
    padding: 0;
    min-width: 0;
}

#selected-colors-container.has-colors {
    max-width: 100%;
    opacity: 1;
    padding: 0 4px;
}

.catalog-filter-row {
    flex-wrap: nowrap;
    align-items: center;
    align-content: flex-start;
}

.catalog-filter-row #palette-toggle-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-height: 48px;
    align-self: center;
}

.catalog-search-reset-group {
    flex: 1 0 260px;
    min-width: 220px;
    align-self: center;
    height: 48px;
}

.catalog-search-shell {
    height: 48px;
    min-height: 48px;
}

/* Выбранный цвет в блоке фильтра */
.selected-color-item {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    position: relative;
    z-index: 9999;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 -2px 4px rgba(255, 255, 255, 0.5);
    animation: popIn 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.selected-color-item:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 -2px 4px rgba(255, 255, 255, 0.5);
}

/* Эффект блика на выбранном цвете */
.selected-color-item::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 30%;
    height: 20%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

/* АНИМАЦИЯ ЛОПАНИЯ ПУЗЫРЬКА */
@keyframes bubblePop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(1.4);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.6);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ (поп-эффект с упругостью) */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    75% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Класс для анимации лопания */
.color-popping {
    animation: bubblePop 400ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    z-index: 9999;
    position: relative;
}

/* Контейнеры палитры - разрешаем выход анимации за границы */
#palette-wrapper,
#palette-colors-grid {
    overflow: visible !important;
}

/* Элементы цвета во время анимации */
.item-color {
    position: relative;
}

/* Анимация для сдвига элементов в палитре */
.item-color {
    transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Контейнер для цветов в палитре - flexbox для десктопа */
@media (min-width: 769px) {
    #palette-colors-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        transition: opacity 300ms ease, transform 300ms ease;
    }
}

/* Скрытый цвет в палитре - полностью убран из flex-потока */
.item-color.hidden-in-palette {
    display: none !important;
}

.item-color.unavailable-in-palette {
    display: none !important;
}

/* Плавное появление цвета при возврате в палитру */
.item-color.pop-in-animation {
    animation: popIn 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Обычное состояние видимого цвета */
.item-color:not(.hidden-in-palette):not(.unavailable-in-palette) {
    opacity: 1;
    transform: scale(1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .catalog-filter-row {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 8px;
    }

    .catalog-filter-row #palette-toggle-btn {
        order: 1;
        width: 48px;
        height: 48px;
        min-height: 48px;
        align-self: center;
    }

    .filter-reset-btn {
        width: 44px;
        height: 44px;
    }
    
    .selected-color-item {
        width: 36px;
        height: 36px;
    }

    #selected-colors-container {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        max-height: 0;
        opacity: 0;
        padding: 0;
        margin: 0;
        transition: max-height 300ms ease, opacity 220ms ease, padding 220ms ease, margin 220ms ease;
    }

    #selected-colors-container.has-colors {
        max-width: 100%;
        max-height: 140px;
        opacity: 1;
        padding: 4px 0 0;
        margin-top: 2px;
    }
    
    .catalog-search-reset-group {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 48px;
        align-self: center;
    }
    
    /* Цвета в палитре - 2 ряда по 5 цветов */
    #palette-colors-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        justify-items: center;
        overflow: visible;
    }
    
    /* Уменьшаем размер цветов в палитре для мобильных */
    #palette-colors-grid .item-color {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 768px) {
    .catalog-main-deck {
        align-items: center !important;
    }

    .catalog-category-module {
        height: 56px;
        min-height: 56px;
        align-self: center;
        box-sizing: border-box;
        margin-top: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .catalog-filter-row #palette-toggle-btn {
        width: 64px;
    }

    .catalog-search-reset-group {
        margin-right: 2px;
    }
}

/* ===================================================================
   FEATURE CARDS - "Почему выбирают нас" (Стиль футера)
   =================================================================== */

.feature-card-3d {
    width: 100%;
    height: 300px;
    position: relative;
}

.feature-card-inner {
    height: 100%;
    border-radius: 40px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;

    /* Neomorphism 2.0 - мягкие тени */
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.15),
        -12px -12px 24px rgba(255, 255, 255, 0.7),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3),
        inset -2px -2px 4px rgba(0, 0, 0, 0.05);
}

.feature-card-inner:hover {
    box-shadow:
        16px 16px 32px rgba(0, 0, 0, 0.18),
        -16px -16px 32px rgba(255, 255, 255, 0.8),
        inset 3px 3px 6px rgba(255, 255, 255, 0.4),
        inset -3px -3px 6px rgba(0, 0, 0, 0.08);
}

/* Цветовые варианты для каждой карточки */
.feature-card-inner.pink-theme {
    background: linear-gradient(145deg, #ffc9d9, #ffb3cc);
}

.feature-card-inner.rose-theme {
    background: linear-gradient(145deg, #fed7aa, #fdba74);
}

.feature-card-inner.purple-theme {
    background: linear-gradient(145deg, #e9d5ff, #d8b4fe);
}

.feature-card-inner.green-theme {
    background: linear-gradient(145deg, #bbf7d0, #86efac);
}

.feature-glass {
    position: absolute;
    inset: 12px;
    border-radius: 32px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Neomorphism внутренний слой */
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.08),
        inset -4px -4px 8px rgba(255, 255, 255, 0.5);
}

/* Иконка в стиле футера */
.feature-icon-simple {
    position: relative;
    z-index: 20;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Цвета иконок для каждой темы */
.pink-theme .feature-icon-simple {
    background: linear-gradient(to bottom right, #ffffff, #ffe4e6);
    border: 1px solid #fecdd3;
    color: #be185d;
}

.rose-theme .feature-icon-simple {
    background: linear-gradient(to bottom right, #ffffff, #ffedd5);
    border: 1px solid #fdba74;
    color: #c2410c;
}

.purple-theme .feature-icon-simple {
    background: linear-gradient(to bottom right, #ffffff, #f3e8ff);
    border: 1px solid #e9d5ff;
    color: #6b21a8;
}

.green-theme .feature-icon-simple {
    background: linear-gradient(to bottom right, #ffffff, #dcfce7);
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.feature-card-inner:hover .feature-icon-simple {
    transform: scale(1.1);
}

/* Заголовок в стиле футера */
.feature-title-simple {
    position: relative;
    z-index: 20;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

/* Цвета заголовков для каждой темы */
.pink-theme .feature-title-simple {
    color: #881337;
}

.rose-theme .feature-title-simple {
    color: #7c2d12;
}

.purple-theme .feature-title-simple {
    color: #581c87;
}

.green-theme .feature-title-simple {
    color: #14532d;
}

.pink-theme:hover .feature-title-simple {
    color: #be185d;
}

.rose-theme:hover .feature-title-simple {
    color: #ea580c;
}

.purple-theme:hover .feature-title-simple {
    color: #6b21a8;
}

.green-theme:hover .feature-title-simple {
    color: #15803d;
}

/* Анимированный разделитель (как в футере) */
.feature-divider {
    position: relative;
    z-index: 20;
    height: 4px;
    width: 48px;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    transition: width 0.7s ease;
}

.pink-divider {
    background-color: #fda4af;
}

.rose-divider {
    background-color: #fb923c;
}

.purple-divider {
    background-color: #c084fc;
}

.green-divider {
    background-color: #86efac;
}

.feature-card-inner:hover .feature-divider {
    width: 100%;
}

.feature-content {
    position: relative;
    z-index: 20;
}

.feature-content .feature-text {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

.pink-theme .feature-text {
    color: rgba(136, 19, 55, 0.85);
}

.rose-theme .feature-text {
    color: rgba(124, 45, 18, 0.85);
}

.purple-theme .feature-text {
    color: rgba(88, 28, 135, 0.85);
}

.green-theme .feature-text {
    color: rgba(20, 83, 45, 0.85);
}

/* Адаптивность */
@media (max-width: 768px) {
    .feature-card-3d {
        height: 280px;
    }

    .feature-icon-simple {
        width: 56px;
        height: 56px;
    }

    .feature-title-simple {
        font-size: 1.125rem;
    }

    .feature-content .feature-text {
        font-size: 13px;
    }
}

/* ===================================================================
   БЛОКИ ДОСТИЖЕНИЙ - GLASSMORPHISM DESIGN
   =================================================================== */

/* Стили для стеклянных карточек достижений */
.achievement-glass-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.achievement-glass-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.15);
}

/* Фоновые паттерны для карточек */
.achievement-bg-pattern {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: transform 0.7s ease-out;
}

.achievement-glass-card:hover .achievement-bg-pattern {
    transform: scale(1.1);
}

/* Три разных паттерна */
.achievement-bg-pattern-1 {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuA-8B4qc3S940cKS0ywll-t-Fj7jE8MOktjwtzONvwkDgCGf7uzNTZzkQAr3AtFmrLb6F0klmYIZBhxRx2erJ6DGXirTEBjpedu7yrstH_b8unnwm6Vzl3HnlVqLiKA2B0TTjwh4RnESpMT8rz9XBCIH_rxseRYu1sHGsofyyBZ9c5kZ9ALHodlsOKWQTVQF3t-dDnVkLPo8_AE6dbleeTsF329z49WVIUbzOEjrp_Dxn7WfrCXjpr8fsPVjM-TPBPYHRh4ZkIIFDpZ);
}

.achievement-bg-pattern-2 {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuDHP01btl812qbTVC3AXSduyphNh3_aiJzhGkVofCh3cOMtrgHtUixCRu3gPywmBirq-M8zRygcEQS5MolsyztM9GNgrYWx8a3TRp-TZ5dyb6APskwRhXKjWaCq8ulgGKu853IGWcxTbSc65XaCcfcg-9wwN5i00f8_gWEXZPgshw2hSRvGB1z2tp8oYLSGx0AUtH0keUt8SM31dL4aXMgoaefP1dtrCBWjmEs2LzL6bw2bOsyQYxXeKEZ3WvMk8hIOh6_QRDTjO9Nr);
}

.achievement-bg-pattern-3 {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuC96Q9AZ8Op4PGiWfBgjW75g3wBjTY1KRv4WvknjQAMjgD3tcY00PkjUPh-H_k3mrYYDfEI-mmKhBgcSjgHYd2SIebYg3IyN2pL0iXdyqhAS5DkvNBSEL6_uRvNOluIxYf4i8Ux5vPnB6MfyLuTirZXAfxOcrbPWWz8ghPdHrEab3SHTCb5IdMDgJwuCocZKlsqIfko6bRfbOn8GPzEGZ_G1UKFZ1NXu-4Vbutjy8dVcbgxrmqYfGqDCr5AsLIdmuKuWJ6qQW2j6OP3);
}

/* Градиентный оверлей поверх паттерна */
.achievement-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 245, 246, 0.1), rgba(255, 245, 246, 0.9));
}

/* Контент карточки */
.achievement-content {
    position: relative;
    z-index: 10;
}

/* Цифры достижений (размер как в оригинале - text-3xl) */
.achievement-number {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: #fb7185;
    margin-bottom: 0.25rem;
    letter-spacing: normal;
    line-height: 1;
    font-family: var(--font-serif);
}

/* Описание достижения (размер как в оригинале - text-[10px]) */
.achievement-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a8a29e;
    line-height: 1.25;
    max-width: 180px;
    margin: 0 auto;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .achievement-glass-card {
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .achievement-number {
        font-size: 1.875rem;
    }

    .achievement-label {
        font-size: 10px;
    }
}

/* ========================================
   КРЕАТИВНЫЕ БЛОКИ - СОВРЕМЕННЫЙ СТИЛЬ
   ======================================== */

.feature-organic-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .feature-organic-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Карточка */
.feature-organic-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #fff8f9 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(251, 113, 133, 0.15);
    box-shadow: 0 4px 24px -4px rgba(251, 113, 133, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-organic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(251, 113, 133, 0.2);
}

/* Контент */
.feature-organic-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-organic-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

/* Иконка */
.feature-organic-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffb7c5 0%, #fb7185 100%);
    border-radius: 1rem;
    color: white;
    box-shadow: 0 8px 16px -4px rgba(251, 113, 133, 0.4);
}

/* Текст */
.feature-organic-text {
    flex: 1;
}

.feature-organic-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #44403c;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    transition: color 0.3s ease;
}

.feature-organic-card:hover .feature-organic-title {
    color: #fb7185;
}

.feature-organic-description {
    font-size: 0.9375rem;
    color: #78716c;
    line-height: 1.6;
}

.feature-organic-description strong {
    color: #fb7185;
    font-weight: 600;
}

/* Декоративная линия */
.feature-organic-line {
    height: 3px;
    background: linear-gradient(90deg, #fb7185 0%, #ffb7c5 50%, transparent 100%);
    border-radius: 9999px;
    margin-top: 0.5rem;
}

.feature-organic-card:nth-child(2) .feature-organic-line {
    background: linear-gradient(90deg, transparent 0%, #ffb7c5 50%, #fb7185 100%);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .feature-organic-card {
        padding: 1.5rem;
    }

    .feature-organic-icon {
        width: 48px;
        height: 48px;
        border-radius: 0.75rem;
    }

    .feature-organic-title {
        font-size: 1.125rem;
    }

    .feature-organic-description {
        font-size: 0.875rem;
    }
}

/* Brand Logo Text Style */
.brand-text-stroke {
    color: white !important;
    -webkit-text-stroke: 0.4px #15803d !important;
    /* text-stroke: 0.4px #15803d !important; */
    font-weight: 800 !important;
    letter-spacing: 0.25em !important;
    text-shadow: none !important;
    line-height: 1 !important;
}

.mobile-header-shell {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
}

.mobile-header-inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-header-logo {
    flex-shrink: 0;
    line-height: 1;
    transform: scale(0.66);
    transform-origin: left center;
    margin-left: -1.8rem;
}

.mobile-header-logo-image {
    height: 3.5rem;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header-logo-image img {
    height: 100%;
    width: auto;
}

.mobile-header-logo-text {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0.125rem;
}

.mobile-header-logo-fallback {
    width: 100%;
    height: 2.6rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #ffb7c5 0%, #fb7185 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 380px) {
    .mobile-header-logo {
        transform: scale(0.6);
    }
}

@media (max-width: 767px) and (orientation: portrait) {
    .hero-title {
        font-size: 2.6rem !important;
        line-height: 1.12 !important;
    }

    .hero-subtitle {
        font-size: 1.35rem !important;
        line-height: 1.45 !important;
    }
}

/* Vacancy cards: radical volumetric style with site colors + typography */
.careers-editorial {
    --vac-accent: var(--color-primary-end);
    --vac-accent-soft: var(--color-primary-start);
    --vac-text: var(--color-text-main);
    --vac-muted: var(--color-text-muted);
    --vac-danger: #ef4444;
    --vac-white-solid: #fff;
    --vac-white-35: rgba(255, 255, 255, 0.35);
    --vac-white-40: rgba(255, 255, 255, 0.4);
    --vac-white-45: rgba(255, 255, 255, 0.45);
    --vac-white-56: rgba(255, 255, 255, 0.56);
    --vac-white-58: rgba(255, 255, 255, 0.58);
    --vac-white-60: rgba(255, 255, 255, 0.6);
    --vac-white-65: rgba(255, 255, 255, 0.65);
    --vac-white-80: rgba(255, 255, 255, 0.8);
    --vac-white-88: rgba(255, 255, 255, 0.88);
    --vac-white-90: rgba(255, 255, 255, 0.9);
    --vac-white-98: rgba(255, 255, 255, 0.98);
    --vac-bg-tint-1: rgba(251, 113, 133, 0.12);
    --vac-bg-tint-2: rgba(255, 183, 197, 0.14);
    --vac-shadow-1: rgba(209, 217, 230, 0.9);
    --vac-shadow-2: rgba(163, 177, 198, 0.45);
    --vac-shadow-3: rgba(168, 162, 158, 0.18);
    --vac-shadow-4: rgba(203, 209, 217, 0.9);
    --vac-panel-bg: #f6f8fb;
    --vac-panel-grad-end: rgba(248, 250, 252, 0.88);
    --vac-border-accent: rgba(251, 113, 133, 0.22);
}

.careers-editorial .glass-panel-3d {
    background:
        radial-gradient(circle at 5% 5%, var(--vac-bg-tint-1) 0%, transparent 30%),
        radial-gradient(circle at 95% 95%, var(--vac-bg-tint-2) 0%, transparent 30%),
        var(--vac-white-90);
}

.careers-editorial-list {
    display: grid;
    gap: 1.5rem;
}

.job-row {
    position: relative;
    background: var(--vac-white-45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--vac-white-60);
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        8px 8px 16px var(--vac-shadow-1),
        -8px -8px 16px var(--vac-white-90);
}

.job-row:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow:
        12px 12px 24px var(--vac-shadow-2),
        -12px -12px 24px var(--vac-white-80);
    background: var(--vac-white-58);
}

.job-row.is-open {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--vac-white-65);
}

.job-header {
    display: grid;
    grid-template-columns: minmax(260px, 2.2fr) minmax(340px, 1.5fr) auto;
    align-items: center;
    padding: 2rem 3rem;
    gap: 1.4rem;
}

.job-title {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--vac-text);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.job-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.job-fact {
    position: relative;
    display: grid;
    gap: 0.28rem;
    padding: 0.78rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.74);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.72) 0%, transparent 42%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.5), rgba(244, 247, 251, 0.82));
    box-shadow:
        inset 8px 8px 16px rgba(186, 196, 210, 0.34),
        inset -7px -7px 14px rgba(255, 255, 255, 0.98),
        0 1px 0 rgba(255, 255, 255, 0.7);
}

.job-fact::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 60%);
}

.job-fact-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(120, 117, 107, 0.96);
}

.job-fact-value {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--vac-text);
}

.job-fact--salary .job-fact-value {
    color: var(--vac-accent);
}

.job-header-side {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
}

.job-header-admin {
    display: flex;
    gap: 0.4rem;
}

.job-admin-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vac-white-88);
    background: linear-gradient(145deg, var(--vac-white-98), var(--vac-panel-grad-end));
    box-shadow: 6px 6px 12px var(--vac-shadow-3), -4px -4px 10px var(--vac-white-90);
    transition: transform 0.2s ease;
}

.job-admin-btn:hover {
    transform: translateY(-2px);
}

.job-admin-btn--edit {
    color: var(--vac-accent);
}

.job-admin-btn--copy {
    color: #2563eb;
}

.job-admin-btn--delete {
    color: var(--vac-danger);
}

.chevron {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--vac-white-35);
    box-shadow: 4px 4px 8px var(--vac-shadow-4), -4px -4px 8px var(--vac-white-90);
}

.job-chevron.rotate-180 {
    transform: rotate(180deg);
}

.chevron.bg-stone-100 {
    background: var(--vac-white-40);
}

.chevron.bg-rose-100 {
    background: linear-gradient(135deg, var(--vac-accent-soft), var(--vac-accent));
}

.job-chevron.bg-rose-100 {
    color: #fff;
}

.job-content {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 3rem;
}

.job-row.is-open .job-content {
    opacity: 1;
}

.job-content-inner {
    border-top: 1px solid var(--vac-border-accent);
    padding-top: 1.5rem;
    padding-bottom: 2.2rem;
}

.job-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.volumetric-panel {
    background: var(--vac-panel-bg);
    border-radius: 2rem;
    padding: 1.7rem;
    border: 1px solid var(--vac-white-56);
    box-shadow:
        12px 12px 24px var(--vac-shadow-4),
        -12px -12px 24px var(--vac-white-88);
    transition: transform 0.3s ease;
}

.volumetric-panel:hover {
    transform: scale(1.03);
}

.section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.15rem;
    padding: 0.32rem 0.72rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vac-white-solid);
    background: linear-gradient(135deg, var(--vac-accent-soft), var(--vac-accent));
}

.job-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.job-list li {
    position: relative;
    margin: 0;
    padding: 0.02rem 0 0.02rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.42;
    color: var(--vac-text);
}

.job-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.36rem;
    height: 0.36rem;
    border-radius: 999px;
    background: var(--vac-accent);
}

@media (max-width: 1180px) {
    .job-header {
        grid-template-columns: minmax(220px, 2fr) minmax(280px, 1.35fr) auto;
    }
}

@media (max-width: 1024px) {
    .job-header {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 1.35rem;
    }

    .job-facts {
        grid-column: span 2;
    }

    .job-header-side {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .job-content {
        padding: 0 1.35rem;
    }

    .job-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .job-title {
        font-size: 1.02rem;
    }

    .job-facts {
        grid-template-columns: 1fr;
    }

    .job-fact {
        padding: 0.74rem 0.9rem;
    }

    .job-fact-label {
        font-size: 0.58rem;
    }

    .job-fact-value {
        font-size: 0.92rem;
    }

}

