* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base colors */
    --bg-primary: #FFFFFF;
    --text-primary: #0F0F0F;
    --text-secondary: #5C5046;
    
    /* Skin-inspired accent palette */
    --skin-light: #F5EDE6;
    --skin-warm: #E8D5C4;
    --skin-sand: #D8C3A5;
    --skin-deep: #8C6A4E;
    
    /* Glass effect - более стеклянный */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(35px);
    --glass-extended: rgba(255, 255, 255, 0.15);
    
    /* Shadows - обновлён */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Radius - унифицирован 14px */
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: #F5F0E8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

/* Фон с замыленным изображением - эффект легкого стекла */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Скинкод%20фотки%20сайт/hero-bg2.png') center/cover no-repeat;
    filter: blur(24px) brightness(1.25) saturate(0.75) opacity(0.9);
    transform: scale(1.1);
    z-index: -2;
}

body::after {
    content: none;
}

.app {
    width: 100%;
    max-width: 1200px;
    padding: 40px 120px 80px;
    z-index: 1;
}

/* Menu Button - Default: Aligned with logo on the right, NO animation */
.menu-btn {
    position: fixed;
    top: 50px;
    right: 40px;
    width: 80px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

.menu-btn::before,
.menu-btn::after,
.menu-btn-lines {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #0F0F0F;
    border-radius: 2px;
    transition: none;
}

.menu-btn-lines {
    background: #0F0F0F;
}

/* Scrolled state: Circle button slides to bottom right WITH animation */
.menu-btn.scrolled {
    top: auto;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(40, 40, 40, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
    gap: 6px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-btn.scrolled::before,
.menu-btn.scrolled::after,
.menu-btn.scrolled .menu-btn-lines {
    width: 24px;
    height: 2px;
    background: white;
}

/* Active/Open state */
.menu-btn.active::before {
    transform: rotate(45deg) translateY(7px);
}

.menu-btn.active::after {
    transform: rotate(-45deg) translateY(-7px);
}

.menu-btn.active .menu-btn-lines {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.scrolled.active {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.95) 0%, rgba(80, 80, 80, 1) 100%);
}

.menu-btn:hover {
    transform: scale(1.05);
}

.menu-btn.scrolled:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.menu-btn:active {
    transform: scale(0.95);
}

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

/* Скрываем кнопку меню на этапах заполнения формы */
#step-1-5 .menu-btn,
#step-2 .menu-btn,
#step-3 .menu-btn,
#step-4 .menu-btn {
    display: none;
}

/* Menu Modal */
.menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 110px 40px 40px;
}

.menu-modal.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    background: rgba(250, 245, 238, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 40px 32px 32px;
    min-width: 300px;
    max-width: 340px;
    transform-origin: top right;
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-modal.active .menu-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.menu-modal:not(.active) .menu-content {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(140, 106, 78, 0.1);
    border: none;
    font-size: 28px;
    color: #8C6A4E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-close:hover {
    background: rgba(140, 106, 78, 0.2);
    transform: rotate(90deg) scale(1.05);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link {
    font-size: 15px;
    color: #4A3F35;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.menu-link:hover {
    background: rgba(140, 106, 78, 0.08);
    transform: translateX(4px);
}

.menu-link-highlight {
    background: transparent;
    border: 2px solid #8C6A4E;
    color: #8C6A4E;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.menu-link-highlight:hover {
    background: #8C6A4E;
    color: white;
    transform: translateY(-2px);
}

/* Logo - Left aligned, larger, minimal spacing */
.logo-container {
    text-align: left;
    margin-bottom: 8px;
    margin-top: 0;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    margin-left: -30px;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .app {
        padding: 32px 60px 60px;
    }
    
    .menu-btn {
        top: 70px;
        right: 30px;
        width: 44px;
        height: 32px;
    }
    
    .menu-btn.scrolled {
        top: auto;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
    }
    
    .logo-img {
        height: 120px;
    }
    
    .footer {
        padding: 48px 60px 32px;
    }
}

@media (max-width: 768px) {
    .app {
        padding: 24px 24px 48px;
        position: relative;
    }
    
    #step-1 {
        position: relative;
    }
    
    .menu-btn {
        position: absolute !important;
        top: 36px !important;
        right: 20px !important;
        width: 36px !important;
        height: 28px !important;
        gap: 6px !important;
        transition: none !important;
        z-index: 100;
    }
    
    .menu-btn::before,
    .menu-btn::after,
    .menu-btn-lines {
        width: 24px !important;
        height: 2px !important;
        transition: none !important;
    }
    
    .menu-btn.scrolled {
        position: fixed !important;
        top: auto !important;
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(40, 40, 40, 1) 100%) !important;
        gap: 6px !important;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        z-index: 1000 !important;
        transform: scale(1) !important;
    }
    
    /* Скрываем кнопку меню в верхнем углу на всех этапах формы */
    #step-1-5 .menu-btn:not(.scrolled),
    #step-2 .menu-btn:not(.scrolled),
    #step-3 .menu-btn:not(.scrolled),
    #step-4 .menu-btn:not(.scrolled) {
        display: none !important;
    }
    
    .menu-btn.scrolled::before,
    .menu-btn.scrolled::after,
    .menu-btn.scrolled .menu-btn-lines {
        width: 20px !important;
        height: 2px !important;
        background: white !important;
        transition: all 0.5s ease-in-out !important;
    }
    
    .logo-img {
        height: 100px !important;
    }
    
    /* Compact mobile layout - hero and buttons visible without scroll */
    .logo-container {
        margin-bottom: -21px !important;
        margin-top: -25px !important;
    }
    
    .hero-image-block {
        max-height: 70vh !important;
        min-height: auto !important;
        margin-top: 0 !important;
        margin-bottom: -10px !important;
        margin-left: -9px !important;
        margin-right: -9px !important;
        width: calc(100% + 18px) !important;
        max-width: calc(100% + 18px) !important;
        display: flex !important;
        justify-content: center !important;
        overflow: hidden;
        position: relative;
        border-radius: 32px !important;
    }
    
    .hero-bg-img {
        max-height: 70vh !important;
        width: 100% !important;
        height: 70vh !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block;
    }
    
    .hero-start-btn {
        position: relative !important;
        margin-top: 12px !important;
        margin-left: 0 !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: white !important;
        border-radius: 24px !important;
        border: 2px solid rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        font-weight: 500 !important;
        letter-spacing: 0.02em !important;
        align-self: flex-start !important;
    }
    
    .hero-text-overlay {
        padding: 24px 20px 16px !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-tagline {
        font-size: 16px !important;
    }
    
    .scroll-indicator {
        margin: 32px 0;
    }
    
    .scroll-arrow {
        width: 36px;
        height: 52px;
    }
    
    .btn-outline-black {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    .btn-start {
        margin-top: 6px !important;
        padding: 12px 28px !important;
        font-size: 14px !important;
        color: #F5E6D3 !important;
        border-color: #F5E6D3 !important;
    }
}

/* Секции */
.step {
    display: none !important;
    animation: fadeIn 0.4s ease-out;
}

.step.active {
    display: block !important;
}

#step-1,
#step-1-5,
#step-2,
#step-3,
#step-4 {
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Card - эффект плавающего стекла */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 64px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255,255,255,0.15) inset,
        0 8px 32px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    transform: perspective(1000px) rotateX(1deg) translateZ(10px);
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateZ(20px) translateY(-4px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255,255,255,0.2) inset,
        0 12px 40px rgba(0,0,0,0.12);
}

/* Блок с фото и надписями - реальный размер */
.hero-image-block {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto 32px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 60px 120px rgba(0, 0, 0, 0.35), 
        0 40px 80px rgba(0, 0, 0, 0.30),
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.20),
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255,255,255,0.1) inset,
        0 0 60px rgba(0, 0, 0, 0.1);
    height: auto;
    transform: perspective(1000px) rotateX(2deg);
    transform-style: preserve-3d;
}

.hero-image-block .hero-bg-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scaleX(-1); /* Отзеркаливание */
    display: block;
}

.hero-text-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 48px 64px 48px 48px;
    background: 
        /* Плавный градиент снизу */
        linear-gradient(to top, 
            rgba(0,0,0,0.82) 0%, 
            rgba(0,0,0,0.75) 8%,
            rgba(0,0,0,0.65) 18%,
            rgba(0,0,0,0.50) 30%,
            rgba(0,0,0,0.35) 45%,
            rgba(0,0,0,0.20) 60%,
            rgba(0,0,0,0.10) 75%,
            rgba(0,0,0,0.04) 88%,
            transparent 100%),
        /* Плавный градиент слева */
        linear-gradient(to right, 
            rgba(0,0,0,0.45) 0%,
            rgba(0,0,0,0.32) 10%,
            rgba(0,0,0,0.18) 22%,
            rgba(0,0,0,0.08) 38%,
            rgba(0,0,0,0.02) 55%,
            transparent 70%),
        /* Лёгкий градиент сверху для полноты */
        linear-gradient(to bottom, 
            rgba(0,0,0,0.15) 0%,
            transparent 15%);
    z-index: 2;
}

.hero-title {
    font-size: 44px;
    font-weight: 700;
    color: #F5E6D3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 
        0 4px 12px rgba(0,0,0,0.4),
        0 8px 24px rgba(0,0,0,0.3),
        0 16px 48px rgba(0,0,0,0.2);
    max-width: 420px;
}

.hero-tagline {
    font-size: 16px;
    color: rgba(245, 230, 211, 0.95);
    letter-spacing: 0.03em;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 
        0 2px 8px rgba(0,0,0,0.4),
        0 4px 16px rgba(0,0,0,0.25);
    max-width: 380px;
}

/* Блок формы выбора подтона и типа кожи */
.hero-form {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255,255,255,0.3) inset,
        0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    transform: perspective(1000px) rotateX(1deg) translateZ(10px);
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.hero-form:hover {
    transform: perspective(1000px) rotateX(0deg) translateZ(20px) translateY(-4px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255,255,255,0.4) inset,
        0 12px 40px rgba(0,0,0,0.12);
}

.form-intro {
    font-size: 15px;
    color: #5C5046;
    margin-bottom: 32px;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .hero-image-block {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 24px;
        height: auto;
        transform: perspective(1000px) rotateX(1deg);
    }
    
    .hero-text-overlay {
        padding: 32px 32px 32px 24px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-form {
        padding: 32px 24px;
    }
}

.glass-card.wide {
    max-width: 900px;
    margin: 0 auto;
}

.glass-card.center {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 32px 24px;
    }
}

/* Типографика - заголовок 56-64px, weight 700, letter-spacing +5-8% */
.title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.05;
}

.subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.5;
    max-width: 480px;
}

.label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4A3F35;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Form Group */
.form-group {
    margin-bottom: 48px;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
    color: #4A3F35;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.02);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
}

.option-btn.selected {
    background: var(--text-primary);
    border: 2px solid var(--text-primary);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Фото-карточки с подписями на фото */
.options-grid.visual {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-card {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.photo-wrapper {
    position: relative;
    width: 100%;
    height: 110px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-card:hover .photo-wrapper img {
    transform: scale(1.08);
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: white;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Выделение белой рамкой */
.photo-card.selected {
    background: transparent;
    border: none;
    transform: scale(1.02);
    box-shadow: 0 0 0 3px white, 0 8px 24px rgba(0,0,0,0.2);
}

.photo-card.selected .photo-wrapper {
    box-shadow: inset 0 0 0 2px white;
}

.photo-card.selected .photo-label {
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    color: #4A3F35;
    font-weight: 600;
}

.option-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.option-btn.selected .option-color {
    border-color: rgba(255, 255, 255, 0.5);
}

.icon {
    font-size: 20px;
}

/* Buttons - основная кнопка 56px, lift hover */
.btn-primary, .btn-secondary, .btn-outline, .btn-outline-black {
    width: 100%;
    height: 56px;
    padding: 0 32px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Кнопка с черной рамкой - 2D эффект */
.btn-outline-black {
    background: transparent;
    border: 2px solid #0F0F0F;
    color: #0F0F0F;
    box-shadow: none;
    transform: none;
    margin-top: 0;
    margin-bottom: 0;
}

/* Анимированная стрелка вниз */
.scroll-indicator {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 40px;
    height: 60px;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(12px);
    }
    60% {
        transform: translateY(6px);
    }
}

/* Анимация появления элементов при прокрутке */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-item-new {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-item-new.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-numbers {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.trust-numbers.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-outline-black:hover {
    background: #0F0F0F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Кнопка «Начать подбор» - отступ сверху */
.btn-start {
    margin-top: 0;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(15, 15, 15, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.35);
}

.btn-primary:disabled {
    background: rgba(15, 15, 15, 0.25);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.02);
    transform: scale(1.02);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-outline {
    background: transparent;
    border: 1px solid #4A3F35;
    color: #4A3F35;
    margin-top: 32px;
    transition: all 0.3s ease;
}

/* Disabled state - светлее */
.btn-outline:disabled {
    opacity: 0.35;
    border-color: rgba(74, 63, 53, 0.25);
    color: rgba(74, 63, 53, 0.4);
    cursor: not-allowed;
}

/* Active (not disabled) state - темнее/ярче */
.btn-outline:not(:disabled) {
    border-color: #4A3F35;
    color: #4A3F35;
    font-weight: 500;
}

.btn-outline:hover:not(:disabled) {
    background: #4A3F35;
    color: white;
}

/* Кнопка Начать подбор на главной */
.btn-start {
    max-width: 220px;
    margin: 32px 0 0;
    display: inline-block;
    background: transparent;
    border: 2px solid #F5E6D3;
    color: #F5E6D3;
    box-shadow: none;
    border-radius: 100px;
    padding: 16px 40px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start:hover:not(:disabled) {
    background: rgba(245, 230, 211, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Split Layout (Step 2) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Левая колонка - glass-card стиль */
.selectors-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.catalog-search-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.selector-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.glass-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 15, 15, 0.08);
    background: rgba(255, 255, 255, 0.45);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-fast);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.glass-input::placeholder {
    color: rgba(92, 80, 70, 0.55);
}

.glass-input:focus {
    outline: none;
    border-color: rgba(74, 63, 53, 0.28);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(140, 106, 78, 0.08);
}

.glass-input:hover {
    background: rgba(255, 255, 255, 0.56);
}

.glass-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #4A3F35;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A3F35' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: var(--transition-fast);
}

.glass-select:hover {
    background: rgba(255, 255, 255, 0.6);
}

.glass-select:focus {
    outline: none;
    border-color: #4A3F35;
    box-shadow: 0 0 0 3px rgba(74, 63, 53, 0.08);
}

.glass-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hint {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.02em;
}

.selected-product-chip {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(140, 106, 78, 0.1);
    border: 1px solid rgba(140, 106, 78, 0.16);
    color: #4A3F35;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    transition: var(--transition-fast);
}

.selected-product-chip:empty {
    display: none;
}

.search-results {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.search-result-card {
    display: flex;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    border: 1px solid rgba(15, 15, 15, 0.08);
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(140, 106, 78, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.search-result-card.selected {
    border-color: rgba(140, 106, 78, 0.5);
    background: linear-gradient(180deg, rgba(248, 242, 235, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 18px 30px rgba(140, 106, 78, 0.12);
}

.search-result-image {
    flex: 0 0 56px;
    height: 76px;
    border-radius: 14px;
    background: rgba(245, 240, 232, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.search-result-brand {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.search-result-line,
.search-result-shade,
.search-result-price {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.35;
}

.search-result-price {
    font-weight: 700;
    color: #4A3F35;
    margin-top: 2px;
}

/* Products Panel - правая колонка с увеличенным padding */
.products-panel {
    background: linear-gradient(180deg, rgba(248, 246, 244, 0.6) 0%, rgba(236, 231, 226, 0.5) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 360px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.03);
}

.products-panel::-webkit-scrollbar {
    width: 6px;
}

.products-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 3px;
}

.products-panel::-webkit-scrollbar-thumb {
    background: rgba(15, 15, 15, 0.12);
    border-radius: 3px;
}

.products-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 15, 15, 0.2);
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--text-secondary);
}

.empty-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
    opacity: 0.7;
    border-radius: var(--radius-md);
}

.empty-state p {
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Product Card - Premium с 3D эффектом */
.product-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    animation: slideIn 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.product-card:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.product-image {
    width: 85px;
    height: 110px;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    position: relative;
    transform: perspective(600px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: perspective(600px) rotateY(0deg) scale(1.08);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.product-info {
    flex: 1;
}

.product-brand {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-line {
font-size: 15px;
font-weight: 500;
color: var(--text-primary);
margin-bottom: 4px;
letter-spacing: 0.01em;
line-height: 1.3;
}

.product-shade {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(15, 15, 15, 0.1);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    padding-bottom: 3px;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: rgba(15, 15, 15, 0.2);
    transform: scale(1.1);
    color: var(--skin-deep);
    font-weight: 600;
}

/* Новый дизайн блока "Как это работает?" */
.how-it-works-new {
    padding: 40px 24px 60px;
    margin-top: 40px;
}

.how-it-works-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding-top: 20px;
}

/* Кнопка помощи рядом с label */
.label-with-help {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.label-with-help .label {
    margin-bottom: 0;
}

.help-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #8C6A4E;
    background: transparent;
    color: #8C6A4E;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    position: relative;
    top: -1px;
}

.help-btn:hover {
    background: #8C6A4E;
    color: white;
}

/* Модальное окно подсказки */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.help-modal {
    background: rgba(250, 245, 238, 0.88);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 
        0 8px 32px rgba(140, 106, 78, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.help-modal-overlay.active .help-modal {
    transform: translateY(0);
}

.help-modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8C6A4E;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.help-modal-close-x:hover {
    background: rgba(140, 106, 78, 0.1);
}

.help-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #8C6A4E;
    margin-bottom: 16px;
    padding-right: 40px;
}

.help-modal-content {
    font-size: 15px;
    line-height: 1.6;
    color: #4A3F35;
}

.help-modal-content strong {
    color: #8C6A4E;
    font-weight: 600;
}

/* Мобильные стили для модального окна */
@media (max-width: 768px) {
    .help-modal-overlay {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .help-modal {
        background: linear-gradient(135deg, rgba(250, 245, 238, 0.92) 0%, rgba(245, 238, 230, 0.88) 100%);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        padding: 28px 24px;
        margin: 16px;
        width: calc(100% - 32px);
        max-width: none;
        box-shadow: 
            0 8px 24px rgba(140, 106, 78, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    
    .help-modal-title {
        font-size: 20px;
    }
    
    .help-modal-close-x {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
}

.btn-outline-beige {
    background: transparent;
    border: 2px solid #8C6A4E;
    color: #8C6A4E;
    padding: 16px 40px;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-beige:hover {
    background: #8C6A4E;
    color: white;
    transform: translateY(-2px);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    font-style: italic;
    color: #8C6A4E;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.02em;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.step-item-new {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
    margin-bottom: 20px;
}

.step-item-new:last-child {
    margin-bottom: 0;
}

.step-item-new.step-left {
    align-items: flex-start;
    margin-left: 0;
}

.step-item-new.step-right {
    align-items: flex-end;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.step-number-new {
    font-size: 96px;
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    color: #8C6A4E;
}

.step-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.step-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 350px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
        margin-bottom: 32px;
    }
    
    .step-item-new {
        margin-bottom: 20px;
    }
    
    .step-number-new {
        font-size: 72px;
    }
}

/* Цифры которым доверяют */
.trust-numbers {
    padding: 60px 60px;
    margin: 40px 0;
    border: 1.5px solid rgba(140, 106, 78, 0.35);
    border-radius: var(--radius-lg);
    max-width: 100%;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.numbers-container.triangle-layout {
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.numbers-row {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.numbers-row.top-row {
    width: 100%;
    max-width: 600px;
}

.numbers-row.bottom-row {
    margin-top: 10px;
}

.number-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.number-value {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 700;
    font-style: italic;
    color: #8C6A4E;
    line-height: 1;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.number-value .suffix-small {
    font-size: 24px;
    font-weight: 400;
}

.number-value.animated {
    transform: scale(1.1);
}

.number-label {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .trust-numbers {
        padding: 40px 24px;
        margin: 40px 12px;
        border: 1.5px solid rgba(140, 106, 78, 0.4);
    }
    
    .numbers-container {
        gap: 32px;
    }
    
    .numbers-container.triangle-layout {
        gap: 24px;
    }
    
    .numbers-row {
        gap: 40px;
    }
    
    .numbers-row.top-row {
        max-width: 100%;
    }
    
    .number-item {
        min-width: 120px;
    }
    
    .number-value {
        font-size: 42px;
    }
    
    .number-label {
        font-size: 13px;
    }
}

.btn-delete {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: scale(1.1);
}

/* Loader - Advanced */
.loader {
    margin-bottom: 32px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(15, 15, 15, 0.08);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.loading-card {
    padding: 64px 48px !important;
}

.loader-advanced {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    border-top-color: var(--text-primary);
    animation: rotate 2s linear infinite;
}

.ring-2 {
    width: 90px;
    height: 90px;
    top: 15px;
    left: 15px;
    border-right-color: var(--text-primary);
    animation: rotate 1.5s linear infinite reverse;
}

.ring-3 {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-bottom-color: var(--text-primary);
    animation: rotate 1s linear infinite;
}

.loader-core {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 45px;
    left: 45px;
    background: var(--text-primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.7; }
}

.loading-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: 0.04em;
    animation: fadePulse 2s ease-in-out infinite;
}

@keyframes fadePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.loading-step.active {
    opacity: 1;
    color: var(--text-primary);
    transform: translateX(8px);
}

.loading-step.completed {
    opacity: 0.6;
    color: var(--text-secondary);
}

.loading-step.completed .step-dot {
    background: var(--text-primary);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.2);
    transition: all 0.3s ease;
}

.loading-step.active .step-dot {
    background: var(--text-primary);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(15, 15, 15, 0.3);
}

.step-label {
    font-weight: 500;
    width: 200px;
    text-align: left;
}

.loading-sub {
    font-size: 15px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .product-image {
        width: 65px;
        height: 85px;
    }
    
    .result-image {
        width: 65px;
        height: 85px;
    }
    
    .product-card img,
    .result-card img {
        max-width: 65px;
        max-height: 85px;
    }
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
    color: inherit;
    display: block;
}

.result-card:hover {
    transform: scale(1.04) translateY(-4px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.1);
}

.result-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Playfair Display', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    letter-spacing: 0.02em;
}

.result-image {
    width: 85px;
    height: 110px;
    background: transparent;
    border-radius: var(--radius-sm);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    transform: perspective(500px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.result-card:hover .result-image {
    transform: perspective(500px) rotateY(0deg) scale(1.12);
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
}

.result-card:hover .result-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.22));
}

.result-brand {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.result-line {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.result-shade {
    font-size: 12px;
    color: var(--skin-deep);
    font-weight: 500;
    margin-bottom: 8px;
}

.result-price {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Кнопка Купить в результатах */
.btn-buy {
    width: 100%;
    padding: 10px 16px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.btn-buy:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Контейнер для кнопок в результатах */
.results-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 40px;
        letter-spacing: 0.04em;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
    
    .form-group {
        margin-bottom: 32px;
    }
    
    .selectors-panel {
        padding: 24px;
    }
    
    .products-panel {
        padding: 24px;
    }

    .search-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 32px;
        letter-spacing: 0.03em;
    }
    
    .option-btn {
        padding: 16px 18px;
    }

    .search-result-card {
        padding: 10px;
    }

    .search-result-image {
        flex-basis: 50px;
        height: 68px;
    }
}

/* Секция «Как это работает» */
.how-it-works {
    margin-top: 80px;
    padding-bottom: 60px;
}

.how-it-works .glass-card {
    padding: 48px 64px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .how-it-works {
        margin-top: 60px;
        padding-bottom: 40px;
    }
    
    .how-it-works .glass-card {
        padding: 32px 24px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
    
    .step-content p {
        font-size: 14px;
    }
}

/* Прогресс бар */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px 0;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.progress-step.active {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

.progress-step.completed {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.progress-line {
    width: 40px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.progress-line.active {
    background: var(--text-primary);
}

/* Контейнер для кнопок действий */
.step-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.step-actions .btn-primary,
.step-actions .btn-outline,
.step-actions .btn-outline-black {
    flex: 1;
    margin: 0;
}

/* Контейнер для прогресса с кнопкой назад */
.progress-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 0;
}

/* Стрелка «Назад» */
.btn-back-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-back-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .progress-bar {
        gap: 6px;
        margin-bottom: 0;
    }
    
    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .progress-line {
        width: 24px;
    }
    
    .progress-header {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .btn-back-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
}

/* Footer - Clean text on background */
.footer {
    margin-top: 100px;
    padding: 60px 120px 40px;
    text-align: left;
    width: 100%;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

.footer-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-brand-section {
    flex: 1;
}

.footer-brand {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 120px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-links-column a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .menu-modal {
        padding: 80px 16px;
        align-items: flex-start;
        justify-content: center;
    }
    
    .menu-content {
        min-width: 280px;
        max-width: 320px;
        width: 100%;
        padding: 36px 24px 24px;
        border-radius: 24px;
        transform-origin: top center;
        transform: scale(0.95) translateY(-20px);
    }
    
    .menu-modal.active .menu-content {
        transform: scale(1) translateY(0);
    }
    
    .menu-modal:not(.active) .menu-content {
        transform: scale(0.95) translateY(-20px);
    }
    
    .menu-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .menu-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
    
    .footer {
        margin-top: 60px;
        padding: 40px 24px 32px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        align-items: center;
    }
    
    .footer-brand {
        font-size: 24px;
    }
    
    .footer-tagline {
        font-size: 13px;
    }
    
    .footer-links {
        gap: 48px;
        justify-content: center;
    }
    
    .footer-links-column h4 {
        font-size: 11px;
    }
    
    .footer-links-column a {
        font-size: 12px;
    }
    
    .footer-copy {
        font-size: 11px;
    }
}

/* Native-style dropdown for lines with images */
.native-style-dropdown {
    position: relative;
    width: 100%;
}

.native-dropdown-btn {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 15, 15, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.native-dropdown-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 15, 15, 0.2);
}

.native-dropdown-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.native-dropdown-btn .selected-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.native-dropdown-btn .dropdown-arrow {
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.native-dropdown-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.native-dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 15, 15, 0.1);
    border-radius: var(--radius-sm);
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.native-dropdown-list.show {
    display: block;
}

.native-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(15, 15, 15, 0.05);
}

.native-dropdown-item:last-child {
    border-bottom: none;
}

.native-dropdown-item:hover {
    background: rgba(15, 15, 15, 0.05);
}

.native-dropdown-item img {
    width: 28px !important;
    height: 36px !important;
    object-fit: contain !important;
    flex-shrink: 0;
}

.native-dropdown-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
