/* --- CORE VARIABLES --- */
:root {
    --bg-dark: #050505;
    --bg-panel: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #FFC107;
    --accent-glow: rgba(255, 193, 7, 0.6);
    --border: #222222;
    --grid-color: rgba(255, 255, 255, 0.03);
    --font-display: 'Arial Black', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --success-green: #10b981;
    --success-glow: rgba(16, 185, 129, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- 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.1) 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.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.hero-header .menu-button:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: var(--accent);
    color: var(--accent);
}

/* Кнопка языка (круглая, только в hero) */
.hero-header .lang-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.hero-header .lang-button:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.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 20px var(--accent-glow), 0 0 40px var(--accent-glow);
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 10px var(--accent-glow);
    }
    to {
        text-shadow: 0 0 30px var(--accent-glow), 0 0 60px 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: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
    text-decoration: none;
}

.btn-start:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4);
}

.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: 0 0 6px rgba(255, 193, 7, 0.15);
}

.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: 0 0 10px rgba(255, 193, 7, 0.2);
}

.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 {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    max-width: 200px;
}

.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: 0 0 15px var(--accent-glow);
}

.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.8);
    backdrop-filter: blur(10px);
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    padding: 20px 40px;
    min-height: auto;
}

.config-scroll-area {
    padding-top: 0;
    padding-bottom: 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: 40px;
    padding-bottom: 90px;
}

.config-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.config-scroll-area::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.5;
}

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    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: all 0.3s;
}

.filter-tab:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.option-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card.included {
    border-color: #443a01;
    background: rgba(16, 185, 129, 0.05);
}

.option-card.selected {
    border-color: var(--accent);
    background: rgba(255, 193, 7, 0.03);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
}

.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(-5px);
    border-color: #444;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.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: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.option-card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 0 0 12px 12px;
}

.card-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 15px;
    height: 55px;
    overflow: hidden;
}

.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 #222;
    padding-top: 15px;
}

.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: 20px 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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: all 0.3s;
    text-transform: uppercase;
}

.btn-next:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-next:disabled {
    background: #333;
    color: #555;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-next:not(:disabled) {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0% {
        box-shadow: 0 0 0 0 #ffc10780;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.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: all 0.3s;
    margin-right: 15px;
}

.btn-back:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.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: all 0.3s;
    text-transform: uppercase;
    margin-left: 10px;
}

.btn-reset:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* --- 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: #000;
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}

.config-select:focus {
    border-color: var(--accent);
}

.config-select:disabled {
    background: #111;
    color: #555;
    cursor: not-allowed;
}

.cable-total-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.cable-total-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cable-total-value {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.cable-confirm-btn {
    background: var(--accent, #c9a03d);
    color: #0a0a0a;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 16px;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.cable-confirm-btn:hover:not(:disabled) {
    background: #dbb84d;
    transform: translateY(-1px);
}

.cable-confirm-btn:disabled {
    background: #3a3a3a;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.cable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-sizing: border-box;
    padding: 10px;
    pointer-events: auto;
}

.cable-overlay-content {
    width: 100%;
    max-width: 300px;
    color: #fff;
    z-index: 11;
    position: relative;
}

.cable-overlay-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    z-index: 15;
}

.cable-overlay-close:hover {
    background: rgba(255, 193, 7, 0.7);
    transform: scale(1.1);
}

.cable-overlay-content .config-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.cable-overlay-content .config-group {
    width: 100%;
    min-width: 0;
}

.cable-overlay-content .config-select {
    background: #222;
    border: 1px solid #444;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.cable-overlay-content .cable-total-preview {
    border-top: 1px solid #444;
    padding-top: 10px;
    margin-top: 10px;
}

.cable-overlay-content .cable-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

/* --- 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(--success-green);
    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(--success-green);
    color: #fff;
    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: #34d399;
    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: linear-gradient(145deg, #1f1e1e, #0d0d0d);
    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-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wood-modal-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.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;
    min-height: 0;
}

.wood-modal-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 24px 0 0 24px;
    overflow: hidden;
}

.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: 40px;
    overflow-y: auto;
    max-height: 100%;
    height: 100%;
    box-sizing: border-box;
}

.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: 30px;
}

.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.05);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.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: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-select {
    flex: 1;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-select:hover {
    background: #fff;
}

.btn-select.selected {
    background: #333;
    color: var(--text-muted);
    cursor: default;
}

.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%;
    background: var(--bg-dark);
    padding: 40px;
    color: var(--text-main);
    overflow-y: auto;
    height: 100%;
    font-family: var(--font-body);
}

.rules-title {
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 2rem;
    padding-top: 10px;
    font-weight: 700;
}

.rules-pane p {
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 1.5em;
    max-width: 100%;
    color: var(--text-main);
    text-align: justify;
    color: #b0b0b0;
}

.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%;
    padding: 40px;
    box-sizing: border-box;
}

.model-title {
    margin-top: 0;
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 20px;
    word-break: break-word;
}

.model-full-description {
    text-align: justify;
    white-space: pre-line;
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.6;
    color: var(--text-muted);
    color: #b0b0b0;
    margin-bottom: 20px;
}

.model-specs h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    width: 100%;
}

.spec-key {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    flex: 0 0 300px;
    padding-right: 15px;
}

.specs-list li:last-child {
    border-bottom: none;
}

.spec-value {
    color: var(--text-main);
    font-size: 1rem;
    text-align: right;
    flex: 1;
}

.model-description.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

.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: 120px;
}

.freq-chart {
    margin: 20px 0;
}

.freq-chart h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.freq-chart-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* --- КРУГЛАЯ КНОПКА ПЕРЕКЛЮЧЕНИЯ ЯЗЫКА (глобальная, для конфигуратора) --- */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Глобальные кнопки (для конфигуратора) – оставляем как есть */
.menu-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.menu-button:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.lang-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
}

.lang-button:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.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.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    box-sizing: border-box;
}

.info-modal {
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 90%;
    max-width: 1180px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    background: #0a0a0a;
}

.info-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0;
}

.info-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.info-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.info-sidebar {
    width: 250px;
    background: #050505;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px 0;
    flex-shrink: 0;
}

.info-tab-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.info-tab-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent);
}

.info-tab-btn.active {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.info-content {
    flex: 1;
    overflow-y: auto;
    padding: 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: 16px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.faq-question {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: '−';
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.5;
    display: none;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 193, 7, 0.3);
}

.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 {
        padding: 0 20px;
        top: 20px;
    }
    .hero-logo img {
        height: 32px;
    }
    .hero-right-buttons {
        gap: 10px;
    }
    .hero-header .menu-button,
    .hero-header .lang-button {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .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: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        min-height: 68px;
        border-radius: 30px;
        background: rgba(15, 15, 15, 0.8);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 20px;
        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: none;
    }

    .config-scroll-area {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .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: 20px 15px;
        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: 20px 10px 10px;
    }

    .preview-frame {
        width: calc(100% - 40px);
        margin: 0 20px 10px;
        border-radius: 0 0 20px 20px;
    }

    .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: 90px 20px 90px 20px;
    }

    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: 120px;
    }

    .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: 10px;
        left: 10px;
        width: calc(100% - 20px);
        border-radius: 30px;
        background: rgba(15, 15, 15, 0.5);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 20px;
        z-index: 100;
        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;
    }

    .btn-next {
        background: var(--accent);
        border-color: rgba(255, 255, 255, 0.3);
        color: #000;
    }

    .btn-back,
    .btn-next,
    .btn-reset {
        padding: 12px;
        border-radius: 40px;
        font-size: 0;
        min-width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-back i,
    .btn-next i,
    .btn-reset i {
        font-size: 1.4rem;
        display: block;
        line-height: 1;
    }

    .btn-next i {
        margin-left: 0;
    }

    .btn-back i {
        margin-right: 0;
    }

    .config-footer>div:first-child {
        flex: 1;
    }

    .config-footer>div:last-child {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 100%;
    }

    .btn-reset {
        order: 3;
        margin: 0;
    }

    .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-content {
        width: 95%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .wood-modal-body {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wood-modal-image-container {
        max-height: 35vh;
        min-height: 180px;
        border-radius: 24px 24px 0 0;
        overflow: hidden;
    }

    .wood-modal-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .wood-modal-info {
        padding: 20px;
        overflow-y: auto;
        max-height: calc(90vh - 35vh - 40px);
    }

    .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;
        font-size: 0.9rem;
    }

    .gallery-arrow {
        opacity: 0.8;
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }

    .gallery-dots {
        opacity: 1;
    }

    .menu-button {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .cable-overlay-content {
        max-width: 100%;
        padding: 5px;
    }

    .cable-overlay-content .config-row {
        flex-direction: column;
        gap: 8px;
    }

    .cable-overlay-content .config-group {
        width: 100%;
        min-width: 0;
    }

    .cable-overlay-content .config-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .cable-overlay-content .config-select {
        font-size: 0.8rem;
        padding: 8px 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .cable-overlay-content .cable-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .cable-overlay-content .cable-total-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@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) {
    .config-layout {
        flex-direction: column;
        overflow-y: auto;
    }

    .preview-pane {
        width: 100%;
        height: auto;
        flex-shrink: 0;
        padding: 40px 20px;
    }

    .preview-frame {
        width: 100%;
        max-height: 400px;
        margin-bottom: 20px;
    }

    .preview-summary {
        width: 100%;
        max-height: 150px;
    }

    .controls-pane {
        width: 100%;
        height: auto;
    }

    .preview-big-text {
        font-size: 3rem;
        bottom: 20px;
    }

    .preview-specs {
        display: none;
    }

    .config-footer {
        position: fixed;
        bottom: 8px;
        z-index: 20;
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn-back {
        order: 2;
    }

    .btn-next {
        order: 1;
        flex: 1;
    }

    .btn-reset {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .wood-modal-body {
        grid-template-columns: 1fr;
    }

    .wood-modal-image-container {
        min-height: 250px;
        border-radius: 24px 24px 0 0;
    }

    .wood-modal-nav {
        display: none;
    }

    .wood-counter {
        bottom: 80px;
    }

    .wood-modal-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .info-modal {
        width: 95%;
        height: 90vh;
        max-width: none;
    }

    .info-modal-body {
        flex-direction: column;
    }

    .info-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        overflow-x: auto;
        padding: 10px;
        white-space: nowrap;
    }

    .info-tab-btn {
        display: inline-block;
        width: auto;
        padding: 8px 16px;
        border-left: none;
    }

    .info-tab-btn.active {
        border-left: none;
        border-bottom: 2px solid var(--accent);
    }

    .info-content {
        padding: 20px;
    }

    .header-right {
        gap: 10px;
    }

    .step-indicator {
        font-size: 0.75rem;
    }

    .menu-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Дополнительные вспомогательные классы */
.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;
}