/* --- CORE VARIABLES --- */
:root {
    --bg-dark: #050505;
    --bg-panel: #121212;
    --surface-1: #121212;
    --surface-2: #1a1a1a;
    --surface-3: #242424;
    --text-main: #e8e8e8;
    --text-body: #c8c8c8;
    --text-muted: #8f8f8f;
    --text-faint: #6e6e6e;
    --text-white: #e8e8e8;
    --accent: #FFC107;
    --accent-glow: rgba(255, 193, 7, 0.28);
    --border: #2a2a2a;
    --border-soft: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(255, 255, 255, 0.03);
    --font-display: 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fs-caption: 0.72rem;
    --fs-label: 0.78rem;
    --fs-body: 0.95rem;
    --fs-body-lg: 1.02rem;
    --fs-title: 1.35rem;
    --fs-display: clamp(1.5rem, 2.4vw, 2.1rem);
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --press-scale: 0.98;
    --duration-fast: 0.18s;
    --duration-med: 0.28s;
    --success-green: #10b981;
    --success-glow: rgba(16, 185, 129, 0.28);
    --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.5;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

#app {
    height: 100%;
    width: 100%;
}

/* --- BACKGROUND EFFECTS --- */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    transition: opacity 1s ease;
}

.global-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
    transition: opacity 1s ease;
}

/* --- VIEW MANAGEMENT --- */
.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: var(--transition);
    display: none;
    flex-direction: column;
}

.view-section.active {
    display: flex;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero-view.active {
    display: flex;
}

/* --- HERO SECTION STYLES (обновлённые) --- */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* Хедер главного экрана (Hero) */
.hero-header {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* разводим логотип и правую группу */
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 100;
    pointer-events: auto; /* чтобы кнопки были кликабельны */
}

/* Логотип – центрируется абсолютно, чтобы не мешать правой группе */
.hero-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Правая группа (язык + меню) – прижата к правому краю */
.hero-right-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    z-index: 10;
    pointer-events: auto;
}

/* Стили для кнопки меню (только в hero) */
.hero-header .menu-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.22s ease;
    backdrop-filter: blur(8px);
}

.hero-header .menu-button:hover {
    background: rgba(255, 193, 7, 0.18);
    border-color: var(--accent);
    color: var(--accent);
}

/* Кнопка языка (legacy) — заменена на .lang-slider */
.hero-header .lang-button {
    display: none;
}

.hero-header .lang-button:hover {
    display: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.title-white {
    color: var(--text-white);
    display: block;
}

.title-gold {
    color: var(--accent);
    display: block;
    text-shadow: 0 0 18px var(--accent-glow);
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 10px var(--accent-glow);
    }
    to {
        text-shadow: 0 0 22px var(--accent-glow);
    }
}

.hero-quote {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.btn-start {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-med) var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.18);
    text-decoration: none;
}

.btn-start:hover {
    transform: translateY(-1px);
    background: #f0f0f0;
    box-shadow: var(--shadow-soft);
}

.btn-start:active {
    transform: scale(var(--press-scale));
}

.hero-footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #c29c6c;
    font-family: monospace;
}

/* --- CONFIGURATOR SECTION STYLES --- */
/* (остальные стили конфигуратора без изменений, они идут после hero) */
.config-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

/* --- ЛЕВАЯ ПАНЕЛЬ (ПРЕДПРОСМОТР) --- */
.preview-pane {
    padding: 0 0 40px 0;
    overflow-y: auto;
    width: 40%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-right: 1px solid var(--border);
    height: 100%;
    box-sizing: border-box;
}

.preview-pane-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.preview-frame {
    flex-shrink: 0;
    width: calc(100% - 80px);
    margin-left: 40px;
    margin-right: 40px;
    aspect-ratio: 1 / 1;
    background: #000000;
    border-radius: 0 0 32px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.preview-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    border-radius: 0 0 32px 32px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.preview-next {
    transform: translateX(100%);
}

.preview-overlay {
    opacity: 0;
    pointer-events: none;
}

.preview-img.active {
    opacity: 1;
    pointer-events: auto;
}

.preview-examples-label {
    position: absolute;
    bottom: 13px;
    right: 23px;
    background: rgb(255 193 7);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: var(--font-body);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.engraving-unavailable-message {
    font-weight: 400;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 193, 7, 0.06);
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    line-height: 1.5;
}

.engraving-unavailable-message i {
    margin-right: 8px;
    color: var(--accent);
}

/* Анимация слайдера */
.preview-img.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.preview-img.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.preview-img.slide-in-right.active {
    transform: translateX(0);
    opacity: 1;
}

.preview-img.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.preview-img.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

.preview-img.slide-in-left.active {
    transform: translateX(0);
    opacity: 1;
}

.preview-img.current,
.preview-img.next {
    will-change: transform, opacity;
}

/* Галерея: стрелки и точки */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0.6;
}

.gallery-arrow:hover {
    opacity: 1;
    background: rgba(255, 193, 7, 0.7);
    border-color: var(--accent);
}

.gallery-arrow-left {
    left: 10px;
}

.gallery-arrow-right {
    right: 10px;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 1;
}

.preview-frame:hover .gallery-dots {
    opacity: 1;
}

.gallery-dot {
    width: 30px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.gallery-dot.active {
    background: var(--accent);
    width: 36px;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.preview-summary {
    flex: 1;
    width: calc(100% - 80px);
    margin-left: 40px;
    margin-right: 40px;
    overflow-y: auto;
    max-height: 70vh;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--text-main);
}

.summary-list-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    line-height: 1.4;
}

.summary-label {
    flex: 0 0 30%;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-value {
    flex: 1;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.summary-price-block {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
    justify-content: flex-end;
}

.summary-price {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: right;
    color: var(--accent);
}

.summary-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.summary-entry.has-detail .summary-item {
    cursor: pointer;
    background: rgba(255, 193, 7, 0.06);
    border-radius: 6px;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 4px 8px;
    margin: 0;
}

.summary-entry.has-detail .summary-item:hover {
    background: rgba(255, 193, 7, 0.12);
    box-shadow: none;
}

.summary-placeholder {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    border: 1px dashed var(--border);
    border-radius: 8px;
}

/* Аккордеон деталей */
.summary-entry {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.summary-item.has-detail {
    cursor: pointer;
}

.summary-arrow {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.summary-entry.open .summary-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.summary-entry.open .summary-item {
    background: rgba(255, 193, 7, 0.08);
    box-shadow: none;
}

.summary-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 0.8rem;
    color: #b0b0b0;
    line-height: 1.5;
    padding: 0 10px;
    margin-left: 8px;
    border-left: 2px solid rgba(255, 193, 7, 0.2);
}

.summary-entry.open .summary-detail {
    max-height: 300px;
    padding: 8px 10px;
    overflow-y: auto;
    border-left-color: var(--accent);
}

.preview-big-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.preview-specs {
    display: none !important;
}

.spec-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
    justify-content: flex-end;
}

.spec-badge i {
    color: var(--accent);
}

/* Гравировка: текст и хотспоты */
.engraving-preview-text {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 14px;
    pointer-events: none;
    z-index: 11;
    text-shadow: 0 1px 2px #000;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}

.engraving-preview-text.visible {
    opacity: 1;
    display: block;
}

#preview-text-cup {
    top: 55%;
    right: 25%;
    transform: translate(50%, -50%) rotate(-15deg);
}

#preview-text-yoke {
    top: 35%;
    right: 45%;
    transform: translate(50%, -50%);
}

.engraving-hotspot {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    display: none;
}

.engraving-hotspot.visible {
    display: flex;
}

.engraving-hotspot:hover {
    border-color: var(--accent);
    background: rgba(255, 193, 7, 0.1);
    transform: scale(1.1);
}

.engraving-hotspot.active {
    border-style: solid;
    border-color: var(--accent);
    background: rgba(255, 193, 7, 0.2);
    box-shadow: none;
}

.engraving-hotspot i {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.5;
}

.engraving-hotspot.active i {
    color: var(--accent);
    opacity: 1;
}

#hotspot-cup {
    top: 55%;
    right: 25%;
}

#hotspot-yoke {
    top: 35%;
    right: 45%;
}

/* --- ПРАВАЯ ПАНЕЛЬ (УПРАВЛЕНИЕ) --- */
.controls-pane {
    width: 60%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
    width: auto;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(12px);
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
    padding: 18px 36px;
    min-height: auto;
}

.config-scroll-area {
    padding-top: 0;
    padding-bottom: 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.config-header .hero-logo {
    position: static;
    width: auto;
    left: auto;
}

.config-header .hero-logo img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-indicator {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.config-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 36px 36px 88px;
}

.config-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.config-scroll-area::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

h2 {
    font-size: 2.35rem;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.step-desc {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 520px;
    line-height: 1.55;
    font-size: var(--fs-body);
}

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: var(--fs-caption);
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    display: block;
    font-weight: 600;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background var(--duration-med) var(--ease-out),
        border-color var(--duration-med) var(--ease-out),
        color var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.filter-tab:hover {
    border-color: var(--border-soft);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: none;
}

.filter-tab:active {
    transform: scale(var(--press-scale));
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.option-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--duration-med) var(--ease-out),
        background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-med) var(--ease-out);
    position: relative;
}

.option-card.included {
    border-color: rgba(255, 193, 7, 0.28);
    background: rgba(255, 193, 7, 0.04);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(255, 193, 7, 0.06);
    box-shadow: none;
}

.option-card .card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 10;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-soft);
}

.option-card:active {
    transform: scale(var(--press-scale));
    box-shadow: none;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    aspect-ratio: 1 / 1;
    width: 100%;
}

.card-tint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.8;
    transition: background-color 0.3s ease;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.option-card:hover .card-img {
    transform: scale(1.02);
}

.card-body {
    padding: 12px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    border-radius: 0 0 12px 12px;
}

.card-title {
    font-size: 0.92rem;
    margin-bottom: 4px;
    line-height: 1.25;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
    height: auto;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-specs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.card-spec-tag {
    background: #222;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #aaa;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.card-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
}

.card-spec {
    background: #222;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #ccc;
}

.selected-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background-color: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.option-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.option-card:hover::after {
    opacity: 1;
}

.config-footer {
    min-height: 68px;
    padding: 16px 36px;
    border-top: 1px solid var(--border-soft);
    background: rgba(12, 12, 12, 0.92);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-block {
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-value {
    font-size: 2rem;
    font-family: var(--font-display);
    color: #fff;
    transition: color 0.2s;
}

.total-value.updating {
    color: var(--accent);
}

.btn-next {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-med) var(--ease-out);
    text-transform: uppercase;
    animation: none;
}

.btn-next:hover {
    background: #f0f0f0;
    box-shadow: var(--shadow-soft);
}

.btn-next:disabled {
    background: #333;
    color: #555;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-next:not(:disabled):active {
    transform: scale(var(--press-scale));
}

.btn-next:not(:disabled) {
    animation: none;
}

@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.btn-back {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 16px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--duration-med) var(--ease-out),
        color var(--duration-med) var(--ease-out),
        background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    margin-right: 15px;
}

.btn-back:hover {
    border-color: var(--border-soft);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.btn-back:active {
    transform: scale(var(--press-scale));
}

.btn-reset {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color var(--duration-med) var(--ease-out),
        color var(--duration-med) var(--ease-out),
        background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
    margin-left: 10px;
}

.btn-reset:hover {
    border-color: rgba(255, 68, 68, 0.55);
    color: #ff6b6b;
    background: rgba(255, 68, 68, 0.06);
}

.btn-reset:active {
    transform: scale(var(--press-scale));
}

/* --- ENGRAVING INPUT PANEL --- */
.engraving-panel {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    display: none;
    animation: slideDown 0.4s ease forwards;
}

.engraving-panel.active {
    display: block;
}

.engraving-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.engraving-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.engraving-input-group {
    flex-grow: 1;
}

.engraving-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.engraving-input {
    width: 100%;
    background: #000;
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-body);
}

.engraving-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.engraving-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.engraving-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
    line-height: 1.4;
}

/* --- CABLE CONFIG PANEL --- */
.cable-config-panel {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    display: none;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.config-group {
    flex: 1;
    min-width: 150px;
}

.config-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.config-select {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: var(--fs-body);
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
    color-scheme: dark;
}

.config-select option,
.config-select optgroup {
    background: var(--surface-2);
    color: var(--text-main);
}

.config-select:focus {
    border-color: var(--accent);
}

.config-select:disabled {
    background: var(--surface-1);
    color: var(--text-faint);
    cursor: not-allowed;
}

.cable-total-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
    margin-top: 20px;
}

.cable-total-label {
    color: var(--text-muted);
    font-size: var(--fs-label);
}

.cable-total-value {
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
}

.cable-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    box-sizing: border-box;
    padding: 20px;
    pointer-events: auto;
}

.cable-overlay-handle,
.sheet-handle {
    display: none;
}

.cable-overlay-content,
.sheet-panel {
    width: 100%;
    max-width: 440px;
    color: var(--text-main);
    z-index: 11;
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 22px 20px 20px;
    box-shadow: var(--shadow-soft);
}

.cable-overlay-hint,
.sheet-hint {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: var(--fs-body);
    line-height: 1.45;
}

.cable-overlay-close,
.sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-body);
    font-size: 1.35rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration-med) var(--ease-out),
        color var(--duration-med) var(--ease-out),
        border-color var(--duration-med) var(--ease-out);
    z-index: 15;
}

.cable-overlay-close:hover,
.sheet-close:hover {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.4);
    color: var(--accent);
    transform: none;
}

.cable-overlay-content .config-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.cable-overlay-content .config-group {
    width: 100%;
    min-width: 0;
}

.cable-overlay-content .config-label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.cable-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cable-option-list.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.cable-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    background: var(--surface-3);
    color: var(--text-main);
    font-size: var(--fs-body);
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.cable-option:hover {
    border-color: rgba(255, 193, 7, 0.35);
    background: #2c2c2c;
}

.cable-option:active {
    transform: scale(var(--press-scale));
}

.cable-option.is-selected {
    border-color: var(--accent);
    background: rgba(255, 193, 7, 0.12);
    color: var(--text-main);
}

.cable-option-main {
    color: var(--text-main);
}

.cable-option-price {
    color: var(--accent);
    font-size: var(--fs-label);
    font-weight: 600;
    white-space: nowrap;
}

.cable-option-empty {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--border-soft);
    color: var(--text-faint);
    font-size: var(--fs-body);
    background: rgba(255, 255, 255, 0.02);
}

.cable-overlay-content .cable-total-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border-soft);
    padding-top: 14px;
    margin-top: 4px;
}

.cable-overlay-content .cable-title,
.sheet-title {
    font-size: var(--fs-title);
    font-weight: 700;
    color: var(--accent);
    margin: 0 40px 8px 0;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    font-family: var(--font-display);
    line-height: 1.2;
}

.cable-overlay-content .overlay-actions {
    margin-top: 8px;
}

.cable-confirm-btn {
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: var(--fs-label);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    width: 100%;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-body);
}

.cable-confirm-btn:hover:not(:disabled) {
    background: #ffe082;
    transform: none;
}

.cable-confirm-btn:active:not(:disabled) {
    transform: scale(var(--press-scale));
}

.cable-confirm-btn:disabled {
    background: var(--surface-3);
    color: var(--text-faint);
    cursor: not-allowed;
    transform: none;
}

/* --- FINAL SUMMARY BLOCK --- */
.final-summary-block {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
    animation: slideDown 0.4s ease forwards;
}

.final-summary-title {
    font-family: var(--font-display);
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.final-summary-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.final-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.final-summary-item-name {
    color: var(--text-muted);
}

.final-summary-item-price {
    color: var(--accent);
    font-weight: 700;
}

.final-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- MODAL STYLES (ОБЩИЕ) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.modal-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.modal-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-input,
.modal-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-input:focus,
.modal-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-summary-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.modal-summary-preview strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.modal-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-summary-list li:last-child {
    border-bottom: none;
}

.modal-submit-btn {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.modal-submit-btn:hover {
    background: #fff;
    transform: scale(1.02);
}

.modal-total-price {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 1.2rem;
    color: var(--accent);
    text-align: right;
}

/* --- WOOD DETAIL MODAL --- */
.wood-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wood-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.wood-modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wood-modal-overlay.active .wood-modal-content {
    transform: scale(1);
}

.wood-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wood-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 20;
    transition: color 0.3s, background 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wood-modal-close:hover {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
}

.wood-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    color: var(--text-main);
    font-size: 1.8rem;
}

.wood-modal-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.wood-modal-nav.prev {
    left: -80px;
}

.wood-modal-nav.next {
    right: -80px;
}

.wood-modal-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.wood-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.wood-modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
    background: #111;
}

.wood-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.tint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: background 0.4s ease;
    mix-blend-mode: multiply;
    opacity: 0;
}

.tint-overlay.active {
    opacity: 1;
}

.wood-modal-info {
    padding: 32px 36px 28px;
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.wood-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.wood-modal-subtitle {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.wood-modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.wood-modal-spec-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wood-modal-spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.wood-modal-spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.wood-modal-description {
    max-height: none;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.tinting-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tinting-title {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.color-option {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.color-option.selected {
    border-color: var(--accent);
    transform: scale(1.03);
    box-shadow: none;
}

.color-option:active {
    transform: scale(var(--press-scale));
}

.color-swatch {
    width: 100%;
    height: 100%;
}

.color-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    text-align: center;
    padding: 4px 2px;
    backdrop-filter: blur(2px);
}

.natural-only-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--accent);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wood-modal-tone-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.tone-wave {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.tone-bar {
    flex: 1;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.wood-modal-actions {
    display: none;
}

.wood-modal-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
}

.wood-modal-footer-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wood-modal-footer-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wood-modal-footer-value {
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
}

.wood-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
}

.wood-modal-badges .card-tag {
    position: static;
    background: rgba(255, 193, 7, 0.12);
}

.btn-select {
    flex: 0 0 auto;
    min-width: 140px;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
}

.btn-select:hover {
    background: #f0f0f0;
}

.btn-select:active:not(.selected) {
    transform: scale(var(--press-scale));
}

.btn-select.selected {
    background: #333;
    color: var(--text-muted);
    cursor: default;
}

.card-tags {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
}

.card-tag {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

body.modal-open {
    overflow: hidden;
}

.wood-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.natural-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--accent);
    font-size: 0.9rem;
    line-height: 1.5;
}

.natural-info i {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}

/* --- RULES PANE --- */
.rules-pane {
    width: 100%;
    align-self: stretch;
    flex: 1;
    min-height: 0;
    background: var(--bg-dark);
    padding: 32px 36px 40px;
    color: var(--text-main);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    font-family: var(--font-body);
    box-sizing: border-box;
}

.rules-compact {
    display: none;
}

.rules-full {
    display: block;
    max-width: 42rem;
}

.rules-title {
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 20px;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    padding-top: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.rules-teaser {
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    font-size: 0.92rem;
}

.rules-more-btn,
.model-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.rules-more-btn:active,
.model-info-btn:active {
    transform: scale(var(--press-scale));
}

.rules-pane p {
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 1.15em;
    max-width: 100%;
    text-align: left;
    color: var(--text-body);
    font-size: var(--fs-body);
}

.rules-pane p:last-child {
    margin-bottom: 0;
}

.rules-pane ul,
.rules-pane ol {
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.rules-pane li {
    margin-bottom: 0.5em;
    color: var(--text-muted);
}

.rules-pane .rules-note {
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 30px;
}

/* --- MODEL DESCRIPTION --- */
.model-description {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 32px 36px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.model-description-compact {
    display: none;
}

.model-description-full {
    display: block;
    max-width: 42rem;
}

.model-title {
    margin-top: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.15;
}

.model-meta {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.model-compact-desc {
    margin: 0;
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: 1.45;
}

.model-full-description {
    text-align: left;
    white-space: pre-line;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 24px;
}

.model-specs h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.specs-list li {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.spec-key {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    padding-right: 0;
}

.specs-list li:last-child {
    border-bottom: none;
}

.spec-value {
    color: var(--text-main);
    font-size: 0.92rem;
    text-align: right;
    line-height: 1.35;
}

.model-description.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 40px 24px;
}

.model-description-panel {
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    margin-bottom: 10px;
}

.model-description-panel .model-description {
    padding: 0;
    background: transparent;
    height: auto;
    max-height: 200px;
    overflow-y: auto;
}

.model-description-panel .model-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.model-description-panel .model-full-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.model-description-panel .model-specs h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.model-description-panel .specs-list li {
    padding: 5px 0;
    font-size: 0.9rem;
}

.model-description-panel .spec-key {
    width: auto;
}

.freq-chart {
    margin: 20px 0;
}

.freq-chart h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.freq-chart-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Content sheet (rules / model info) — same language as cable sheet */
.content-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.content-sheet {
    width: 100%;
    max-width: 560px;
    max-height: min(86dvh, 820px);
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 0.24s ease;
    position: relative;
}

.content-sheet-handle {
    display: none;
}

.content-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 52px 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.18);
}

.content-sheet-header h3 {
    margin: 0;
    font-size: var(--fs-title);
    color: var(--accent);
    font-family: var(--font-display);
    line-height: 1.25;
    font-weight: 700;
}

.content-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 2;
}

.content-sheet-close:hover {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.4);
    color: var(--accent);
}

.content-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px 24px;
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: 1.6;
}

.content-sheet-body .model-title,
.content-sheet-body .rules-title {
    display: none;
}

.content-sheet-body .model-meta {
    margin-top: 0;
}

.content-sheet-body p,
.content-sheet-body .model-full-description {
    color: var(--text-body);
    font-size: var(--fs-body);
    line-height: 1.65;
}

.content-sheet-body .spec-key {
    font-size: var(--fs-caption);
    color: var(--accent);
}

.content-sheet-body .spec-value {
    font-size: var(--fs-body);
    color: var(--text-main);
}

.content-sheet-body .model-specs h3,
.content-sheet-body .freq-chart h3 {
    color: var(--text-muted);
    font-size: var(--fs-label);
}

/* --- Слайдер языка RU | EN --- */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-slider {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 84px;
    height: 34px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.lang-slider-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.22);
    transition: transform 0.28s var(--ease-out);
    z-index: 0;
    pointer-events: none;
}

.lang-slider[data-lang="en"] .lang-slider-pill {
    transform: translateX(100%);
}

.lang-slider-opt {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    height: 100%;
    border-radius: 999px;
    transition: color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.lang-slider-opt.is-active {
    color: #000;
}

.lang-slider-opt:not(.is-active):hover {
    color: #fff;
}

.lang-slider-opt:active {
    transform: scale(0.96);
}

.menu-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration-med) var(--ease-out),
        border-color var(--duration-med) var(--ease-out),
        color var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    font-size: 1.15rem;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.menu-button:hover {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.45);
    color: var(--accent);
}

.menu-button:active {
    transform: scale(var(--press-scale));
}

.lang-button {
    display: none;
}

.config-logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.config-logo img {
    height: 40px;
    width: auto;
    cursor: pointer;
}

/* --- ИНФО МОДАЛКА --- */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.info-modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    width: 100%;
    max-width: 1080px;
    height: min(85vh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.info-modal-handle {
    display: none;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.info-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--accent);
    margin: 0;
    letter-spacing: 0.02em;
}

.info-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
}

.info-modal-close:hover {
    background: rgba(255, 193, 7, 0.18);
    border-color: var(--accent);
    color: var(--accent);
}

.info-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.info-sidebar {
    width: 240px;
    background: rgba(0, 0, 0, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow-y: auto;
    padding: 16px 12px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-tab-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
    border-radius: 999px;
}

.info-tab-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent);
}

.info-tab-btn.active {
    background: rgba(255, 193, 7, 0.16);
    color: var(--accent);
    border-color: rgba(255, 193, 7, 0.35);
}

.info-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 30px;
    color: var(--text-main);
    line-height: 1.6;
}

.info-content-inner {
    max-width: 100%;
}

.info-content-inner h1,
.info-content-inner h2,
.info-content-inner h3 {
    color: var(--accent);
    margin-top: 1.2em;
}

.info-content-inner p {
    font-weight: 100;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1em;
    color: var(--text-main);
}

.info-content-inner a {
    color: var(--accent);
    text-decoration: none;
}

.info-content-inner a:hover {
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    font-weight: 600;
    color: #fff;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.35;
}

.faq-question i {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.22s ease;
}

.faq-item.open .faq-question {
    color: var(--accent);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.55;
    display: none;
    padding: 0 16px 16px;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Контакты, гарантия, доставка, политика, оферта */
.contacts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts-block h3,
.warranty-wrapper h3,
.delivery-wrapper h3,
.privacy-wrapper h3,
.terms-wrapper h3,
.rules-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    margin: 1.2em 0 0.6em 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacts-block h3:first-of-type,
.warranty-wrapper h3:first-of-type,
.delivery-wrapper h3:first-of-type,
.privacy-wrapper h3:first-of-type,
.terms-wrapper h3:first-of-type {
    margin-top: 0;
}

.contacts-block p,
.warranty-wrapper p,
.delivery-wrapper p,
.privacy-wrapper p,
.terms-wrapper p {
    font-weight: 100;
    text-align: justify;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

.warranty-wrapper ul,
.delivery-wrapper ul,
.privacy-wrapper ul,
.terms-wrapper ul {
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.warranty-wrapper li,
.delivery-wrapper li,
.privacy-wrapper li,
.terms-wrapper li {
    margin-bottom: 0.3em;
}

.warranty-wrapper a,
.privacy-wrapper a,
.terms-wrapper a {
    color: var(--accent);
    text-decoration: none;
}

.warranty-wrapper a:hover,
.privacy-wrapper a:hover,
.terms-wrapper a:hover {
    text-decoration: underline;
}

.delivery-wrapper strong {
    font-weight: 500;
    color: var(--text-main);
}

.rules-wrapper h3 {
    font-size: 1.2rem;
    margin: 0 0 1em 0;
}

.rules-wrapper p {
    font-weight: 100;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 1em;
}

.rules-wrapper strong {
    font-weight: 500;
    color: var(--text-main);
}

/* --- МЕДИАЗАПРОСЫ (ОБЪЕДИНЕНЫ) --- */
@media (max-width: 600px) {
    .hero-header {
        position: absolute;
        top: 12px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .hero-right-buttons {
        order: 1;
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        gap: 10px;
        z-index: 2;
    }

    .hero-logo {
        order: 2;
        position: static;
        left: auto;
        transform: none;
        justify-content: center;
        width: 100%;
        z-index: 1;
    }

    .hero-logo img {
        height: 44px;
    }

    .hero-header .menu-button,
    .hero-header .lang-button {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .hero-catalog-link {
        margin-right: auto;
        max-width: none;
        overflow: visible;
        text-overflow: unset;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-quote {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .btn-start {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

    .config-header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-height: 52px;
        border-radius: 0;
        background: rgba(12, 12, 12, 0.94);
        backdrop-filter: blur(16px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 14px;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .hero-footer {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        bottom: 20px;
        padding: 0 20px;
    }

    .preview-pane {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 8px 12px 4px;
        border-right: none;
        overflow: visible;
    }

    .config-scroll-area {
        padding-top: 16px;
        padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    }

    .config-header .config-logo img {
        display: none;
    }

    .config-header .config-logo {
        width: 32px;
        height: 32px;
        background: url('/favicon.ico') no-repeat center / contain;
        border-radius: 50%;
    }

    .rules-pane {
        padding: 14px 14px 16px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .config-header>div:last-child {
        gap: 10px;
    }

    .lang-button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    #stepNumber {
        font-size: 0.8rem;
    }

    .preview-pane {
        padding: 0;
    }

    .preview-frame {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .preview-big-text {
        font-size: 2.5rem;
        bottom: 5%;
    }

    .preview-summary {
        width: calc(100% - 40px);
        margin: 0 20px;
        max-height: 180px;
        font-size: 0.8rem;
    }

    .summary-item {
        padding: 6px 0;
    }

    .summary-label {
        font-size: 0.65rem;
    }

    .summary-value {
        font-size: 0.8rem;
    }

    .summary-price {
        font-size: 0.8rem;
        min-width: 60px;
    }

    .controls-pane {
        width: 100%;
    }

    .controls-pane .config-header {
        padding: 10px 20px;
    }

    .config-scroll-area {
        padding: 16px 14px calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    }

    h2 {
        font-size: 1.8rem;
    }

    .step-desc {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .option-card .card-img {
        height: 100%;
    }

    .card-body {
        padding: 15px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        overflow: hidden;
        font-size: 0.7rem;
        height: auto;
        min-height: 0;
        margin-bottom: 8px;
        text-overflow: ellipsis;
    }

    .card-meta {
        padding-top: 10px;
    }

    .card-price {
        font-size: 0.9rem;
    }

    .config-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: rgba(12, 12, 12, 0.96);
        backdrop-filter: blur(16px);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px 10px;
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .total-block .total-label {
        font-size: 0.7rem;
    }

    .total-block .total-value {
        font-size: 1.3rem;
    }

    .footer-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-back,
    .btn-reset {
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        min-width: 38px;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .btn-next {
        height: 38px;
        padding: 0 14px;
        border-radius: 19px;
        font-size: 0.8rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: var(--accent);
        color: #000;
    }

    .btn-back i,
    .btn-reset i {
        font-size: 1.2rem;
        display: block;
        line-height: 1;
        margin: 0;
    }

    .btn-next i {
        font-size: 1.05rem;
        margin: 0;
    }

    .btn-reset {
        order: 0;
        margin: 0;
        width: 38px;
    }

    .engraving-panel {
        padding: 15px;
    }

    .engraving-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .engraving-input-group {
        width: 100%;
    }

    .modal-content {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .wood-modal-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .wood-modal-specs-grid {
        gap: 10px;
        margin-bottom: 20px;
    }

    .wood-modal-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .tinting-section {
        padding: 15px;
    }

    .color-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .color-option {
        aspect-ratio: 1 / 0.8;
    }

    .color-label {
        font-size: 0.6rem;
        padding: 2px;
    }

    .btn-select {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .gallery-arrow {
        opacity: 0.8;
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }

    .gallery-dots {
        opacity: 1;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }

    .preview-frame {
        width: calc(100% - 20px);
        margin: 0 10px 10px;
    }

    .preview-summary {
        width: calc(100% - 20px);
        margin: 0 10px;
    }

    .config-footer {
        padding: 8px 10px;
    }

    .total-value {
        font-size: 1.1rem;
    }

    .btn-back,
    .btn-next,
    .btn-reset {
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        padding: 12px;
        border-radius: 40px;
        font-size: 0;
        min-width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 1;
        cursor: pointer;
        transition: all 0.3s ease;
        order: 0;
    }
}

@media (max-width: 900px) {
    /* Layout details overridden in «UX mobile / tablet polish» at end of file */
    .hero-title {
        font-size: 2.5rem;
    }

    .wood-modal-nav {
        display: none;
    }

    .wood-counter {
        bottom: 80px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .step-indicator {
        font-size: 0.75rem;
    }
}

/* Дополнительные вспомогательные классы */
.btn-secondary {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 20px;
    transition: none;
    pointer-events: none;
}

.dev-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    max-width: 500px;
    line-height: 1.4;
}

.card-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}
/* ========== Preview wood caption ========== */
.preview-wood-caption {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    max-width: 70%;
    pointer-events: none;
}
.preview-wood-caption[hidden] { display: none !important; }
.wood-caption-name {
    font-size: 0.8rem;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
}
.wood-caption-missing {
    display: none;
}

/* ========== Catalog ========== */
.catalog-view {
    min-height: 100vh;
    background: var(--bg-primary, #0a0a0a);
    color: var(--text-primary, #fff);
}
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.catalog-logo img { height: 36px; cursor: pointer; }
.catalog-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.catalog-intro h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 8px 0 12px;
    font-weight: 600;
}
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 32px;
}
.catalog-home-link {
    color: var(--accent, #ffc107);
    text-decoration: none;
    font-size: 0.9rem;
}
.catalog-home-link:hover { text-decoration: underline; }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.catalog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color var(--duration-med) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        background var(--duration-med) var(--ease-out),
        box-shadow var(--duration-med) var(--ease-out);
}
.catalog-card:hover {
    border-color: rgba(255, 193, 7, 0.45);
    transform: translateY(-2px);
    background: var(--surface-2);
    box-shadow: var(--shadow-soft);
}
.catalog-card:active {
    transform: scale(var(--press-scale));
    box-shadow: none;
}
.catalog-card-img {
    aspect-ratio: 1;
    background: #111;
    overflow: hidden;
}
.catalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.catalog-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.catalog-card-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #888);
}
.catalog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}
.catalog-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted, #aaa);
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.catalog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 12px;
}
.catalog-card-price {
    font-weight: 600;
    color: var(--accent, #ffc107);
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    font-variant-numeric: tabular-nums;
}
.catalog-card-price .price-value,
.catalog-card-price .price-currency {
    display: inline;
    white-space: nowrap;
}
.catalog-card-price .price-currency {
    margin-left: 0;
}
.catalog-card-cta {
    font-size: 0.85rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted, #888);
}
.hero-catalog-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 12px;
    letter-spacing: 0.04em;
}
.hero-catalog-link:hover { color: var(--accent, #ffc107); }
.fatal-error {
    color: #fff;
    text-align: center;
    margin-top: 40vh;
}

@media (max-width: 768px) {
    .catalog-header { padding: 16px 20px; }
    .catalog-content { padding: 24px 16px 60px; }
}

/* SEO static pages helpers — additive, same dark palette as before */
.seo-page {
    min-height: 100vh;
    background: #0a0a0a;
    color: var(--text-main, #e8e8e8);
    display: flex;
    flex-direction: column;
    font-family: Geist, var(--font-body), -apple-system, BlinkMacSystemFont, sans-serif;
}
.seo-page .seo-header {
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--surface-1, #121212);
}
.seo-page .seo-header img,
.seo-page .seo-logo img { height: 36px; display: block; }
.seo-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    font-size: 0.85rem;
}
.seo-nav a {
    color: var(--text-muted, #8f8f8f);
    text-decoration: none;
}
.seo-nav a:hover { color: var(--accent, #ffc107); }
.seo-nav .seo-lang {
    color: var(--accent, #ffc107);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.seo-page .seo-main { max-width: 960px; margin: 0 auto; padding: 40px 24px 64px; width: 100%; box-sizing: border-box; flex: 1; }
.seo-page .seo-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; margin: 24px 0; }
.seo-page .seo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent, #ffc107);
    color: #111;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 24px;
}
.seo-page .seo-cta:hover { filter: brightness(1.05); }
.seo-page .seo-cta:active { transform: scale(0.98); }
.seo-trust {
    margin-top: 40px;
    padding: 20px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(160deg, rgba(255,193,7,0.06), rgba(255,255,255,0.02));
}
.seo-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.seo-trust-list li {
    color: var(--text-body, #c8c8c8);
    font-size: 0.95rem;
    padding-left: 1.1em;
    position: relative;
}
.seo-trust-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #ffc107);
}
.seo-trust-links {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted, #8f8f8f);
}
.seo-trust-links a { color: var(--text-body, #c8c8c8); text-decoration: none; }
.seo-trust-links a:hover { color: var(--accent, #ffc107); }
.seo-footer-social { margin-top: 10px; font-size: 0.9rem; }
.seo-meta-line {
    color: var(--text-muted, #8f8f8f);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    margin: 0 0 12px;
}
.seo-price { margin: 8px 0 0; font-size: 1.25rem; color: var(--accent, #ffc107); }
.seo-breadcrumbs { font-size: 0.85rem; color: #888; margin-bottom: 16px; }
.seo-breadcrumbs a { color: #aaa; text-decoration: none; }
.seo-breadcrumbs a:hover { color: var(--accent, #ffc107); }
.seo-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.seo-spec { background: rgba(255,255,255,0.04); padding: 12px 16px; border-radius: 8px; }
.seo-spec-label { font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 4px; }
.seo-related { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); }
.seo-related h2 { font-size: 1.15rem; margin: 0 0 14px; color: var(--text-main, #e8e8e8); font-weight: 600; }
.seo-related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.seo-related-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text-main, #e8e8e8);
    text-decoration: none;
}
.seo-related-list a:hover { border-color: rgba(255, 193, 7, 0.4); color: var(--accent, #ffc107); }
.seo-catalog-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.seo-catalog-item a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    color: inherit;
}
.seo-catalog-item a:hover { border-color: rgba(255, 193, 7, 0.35); }
.seo-catalog-name { font-weight: 600; color: var(--text-main, #e8e8e8); }
.seo-catalog-meta { font-size: 0.78rem; color: var(--text-muted, #8f8f8f); text-transform: uppercase; letter-spacing: 0.04em; }
.seo-hubs { margin: 28px 0 8px; }
.seo-hubs-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted, #8f8f8f);
    margin-bottom: 10px;
}
.seo-hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-hub-chip {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text-body, #c8c8c8);
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.03);
}
.seo-hub-chip:hover {
    border-color: rgba(255, 193, 7, 0.4);
    color: var(--accent, #ffc107);
}
.seo-hub-links a { color: #aaa; text-decoration: none; }
.seo-hub-links a:hover { color: var(--accent, #ffc107); }
.seo-faq-list { margin: 28px 0 8px; display: grid; gap: 10px; }
.seo-faq-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    padding: 0 16px;
}
.seo-faq-q {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    color: var(--text-main, #e8e8e8);
}
.seo-faq-q::-webkit-details-marker { display: none; }
.seo-faq-q::after {
    content: '+';
    float: right;
    color: var(--text-muted, #8f8f8f);
    font-weight: 400;
}
.seo-faq-item[open] .seo-faq-q::after { content: '−'; }
.seo-faq-a {
    padding: 0 0 16px;
    color: var(--text-body, #c8c8c8);
    line-height: 1.55;
}
.seo-faq-a p { margin: 0 0 0.75em; }
.seo-faq-a p:last-child { margin-bottom: 0; }
.seo-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 28px 24px 36px;
    background: #070707;
    margin-top: auto;
}
.seo-footer-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
}
.seo-footer-brand { font-weight: 700; color: var(--accent, #ffc107); margin-bottom: 8px; }
.seo-footer-note { color: var(--text-muted, #8f8f8f); font-size: 0.9rem; margin: 0 0 6px; }
.seo-footer a { color: var(--text-body, #c8c8c8); text-decoration: none; }
.seo-footer a:hover { color: var(--accent, #ffc107); }
.seo-footer-links { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) {
    .seo-footer-grid { grid-template-columns: 1fr; }
    .seo-page .seo-header { padding: 14px 16px; }
    .seo-nav { gap: 10px 14px; font-size: 0.8rem; }
}

/* ========== Summary toggle (mobile) ========== */
.summary-toggle {
    display: none;
    width: calc(100% - 24px);
    margin: 4px 12px 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.summary-toggle i {
    transition: transform 0.25s ease;
}
.preview-pane-content.summary-open .summary-toggle i,
.summary-open > .summary-toggle i {
    transform: rotate(180deg);
}

/* ========== UX mobile / tablet polish ========== */
@media (max-width: 900px) {
    /*
     * Hero: меню сверху, логотип отдельной строкой ниже — без наложения.
     */
    .hero-header {
        position: absolute;
        top: 12px;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .hero-right-buttons {
        order: 1;
        width: 100%;
        margin-left: 0;
        justify-content: flex-end;
        gap: 10px;
        z-index: 2;
    }

    .hero-logo {
        order: 2;
        position: static;
        left: auto;
        transform: none;
        justify-content: center;
        width: 100%;
        z-index: 1;
    }

    .hero-logo img {
        height: 46px;
    }

    .hero-content {
        padding-top: 120px;
    }

    /*
     * Скролл: весь config-layout.
     * Сводка в превью скрыта — иначе съедает высоту шагов.
     * Превью на всю ширину. Grid: header → preview → steps; footer fixed.
     */
    .config-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "header"
            "preview"
            "steps";
        height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .controls-pane {
        display: contents;
    }

    .config-header {
        grid-area: header;
        position: sticky;
        top: 0;
        z-index: 120;
        width: 100%;
        min-height: 52px;
        margin: 0;
        border-radius: 0;
        background: rgba(12, 12, 12, 0.94);
        backdrop-filter: blur(16px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 8px 14px;
        box-sizing: border-box;
    }

    .preview-pane {
        grid-area: preview;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100% !important;
        height: auto !important;
        max-height: none;
        flex-shrink: 0;
        padding: 0 !important;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: #000;
        overflow: visible;
    }

    .preview-pane:has(.preview-pane-content) {
        overflow: hidden;
    }

    .rules-pane,
    .model-description {
        height: auto;
        flex: none;
        min-height: 0;
        overflow: visible;
        padding: 14px 14px 16px;
        background: #0a0a0a;
    }

    .rules-compact,
    .model-description-compact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .rules-full,
    .model-description-full {
        display: none;
    }

    .rules-title,
    .model-description-compact .model-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .rules-teaser,
    .model-compact-desc {
        font-size: 0.85rem;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rules-more-btn,
    .model-info-btn {
        margin-top: 10px;
        width: 100%;
    }

    .content-sheet-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .content-sheet {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        animation: sheetUp 0.28s ease;
        max-height: min(88dvh, 860px);
    }

    .content-sheet-handle {
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .content-sheet-header {
        padding: 12px 52px 14px 16px;
    }

    .content-sheet-body {
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .cable-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .cable-overlay-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        animation: sheetUp 0.28s ease;
    }

    .cable-overlay-handle {
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
        margin: 4px auto 12px;
    }

    .cable-option-list {
        max-height: 28vh;
    }

    .config-scroll-area {
        grid-area: steps;
        overflow: visible !important;
        min-height: 0;
        padding: 16px 14px 0 !important;
        flex: unset !important;
    }

    .config-scroll-area::after {
        content: '';
        display: block;
        height: calc(88px + env(safe-area-inset-bottom, 0px));
        pointer-events: none;
    }

    .config-scroll-area .step {
        padding-bottom: 8px;
    }

    .config-scroll-area .options-grid {
        margin-bottom: 12px;
    }

    .config-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        margin: 0;
        border-radius: 0;
        min-height: 56px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        background: rgba(12, 12, 12, 0.96);
        backdrop-filter: blur(16px);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        box-sizing: border-box;
    }

    .preview-pane-content {
        width: 100%;
        height: auto;
    }

    .preview-big-text {
        display: none;
    }

    .preview-frame {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        height: min(100vw, 40vh);
        max-height: 40vh;
        aspect-ratio: auto;
        border-radius: 0;
        border-left: none;
        border-right: none;
        cursor: zoom-in;
    }

    .preview-frame .preview-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        filter: none;
    }

    .preview-expand-btn {
        display: flex;
        position: absolute;
        left: 12px;
        top: 12px;
        z-index: 12;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(8px);
        font-size: 1.05rem;
    }

    .preview-expand-btn:hover,
    .preview-expand-btn:active {
        border-color: var(--accent);
        color: var(--accent);
    }

    .preview-specs {
        display: none !important;
    }

    .preview-examples-label {
        font-size: 0.65rem;
        bottom: 10px;
        right: 12px;
        padding: 3px 8px;
    }

    .preview-wood-caption {
        top: 12px;
        right: 12px;
        bottom: auto;
        left: auto;
    }

    /* Сводка не должна отбирать место у опций */
    .summary-toggle,
    .preview-summary {
        display: none !important;
    }

    .footer-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .total-block {
        flex: 1;
        min-width: 0;
    }

    .total-block .total-label {
        font-size: 0.6rem;
    }

    .total-block .total-value {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .btn-back,
    .btn-reset {
        padding: 0;
        margin: 0;
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        font-size: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-back .btn-label,
    .btn-reset .btn-label {
        display: none;
    }

    .btn-back i,
    .btn-reset i {
        font-size: 1.2rem;
        margin: 0;
        display: block;
    }

    .btn-next {
        flex: 0 1 auto;
        min-width: 96px;
        height: 38px;
        padding: 0 14px;
        border-radius: 19px;
        font-size: 0.8rem;
        gap: 4px;
        justify-content: center;
        background: var(--accent);
        color: #000;
    }

    .btn-next .btn-label {
        display: inline;
        font-size: 0.78rem;
        text-transform: uppercase;
        font-weight: 700;
    }

    .btn-next i {
        font-size: 1.05rem;
        margin: 0;
    }

    .btn-next:disabled {
        opacity: 0.4;
        background: #333;
        color: #666;
    }

    .btn-reset {
        opacity: 0.7;
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* Две колонки опций, квадратные фото */
    .options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .option-card {
        min-height: 0;
        border-radius: 10px;
        background: var(--bg-panel);
        border-color: var(--border);
    }

    .option-card:hover {
        transform: none;
    }

    .option-card:hover::after {
        opacity: 0;
    }

    .card-img-container {
        aspect-ratio: 1 / 1;
        width: 100%;
        height: auto;
    }

    .option-card .card-img {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-desc {
        font-size: 0.68rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 6px;
    }

    .card-price {
        font-size: 0.85rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
    }

    .filter-tab {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .filter-tab.active {
        box-shadow: none;
    }

    h2 {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .section-label {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        margin-bottom: 10px;
    }

    .step-desc {
        font-size: 0.84rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .option-card.selected,
    .option-card:hover {
        box-shadow: none;
        transform: none;
    }

    .option-card:active {
        transform: scale(var(--press-scale));
    }

    .option-card:hover .card-img {
        transform: none;
    }

    .btn-next:not(:disabled) {
        animation: none !important;
    }

    .title-gold {
        animation: none;
        text-shadow: 0 0 14px var(--accent-glow);
    }

    .catalog-card {
        transition: border-color var(--duration-med) var(--ease-out),
            transform var(--duration-fast) var(--ease-out);
    }

    .catalog-card:active {
        transform: scale(var(--press-scale));
    }

    /* Модалки / форма — единый стиль bottom-sheet */
    .wood-modal-overlay,
    .modal-overlay,
    .info-modal-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        background: rgba(0, 0, 0, 0.75);
    }

    .wood-modal-content,
    .modal-content,
    .info-modal {
        width: 100% !important;
        max-width: 100%;
        max-height: min(92dvh, 920px);
        height: auto;
        margin: 0;
        border-radius: 20px 20px 0 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        background: var(--bg-panel);
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
        animation: sheetUp 0.28s ease;
        transform: none;
    }

    .wood-modal-overlay.active .wood-modal-content {
        transform: none;
    }

    .wood-modal-content {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: min(92dvh, 920px);
        height: min(92dvh, 920px);
    }

    .wood-modal-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    .wood-modal-body {
        display: block;
        height: auto;
        min-height: 0;
    }

    .wood-modal-image-container {
        width: 100%;
        height: auto;
        max-height: 34vh;
        min-height: 180px;
        aspect-ratio: 16 / 11;
        border-radius: 0;
    }

    .wood-modal-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .wood-modal-info {
        padding: 18px 18px 8px;
        overflow: visible;
        max-height: none;
        height: auto;
    }

    .wood-modal-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }

    .wood-modal-footer-value {
        font-size: 1.05rem;
    }

    .wood-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.55);
    }

    .wood-modal-badges {
        margin-bottom: 12px;
    }

    .modal-content {
        padding: 28px 20px calc(20px + env(safe-area-inset-bottom, 0px));
        text-align: left;
    }

    .modal-title {
        font-size: 1.45rem;
        color: #fff;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .modal-summary-preview {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 20px;
        text-align: left;
    }

    .modal-input,
    .modal-textarea {
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        color: #fff;
        width: 100%;
    }

    .modal-input:focus,
    .modal-textarea:focus {
        border-color: var(--accent);
        outline: none;
    }

    .modal-submit-btn {
        width: 100%;
        background: var(--accent);
        color: #000;
        border: none;
        border-radius: 24px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 14px 20px;
    }

    .modal-icon {
        color: var(--accent);
        font-size: 2.5rem;
        text-align: center;
    }

    .info-modal {
        display: flex;
        flex-direction: column;
        height: min(92dvh, 920px);
        max-height: min(92dvh, 920px);
        overflow: hidden;
    }

    .info-modal-handle {
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.28);
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    .info-modal-header {
        padding: 12px 16px 14px;
        flex-shrink: 0;
    }

    .info-modal-header h3 {
        font-size: 1.15rem;
    }

    .info-modal-body {
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    .info-sidebar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 10px 12px;
        gap: 8px;
        background: rgba(0, 0, 0, 0.28);
        flex-shrink: 0;
        scrollbar-width: none;
    }

    .info-sidebar::-webkit-scrollbar {
        display: none;
    }

    .info-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        width: auto;
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .info-tab-btn.active {
        background: rgba(255, 193, 7, 0.18);
        border-color: rgba(255, 193, 7, 0.45);
        color: var(--accent);
    }

    .info-content {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .info-content-inner {
        font-size: 0.95rem;
    }

    .menu-button,
    .hero-header .menu-button {
        width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .card-tag {
        font-size: 0.58rem;
        padding: 3px 7px;
    }

    .hero-catalog-link {
        display: inline-block;
        font-size: 0.75rem;
        margin-right: 0;
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-card-img {
        aspect-ratio: 1 / 1;
    }

    .catalog-card-desc {
        display: none;
    }

    .catalog-card-title {
        font-size: 1rem;
    }

    .catalog-card-body {
        padding: 12px;
    }

    .catalog-card-footer {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .catalog-card-price {
        font-size: 0.95rem;
    }

    .catalog-card-cta {
        font-size: 0.78rem;
    }

    .gallery-arrow {
        opacity: 0.9;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .config-header .config-logo img {
        display: none;
    }

    .config-header .config-logo {
        width: 28px;
        height: 28px;
        background: url('/favicon.ico') no-repeat center / contain;
        border-radius: 50%;
    }

    .preview-frame {
        height: min(100vw, 38vh);
        max-height: 38vh;
    }
}

@media (max-width: 380px) {
    .btn-next {
        min-width: 84px;
        padding: 0 10px;
    }

    .btn-next .btn-label {
        font-size: 0.7rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes sheetUp {
    from { transform: translateY(40%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

/* Превью: кнопка разворота — только mobile (снимаем hidden через media) */
.preview-expand-btn[hidden] {
    display: none !important;
}

.preview-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    animation: fadeInUp 0.22s ease;
}

.preview-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.preview-lightbox-close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
}

.preview-lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (hover: none) {
    .option-card:hover {
        transform: none;
        border-color: var(--border);
        box-shadow: none;
    }

    .option-card.selected:hover {
        border-color: var(--accent);
    }

    .option-card:hover::after {
        opacity: 0;
    }

    .option-card:hover .card-img {
        transform: none;
    }

    .catalog-card:hover {
        transform: none;
        box-shadow: none;
        background: var(--surface-1);
        border-color: var(--border-soft);
    }

    .btn-next:not(:disabled):hover {
        background: var(--accent);
        box-shadow: none;
    }

    .btn-start:hover {
        transform: none;
        background: var(--accent);
        box-shadow: 0 8px 24px rgba(255, 193, 7, 0.18);
    }

    .filter-tab:hover {
        background: transparent;
        border-color: var(--border);
        color: var(--text-muted);
    }

    .filter-tab.active:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: #000;
    }
}

/* Desktop density / quieter chrome */
@media (min-width: 901px) {
    .preview-frame {
        box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    }

    .info-modal,
    .wood-modal-content {
        box-shadow: var(--shadow-soft);
        border-color: var(--border-soft);
    }

    .btn-next:not(:disabled) {
        animation: none;
    }

    .title-gold {
        animation: none;
        text-shadow: 0 0 16px var(--accent-glow);
    }

    .global-glow {
        opacity: 0.7;
        background: radial-gradient(circle, rgba(255, 193, 7, 0.07) 0%, transparent 70%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .title-gold,
    .btn-next:not(:disabled),
    .view-section.active {
        animation: none !important;
    }

    .option-card:hover,
    .catalog-card:hover,
    .btn-start:hover {
        transform: none;
    }
}

