/*
Theme Name: RoyalFloor Theme
Description: Эксклюзивный паркет
Author: Ваш Имя
Version: 1.0
*/

/* =========================================
   ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    --bg-site: #F9F8F5;
    --text-main: #2C2A28;
    --accent: #C2A88A;
    --font-main: 'Montserrat', sans-serif;
    --font-accent: 'Playfair Display', serif;

    --page-bg: var(--bg-site);
    --hero-radius: 40px; 

    /* НАСТРОЙКИ ВЕРХНЕГО ВЫРЕЗА */
    --top-width: 1260px; 
    --top-height: 50px; 
    --top-radius: 30px;  

    /* НАСТРОЙКИ НИЖНЕГО ВЫРЕЗА */
    --bot-width: 120px;
    --bot-radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-main); 
    background-color: var(--bg-site); 
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* ================== ПРЕМИУМ МАТОВОЕ СТЕКЛО (HEADER) ================== */
header#mainHeader { 
    position: fixed; top: 25px; left: 50%; transform: translateX(-50%); 
    width: calc(100% - 40px); max-width: 1200px; 

    /* Эффект Блюра (Glassmorphism) */
    background: rgba(255, 255, 255, 0.4) !important; /* Полупрозрачный белый */
    backdrop-filter: blur(20px) !important; 
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;

    border-radius: 100px; padding: 12px 30px; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; 
}

/* Жесткий сброс для ссылок и списков в шапке (чтобы не было как на скрине) */
header#mainHeader a { text-decoration: none !important; color: var(--text-main) !important; }
header#mainHeader ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
header#mainHeader li { list-style-type: none !important; margin: 0 !important; }
header#mainHeader li::before { content: none !important; } /* Убивает точки от некоторых тем WP */

.logo { font-size: 16px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex !important; gap: 40px; align-items: center; }
.nav-links a { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; position: relative; padding: 5px 0; }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
    background-color: var(--accent); transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-links a:hover::after { width: 100%; }

.header-btn { 
    display: inline-block !important; /* Чтобы кнопка вела себя правильно */
    background: #ffffff !important; 
    color: #fff !important; 
    padding: 12px 24px; 
    border-radius: 100px; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    cursor: pointer !important; /* Делаем курсор пальцем */
    transition: all 0.3s ease !important; /* Плавный переход */
    border: none !important;
}

/* Эффект при наведении на кнопку */
.header-btn:hover { 
    background: var(--accent) !important; /* Меняет цвет на золотой */
    transform: translateY(-2px) !important; /* Слегка приподнимается */
    box-shadow: 0 5px 15px rgba(194, 168, 138, 0.4) !important; /* Появляется мягкая тень */
}

/* ================== БУРГЕР И МОБИЛЬНОЕ МЕНЮ ================== */
.burger-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.burger-btn span { width: 28px; height: 2px; background-color: var(--text-main); transition: all 0.3s ease; }
.burger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(249, 248, 245, 0.98); backdrop-filter: blur(10px);
    z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease; transform: translateY(-20px);
}
.mobile-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav { list-style: none !important; text-align: center; margin-bottom: 40px; padding: 0 !important; }
.mobile-nav li { margin-bottom: 30px; list-style: none !important; }
.mobile-nav a {
    font-size: 24px; font-family: var(--font-accent); text-transform: uppercase; 
    text-decoration: none !important; color: var(--text-main) !important;
}

/* ================== ГЛАВНЫЙ ЭКРАН ================== */
.hero { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-position: center; background-size: cover; background-repeat: no-repeat;
    z-index: -2; transition: transform 10s ease-out;
}
.hero:hover .hero-bg { transform: scale(1.05); }

/* Градиент в цвет бегущей строки */
.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 40%, transparent 85%, var(--bg-site) 100%);
    z-index: -1; 
}

.fade-in-up { z-index: 1; text-align: center; margin-top: 50px; animation: fadeInUp 1.2s forwards; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

.hero-title { font-family: var(--font-accent); font-size: 90px; font-weight: 400; font-style: italic; color: #ffffff; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-family: var(--font-main); font-size: 13px; text-transform: uppercase; letter-spacing: 4px; color: #ffffff; opacity: 0.9; }

/* ================== БЕГУЩАЯ СТРОКА ================== */
.trust-marquee { background: var(--bg-site); padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
.marquee-content { display: flex; white-space: nowrap; animation: scrollMarquee 30s linear infinite; }
.marquee-content span { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; margin: 0 40px; color: var(--text-main); opacity: 0.8; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================== АДАПТАЦИЯ ================== */
@media (max-width: 768px) {
    header#mainHeader { padding: 15px 25px; top: 15px; width: calc(100% - 30px); }
    .desktop-only { display: none !important; }
    .burger-btn { display: flex; }
    .hero-title { font-size: 52px; margin-bottom: 15px; }
    .hero-subtitle { font-size: 11px; padding: 0 10px; }
    .marquee-content span { font-size: 11px; margin: 0 25px; }
}



.regal-brand-story {
    background-color: #FAFAFA;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.regal-brand-story .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 80px;
    align-items: center;
}

/* =========================================
   ЛЕВАЯ ЧАСТЬ: ВИЗУАЛ
   ========================================= */
.story-visual {
    position: relative;
    z-index: 2;
}

.vertical-accent {
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

.vertical-accent span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #C0B7A9;
    font-weight: 500;
    white-space: nowrap;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.08);
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.story-visual:hover .main-photo {
    transform: scale(1.05);
}

.visual-backdrop {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid #EBEAE8;
    border-radius: 12px;
    z-index: 1;
    transition: all 0.5s ease;
}

.story-visual:hover .visual-backdrop {
    top: -15px;
    left: -15px;
}

/* Печать */
.premium-badge {
    position: absolute;
    bottom: -40px;
    right: -40px;
    z-index: 3;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: transparent;
}

.badge-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 25s linear infinite;
}

.badge-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================
   ПРАВАЯ ЧАСТЬ: КОНТЕНТ
   ========================================= */
.story-content {
    position: relative;
    padding-left: 20px;
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-year-story {
    position: absolute;
    top: -10%;
    left: -10%;
    font-size: 250px;
    font-weight: 800;
    color: #F0F0F0;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

.story-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #A38C6A;
    margin-bottom: 20px;
    font-weight: 600;
}

.story-title {
    position: relative;
    z-index: 1;
    font-size: 46px;
    font-weight: 300;
    color: #111;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.story-text {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.lead-text {
    font-size: 20px;
    font-weight: 400;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.5;
    border-left: 2px solid #A38C6A;
    padding-left: 20px;
}

.story-text p:not(.lead-text) {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 15px;
}

.story-signature {
    font-family: 'Italianno', cursive;
    font-size: 42px;
    color: #A38C6A;
    margin-top: 30px;
    padding-left: 20px;
    line-height: 1;
    transform: rotate(-3deg);
    opacity: 0.8;
}

/* =========================================
   НОВЫЙ БЛОК: ШИРОКАЯ ПАНЕЛЬ СТАТИСТИКИ
   ========================================= */
.story-metrics-bar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px; /* Большой отступ от основного контента */
    padding-top: 50px;
    border-top: 1px solid rgba(163, 140, 106, 0.2); /* Тонкая золотистая линия на всю ширину */
    animation: fadeUp 1.5s ease forwards;
}

.metric-item {
    text-align: center; /* Центрируем текст в каждой колонке */
    flex: 1;
}

.metric-number {
    display: block;
    font-size: 42px; /* Сделали цифры крупнее и выразительнее */
    font-weight: 300;
    color: #111;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.metric-number span {
    color: #A38C6A;
    font-weight: 400;
}

.metric-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
    font-weight: 500;
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 1024px) {
    .regal-brand-story { padding: 100px 0; }
    .story-grid { gap: 40px; align-items: start; }
    .bg-year-story { font-size: 180px; top: -5%; }
    .story-title { font-size: 36px; }
    .premium-badge { transform: scale(0.8); bottom: -20px; right: -20px; }
    .vertical-accent { left: -25px; }

    .metric-number { font-size: 36px; }
}

@media (max-width: 768px) {
    .regal-brand-story { padding: 70px 0; }
    .story-grid { grid-template-columns: 1fr; gap: 60px; }
    .story-visual { order: 2; margin: 0 20px; }
    .story-content { order: 1; padding-left: 0; }

    .bg-year-story { font-size: 120px; top: -10px; left: 0; opacity: 0.5; }
    .story-title { font-size: 32px; margin-bottom: 30px; }
    .vertical-accent { display: none; }
    .visual-backdrop { top: -15px; left: -15px; }
    .premium-badge { bottom: -30px; right: -10px; }
    .story-signature { font-size: 36px; padding-left: 15px; margin-bottom: 20px; }

    /* Перестраиваем статистику на телефоне в сетку 2x2 */
    .story-metrics-bar {
        margin-top: 60px;
        padding-top: 40px;
        flex-wrap: wrap;
        gap: 40px 20px;
    }

    .metric-item {
        flex: 0 0 45%; /* Два элемента в ряд на телефоне */
    }

    .metric-number { font-size: 32px; }
    .metric-label { font-size: 10px; }
}

/* ================== БЛОК КАТАЛОГА ================== */
.regal-catalog {
    padding: 100px 0;
    background-color: var(--bg-site);
}

/* 85% ширина для ПК */
@media (min-width: 1025px) {
    .catalog-container {
        width: 85%;
        max-width: 1600px;
        margin: 0 auto;
    }
}

.section-header.center {
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}
.section-header.center .story-eyebrow { justify-content: center; }
.bg-text-header {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-family: var(--font-accent); font-size: 150px; font-weight: 400; line-height: 1;
    color: var(--text-main); opacity: 0.03; z-index: 0; pointer-events: none; white-space: nowrap;
}
.section-title {
    position: relative; z-index: 1; font-family: var(--font-accent); font-size: 46px; font-weight: 400; color: var(--text-main);
}

/* --- Сетка --- */
.catalog-bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.span-4 { grid-column: span 4; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* --- Карточка --- */
.catalog-card {
    position: relative; display: flex; flex-direction: column;
    height: 420px; border-radius: 20px; overflow: hidden;
    text-decoration: none !important; background: #e0dcd5;
}

.card-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: background-image 0.5s ease-in-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.catalog-card:hover .card-image { transform: scale(1.05); }

.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%); z-index: 1;
}

.card-title {
    position: absolute; top: 30px; left: 30px; z-index: 2;
    font-size: 28px; font-weight: 300; color: #fff; line-height: 1.1;
    text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* --- Белая плашка внизу --- */
.card-info {
    position: absolute; bottom: 0; background: #fff; padding: 25px; z-index: 2;
}
.card-info.bottom-right { right: 0; width: 60%; border-top-left-radius: 20px; }
.card-info.bottom-left { left: 0; width: 85%; border-top-right-radius: 20px; }

/* --- Динамическое раскрытие --- */
.info-expand-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-content {
    overflow: hidden; opacity: 0;
    transition: opacity 0.5s ease;
}
.catalog-card:hover .info-expand-wrapper { grid-template-rows: 1fr; }
.catalog-card:hover .info-content { opacity: 1; padding-bottom: 20px; }

.card-info p {
    font-size: 12px; color: rgba(44, 42, 40, 0.7); line-height: 1.5; margin: 0;
}

/* --- Интерактивная Палитра --- */
.catalog-palette { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.palette-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.swatch {
    width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
    border: 2px solid #fff; box-shadow: 0 0 0 1px #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-size: cover; background-position: center;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active { box-shadow: 0 0 0 2px var(--accent); transform: scale(1.1); }

/* --- КНОПКА И СТРЕЛКА --- */
.card-btn {
    display: inline-flex; align-items: center; justify-content: space-between;
    padding: 10px 15px 10px 20px; background: #F4F3F0; border-radius: 100px;
    font-size: 10px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px;
    color: var(--text-main); width: fit-content; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
}
.card-btn .arrow {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; background: #fff; border-radius: 50%; margin-left: 15px;
    color: var(--text-main); /* Фиксируем цвет, чтобы стрелка не пропадала */
    transition: all 0.3s ease;
}

/* Эффекты при наведении на карточку */
.catalog-card:hover .card-btn { 
    background: var(--accent); 
    color: #fff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); /* Тень для объема */
}
.catalog-card:hover .card-btn .arrow {
    color: var(--accent); /* Стрелка становится акцентной на белом фоне круга */
    transform: translateX(4px); /* Стрелка элегантно едет вправо */
}

/* Эффект нажатой кнопки при клике на саму карточку */
.catalog-card:active .card-btn {
    transform: scale(0.94); /* Кнопка визуально "продавливается" */
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.2);
}

/* --- Футер секции --- */
.catalog-footer-link {
    text-align: center; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 30px; margin-top: 20px;
}
.catalog-footer-link a {
    display: inline-flex; align-items: center; text-decoration: none !important;
    font-family: var(--font-accent); font-size: 20px; color: var(--text-main) !important; transition: color 0.3s ease;
}
.catalog-footer-link a span { font-family: var(--font-main); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(44, 42, 40, 0.4); margin: 0 15px; }
.catalog-footer-link a .plus-icon { font-size: 24px; font-weight: 300; color: var(--accent); transition: transform 0.3s ease; }
.catalog-footer-link a:hover { color: var(--accent) !important; }
.catalog-footer-link a:hover .plus-icon { transform: rotate(90deg); }

/* ================== АДАПТАЦИЯ (МОБИЛЬНЫЕ - МЕНЕЕ ГРОМОЗДКО) ================== */
@media (max-width: 992px) {
    .span-4, .span-2, .span-3 { grid-column: span 3; }
    .catalog-card { height: auto; min-height: 380px; }

    .info-expand-wrapper { grid-template-rows: 1fr; }
    .info-content { opacity: 1; padding-bottom: 15px; overflow: visible; }

    .card-info.bottom-right, .card-info.bottom-left {
        width: 100%; position: relative; border-radius: 0; padding: 15px;
        flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
    }
    .card-image { height: 250px; position: relative; }
    .catalog-card:hover .card-image { transform: none; }
}

@media (max-width: 768px) {
    .regal-catalog { padding: 50px 0; } /* Меньше отступы секции */
    .catalog-bento-grid { gap: 10px; } /* Меньше расстояние между карточками */
    .bg-text-header { font-size: 60px; }
    .section-title { font-size: 32px; margin-bottom: 20px; }

    .span-4, .span-2, .span-3 { grid-column: span 6; }

    .catalog-card { border-radius: 12px; } /* Аккуратное скругление для телефона */
    .card-title { font-size: 22px; top: 15px; left: 15px; }

    .catalog-footer-link a { font-size: 16px; flex-wrap: wrap; justify-content: center; }
    .catalog-footer-link a span { margin: 5px 10px; }
}
/* ================== РАСКРЫВАЮЩИЙСЯ СПИСОК (КНОПКА) ================== */
.reveal-wrapper {
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    margin-top: 20px;
}

.elegant-reveal-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-accent);
    font-size: 20px;
    color: var(--text-main);
    transition: color 0.3s ease;
    padding: 10px;
}
.elegant-reveal-btn:hover {
    color: var(--accent);
}

.reveal-count {
    font-family: var(--font-main);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(44, 42, 40, 0.4);
    margin: 0 15px;
}

/* Иконка Плюс/Крестик */
.reveal-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
}
.reveal-icon span {
    position: absolute;
    background-color: currentColor;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal-icon span:first-child { width: 100%; height: 1.5px; } /* Горизонтальная линия */
.reveal-icon span:last-child { height: 100%; width: 1.5px; }  /* Вертикальная линия */

/* Анимация крестика при открытии */
.elegant-reveal-btn.is-active .reveal-icon span:first-child { transform: rotate(135deg); }
.elegant-reveal-btn.is-active .reveal-icon span:last-child { transform: rotate(135deg); }

/* ================== СКРЫТЫЙ СПИСОК (АНИМАЦИЯ И СЕТКА) ================== */
.hidden-catalog-list {
    display: grid;
    grid-template-rows: 0fr; /* Магия CSS для плавного раскрытия высоты */
    transition: grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hidden-catalog-list.is-open {
    grid-template-rows: 1fr;
}

.hidden-catalog-content {
    overflow: hidden; /* Важно для скрытия контента */
}

/* Сетка пунктов (2 колонки на ПК) */
.index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    padding-top: 10px; /* Отступ появляется при раскрытии */
    padding-bottom: 40px;
}

/* Оформление каждого пункта */
.index-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: pointer;
}
.index-item:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.index-num {
    font-family: var(--font-main);
    font-size: 13px;
    color: rgba(44, 42, 40, 0.4);
    width: 35px; /* Фиксированная ширина для ровного выравнивания */
}

.index-name {
    font-size: 20px;
    font-weight: 300;
    flex-grow: 1; /* Занимает все свободное место */
}

/* Элегантная стрелочка */
.index-item svg {
    color: var(--accent);
    opacity: 0; /* Скрыта по умолчанию */
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.index-item:hover svg {
    opacity: 1;
    transform: translateX(0); /* Выезжает вправо при наведении */
}

/* ================== АДАПТАЦИЯ СПИСКА (МОБИЛЬНЫЕ) ================== */
@media (max-width: 992px) {
    .index-grid { column-gap: 40px; }
    .index-name { font-size: 18px; }
}

@media (max-width: 768px) {
    /* На телефоне кнопка ломается на 2 строки */
    .elegant-reveal-btn { flex-wrap: wrap; justify-content: center; font-size: 18px; }
    .reveal-count { margin: 8px 10px; width: 100%; }

    /* Список в 1 колонку */
    .index-grid { 
        grid-template-columns: 1fr; 
        padding-bottom: 20px;
    }
    .index-item { padding: 18px 0; }
    .index-name { font-size: 17px; }

    /* На телефонах стрелка видна всегда, чтобы было понятно, что это ссылка */
    .index-item svg { opacity: 0.5; transform: translateX(0); width: 16px; height: 16px; }
}

/* ================== БЛОК МЕТОДОЛОГИЯ (4 ШАГА) ================== */
.regal-methodology {
    padding: 100px 0;
    background-color: #ffffff; /* Белый фон, чтобы визуально отделить от бежевого каталога */
}

/* Сетка для шагов */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

/* Отдельный шаг */
.step-item {
    position: relative;
    padding-right: 15px;
    transition: transform 0.4s ease;
    cursor: default;
}

/* Эффект легкого поднятия всего шага при наведении */
.step-item:hover {
    transform: translateY(-5px);
}

/* Верхняя часть с цифрой и линией */
.step-top {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

/* Цифра */
.step-num {
    font-family: var(--font-accent);
    font-size: 50px;
    line-height: 1;
    color: rgba(44, 42, 40, 0.15); /* Полупрозрачный серый по умолчанию */
    transition: color 0.4s ease, transform 0.4s ease;
}

/* Линия соединяющая шаги */
.step-line {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(44, 42, 40, 0.1);
    margin-left: 20px;
    position: relative;
    overflow: hidden;
}
.step-line.hidden {
    display: none; /* Прячем линию у последнего элемента */
}

/* Анимированный прогресс-бар внутри линии */
.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transition: left 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Заголовок шага */
.step-title {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

/* Описание шага */
.step-desc {
    font-size: 13px;
    color: rgba(44, 42, 40, 0.6);
    line-height: 1.6;
}

/* === ЭФФЕКТЫ ПРИ НАВЕДЕНИИ === */
.step-item:hover .step-num {
    color: var(--accent); /* Цифра становится золотой */
    transform: scale(1.1); /* Слегка увеличивается */
}
.step-item:hover .step-title {
    color: var(--accent);
}
.step-item:hover .step-line::after {
    left: 0; /* Линия "прокрашивается" золотом слева направо */
}

/* ================== АДАПТАЦИЯ (МОБИЛЬНЫЕ) ================== */
@media (max-width: 1024px) {
    /* Планшеты: 2 в ряд */
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    /* Прячем линии, так как сетка ломается */
    .step-line { display: none; }
    .step-num { color: var(--accent); font-size: 40px; } /* На планшетах цифры сразу акцентные */
    .step-item:hover { transform: none; }
}

@media (max-width: 768px) {
    .regal-methodology { padding: 60px 0; overflow: hidden; }

    /* Делаем flex-контейнер со скроллом */
    .steps-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        margin-top: 40px;
        padding-bottom: 20px;
        /* Прячем скроллбар */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .steps-grid::-webkit-scrollbar { display: none; }

    .step-item {
        /* Карточка занимает 75% ширины экрана, оставляя 25% для следующей */
        flex: 0 0 75vw;
        scroll-snap-align: start;
        background: #F9F8F6;
        padding: 25px;
        border-radius: 12px;
    }

    .step-line { display: none; }
    .step-top { margin-bottom: 15px; }
    .step-num { font-size: 36px; color: var(--accent); }
}


/* Общая кнопка (если еще нет в проекте) */
.btn-primary {
    display: inline-block; padding: 15px 35px;
    background: var(--text-main); color: #fff; text-decoration: none;
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 100px; transition: 0.3s;
}
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: #fff; color: var(--accent); }

/* ================= ОБЩИЕ ЭЛЕМЕНТЫ ПРЕМИУМ-БЛОКОВ ================= */
.premium-block { padding: 120px 0; background-color: #fff; position: relative; overflow: hidden; }
.premium-desc { font-size: 16px; line-height: 1.7; color: rgba(44,42,40,0.7); margin-bottom: 35px; }
.premium-desc.light { color: rgba(255,255,255,0.7); }

/* Кнопка в виде подчеркнутой линии (очень популярно в luxury) */
.btn-line {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--accent);
    transition: all 0.3s ease;
}
.btn-line:hover { color: var(--accent); border-bottom-color: transparent; }

/* ================= 1. ШОУРУМ (АТМОСФЕРА) ================= */
.showroom-editorial {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 40px;
}
.showroom-image-main {
    width: 60%;
    position: relative;
    z-index: 1;
}
.showroom-image-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.showroom-content-box {
    width: 45%;
    background: #F9F8F6; /* Фирменный бежевый */
    padding: 60px;
    position: relative;
    z-index: 2;
    margin-left: -10%; /* Наложение текста на картинку */
    margin-top: 100px; /* Сдвиг вниз для асимметрии */
}

/* ================= 2. ДЛЯ ДИЗАЙНЕРОВ (B2B) ================= */
.regal-b2b-premium {
    background-color: #141414; /* Глубокий черный, не серый */
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.b2b-editorial-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}
.b2b-left {
    width: 40%;
    position: sticky;
    top: 100px; /* Эффект залипания заголовка при скролле */
}
.b2b-right { width: 50%; }

/* Премиальный список с линиями */
.premium-list { list-style: none; padding: 0; margin: 0; }
.premium-list li {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.4s ease;
}
.premium-list li:hover { border-bottom-color: var(--accent); }
.list-num {
    font-family: var(--font-accent);
    font-size: 24px;
    color: var(--accent);
    margin-right: 30px;
    line-height: 1.2;
}
.list-text h4 {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 400;
}
.list-text p { margin: 0; color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.6; }



/* ================= АДАПТАЦИЯ (МОБИЛЬНЫЕ) ================= */
@media (max-width: 992px) {
    .showroom-editorial, .b2b-editorial-wrapper, .portfolio-editorial-grid {
        flex-direction: column;
    }
    .showroom-image-main, .showroom-content-box, .b2b-left, .b2b-right, .port-card.large, .port-card.small {
        width: 100%;
        margin-left: 0;
    }
    .showroom-content-box { margin-top: -30px; padding: 40px 25px; } /* Блок наезжает снизу на мобильных */
    .b2b-left { position: relative; top: 0; margin-bottom: 40px; }
    .offset-top { margin-top: 40px; }
    .premium-block, .regal-b2b-premium, .regal-portfolio-premium { padding: 80px 0; }
}

@media (max-width: 768px) {
    /* Не забываем про отступы на телефонах, которые мы задали ранее */
    .showroom-content-box { padding: 30px 20px; }
    .list-num { font-size: 20px; margin-right: 20px; }
    .list-text h4 { font-size: 18px; }
    .port-title { font-size: 20px; }
    .bg-text-header { font-size: 60px; /* Уменьшаем фоновый текст, чтобы влезал */ }
}

/* ================= 4. FAQ ================= */
.regal-faq { padding: 100px 0; background: #fff; }
.faq-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.faq-text p { font-size: 15px; color: rgba(44,42,40,0.7); margin-top: 20px; }

.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; padding: 25px 0;
    font-size: 18px; color: var(--text-main); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { font-size: 24px; font-weight: 300; color: var(--accent); transition: 0.3s; }
.faq-answer {
    display: grid; grid-template-rows: 0fr; transition: 0.4s;
}
.faq-answer p { overflow: hidden; padding-bottom: 0; margin: 0; font-size: 14px; color: rgba(44,42,40,0.7); line-height: 1.6; }

.faq-item.active .faq-answer { grid-template-rows: 1fr; }
.faq-item.active .faq-answer p { padding-bottom: 25px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

@media (max-width: 768px) {
    .faq-wrapper { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    /* Обеспечиваем отступы у всех стандартных контейнеров */
    .container, .catalog-container {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }

    /* Отступы для шоурума, так как он был без .container */
    .showroom-wrapper {
        flex-direction: column;
    }
    .showroom-content {
        padding: 40px 20px; /* 20px по бокам */
    }

    /* Отступы для методологии (слайдера), чтобы карточки не прилипали к левому краю */
    .steps-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* ================= АДАПТАЦИЯ (МОБИЛЬНЫЕ) ================= */
@media (max-width: 992px) {
    .factory-wrapper { flex-direction: column; }
    .factory-stats { width: 100%; grid-template-columns: repeat(2, 1fr); grid-template-rows: 250px; }
}

@media (max-width: 768px) {
    .regal-factory { padding: 60px 0; }
    .factory-stats { grid-template-columns: 1fr; grid-template-rows: repeat(2, 200px); }
}





/* ================= 2. ЖУРНАЛ ИНТЕРЬЕРОВ (ИНТЕРАКТИВНЫЙ АККОРДЕОН) ================= */
.regal-portfolio-pro {
    padding: 100px 0;
    background-color: var(--bg-site);
}

.portfolio-accordion-wrap {
    display: flex;
    width: 100%;
    height: 600px; /* Высота блока на десктопе */
    overflow: hidden;
    margin-top: 50px;
}

.port-slide {
    flex: 1; /* По умолчанию все занимают равное место */
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Плавное расширение */
}
/* Фишка: при наведении слайд расширяется, остальные сужаются */
.portfolio-accordion-wrap:hover .port-slide { flex: 1; }
.portfolio-accordion-wrap .port-slide:hover { flex: 4; }

.port-slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}
.port-slide:hover .port-slide-bg {
    transform: scale(1.05); /* Легкий зум при наведении */
}
/* Затемнение для читаемости текста */
.port-slide::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

.port-slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    opacity: 0; /* Прячем текст по умолчанию */
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    white-space: nowrap;
}
/* Показываем текст только у активного слайда */
.port-slide:hover .port-slide-content {
    opacity: 1;
    transform: translateY(0);
}

.port-slide-content h3 {
    color: #fff; font-size: 32px; font-weight: 300; margin: 10px 0 0 0;
}


/* ================= 3. ИДЕАЛЬНАЯ АДАПТАЦИЯ (МОБИЛЬНЫЕ УСТРОЙСТВА) ================= */
@media (max-width: 992px) {
    .factory-grid-pro { grid-template-columns: 1fr; }
    .f-pro-item { padding: 40px 30px; }
    .ticker-track { font-size: 80px; }
}

@media (max-width: 768px) {
    /* Отступы по краям экрана для текста */
    .factory-header-pro { padding: 0 20px; }

    /* Завод: корректируем сетку */
    .regal-factory-pro { padding: 60px 0; }
    .f-pro-item { padding: 30px 20px; border-left: none; border-right: none; }
    .factory-grid-pro { border-left: none; }
    .f-pro-num { margin-bottom: 15px; }
    .ticker-track { font-size: 50px; }

    /* ПОРТФОЛИО: ПРЕВРАЩАЕМ АККОРДЕОН В СЛАЙДЕР С ВЫГЛЯДЫВАНИЕМ НА 25% */
    .portfolio-accordion-wrap {
        display: flex;
        height: 450px; /* Высота карточки на телефоне */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 20px 20px 20px; /* Отступы слева и справа */
        /* Прячем системный скроллбар */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .portfolio-accordion-wrap::-webkit-scrollbar { display: none; }

    /* Отключаем hover-эффекты аккордеона на мобильных */
    .portfolio-accordion-wrap:hover .port-slide { flex: 0 0 75vw; }
    .portfolio-accordion-wrap .port-slide:hover { flex: 0 0 75vw; }

    .port-slide {
        /* Фишка: Карточка занимает 75% ширины экрана, следующая торчит на 25% */
        flex: 0 0 75vw !important; 
        scroll-snap-align: start;
        border-radius: 12px;
        border: none;
    }

    /* На мобильных текст показываем всегда (так как нет мышки для наведения) */
    .port-slide-content {
        opacity: 1;
        transform: translateY(0);
        left: 20px; right: 20px; bottom: 20px;
        white-space: normal; /* Разрешаем перенос строк */
    }
    .port-slide-content h3 {
        font-size: 22px;
        line-height: 1.2;
    }
}



/* ================= КОММЕРЧЕСКИЕ ОБЪЕКТЫ (СВЕТЛЫЙ СТИЛЬ) ================= */
.regal-factory-light {
    padding: 120px 0;
    background-color: #FAFAFA; /* Очень светлый, почти белый фон */
    overflow: hidden;
}

.f-light-top {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* --- ЛЕВАЯ ЧАСТЬ (ФОТО) --- */
.f-light-image-wrap {
    width: 45%;
    position: relative;
    padding-left: 50px; /* Место для вертикального текста */
}

.f-light-vertical-text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: left top;
    font-size: 10px;
    letter-spacing: 3px;
    color: #b3b3b3;
    text-transform: uppercase;
    white-space: nowrap;
}

.f-light-img-box {
    position: relative;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08); /* Мягкая тень как на референсе */
}

.f-light-img-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Круглый штамп */
.f-light-stamp {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rotating-text {
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
    position: absolute;
}
.rotating-text text {
    font-size: 11px;
    fill: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.stamp-center {
    font-family: var(--font-accent);
    font-size: 20px;
    color: var(--accent);
}
@keyframes rotateText { 100% { transform: rotate(360deg); } }


/* --- ПРАВАЯ ЧАСТЬ (ТЕКСТ) --- */
.f-light-content {
    width: 55%;
    position: relative;
}

.f-light-bg-text {
    position: absolute;
    top: -50px;
    left: 0;
    font-size: 180px;
    font-weight: 300;
    color: rgba(0,0,0,0.03); /* Очень бледный текст на фоне */
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.f-light-content > * {
    position: relative;
    z-index: 1;
}

.f-light-quote {
    border-left: 2px solid var(--accent); /* Линия как на макете */
    padding-left: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 35px 0;
}

.f-light-desc p {
    font-size: 14px;
    line-height: 1.7;
    color: #888; /* Светло-серый текст */
    margin-bottom: 20px;
}


/* --- НИЖНЯЯ ЧАСТЬ (СТАТИСТИКА) --- */
.f-light-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #EBEBEB; /* Тонкая линия разделитель */
}

.f-stat-item {
    text-align: center;
    flex: 1;
}

.f-stat-num {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 10px;
}

.f-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    line-height: 1.5;
}


/* ================= АДАПТАЦИЯ (МОБИЛЬНЫЕ) ================= */
@media (max-width: 992px) {
    .f-light-top { flex-direction: column; gap: 60px; }
    .f-light-image-wrap, .f-light-content { width: 100%; }
    .f-light-image-wrap { padding-left: 30px; padding-right: 30px; } /* Сдвигаем на планшете */
    .f-light-bg-text { font-size: 120px; }
}

@media (max-width: 768px) {
    .regal-factory-light { padding: 60px 0; }

    /* Сохраняем отступы справа и слева (по 20px), как вы просили ранее */
    .f-light-image-wrap { padding-left: 20px; padding-right: 20px; }
    .f-light-content { padding-left: 20px; padding-right: 20px; }

    /* Прячем вертикальный текст на телефоне, чтобы не мешал */
    .f-light-vertical-text { display: none; }

    /* Корректируем штамп, чтобы не вылезал за экран */
    .f-light-stamp { 
        width: 90px; height: 90px; 
        bottom: -15px; right: 5px; 
    }
    .rotating-text text { font-size: 14px; } /* Чуть крупнее, тк круг меньше */
    .stamp-center { font-size: 16px; }

    .f-light-bg-text { top: -20px; font-size: 80px; }

    .f-light-quote { padding-left: 15px; font-size: 14px; }

    /* Статистика на телефоне в 2 колонки (плиткой) */
    .f-light-stats {
        flex-wrap: wrap;
        gap: 40px 0;
        margin-top: 50px;
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .f-stat-item {
        flex: 0 0 50%; /* По 2 элемента в ряд */
    }
    .f-stat-num { font-size: 32px; }
}

/* ================= ГЛОБАЛЬНЫЕ НАСТРОЙКИ ФУТЕРА ================= */
.regal-footer-2026 {
    background-color: #0A0A0A; /* Ультра-черный */
    color: #ffffff;
    padding-top: 100px;
    position: relative;
    overflow: hidden; /* Строго обрезает всё, что вылезает за края */
    font-family: 'Inter', sans-serif; /* Замените на свой шрифт */
}

.relative-z {
    position: relative;
    z-index: 5;
}

/* ================= СТАТУС БАР ================= */
.footer-status-bar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
}
.status-item { display: flex; flex-direction: column; gap: 8px; }
.f-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: #666; }
.f-value { font-size: 14px; color: #ccc; display: flex; align-items: center; gap: 8px; font-weight: 300;}

/* ================= СЕТКА (КОНТАКТЫ И НАВИГАЦИЯ) ================= */
.footer-main-grid { 
    display: grid; 
    grid-template-columns: 1fr auto; /* Левая колонка тянется, правая по контенту */
    gap: 50px; 
    margin-bottom: 80px;
    align-items: start;
}

.footer-massive-contact { display: flex; flex-direction: column; gap: 12px; }
.f-sub { color: #C1A683; /* Золотой/Бронзовый акцент */ font-size: 14px; margin-bottom: 15px; letter-spacing: 1px;}
.magnetic-link {
    font-size: clamp(32px, 4vw, 70px); /* Не меньше 32px, не больше 70px */
    font-weight: 300; 
    line-height: 1.1; 
    color: #ffffff;
    text-decoration: none; 
    letter-spacing: -1px;
    transition: opacity 0.4s ease, color 0.4s ease;
    white-space: nowrap;
}
.magnetic-link:hover { color: #C1A683; opacity: 0.8; }

.footer-clean-nav { display: flex; gap: clamp(30px, 6vw, 100px); }
.nav-col { display: flex; flex-direction: column; gap: 16px; }
.nav-col span { font-size: 10px; text-transform: uppercase; color: #555; letter-spacing: 2px; margin-bottom: 8px; }
.nav-col a { color: #999; text-decoration: none; font-size: 15px; transition: color 0.3s; font-weight: 300;}
.nav-col a:hover { color: #ffffff; }

/* ================= НИЖНЯЯ ПАНЕЛЬ КОПИРАЙТА ================= */
.footer-ultra-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px; color: #666;
}
.legal a { color: #666; text-decoration: none; margin-left: 30px; transition: color 0.3s; }
.legal a:hover { color: #ffffff; }

/* ================= ГИГАНТСКИЙ ТЕКСТ (ФОН) ================= */
.footer-giant-text-wrapper {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}
.footer-giant-text {
    font-family: serif; /* Замените на ваш акцентный шрифт, если есть */
    font-size: clamp(100px, 18vw, 350px);
    line-height: 0.75;
    color: rgba(255, 255, 255, 0.02); /* Почти невидимый */
    white-space: nowrap;
    user-select: none;
}

/* ================= ВИДЖЕТ 2026 ================= */
.regal-widget-container {
    position: fixed;
    bottom: 40px; 
    right: 40px; 
    z-index: 99999; 
    font-family: 'Inter', sans-serif;
}

.regal-widget-trigger {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff; padding: 14px 28px; border-radius: 40px;
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.regal-widget-trigger:hover { transform: translateY(-5px); background: #111; border-color: #C1A683; }
.regal-widget-trigger.hidden { opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.9); }
.regal-widget-trigger svg { width: 22px; height: 22px; }

.widget-pulse {
    width: 10px; height: 10px; background: #C1A683;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(193, 166, 131, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(193, 166, 131, 0); } 100% { box-shadow: 0 0 0 0 rgba(193, 166, 131, 0); } }

/* Панель */
.regal-widget-panel {
    position: absolute;
    bottom: 70px; right: 0; width: 360px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; pointer-events: none;
}
.regal-widget-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.widget-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.widget-ai-status { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; color: #111; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.green { background: #10B981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.widget-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; transition: color 0.3s; padding: 0; line-height: 1;}
.widget-close:hover { color: #111; }

.widget-body { padding: 24px; }
.widget-body h3 { font-size: 22px; font-weight: 400; margin: 0 0 8px 0; color: #111; }
.widget-body p { font-size: 14px; color: #666; margin-bottom: 24px; line-height: 1.5; }

.w-action-btn {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9); border-radius: 16px;
    text-decoration: none; color: #111; margin-bottom: 12px;
    transition: all 0.3s ease;
}
.w-action-btn:last-child { margin-bottom: 0; }
.w-action-btn:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.w-whatsapp:hover { border-color: #25D366; }
.w-icon { font-size: 26px; }
.w-text strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 2px;}
.w-text small { font-size: 12px; color: #888; }

/* ================= АДАПТАЦИЯ (ПЛАНШЕТЫ) ================= */
@media (max-width: 1024px) {
    .footer-main-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-clean-nav { justify-content: flex-start; }
    .magnetic-link { font-size: clamp(32px, 5vw, 50px); }
}

/* ================= АДАПТАЦИЯ (МОБИЛЬНЫЕ ТЕЛЕФОНЫ) ================= */
@media (max-width: 768px) {
    /* Футер */
    .regal-footer-2026 { padding-top: 60px; }
    .footer-status-bar { flex-direction: column; gap: 20px; padding-bottom: 30px; margin-bottom: 40px; }
    .footer-clean-nav { flex-wrap: wrap; gap: 30px; }
    .nav-col { width: calc(50% - 15px); } /* По 2 колонки навигации в ряд */
    .footer-ultra-bottom { flex-direction: column; gap: 15px; align-items: flex-start; padding: 20px 0; }
    .legal a { margin-left: 0; margin-right: 20px; display: inline-block; }

    /* Виджет */
    .regal-widget-container { bottom: 20px; right: 20px; }
    /* На телефоне прячем текст кнопки, оставляем кружок с иконкой */
    .widget-trigger-text { display: none; }
    .regal-widget-trigger { padding: 16px; border-radius: 50%; }
    .regal-widget-panel { 
        bottom: 75px; 
        right: 0; 
        width: calc(100vw - 40px); /* На всю ширину экрана минус отступы */
        background: #ffffff; /* Убираем стекломорфизм на мобилках для скорости */
    }
}

/* ================= АДАПТАЦИЯ (САМЫЕ МАЛЕНЬКИЕ ЭКРАНЫ) ================= */
@media (max-width: 480px) {
    .magnetic-link { font-size: 28px; white-space: normal; word-break: break-all; } /* Разрешаем перенос длинной почты */
    .nav-col { width: 100%; } /* Навигация в 1 столбик */
}



/* =========================================
   ГЛАВНЫЙ БЛОК (ОСТРОВ)
   ========================================= */
.hero-container {
    padding: 15px;
    background-color: var(--page-bg);
}

.hero-block {
    position: relative;
    width: 100%;
    height: 300px; 
    margin-top: 10px; 

    /* ЭФФЕКТ МАТОВОГО СТЕКЛА (БЛЮР) */
    background: rgba(235, 229, 217, 0.55); /* Полупрозрачный теплый оттенок */
    backdrop-filter: blur(15px); /* Размытие фона под блоком */
    -webkit-backdrop-filter: blur(15px); /* Для поддержки Safari */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Тонкая светлая граница для объема */
    box-shadow: 0 20px 40px rgba(45, 43, 42, 0.05); /* Мягкая тень */

    border-radius: var(--hero-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* =========================================
   ВЕРХНИЙ ВЫРЕЗ
   ========================================= */
.hero-notch-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--top-width);
    max-width: calc(100% - 20px);
    height: var(--top-height);
    background-color: var(--page-bg);
    border-bottom-left-radius: var(--top-radius);
    border-bottom-right-radius: var(--top-radius);
    z-index: 10;
}
.hero-notch-top::before {
    content: ""; position: absolute; top: 0; 
    left: calc(-1 * var(--top-radius));
    width: var(--top-radius); height: var(--top-radius);
    background: radial-gradient(circle at 0 100%, transparent var(--top-radius), var(--page-bg) calc(var(--top-radius) + 0.5px));
}
.hero-notch-top::after {
    content: ""; position: absolute; top: 0; 
    right: calc(-1 * var(--top-radius));
    width: var(--top-radius); height: var(--top-radius);
    background: radial-gradient(circle at 100% 100%, transparent var(--top-radius), var(--page-bg) calc(var(--top-radius) + 0.5px));
}

/* =========================================
   НИЖНИЙ ВЫРЕЗ И СТРЕЛКА
   ========================================= */
.hero-notch-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--bot-width);
    height: 30px;
    background-color: var(--page-bg);
    border-top-left-radius: var(--bot-radius);
    border-top-right-radius: var(--bot-radius);
    z-index: 10;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    padding-bottom: 8px;
}
.hero-notch-bottom::before {
    content: ""; position: absolute; bottom: 0; 
    left: calc(-1 * var(--bot-radius));
    width: var(--bot-radius); height: var(--bot-radius);
    background: radial-gradient(circle at 0 0, transparent var(--bot-radius), var(--page-bg) calc(var(--bot-radius) + 0.5px));
}
.hero-notch-bottom::after {
    content: ""; position: absolute; bottom: 0; 
    right: calc(-1 * var(--bot-radius));
    width: var(--bot-radius); height: var(--bot-radius);
    background: radial-gradient(circle at 100% 0, transparent var(--bot-radius), var(--page-bg) calc(var(--bot-radius) + 0.5px));
}

.hero-arrow {
    font-size: 16px;
    color: var(--accent);
    font-weight: 300;
    line-height: 1;
    animation: bounceScroll 2s infinite;
}
@keyframes bounceScroll {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* =========================================================
   1. СЕТКА ТОВАРОВ
========================================================= */
ul.products.custom-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
ul.products.custom-products-grid::before,
ul.products.custom-products-grid::after {
    display: none !important; 
}

/* =========================================================
   2. КАРТОЧКА ТОВАРА (Без фона, крутая тень при наведении)
========================================================= */
ul.products.custom-products-grid li.compact-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    text-align: center;
    background: transparent !important; /* Фона нет */
    padding: 15px; 
    border-radius: 20px;
    box-shadow: none !important; /* Без тени в спокойном состоянии */
    border: none !important;
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
}

ul.products.custom-products-grid li.compact-card:hover {
    background: #fff !important; /* Появляется белый фон */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important; /* Парящая тень */
    transform: translateY(-5px);
}

/* =========================================================
   3. ИЗОБРАЖЕНИЕ И ГРАДИЕНТ
========================================================= */
.custom-media-box {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px; /* Миниатюры ближе к фото */
    width: 100% !important;
    display: flex; 
    background: transparent !important;
}

/* Градиент снизу для читаемости текста */
.custom-media-box::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Убирает микрозазоры */
    left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.main-image-wrapper {
    display: flex;
    width: 100% !important;
    height: 100% !important;
}
.main-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Заполняет всё без искажений и пустых полос */
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   4. НАЗВАНИЕ ТОВАРА НА ФОТОГРАФИИ
========================================================= */
.custom-media-box .custom-title-link {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 2;
    text-align: left;
    text-decoration: none;
    outline: none;
}
.custom-media-box .custom-product-title {
    color: #fff !important;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.custom-title-box { display: none !important; }

/* =========================================================
   5. ИКОНКИ В ПРАВОМ ВЕРХНЕМ УГЛУ (Избранное + Квиз)
========================================================= */
.top-right-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column; /* Выстраиваем в столбик */
    gap: 8px; /* Расстояние между кнопками */
    z-index: 10;
}

.action-icon, .wishlist-btn {
    position: static !important; /* Сбрасываем старое позиционирование */
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
    width: 30px !important; /* Уменьшенный размер */
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
}
.action-icon:hover, .wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #bca38f !important;
    transform: scale(1.05);
}
.action-icon svg, .wishlist-btn svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s;
}
.wishlist-btn.in-wishlist { color: #bca38f !important; }
.wishlist-btn.in-wishlist svg { fill: #bca38f !important; }

/* =========================================================
   6. МИНИАТЮРЫ И СКРЫТИЕ ЛИШНЕЙ ЦЕНЫ
========================================================= */
.current-price-display { display: none !important; } /* Скрываем цену под миниатюрами */

.custom-mini-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.mini-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.mini-thumb.active, .mini-thumb:hover {
    border-color: #bca38f;
    transform: translateY(-2px);
}

/* =========================================================
   7. КАЛЬКУЛЯТОР
========================================================= */
.custom-calc-block {
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
}
.calc-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.qty-btn {
    background: transparent;
    border: 1px solid #eaeaea;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { border-color: #bca38f; color: #bca38f; }
.qty-input {
    width: 40px !important;
    border: none !important;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #222;
    background: transparent;
    outline: none;
}
.calc-unit { font-size: 13px; color: #999; }
.calc-total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #f5f5f5;
    padding-top: 10px;
}
.calc-total-display .total-val {
    font-size: 14px;
    color: #111;
    font-weight: 600;
}

/* =========================================================
   8. КНОПКА "В КОРЗИНУ" (Сверхжесткий приоритет)
========================================================= */
a.custom-cart-btn, 
button.custom-cart-btn, 
.woocommerce ul.products li.product .button.custom-cart-btn {
    display: block !important;
    width: 100% !important;
    background-color: transparent !important; /* Прозрачный фон изначально */
    color: #bca38f !important;
    border: 1.5px solid #bca38f !important; /* Рамка */
    text-align: center !important;
    padding: 12px 0 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

/* Заливка при наведении */
a.custom-cart-btn:hover, 
button.custom-cart-btn:hover,
.woocommerce ul.products li.product .button.custom-cart-btn:hover {
    background-color: #bca38f !important;
    color: #fff !important;
}

/* Состояние "Добавлен" */
a.custom-cart-btn.added, 
button.custom-cart-btn.added,
.woocommerce ul.products li.product .button.custom-cart-btn.added {
    background-color: #bca38f !important; /* Оставляем залитой */
    color: #fff !important;
    pointer-events: none !important; /* Блокируем клик */
}
a.added_to_cart.wc-forward { display: none !important; }

/* =========================================================
   9. УВЕДОМЛЕНИЕ И АНИМАЦИЯ
========================================================= */
.custom-cart-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.custom-cart-toast.show {
    bottom: 30px;
    opacity: 1;
}
.flying-img {
    position: fixed;
    z-index: 999999;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* =========================================================
   10. АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
========================================================= */
@media (max-width: 768px) {
    /* Меняем сетку: делаем от 2 колонок на мобильных, уменьшаем промежутки */
    ul.products.custom-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px !important; 
    }

    /* Уменьшаем внутренние отступы и скругления карточки */
    ul.products.custom-products-grid li.compact-card {
        padding: 10px !important;
        border-radius: 12px;
    }

    /* Адаптируем заголовок товара */
    .custom-media-box .custom-product-title {
        font-size: 13px;
    }
    
    .custom-media-box .custom-title-link {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    /* Уменьшаем иконки в правом верхнем углу (избранное и т.д.) */
    .action-icon, .wishlist-btn {
        width: 26px !important;
        height: 26px !important;
    }
    .action-icon svg, .wishlist-btn svg {
        width: 14px;
        height: 14px;
    }
    .top-right-actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    /* Компактный калькулятор */
    .custom-calc-block {
        padding: 8px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .calc-controls {
        margin-bottom: 8px;
    }
    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    .qty-input {
        width: 30px !important;
        font-size: 12px;
    }
    .calc-unit { 
        font-size: 11px; 
    }
    .calc-total-display {
        font-size: 12px;
    }
    .calc-total-display .total-val {
        font-size: 13px;
    }

    /* Уменьшаем миниатюры фото */
    .mini-thumb {
        width: 24px;
        height: 24px;
    }

    /* Кнопка "В корзину" */
    a.custom-cart-btn, 
    button.custom-cart-btn, 
    .woocommerce ul.products li.product .button.custom-cart-btn {
        padding: 10px 0 !important;
        font-size: 11px !important;
    }

    /* Центрируем и адаптируем всплывающее уведомление */
    .custom-cart-toast {
        width: 90%;
        text-align: center;
        padding: 10px 15px;
        font-size: 11px;
    }
}

/* Для самых маленьких экранов (менее 400px), если нужно вывести товары в 1 колонку */
@media (max-width: 400px) {
    ul.products.custom-products-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Основной контейнер */
.custom-shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 40px auto;
}

/* Сайдбар (Фильтр) */
.custom-shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    position: sticky;
    top: 30px; /* Прилипает при скролле */
}

/* Блок товаров */
.custom-shop-content {
    flex-grow: 1;
    min-width: 0;
    transition: opacity 0.3s ease; /* Плавность для AJAX */
}

/* Виджеты внутри фильтра */
.filter-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-widget:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}
.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
}

/* Красивые чекбоксы (Категории) */
.custom-checkbox-list {
    list-style: none; padding: 0; margin: 0;
}
.custom-checkbox-list li { margin-bottom: 12px; }
.custom-checkbox-list label {
    display: flex; align-items: center; cursor: pointer;
    font-size: 14px; color: #444; transition: 0.2s;
}
.custom-checkbox-list label:hover { color: #bca38f; }
.custom-checkbox-list input { display: none; }
.custom-checkbox-list .checkmark {
    width: 18px; height: 18px; border: 1.5px solid #d1d1d1;
    border-radius: 4px; margin-right: 10px; position: relative;
    transition: 0.2s; background: #fff;
}
.custom-checkbox-list input:checked + .checkmark {
    background-color: #bca38f; border-color: #bca38f;
}
.custom-checkbox-list input:checked + .checkmark::after {
    content: ''; position: absolute; left: 5px; top: 2px;
    width: 4px; height: 8px; border: solid white;
    border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Фильтр цены */
.price-inputs {
    display: flex; align-items: center; gap: 8px;
}
.price-input {
    width: 100%; padding: 10px; border: 1px solid #d1d1d1;
    border-radius: 6px; font-size: 14px; outline: none; transition: 0.3s;
}
.price-input:focus { border-color: #bca38f; }

/* Цветовые кружочки */
.custom-color-swatches {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.color-swatch {
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); 
    transition: transform 0.2s, box-shadow 0.2s;
}
.color-swatch input { display: none; }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch input:checked + ::after {
    content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px solid #bca38f; border-radius: 50%;
}

/* Кнопки в фильтре */
.custom-apply-filters {
    width: 100%; background: #222; color: #fff;
    border: none; padding: 14px; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: 0.3s; margin-top: 10px;
}
.custom-apply-filters:hover { background: #bca38f; }
.custom-reset-filters {
    width: 100%; background: transparent; color: #888;
    border: none; padding: 10px; margin-top: 5px;
    cursor: pointer; text-decoration: underline; font-size: 13px;
}
.custom-reset-filters:hover { color: #d9534f; }

/* Мобильная адаптивность */
@media (max-width: 992px) {
    .custom-shop-layout { flex-direction: column; padding: 0 15px; }
    .custom-shop-sidebar { width: 100%; position: static; margin-bottom: 30px; }
}

/* --- СТИЛИ ДЛЯ ШИРОКОГО МЕГА-МЕНЮ С КАРТИНКАМИ --- */
.nav-links.desktop-only li.has-mega-menu {
    position: relative; 
    /* Никаких margin и padding, чтобы не ломать верстку шапки! */
}

.glass-mega-menu {
    position: absolute;
    /* Опускаем плашку НИЖЕ хедера (25px от низа слова Каталог) */
    top: calc(100% + 25px); 
    /* Центрируем плашку относительно слова Каталог */
    left: 50%;
    width: 850px; /* Делаем плашку широкой */

    /* Эффект матового стекла */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px; /* Скругление как у хедера */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);

    padding: 30px;

    /* Крутой эффект скрытия/появления (выезжает и увеличивается) */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
}

/* Невидимый "мост" между меню и плашкой, чтобы она не пропадала, когда ведешь мышку вниз */
.glass-mega-menu::before {
    content: '';
    position: absolute;
    top: -30px; 
    left: 0;
    width: 100%;
    height: 30px;
}

/* Показываем меню при наведении */
.nav-links.desktop-only li.has-mega-menu:hover .glass-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
}

/* Сетка для категорий (4 в ряд) */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

/* Карточка категории */
.mega-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    align-items: center;
    transition: transform 0.3s ease;
}

.mega-category-card:hover {
    transform: translateY(-5px); /* Карточка чуть приподнимается при наведении */
}

/* Обёртка картинки со скруглениями */
.mega-category-img-wrap {
    width: 100%;
    height: 140px; /* Высота фотографии */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Сама картинка */
.mega-category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* Плавный зум картинки при наведении */
.mega-category-card:hover .mega-category-img {
    transform: scale(1.1); 
}

/* Текст категории */
.mega-category-title {
    font-size: 13px;
    color: #333; /* Темный цвет текста */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: color 0.3s ease;
}

.mega-category-card:hover .mega-category-title {
    color: #000;
}


/* Темный фон с легким блюром */
.premium-glass-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.premium-glass-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Сама карточка из матового стекла */
.premium-glass-modal {
    display: flex !important;
    flex-direction: row !important;
    width: 900px !important;
    max-width: 95% !important;
    background: rgba(255, 255, 255, 0.85) !important; /* Более плотный белый фон */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    overflow: hidden !important; /* Обрезает углы картинки по форме окна */
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-glass-overlay.is-active .premium-glass-modal {
    transform: translateY(0) scale(1);
}

/* Крестик */
.premium-glass-close {
    position: absolute !important;
    top: 15px !important; right: 20px !important;
    background: none !important;
    border: none !important;
    font-size: 36px !important;
    color: #111 !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Левая картинка */
.premium-glass-image {
    width: 45% !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 500px;
}

/* Правая колонка с контентом */
.premium-glass-content {
    width: 55% !important;
    padding: 50px 40px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Тексты */
.premium-glass-title {
    font-size: 32px !important;
    color: #111 !important;
    margin: 0 0 15px 0 !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

.premium-glass-subtitle {
    font-size: 14px !important;
    color: #555 !important;
    margin-bottom: 30px !important;
    line-height: 1.5 !important;
}

/* Поля формы */
.premium-glass-form input,
.premium-glass-form textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #222 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.premium-glass-form textarea {
    height: 100px !important;
    resize: none !important;
}

/* Кнопка */
.premium-btn-submit {
    width: 100% !important;
    padding: 18px !important;
    background: #1f1f1f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

.premium-btn-submit:hover {
    background: #333 !important;
}

.premium-privacy {
    display: block !important;
    text-align: center !important;
    font-size: 11px !important;
    color: #888 !important;
    margin-top: 15px !important;
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .premium-glass-modal {
        flex-direction: column !important;
        width: 100% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    .premium-glass-image {
        width: 100% !important;
        min-height: 200px !important;
    }
    .premium-glass-content {
        width: 100% !important;
        padding: 30px 20px !important;
    }
    .premium-glass-title { font-size: 26px !important; }
}
/* Плавное появление фона */
.premium-glass-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    /* ... остальные стили фона остаются без изменений ... */
}

/* Строгая анимация карточки (скольжение снизу вверх без рывков) */
.premium-glass-modal {
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    /* ... остальные стили модалки ... */
}

.premium-glass-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.premium-glass-overlay.is-active .premium-glass-modal {
    transform: translateY(0);
    opacity: 1;
}

/* Стили для сообщения об успехе */
.premium-success-msg {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease forwards;
}
.premium-success-msg h4 {
    font-size: 24px !important;
    color: #111 !important;
    margin-bottom: 10px !important;
}
.premium-success-msg p { color: #555 !important; }

/* Состояние загрузки для кнопки */
.premium-btn-submit.is-loading {
    background: #555 !important;
    color: transparent !important;
    position: relative;
    pointer-events: none;
}
.premium-btn-submit.is-loading::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    top: 0; left: 0; bottom: 0; right: 0;
    margin: auto;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
/* =========================================
   КАРТОЧКА ТОВАРА REGAL PARKET (ПО ДИЗАЙНУ)
========================================= */
.regal-product-card {
    width: 100%;
    max-width: 340px; /* Чуть шире под пропорции макета */
    font-family: 'Montserrat', sans-serif;
    background: #ffffff; /* Белая карточка */
    border-radius: 24px; /* Большое скругление всей карточки */
    padding: 15px; /* Внутренние отступы */
    margin: 0 auto 30px;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Очень легкая тень для объема */
    box-sizing: border-box;
}

.regal-product-card a { text-decoration: none; }

/* Блок с картинкой */
.rpc-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}
.rpc-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Иконки сверху справа (сердце, вопрос) */
.rpc-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}
.rpc-icon-btn {
    background: rgba(140, 110, 95, 0.5); /* Коричневатая полупрозрачность как на макете */
    backdrop-filter: blur(4px);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.rpc-icon-btn:hover { background: rgba(140, 110, 95, 0.9); }

/* Плашка названия (внизу слева) */
.rpc-title-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(40, 35, 30, 0.7); /* Темная полупрозрачная плашка */
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    color: #fff;
}
.rpc-title-text {
    font-size: 13px;
    font-weight: 500;
}
.rpc-title-icons {
    display: flex;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

/* Цвета (квадратики) */
.rpc-colors {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.rpc-color {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}
.rpc-color.active {
    border: 2px solid #a89a8c;
    transform: translateY(-2px);
}

/* Выбор количества */
.rpc-quantity-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 30px;
    padding: 4px 15px;
    margin-bottom: 15px;
    height: 44px;
    box-sizing: border-box;
}
.rpc-qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b0b0;
    font-size: 12px;
    padding: 5px;
}
.rpc-qty-btn:hover { color: #333; }
.rpc-qty-input {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.rpc-unit {
    color: #b0b0b0;
    font-size: 10px;
    margin-left: 2px;
}

/* Итоговая цена */
.rpc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}
.rpc-total-label {
    color: #999;
    font-size: 12px;
}
.rpc-total-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.rpc-total-price bdi { font-weight: 700; }

/* Кнопка "В корзину" (как на макете - светлая окантовка) */
a.rpc-cart-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border: 1px solid #dcd3cb; /* Цвет окантовки как в дизайне */
    border-radius: 30px;
    background: transparent;
    color: #a89a8c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
a.rpc-cart-btn:hover {
    background: #dcd3cb;
    color: #fff;
}