/* =========================================
   1. Базовые настройки и переменные
   ========================================= */
* {
    box-sizing: border-box;
    font-family: "Shantell Sans", cursive;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "BNCE" 0, "INFM" 0, "SPAC" 0;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --graphite-base: #1e1d19;
    --grain-opacity: .14;
    --rough-opacity: .10;
    --grain-size: 1000px;
    --accent-color: #d4a017;
    --text-light: #e8eaeb;
    --text-dark: #2b1a0a;

    --noise-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --noise-rough: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
    :root {
        --grain-size: 2000px;
        --noise-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        --noise-rough: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--graphite-base);
    color: var(--text-light);
    -webkit-overflow-scrolling: touch;
    padding-top: 60px;
}

body::before, body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

body::before {
    background-image: var(--noise-fine);
    background-size: var(--grain-size) var(--grain-size);
    opacity: var(--grain-opacity);
    mix-blend-mode: overlay;
}

body::after {
    background-image: var(--noise-rough);
    background-size: 500px 500px;
    opacity: var(--rough-opacity);
    mix-blend-mode: soft-light;
}

/* =========================================
   2. Layout и Сетка
   ========================================= */
.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* =========================================
   3. Левая колонка — ПРОПОРЦИОНАЛЬНОЕ МАСШТАБИРОВАНИЕ
   ========================================= */
.left-column {
    display: flex;
    flex-direction: column;
    /* На iPhone SE (375px) 86% = 322.5px.
       Ограничиваем макс. ширину 450px, чтобы на больших экранах элементы не становились гигантскими */
    width: min(86%, 400px);
    margin: 0 auto; /* Центрирование вместо margin-left: 7% */

    /* Магия пропорционального масштабирования: */
    container-type: inline-size;
    container-name: left-col;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    /*margin-top: -12.54cqw; !* -34px *!*/
    overflow: hidden;
    width: 100%;
    height: 69.77cqw; /* 225px */
    background: #2a2925;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4.96cqw; /* 16px */
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 29, 25, 0.95), transparent 80%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide h2 {
    font-size: 6.45cqw; /* ~1.3rem */
    position: relative;
    z-index: 2;
    color: var(--text-light);
    margin: 0 0 1.24cqw 0; /* 4px */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide p {
    font-size: 4.22cqw; /* ~0.85rem */
    position: relative;
    z-index: 2;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}

.slider-dots {
    position: absolute;
    bottom: 2.48cqw; /* 8px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.86cqw; /* 6px */
    z-index: 3;
}

.dot {
    width: 2.17cqw; /* 7px */
    height: 2.17cqw; /* 7px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--accent-color);
}

/* --- Ряд двух преимуществ --- */
.adv-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    flex-shrink: 0;
    margin-top: -3.10cqw; /* -10px */
}

/* --- Общие стили bento-card --- */
.bento-card {
    padding: 4.72cqw; /* 12px */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 4.34cqw; /* 14px */
    overflow: hidden;
    position: relative;
    transition: transform 0.1s;
}

.bento-card:active, .bento-card:hover {
    transform: scale(0.96);
}


.bento-card h3 {
    color: var(--text-dark);
    margin: 0 0 1.24cqw 0; /* 4px */
    font-size: 3.97cqw; /* ~0.8rem */
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.bento-card p {
    color: #5c4033;
    margin: 0;
    font-size: 2.98cqw; /* ~0.6rem */
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.wood-card {
    background-image: url('img/button.webp');
    filter: drop-shadow(0cqw 2.48cqw 1.86cqw #000); /* 0px 8px 6px */
}

.paint-card {
    background-image: url('img/button2.webp');
    margin-top: 8.68cqw; /* 28px */
    filter: drop-shadow(0cqw 2.48cqw 1.86cqw #000);
}

/* --- Лазерная гравировка --- */
.laser-card {
    filter: drop-shadow(0cqw 2.48cqw 1.86cqw #000);
    background-image: url('img/1788547688c8ca.webp');
    width: 100%;
    flex-shrink: 0;
    margin-top: -3.1cqw; /* -10px */
}

/* --- Отзыв --- */
.review-card {
    background-image: url('img/button4.webp');
    color: var(--text-dark);
    width: 100%;
    height: 27.91cqw; /* 90px */
    flex-shrink: 0;
    margin-left: -5.58cqw; /* -18px */
    margin-top: 1.86cqw; /* 6px */
    padding: 10.06cqw; /* 26px */
    filter: drop-shadow(0cqw 2.48cqw 1.86cqw #000);
    box-sizing: border-box; /* Важно, чтобы padding не ломал высоту */
}

.review-card .author {
    display: flex;
    align-items: center;
    gap: 2.48cqw; /* 8px */
    margin-bottom: 1.86cqw; /* 6px */
}

.review-card .avatar {
    width: 26px; /* 32px */
    height: 26px; /* 32px */
    border-radius: 50%;
    object-fit: cover;
    background: #ccc;
    text-align: center;
    vertical-align: center;
    padding: 3px;
}

.review-card h4 {
    margin: 0;
    font-size: 2.48cqw; /* ~0.5rem */
    color: var(--text-dark);
}

.review-card .stars {
    color: #d4a017;
    font-size: 3.72cqw; /* ~0.75rem */
}

.review-card .quote {
    margin: 0;
    font-size: 2.48cqw; /* ~0.5rem */
    font-style: italic;
}

/* --- Категории --- */
.tags-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 122%;
    flex-shrink: 0;
    gap: 0.93cqw 0; /* 3px */
    margin-top: 5.58cqw; /* 18px */
    height: 23.26cqw; /* 75px */
    margin-left: -11.37cqw; /* -27px */
}

.tag-btn {
    filter: drop-shadow(0cqw 2.48cqw 1.86cqw #000);
    border: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: var(--text-dark);
    padding: 2.48cqw 1.86cqw; /* 8px 6px */
    font-size: 3.72cqw; /* ~0.75rem */
    cursor: pointer;
    border-radius: 3.10cqw; /* 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: transform 0.1s;
    font-family: "Shantell Sans", cursive;
}

.tag-btn:active, .tag-btn:hover {
    transform: scale(0.96);
}

.btn-landscapes {
    background-image: url('img/button5.webp');
}

.btn-animals {
    background-image: url('img/button7.webp');
}

.btn-flowers {
    background-image: url('img/button6.webp');
}

.btn-abstract {
    background-image: url('img/button5.webp');
}

/* --- Кнопка "Выбрать сюжет" --- */
.left-column > .primary-btn {
    position: relative;
    display: flex;
    width: 100%;
    height: 14.88cqw; /* 48px */
    flex-shrink: 0;
    margin-top: 1.55cqw; /* 5px */
    background-image: url('img/button8.webp');
    border: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    filter: drop-shadow(0cqw 2.48cqw 1.86cqw #000) drop-shadow(0cqw -0.31cqw 8.67cqw #ffc500);
    color: var(--text-dark);
    padding: 2.48cqw 1.86cqw; /* 8px 6px */
    font-size: 3.72cqw; /* ~0.75rem */
    cursor: pointer;
    border-radius: 3.10cqw; /* 10px */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    transition: transform 0.1s;
    font-family: "Shantell Sans", cursive;
}

/* =========================================
   4. Компоненты Graphite (для правой колонки и модалок)
   ========================================= */
.graphite-card {
    background-color: var(--graphite-base);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.graphite-card::before, .graphite-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 24px;
}

.graphite-card::before {
    background-image: var(--noise-fine);
    background-size: var(--grain-size) var(--grain-size);
    opacity: var(--grain-opacity);
    mix-blend-mode: overlay;
}

.graphite-card::after {
    background-image: var(--noise-rough);
    background-size: 500px 500px;
    opacity: var(--rough-opacity);
    mix-blend-mode: soft-light;
}

.section-title {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    color: var(--text-light);
    text-align: center;
}

/* =========================================
   5. Header
   ========================================= */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(30, 29, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    height: 60px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.menu-toggle, .menu-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 1.4rem;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--graphite-base);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 60px 24px 24px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.main-menu.open {
    right: 0;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu li {
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.main-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
}

.main-menu a:hover {
    color: var(--accent-color);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   6. Общие кнопки
   ========================================= */
.primary-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: "Shantell Sans", cursive;
}

.primary-btn:active, .primary-btn:hover {
    transform: scale(0.98);
}

/* =========================================
   7. Правая колонка: Товары и Отзывы
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
}

.product-card-clickable {
    cursor: pointer;
}

.product-card-clickable:hover {
    border-color: var(--accent-color);
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #333;
    border-radius: 12px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
}

.product-card h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text-light);
}

.product-card .price {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.reviews-section {
    margin-bottom: 40px;
}

.review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.review-item .author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-item .name {
    font-weight: 700;
    color: var(--text-light);
}

.review-item .text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* =========================================
   ФУТЕР (откреплён от экрана)
   ========================================= */
footer,
.footer {
    /* ★ Убираем фиксацию */
    position: static !important;
    bottom: auto !important;

    background: var(--graphite-base);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 20px 20px;
    margin-top: auto; /* Прижимает к низу при коротком контенте */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    font-size: 0.82rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.5;
}

@media (min-width: 768px) {

    .main-wrapper {
        flex-direction: row;
        align-items: flex-start; /* контейнер не растягивает дочерние элементы по высоте */
        padding: 0 16px; /* ноль вертикальных отступов */
    }

    .left-column {
        width: min(86%, 440px);
        margin: 0;

        /* Защита от растягивания и сжатия во flex-контейнере */
        flex: 0 0 auto;
        align-self: flex-start;

        /* Фиксация между хедером и футером */
        position: sticky;
        top: 60px;
        /*height: calc(100dvh - 120px); !* корректная высота в Safari/iPad без скачков при прокрутке *!*/

        overflow-y: auto;
        overscroll-behavior: contain; /* внутренняя прокрутка не «тянет» за собой страницу */
        scrollbar-width: none;
        padding: 0 20px;
        padding-bottom: 73px;
    }

    .left-column::-webkit-scrollbar {
        display: none;
    }

    .hero-slider {
        margin-top: 20px;
    }

    .right-column {
        flex: 1;
        min-width: 0;
        padding-left: 32px;
        margin-top: 20px;
    }

    .footer {
        height: 60px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        padding: 0 32px;
    }

    .footer-links {
        gap: 24px;
        font-size: 0.95rem;
    }

    .copyright {
        display: block;
    }
}

@media (max-width: 899px) {
    .copyright {
        display: none;
    }
}

/* =========================================
   9. Модальное окно загрузки
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-subtitle {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.upload-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.upload-hint {
    font-size: 0.85rem;
    opacity: 0.6;
}

.upload-status {
    text-align: center;
    margin-top: 16px;
    color: var(--accent-color);
    display: none;
    font-size: 0.95rem;
}

/* =========================================
   10. Модалка товара
   ========================================= */

@media (min-width: 768px) {
    .modal-left { flex-shrink: 0; position: sticky; top: 20px; }
}

.product-modal-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 160px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .product-modal-body {
        flex-direction: row;
        align-items: flex-start;
        padding: 60px 40px 40px 40px;
        gap: 40px;
    }
}

.product-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .product-gallery {
        width: 55%;
        position: sticky;
        top: 20px;
    }
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #2a2925;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* ★ КЛЮЧЕВОЕ: relative для позиционирования сердечка */
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--graphite-base);
    transition: border-color 0.2s ease;
    background: #2a2925;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ★ Активная миниатюра — только золотая рамка, без scale */
.gallery-thumb.active {
    border-color: var(--accent-color);
}

.gallery-thumb:active {
    transform: scale(0.95);
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .product-info {
        width: 45%;
    }
}


@media (min-width: 768px) {
    .product-modal-title {
        font-size: 2.2rem;
    }
}

.product-modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

.product-modal-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-modal-section h3 {
    margin: 0;
    color: var(--text-light);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.product-modal-section p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.9;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 0.95rem;
}

.product-specs li span:first-child {
    opacity: 0.7;
}

.product-specs li span:last-child {
    color: var(--text-light);
    font-weight: 600;
}

.product-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.palette-color {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.15s, border-color 0.2s;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.palette-color:hover {
    transform: scale(1.08);
}

.palette-color.active {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.palette-color::after {
    content: attr(data-name);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s;
    pointer-events: none;
}

.palette-color:hover::after {
    opacity: 0.7;
}

.product-buy-btn {
    margin-top: 8px;
}

@media (max-width: 899px) {
    .product-buy-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        padding: 20px;
        z-index: 5;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 768px) {
    .product-buy-btn {
        position: sticky;
        bottom: 0;
        margin-top: 24px;
    }
}

/* =========================================
   Стили для отзывов с фото
   ========================================= */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    display: flex;
    flex-direction: column; /* По умолчанию вертикально */
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
}

/* Колонка с текстом */
.review-text-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    order: 1; /* На мобильных текст идет первым */
}

/* Колонка с изображением */
.review-image-col {
    order: 2; /* На мобильных фото идет после текста */
    display: flex;
    justify-content: center; /* Центрируем фото на мобильных */
}

.review-image {
    width: 100%;
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-image:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

/* =========================================
   ДЕСКТОПНАЯ ВЕРСИЯ (от 768px и выше)
   ========================================= */
@media (min-width: 768px) {
    .review-item {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Базовые стили для колонок (без order - его зададим через :nth-child) */
    .review-image-col {
        flex: 0 0 280px;
        justify-content: flex-start;
    }

    .review-text-col {
        flex: 1;
    }

    /* НЕЧЁТНЫЕ отзывы (1, 3, 5...) - фото СЛЕВА */
    .review-item:nth-child(odd) .review-image-col {
        order: 1;
        margin-right: 24px;
        margin-left: 0;
    }

    .review-item:nth-child(odd) .review-text-col {
        order: 2;
    }

    /* ЧЁТНЫЕ отзывы (2, 4, 6...) - фото СПРАВА */
    .review-item:nth-child(even) .review-image-col {
        order: 2;
        margin-left: 24px;
        margin-right: 0;
    }

    .review-item:nth-child(even) .review-text-col {
        order: 1;
    }

    .review-image {
        max-height: 350px;
    }
}

/* =========================================
   Стили Лайтбокса (Lightbox)
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 30000; /* Выше всех модалок */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Пружинистый эффект */
    object-fit: contain;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close:active {
    transform: scale(0.9);
}

/* Адаптив для мобильных: фото на всю ширину */
@media (max-width: 600px) {
    .review-image {
        max-width: 100%;
        max-height: 200px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* =========================================
   Стили для скрытых отзывов и кнопки
   ========================================= */
.review-item.hidden {
    display: none; /* Элемент остается в DOM, поэтому :nth-child продолжает его считать */
}

.show-more-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    max-width: 300px;
    margin: 24px auto 0 auto; /* Центрирование и отступ сверху */
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: var(--accent-color);
    color: var(--graphite-base);
    transform: scale(1.02);
}

.show-more-btn:active {
    transform: scale(0.98);
}

/* =========================================
   Стили для карточек коллекции
   ========================================= */

/* Карточка коллекции наследует стили .product-card */
.collection-card {
    position: relative;
}

/* Кнопка удаления — стилизована как product-modal-close */
.collection-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(30, 29, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
    opacity: 0;
    z-index: 2;
    padding: 0;
}

.collection-card:hover .collection-delete-btn {
    opacity: 1;
}

.collection-delete-btn:hover {
    background: rgba(220, 53, 69, 0.85);
    transform: scale(1.1);
}

.collection-delete-btn:active {
    transform: scale(0.92);
}

/* На мобильных показываем кнопку всегда */
@media (max-width: 600px) {
    .collection-delete-btn {
        opacity: 0.9;
    }
}

/* =========================================
   Стили для пресетов в галерее модалки
   ========================================= */

/* Разделитель между обычными фото и пресетами */
.gallery-divider {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 8px 0 4px 0;
    position: relative;
}

.gallery-divider::before,
.gallery-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gallery-divider::before {
    left: 0;
}

.gallery-divider::after {
    right: 0;
}

/* Адаптив для мобильных: делаем метки чуть крупнее */
@media (max-width: 600px) {
    .preset-label {
        font-size: 0.7rem;
        padding: 16px 2px 4px 2px;
    }
}


/* =========================================
   Стили для пресетов
   ========================================= */
.preset-thumb {
    background-size: cover;
    background-position: center;
}

.preset-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    padding: 14px 2px 4px 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.preset-thumb img {
    display: none;
}

/* =========================================
   Кнопка "Сердечко" (Избранный стиль)
   ========================================= */

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heartShake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-4px);
    }
    40%, 80% {
        transform: translateX(4px);
    }
}

.preset-heart {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    color: rgba(255, 255, 255, 0.5);
}

.preset-heart svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.preset-heart:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* ★ Избранный пресет — заполненное сердечко */
.preset-thumb.favorite .preset-heart {
    color: var(--accent-color);
}

/* Анимация пульсации при переключении */
.preset-heart.pulse {
    animation: heartPulse 0.6s ease;
}

/* =========================================
   Стили для карточки загрузки фото
   ========================================= */
.collection-add-card {
    aspect-ratio: 1 / 1;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    color: var(--text-light);
    text-align: center;
    padding: 16px;
    user-select: none;
}

.collection-add-card:hover,
.collection-add-card.drag-over {
    border-color: var(--accent-color);
    background: rgba(212, 160, 23, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.collection-add-card .plus-icon {
    font-size: 2.5rem;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.collection-add-card:hover .plus-icon {
    transform: scale(1.1);
    opacity: 1;
}

.collection-add-card .upload-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.collection-add-card .upload-hint {
    font-size: 0.75rem;
    opacity: 0.5;
    margin: 0;
}

/* Состояние загрузки */
.collection-add-card.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.collection-add-card.uploading .plus-icon {
    display: none;
}

/* Специфичные стили для пустого состояния (большая карточка по центру) */
#collectionGrid.empty-state-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#collectionGrid.empty-state-mode .collection-add-card {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 3;
}

#collectionGrid.empty-state-mode .plus-icon {
    font-size: 3.5rem;
}

/* =========================================
   Редактируемые поля в модалке
   ========================================= */
.editable-field {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.editable-field h2,
.editable-field h3 {
    margin: 0;
    flex: 1;
}

.edit-btn {
    background: rgba(30, 29, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-light);
}

.edit-btn:hover { background: rgba(212, 160, 23, 0.2); border-color: var(--accent-color); }
.edit-btn.save-btn { background: var(--accent-color); color: var(--graphite-base); }


.edit-btn:active {
    transform: scale(0.9);
}


.title-input { font-size: 1.4rem; font-weight: 700; }


.desc-input { font-size: 0.95rem; resize: vertical; min-height: 70px; }


.btn-save:hover { opacity: 0.9; }

.btn-cancel:hover { border-color: var(--accent-color); }

/* Скрываем кнопки редактирования для обычных товаров */
.editable-field.readonly .edit-btn {
    display: none;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* =========================================
   ЛЕВАЯ ПАНЕЛЬ: ФИЛЬТРЫ
   ========================================= */
.modal-filters {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .modal-filters { width: 280px; position: sticky; top: 20px; }
}

.filters-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.filter-group {
    margin-bottom: 20px;
}

/* --- Миниатюры стилей --- */
.style-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.style-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid var(--graphite-base);
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}


.style-thumb:hover { transform: scale(1.08); }
.style-thumb.active { border-color: var(--accent-color); }

.style-thumb-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    font-size: 0.45rem;
    background: rgba(0,0,0,0.75);
    color: #fff;
    text-align: center;
    padding: 2px 1px;
    pointer-events: none;
}

/* --- Размеры (чекбоксы) --- */
.size-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.size-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* =========================================
   ПРАВАЯ ПАНЕЛЬ: КОНТЕНТ
   ========================================= */
.modal-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Информация */
.modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .modal-right { flex: 1; min-width: 0; }
}


/* Поля ввода */
.info-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================
   КАРТОЧКИ ВАРИАНТОВ
   ========================================= */

.variant-size { font-size: 1.2rem; font-weight: 700; color: var(--accent-color); }


.variant-details { font-size: 0.8rem; color: var(--text-light); opacity: 0.7; line-height: 1.4; }


/* Центральная панель */
.modal-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Шапка с названием и описанием */
.modal-info-header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.info-edit-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.modal-variants {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 900px) {
    .modal-variants { width: 240px; flex-shrink: 0; position: sticky; top: 20px; }
}


/* =========================================
   Модалка — лейаут 3:1
   ========================================= */
.product-modal {
    position: fixed; inset: 0;
    background: var(--graphite-base);
    z-index: 25000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}
.product-modal.open { opacity: 1; pointer-events: auto; }

.product-modal-close {
    position: fixed; top: 16px; right: 16px;
    width: 44px; height: 44px;
    background: rgba(30,29,25,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    border-radius: 50%; font-size: 1.6rem;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    z-index: 10; line-height: 1;
    transition: background 0.2s, transform 0.1s;
}
.product-modal-close:hover { background: rgba(212,160,23,0.2); }
.product-modal-close:active { transform: scale(0.92); }

/* ★ Сетка 3:1 */
.product-modal-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (min-width: 768px) {
    .product-modal-layout {
        display: grid;
        grid-template-columns: 2fr 1fr; /* ★ 3/4 и 1/4 */
        gap: 32px;
        align-items: start;
    }
}

/* =========================================
   ЛЕВАЯ КОЛОНКА
   ========================================= */
.modal-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.modal-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-modal-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.3;
    flex: 1;
}

.edit-pencil-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    width: 36px; height: 36px;
    cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    color: var(--text-light);
    flex-shrink: 0;
}
.edit-pencil-btn:hover { background: rgba(212,160,23,0.15); border-color: var(--accent-color); }

.edit-form {
    display: flex; flex-direction: column; gap: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 16px;
}

.edit-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-light);
    font-family: inherit;
    padding: 10px 12px;
    font-size: 0.95rem;
}
.edit-input:focus { outline: none; border-color: var(--accent-color); }
textarea.edit-input { resize: vertical; min-height: 70px; }

.edit-form-actions { display: flex; gap: 10px; justify-content: flex-end; }

.btn-save {
    padding: 8px 18px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none; border-radius: 8px;
    font-weight: 700; cursor: pointer;
}
.btn-cancel {
    padding: 8px 18px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; cursor: pointer;
}

.modal-preview {
    width: 100%;
    aspect-ratio: 1;
    background: #2a2925;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.modal-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.product-modal-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.85;
}

/* =========================================
   ПРАВАЯ КОЛОНКА
   ========================================= */
.modal-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.filter-section { margin-bottom: 0; }

.filter-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   ВЫПАДАЮЩИЙ СПИСОК СТИЛЕЙ
   ========================================= */
.style-select {
    position: relative;
}

.style-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: border-color 0.2s;
    text-align: left;
}
.style-select-trigger:hover { border-color: var(--accent-color); }

.style-select-thumb {
    width: 36px; height: 36px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.style-select-name { flex: 1; }

.style-select-arrow {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.style-select.open .style-select-arrow { transform: rotate(180deg); }

.style-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: rgba(30,29,25,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.style-select-dropdown.open { display: block; }

.style-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.style-select-item:last-child { border-bottom: none; }
.style-select-item:hover { background: rgba(255,255,255,0.06); }
.style-select-item.active { background: rgba(212,160,23,0.12); }

.style-select-item-thumb {
    width: 32px; height: 32px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}

.style-select-item-name {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* =========================================
   СЛОЖНОСТЬ — OUTLINED кнопки
   ========================================= */
.complexity-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.complexity-btn {
    padding: 8px 4px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.complexity-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* ★ Active = outlined, не contained */
.complexity-btn.active {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-weight: 700;
}

/* =========================================
   ТОГГЛ КРАСОК
   ========================================= */
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0;
}

.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    transition: background 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent-color); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* =========================================
   ПОЛЗУНОК БЮДЖЕТА
   ========================================= */
.price-slider-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-slider-wrap input[type="range"] {
    flex: 1;
    accent-color: var(--accent-color);
    cursor: pointer;
    min-width: 0;
}
.price-slider-wrap input[type="number"] {
    width: 70px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-light);
    padding: 5px 6px;
    font-size: 0.8rem;
    text-align: center;
}
.price-slider-wrap input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* =========================================
   СЕТКА 2×2 КАРТОЧЕК РАЗМЕРОВ
   ========================================= */
.variants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.variant-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s, transform 0.2s;
}
.variant-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ★ Размер в заголовке: "S - 10×10см" */
.variant-size-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.3;
}

.variant-colors {
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.7;
}

.variant-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 4px;
}

/* ★ Кнопка "Показать" — outlined */
.variant-buy-btn {
    padding: 7px;
    background: transparent;
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    margin-top: 6px;
}
.variant-buy-btn:hover {
    background: var(--accent-color);
    color: var(--graphite-base);
}
.variant-buy-btn:active { transform: scale(0.97); }

.variants-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 10px;
    color: var(--text-light);
    opacity: 0.5;
    font-size: 0.8rem;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 10px;
}


/* =========================================
   Плашка на картинке
   ========================================= */
.modal-preview {
    position: relative; /* Для позиционирования плашки */
}
/* =========================================
   Плашка на картинке — улучшенный UX
   ========================================= */
.preview-info-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;

    /* Градиент для читаемости на любом фоне */
    background: linear-gradient(
            to top,
            rgba(30, 29, 25, 0.95) 0%,
            rgba(30, 29, 25, 0.85) 60%,
            rgba(30, 29, 25, 0.6) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 16px 20px 18px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Верхняя строка: параметры */
.preview-params {
    font-size: 0.82rem;
    color: var(--text-light);
    opacity: 0.75;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

/* Нижняя строка: цена + кнопка */
.preview-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ★ Цена — крупная, акцентная, читается мгновенно */
.preview-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(212, 160, 23, 0.2);
    white-space: nowrap;
}

.preview-price-currency {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-left: 2px;
}

/* ★ Кнопка "Заказать" — крупная, с анимацией */
.btn-order-contained {
    padding: 12px 28px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, background 0.2s ease;

    /* ★ Мягкая пульсация для привлечения внимания */
    animation: orderBtnPulse 2.5s ease-in-out infinite;
}

.btn-order-contained:hover {
    background: #e8b32a;
    animation-play-state: paused; /* Останавливаем пульсацию при наведении */
    transform: translateY(-2px);
}

.btn-order-contained:active {
    transform: translateY(0) scale(0.97);
}

/* Иконка корзины внутри кнопки */
.btn-order-contained svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Эффект "блика" пробегающего по кнопке */
.btn-order-contained::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent
    );
    animation: btnShine 4s ease-in-out infinite;
}

/* ★ Анимация пульсации (свечение вокруг кнопки) */
@keyframes orderBtnPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.5),
        0 4px 16px rgba(212, 160, 23, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 160, 23, 0),
        0 4px 20px rgba(212, 160, 23, 0.4);
    }
}

/* ★ Анимация блика */
@keyframes btnShine {
    0%, 75%, 100% { left: -100%; }
    85% { left: 150%; }
}

/* Адаптив: на мобильных кнопка на всю ширину */
@media (max-width: 480px) {
    .preview-action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .preview-price {
        text-align: center;
        font-size: 1.8rem;
    }

    .btn-order-contained {
        justify-content: center;
        padding: 14px;
        width: 100%;
    }
}

.preview-info-text {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.4;
    flex: 1;
}

/* Кнопка "Заказать" (Contained) */
.btn-order-contained {
    padding: 10px 24px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-order-contained:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-order-contained:active { transform: scale(0.97); }

/* =========================================
   Модальное окно заказа
   ========================================= */
.order-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 30000; /* Выше модалки товара */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.order-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.order-modal-content {
    background: var(--graphite-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.order-modal.open .order-modal-content {
    transform: translateY(0);
}

.order-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-light);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.order-modal-close:hover { background: rgba(255, 255, 255, 0.15); }

.order-modal-title {
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    color: var(--text-light);
}

.order-summary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.order-summary-row:last-child { margin-bottom: 0; }
.order-summary-row span:last-child { font-weight: 600; color: var(--accent-color); }

.order-summary-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.7;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.5;
}

.order-form-group {
    margin-bottom: 20px;
}

.order-form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
}

.order-phone-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-light);
    padding: 12px 14px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.order-phone-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

.btn-submit-order {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.btn-submit-order:hover { opacity: 0.9; }
.btn-submit-order:active { transform: scale(0.98); }
.btn-submit-order:disabled { opacity: 0.5; cursor: not-allowed; }
/* =========================================
   ТУЛТИП — справа
   ========================================= */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 0.6rem;
    cursor: help;
    margin-left: 6px;
    font-weight: 700;
    flex-shrink: 0;
}

.tooltip-trigger .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,29,25,0.95);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    width: 200px;
    z-index: 100;
    transition: opacity 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
}

.tooltip-trigger .tooltip-text::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(30,29,25,0.95);
}

.tooltip-trigger:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* =========================================
   СТЕППЕР (только мобильные)
   ========================================= */
.steps-indicator,
.steps-nav {
    display: none;
}

/* Десктоп: всё видно, степпер скрыт */
@media (min-width: 768px) {
    .filter-step { display: block !important; }
    .steps-indicator, .steps-nav,
    .summary-step, .summary-actions { display: none !important; }
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ (обновлённая)
   ========================================= */
@media (max-width: 767px) {
    .product-modal-layout {
        padding: 12px 16px 0;
        padding-bottom: 80px;
        gap: 10px;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        overflow: hidden;
    }

    .modal-left {
        flex-shrink: 0;
        gap: 8px;
        display: flex;
        flex-direction: column;
    }

    /* ★ 1. Высота превью 45vh */
    .modal-preview {
        max-height: 45vh;
        border-radius: 12px;
    }
    .modal-preview img {
        max-height: 45vh;
    }

    .preview-info-bar { display: none; }

    .product-modal-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .product-modal-desc { display: none; }

    .modal-right {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
    }

    /* Индикатор шагов */
    .steps-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 0 10px;
        flex-shrink: 0;
    }

    .step-dot {
        width: 26px; height: 26px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        border: 2px solid rgba(255,255,255,0.15);
        color: var(--text-light);
        font-size: 0.7rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    .step-dot.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--graphite-base); transform: scale(1.1); }
    .step-dot.completed { background: rgba(212,160,23,0.25); border-color: var(--accent-color); color: var(--accent-color); }

    .step-line { width: 28px; height: 2px; background: rgba(255,255,255,0.1); transition: background 0.3s; }
    .step-line.completed { background: var(--accent-color); }

    /* ★ 2. Убрана горизонтальная прокрутка */
    .filter-step {
        display: none;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden; /* ★ Запрет горизонтальной прокрутки */
        animation: stepFadeIn 0.3s ease;
        width: 100%;
        max-width: 100%;
    }

    .filter-step.active { display: block; }

    .filter-step > * {
        max-width: 100%;
    }

    @keyframes stepFadeIn {
        from { opacity: 0; transform: translateX(20px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Фиксированная навигация */
    .steps-nav {
        display: flex;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(30,29,25,0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 100;
    }

    .btn-step {
        flex: 1;
        padding: 12px;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
        border: 1.5px solid rgba(255,255,255,0.2);
        background: transparent;
        color: var(--text-light);
    }
    .btn-step:hover { border-color: var(--accent-color); color: var(--accent-color); }
    .btn-step:active { transform: scale(0.97); }
    .btn-step.primary { background: var(--accent-color); border-color: var(--accent-color); color: var(--graphite-base); }
    .btn-step.primary:hover { background: #e8b32a; }
    .btn-step.hidden { visibility: hidden; }

    /* ★ 3. Полноэкранные выпадающие списки */
    .style-select-dropdown {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        max-height: 100%;
        border-radius: 0;
        background: rgba(30,29,25,0.98);
        z-index: 300;
        overflow-y: auto;
        padding: 60px 16px 30px;
        display: none;
        flex-direction: column;
        gap: 4px;
    }

    .style-select-dropdown.open {
        display: flex;
    }

    /* Кнопка закрытия полноэкранного списка */
    .dropdown-close-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        width: 40px; height: 40px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 50%;
        color: var(--text-light);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 310;
        transition: background 0.2s;
    }
    .dropdown-close-btn:hover { background: rgba(255,255,255,0.2); }

    /* Заголовок полноэкранного списка */
    .dropdown-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-light);
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .style-select-item {
        padding: 10px 12px;
        border-radius: 10px;
    }

    /* Шаг-итог */
    .summary-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Шапка: мини-превью + название */
    .summary-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 10px;
    }

    .summary-thumb {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .summary-title-wrap {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .summary-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--text-light);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .summary-style {
        font-size: 0.72rem;
        color: var(--accent-color);
        opacity: 0.9;
    }

    .summary-params {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 0.82rem;
    }
    .summary-row:last-of-type { border-bottom: none; }
    .summary-row .label {
        color: var(--text-light);
        opacity: 0.55;
        font-weight: 400;
    }
    .summary-row .value {
        color: var(--text-light);
        font-weight: 600;
        text-align: right;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .summary-total .label {
        font-size: 0.9rem;
        color: var(--text-light);
        opacity: 0.7;
        font-weight: 500;
    }

    /* Пометка "(без красок)" рядом с ценой */
    .summary-no-paints {
        font-size: 0.7rem;
        font-weight: 400;
        color: var(--text-light);
        opacity: 0.5;
        margin-left: 6px;
        white-space: nowrap;
    }

    .summary-total .value {
        font-size: 1.7rem;
        font-weight: 800;
        color: var(--accent-color);
        line-height: 1;
        letter-spacing: -0.5px;
    }

    .summary-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 4px;
        margin-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .summary-price .label { font-size: 0.88rem; color: var(--text-light); opacity: 0.7; }
    .summary-price .value { font-size: 1.7rem; font-weight: 800; color: var(--accent-color); line-height: 1; }

    /* Кнопка Заказать */
    .summary-actions {
        display: none;
        padding: 10px 0 0;
    }

    .summary-brief {
        font-size: 0.82rem;
        color: var(--text-light);
        opacity: 0.75;
        text-align: center;
        margin: 0 0 10px 0;
        line-height: 1.4;
    }

    .summary-brief strong {
        color: var(--accent-color);
        font-weight: 700;
    }

    .btn-order-full {
        width: 100%;
        padding: 14px;
        background: var(--accent-color);
        color: var(--graphite-base);
        border: none;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.1s, opacity 0.2s;
        animation: orderBtnPulse 2.5s ease-in-out infinite;
    }
    .btn-order-full:hover { opacity: 0.9; animation-play-state: paused; }
    .btn-order-full:active { transform: scale(0.97); }
    .btn-order-full svg { width: 18px; height: 18px; }

    /* Компактные фильтры */
    .filter-section { margin-bottom: 0; }
    .filter-label { font-size: 0.72rem; margin-bottom: 6px; }
    .complexity-options { gap: 5px; }
    .complexity-btn { padding: 7px 3px; font-size: 0.72rem; }
    .style-select-trigger { padding: 7px 9px; }
    .style-select-thumb { width: 30px; height: 30px; }
    .style-select-name { font-size: 0.8rem; }

    /* ★ 2. Фикс ползунка бюджета */
    .price-slider-wrap {
        width: 100%;
        max-width: 100%;
    }
    .price-slider-wrap input[type="range"] {
        min-width: 0;
        flex: 1;
    }
    .price-slider-wrap input[type="number"] {
        width: 60px;
        flex-shrink: 0;
        padding: 4px 5px;
        font-size: 0.78rem;
    }

    /* Селектор размера */
    .size-select .style-select-thumb {
        width: 36px; height: 36px;
        border-radius: 8px;
    }
}

/* =========================================
   ОБЩИЕ СТИЛИ (десктоп + мобильные)
   ========================================= */

/* Плашка на картинке — скрыта везде */
.preview-info-bar {
    display: none;
}

/* Сетка карточек вариантов — скрыта везде (размер через селектор) */
.variants-grid {
    display: none;
}

/* Крестик и заголовок в dropdown — скрыты на десктопе */
@media (min-width: 768px) {
    .dropdown-close-btn,
    .dropdown-title {
        display: none !important;
    }
}

/* Summary и кнопка Заказать — видны на десктопе */
@media (min-width: 768px) {
    .summary-actions {
        display: block !important;
    }
}

/* =========================================
   ДЕСКТОПНАЯ ВЕРСИЯ
   ========================================= */
@media (min-width: 768px) {
    .product-modal-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 32px;
        align-items: start;
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px 24px 40px;
    }

    .modal-left {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 0;
    }

    .modal-preview {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.06);
    }
    .modal-preview img {
        width: 100%; height: 100%;
        object-fit: cover;
    }

    .modal-right {
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-width: 0;
    }

    /* Все шаги видны на десктопе */
    .filter-step {
        display: block !important;
    }

    /* Степпер скрыт */
    .steps-indicator,
    .steps-nav {
        display: none !important;
    }

    /* Фильтры */
    .filter-section { margin-bottom: 0; }
    .filter-label {
        display: flex;
        align-items: center;
        font-size: 0.75rem;
        color: var(--text-light);
        opacity: 0.8;
        margin-bottom: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Селекторы (стиль и размер) */
    .style-select-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 10px;
        cursor: pointer;
        color: var(--text-light);
        font-size: 0.88rem;
        transition: border-color 0.2s;
        text-align: left;
    }
    .style-select-trigger:hover { border-color: var(--accent-color); }

    .style-select-thumb {
        width: 36px; height: 36px;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
        border: 1px solid rgba(255,255,255,0.1);
    }

    .style-select-name { flex: 1; }
    .style-select-arrow { font-size: 0.7rem; opacity: 0.5; transition: transform 0.2s; }
    .style-select.open .style-select-arrow { transform: rotate(180deg); }

    .style-select-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0; right: 0;
        background: rgba(30,29,25,0.98);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        max-height: 280px;
        overflow-y: auto;
        z-index: 50;
        display: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .style-select-dropdown.open { display: block; }

    .style-select-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        cursor: pointer;
        transition: background 0.15s;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .style-select-item:last-child { border-bottom: none; }
    .style-select-item:hover { background: rgba(255,255,255,0.06); }
    .style-select-item.active { background: rgba(212,160,23,0.12); }

    .style-select-item-thumb {
        width: 32px; height: 32px;
        border-radius: 6px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .style-select-item-name {
        font-size: 0.84rem;
        color: var(--text-light);
    }

    /* Сложность */
    .complexity-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .complexity-btn {
        padding: 8px 4px;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 8px;
        background: transparent;
        color: var(--text-light);
        font-size: 0.78rem;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
    }
    .complexity-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
    .complexity-btn.active {
        background: transparent;
        color: var(--accent-color);
        border: 2px solid var(--accent-color);
        font-weight: 700;
    }

    /* Бюджет */
    .price-slider-wrap {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .price-slider-wrap input[type="range"] {
        flex: 1;
        accent-color: var(--accent-color);
        cursor: pointer;
    }
    .price-slider-wrap input[type="number"] {
        width: 75px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 8px;
        color: var(--text-light);
        padding: 6px 8px;
        font-size: 0.85rem;
        text-align: center;
    }
    .price-slider-wrap input[type="number"]:focus {
        outline: none;
        border-color: var(--accent-color);
    }

    /* Тоггл */
    .toggle-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        margin-bottom: 0;
    }
    .toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
    .toggle-switch input { opacity: 0; width: 0; height: 0; }
    .toggle-slider {
        position: absolute; cursor: pointer; inset: 0;
        background: rgba(255,255,255,0.15);
        border-radius: 24px;
        transition: background 0.3s;
    }
    .toggle-slider::before {
        content: '';
        position: absolute;
        height: 18px; width: 18px;
        left: 3px; bottom: 3px;
        background: #fff;
        border-radius: 50%;
        transition: transform 0.3s;
    }
    .toggle-switch input:checked + .toggle-slider { background: var(--accent-color); }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

    /* ★ Summary card на десктопе */
    .summary-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 14px;
        padding: 16px;
        display: flex;
        flex-direction: column;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
        margin-bottom: 10px;
        border-bottom: 1px dashed rgba(255,255,255,0.15);
    }

    .summary-total .label {
        font-size: 0.9rem;
        color: var(--text-light);
        opacity: 0.7;
        font-weight: 500;
    }

    .summary-total .value {
        font-size: 1.6rem;
        font-weight: 800;
        color: var(--accent-color);
        line-height: 1;
    }

    .summary-params {
        display: flex;
        flex-direction: column;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 0.85rem;
    }

    .summary-row .label {
        color: var(--text-light);
        opacity: 0.55;
    }

    .summary-row .value {
        color: var(--text-light);
        font-weight: 600;
    }

    /* Кнопка Заказать на десктопе */
    .summary-actions {
        padding-top: 12px;
    }

    .btn-order-full {
        width: 100%;
        padding: 14px;
        background: var(--accent-color);
        color: var(--graphite-base);
        border: none;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: transform 0.1s, opacity 0.2s;
        animation: orderBtnPulse 2.5s ease-in-out infinite;
    }
    .btn-order-full:hover { opacity: 0.9; animation-play-state: paused; }
    .btn-order-full:active { transform: scale(0.97); }
    .btn-order-full svg { width: 18px; height: 18px; }

    /* Пометка "(без красок)" */
    .summary-no-paints {
        font-size: 0.7rem;
        font-weight: 400;
        color: var(--text-light);
        opacity: 0.5;
        white-space: nowrap;
    }
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */
@media (max-width: 767px) {
    .product-modal-layout {
        padding: 12px 16px 0;
        padding-bottom: 80px;
        gap: 10px;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        overflow: hidden;
    }

    .modal-left {
        flex-shrink: 0;
        gap: 8px;
        display: flex;
        flex-direction: column;
    }

    .modal-preview {
        max-height: 45vh;
        border-radius: 12px;
    }
    .modal-preview img {
        max-height: 45vh;
    }

    .product-modal-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
    }

    .product-modal-desc { display: none; }

    .modal-right {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Индикатор шагов */
    .steps-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 0 10px;
        flex-shrink: 0;
    }

    .step-dot {
        width: 26px; height: 26px;
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        border: 2px solid rgba(255,255,255,0.15);
        color: var(--text-light);
        font-size: 0.7rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    .step-dot.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--graphite-base); transform: scale(1.1); }
    .step-dot.completed { background: rgba(212,160,23,0.25); border-color: var(--accent-color); color: var(--accent-color); }

    .step-line { width: 28px; height: 2px; background: rgba(255,255,255,0.1); transition: background 0.3s; }
    .step-line.completed { background: var(--accent-color); }

    /* Шаги */
    .filter-step {
        display: none;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        animation: stepFadeIn 0.3s ease;
        width: 100%;
        max-width: 100%;
    }
    .filter-step.active { display: block; }

    @keyframes stepFadeIn {
        from { opacity: 0; transform: translateX(20px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Навигация */
    .steps-nav {
        display: flex;
        gap: 10px;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(30,29,25,0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 100;
    }

    .btn-step {
        flex: 1;
        padding: 12px;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
        border: 1.5px solid rgba(255,255,255,0.2);
        background: transparent;
        color: var(--text-light);
    }
    .btn-step:hover { border-color: var(--accent-color); color: var(--accent-color); }
    .btn-step:active { transform: scale(0.97); }
    .btn-step.primary { background: var(--accent-color); border-color: var(--accent-color); color: var(--graphite-base); }
    .btn-step.primary:hover { background: #e8b32a; }
    .btn-step.hidden { visibility: hidden; }

    /* Полноэкранные списки */
    .style-select-dropdown {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        max-height: 100%;
        border-radius: 0;
        background: rgba(30,29,25,0.98);
        z-index: 300;
        overflow-y: auto;
        padding: 60px 16px 30px;
        display: none;
        flex-direction: column;
        gap: 4px;
    }
    .style-select-dropdown.open { display: flex; }

    .dropdown-close-btn {
        position: fixed;
        top: 16px; right: 16px;
        width: 40px; height: 40px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 50%;
        color: var(--text-light);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 310;
    }

    .dropdown-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-light);
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .style-select-trigger { padding: 7px 9px; }
    .style-select-thumb { width: 30px; height: 30px; }
    .style-select-name { font-size: 0.8rem; }

    /* Summary на мобильных */
    .summary-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 14px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 10px;
        margin-bottom: 8px;
        border-bottom: 1px dashed rgba(255,255,255,0.15);
    }

    .summary-total .label { font-size: 0.88rem; color: var(--text-light); opacity: 0.7; }
    .summary-total .value { font-size: 1.6rem; font-weight: 800; color: var(--accent-color); line-height: 1; }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        font-size: 0.82rem;
    }
    .summary-row .label { color: var(--text-light); opacity: 0.55; }
    .summary-row .value { color: var(--text-light); font-weight: 600; }

    .summary-actions {
        display: none;
        padding-top: 8px;
    }

    .btn-order-full {
        width: 100%;
        padding: 14px;
        background: var(--accent-color);
        color: var(--graphite-base);
        border: none;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        animation: orderBtnPulse 2.5s ease-in-out infinite;
    }
    .btn-order-full:active { transform: scale(0.97); }
    .btn-order-full svg { width: 18px; height: 18px; }

    /* Компактные фильтры */
    .filter-label { font-size: 0.72rem; margin-bottom: 6px; }
    .complexity-btn { padding: 7px 3px; font-size: 0.72rem; }
    .price-slider-wrap input[type="number"] { width: 60px; flex-shrink: 0; padding: 4px 5px; font-size: 0.78rem; }
    .price-slider-wrap input[type="range"] { min-width: 0; flex: 1; }

    .summary-no-paints {
        font-size: 0.65rem;
        font-weight: 400;
        color: var(--text-light);
        opacity: 0.5;
        white-space: nowrap;
    }
}

/* =========================================
   ЛОАДЕРЫ
   ========================================= */
.summary-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 0;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.85rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.preview-loader {
    position: absolute;
    inset: 0;
    background: rgba(30, 29, 25, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.modal-preview {
    position: relative;
}

.modal-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #2a2925;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-preview img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* ★ Вписывается без растягивания */
    transition: opacity 0.3s ease;
}

/* =========================================
   БЛОК БЮДЖЕТА (одна строка, компактный)
   ========================================= */
.budget-control {
    margin-bottom: 0;
}

.budget-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.budget-btn {
    padding: 7px 6px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    background: transparent;
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.budget-btn:hover {
    border-color: var(--accent-color);
    background: rgba(255,180,50,0.1);
}

.budget-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--graphite-base);
}

.budget-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.budget-input-wrap input {
    width: 100%;
    padding: 7px 24px 7px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 7px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.budget-input-wrap input:focus {
    border-color: var(--accent-color);
}

.budget-input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

.budget-currency {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.8rem;
    pointer-events: none;
}

/* Скрываем спиннеры у number input */
.budget-input-wrap input::-webkit-outer-spin-button,
.budget-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.budget-input-wrap input[type=number] {
    -moz-appearance: textfield;
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ — сжатые кнопки бюджета
   ========================================= */
@media (max-width: 767px) {
    .budget-row {
        gap: 3px;
    }

    .budget-btn {
        padding: 6px 5px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    .budget-input-wrap input {
        padding: 6px 22px 6px 8px;
        font-size: 0.78rem;
        border-radius: 6px;
    }

    .budget-input-wrap input::placeholder {
        font-size: 0.7rem;
    }

    .budget-currency {
        right: 7px;
        font-size: 0.75rem;
    }

    /* Убираем лишний отступ у первой секции в шаге */
    .filter-step[data-step="2"] .filter-section:first-child {
        margin-top: 0 !important;
    }
}

/* =========================================
   ПЛАШКА СОГЛАСИЯ НА COOKIE
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 29, 25, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 20px;
    z-index: 9000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cookie-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 4px 0;
}

.cookie-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}
.cookie-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: var(--graphite-base);
}
.cookie-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-btn-decline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Мобильные: вертикальная раскладка */
@media (max-width: 767px) {
    .cookie-banner {
        padding: 14px 16px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }

    .cookie-icon {
        font-size: 1.5rem;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        padding: 11px 12px;
    }
}

/* =========================================
   ФУТЕР
   ========================================= */
.site-footer {
    background: var(--graphite-base);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Бренд */
.footer-brand {
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.6;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   МЕНЮ: 3 колонки на десктопе
   ========================================= */
.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-column-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 14px 0;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-light);
    opacity: 0.65;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Нижняя строка */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-light);
    opacity: 0.45;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--graphite-base);
    transform: translateY(-2px);
}

/* =========================================
   МОБИЛЬНЫЕ: одна колонка
   ========================================= */
@media (max-width: 767px) {
    .site-footer {
        padding: 36px 16px 20px;
    }

    .footer-brand {
        margin-bottom: 24px;
        text-align: center;
    }

    .footer-menu {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-column-title {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-links {
        align-items: center;
        gap: 8px;
    }

    .footer-links a {
        font-size: 0.85rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }
}

/* Планшеты: 2 колонки */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* =========================================
   КАРТОЧКА С СОГЛАСИЕМ НА COOKIE
   ========================================= */
.cookie-consent-card {
    cursor: default !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-banner-inline {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.cookie-content-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-icon-inline {
    font-size: 1.6rem;
    text-align: center;
}

.cookie-text-inline {
    text-align: center;
}

.cookie-title-inline {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 6px 0;
}

.cookie-desc-inline {
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.65;
    margin: 0;
    line-height: 1.5;
}

.cookie-actions-inline {
    display: flex;
    gap: 8px;
}

.cookie-btn-accept-inline,
.cookie-btn-decline-inline {
    flex: 1;
    padding: 9px 8px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept-inline {
    background: var(--accent-color);
    color: var(--graphite-base);
}
.cookie-btn-accept-inline:hover {
    opacity: 0.9;
}

.cookie-btn-decline-inline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-btn-decline-inline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* =========================================
   КАРТОЧКА С ТРЕБОВАНИЕМ АВТОРИЗАЦИИ
   ========================================= */
.auth-required-card {
    cursor: default !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.auth-required-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.auth-required-icon {
    font-size: 2rem;
}

.auth-required-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.auth-required-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    opacity: 0.6;
    margin: 0;
    line-height: 1.5;
    max-width: 260px;
}

.auth-required-btn {
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.auth-required-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Мобильные: уменьшаем отступы */
@media (max-width: 767px) {
    .cookie-banner-inline {
        padding: 12px;
    }
    .cookie-desc-inline {
        font-size: 0.68rem;
    }
    .auth-required-desc {
        font-size: 0.72rem;
    }
}

/* =========================================
   КАРТОЧКА: ОТКЛОНЕННЫЕ COOKIE
   ========================================= */
.cookie-declined-card {
    cursor: default !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border-color: rgba(255, 100, 80, 0.25) !important;
    background: rgba(255, 100, 80, 0.03) !important;
}

.cookie-declined-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.cookie-declined-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.cookie-declined-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.cookie-declined-desc {
    font-size: 0.78rem;
    color: var(--text-light);
    opacity: 0.6;
    margin: 0;
    line-height: 1.6;
    max-width: 280px;
}

.cookie-declined-btn {
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--graphite-base);
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
}

.cookie-declined-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .cookie-declined-desc {
        font-size: 0.72rem;
    }
}