*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --color-bg: #faf8f5; --color-bg-warm: #f5f0eb; --color-cream: #ede6dd;
    --color-dark: #2c2420; --color-text: #4a3f38; --color-text-light: #8a7e76;
    --color-accent: #b8917a; --color-accent-light: #d4b5a3; --color-gold: #c9a96e;
    --color-white: #ffffff; --color-placeholder: #e8e0d8;
    --font-serif: 'Cormorant Garamond', serif; --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--color-dark); color: var(--color-text); }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: linear-gradient(180deg, rgba(44,36,32,0.7) 0%, transparent 100%); }
.header__inner { max-width: 1400px; margin: 0 auto; padding: 15px 30px; display: flex; align-items: center; }
.header__logo { display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--color-white); }
.header__brand { font-family: var(--font-serif); font-size: 24px; font-weight: 300; letter-spacing: 5px; text-transform: uppercase; color: var(--color-white); }
.header__sub { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.header__logo-image { 
    height: 140px; /* было 40px */
    width: auto; 
}

/* HERO SLIDER */
.hero-slider { position: relative; height: 100vh; width: 100vw; overflow: hidden; background: var(--color-dark); }
.slider__track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.slide { min-width: 100vw; height: 100vh; position: relative; }
.slide__background { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--color-dark); }
.slide__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(44,36,32,0.6) 0%, transparent 50%); pointer-events: none; }
.slide__content { position: absolute; top: 0; left: 0; z-index: 3; padding: 140px 40px; pointer-events: none; }
.slide__title { font-family: var(--font-serif); font-size: clamp(48px, 8vw, 90px); font-weight: 300; color: var(--color-white); letter-spacing: 4px; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.slide__slogan { font-family: var(--font-serif); font-size: clamp(16px, 2.5vw, 22px); font-style: italic; color: rgba(255,255,255,0.9); margin-top: 10px; }

/* NAVIGATION ARROWS (Main Slider) */
.slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.05);
    color: var(--color-white); font-size: 24px; cursor: pointer; z-index: 50;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.slider__arrow:hover { background: rgba(255,255,255,0.2); border-color: var(--color-gold); color: var(--color-gold); }
.slider__arrow--prev { left: 40px; }
.slider__arrow--next { right: 40px; }

/* THUMBNAILS BAR (No Arrows) */
.thumbnails-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(250, 248, 245, 0.15); backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.thumbnails-bar__wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}
.thumbnails-bar__wrapper::-webkit-scrollbar { display: none; }
.thumbnails-bar__track {
    display: flex; gap: 10px;
    min-width: max-content;
}
.thumb-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
    touch-action: manipulation;
    pointer-events: auto;
}
.thumb-nav:hover {
    background: rgba(255,255,255,0.3);
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.thumb-nav:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.5);
}
.thumb-nav--prev { margin-left: 0; }
.thumb-nav--next { margin-right: 0; }
.thumb-item {
    flex-shrink: 0; width: 70px; height: 100px; cursor: pointer;
    border: 2px solid transparent; border-radius: 4px; overflow: hidden; transition: all 0.3s ease;
}
.thumb-item:hover { border-color: rgba(255,255,255,0.5); }
.thumb-item.active { border-color: var(--color-gold); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* PRODUCT MODAL */
.product-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; pointer-events: none;
}
.product-modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__overlay { position: absolute; inset: 0; background: rgba(44, 36, 32, 0.96); backdrop-filter: blur(10px); }
.modal__content {
    position: relative; z-index: 2; width: 90%; max-width: 1200px; max-height: 95vh;
    background: var(--color-bg); display: flex; overflow: hidden;
    transform: translateY(30px) scale(0.98); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}
.product-modal.active .modal__content { transform: translateY(0) scale(1); }
.modal__close {
    position: absolute; top: 20px; right: 20px; z-index: 30;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(201, 169, 110, 0.4);
    background: rgba(255, 255, 255, 0.95); color: var(--color-text-light); font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.modal__close:hover { background: var(--color-gold); color: var(--color-white); border-color: var(--color-gold); transform: rotate(90deg); }

/* Modal Navigation Arrows */
.modal__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 25;
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.5);
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    color: var(--color-dark); font-size: 22px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.modal__nav:hover { 
    background: rgba(255, 255, 255, 1); 
    border-color: var(--color-gold); 
    color: var(--color-gold); 
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(201, 169, 110, 0.3);
}
.modal__nav--prev { left: 25px; }
.modal__nav--next { right: 25px; }
.modal__nav:disabled { 
    opacity: 0.3; 
    cursor: default; 
    border-color: rgba(0,0,0,0.1); 
    color: var(--color-text-light); 
    background: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

.modal__body { 
    display: flex; 
    width: 100%; 
    height: 100%; 
    min-height: 550px;
}
.modal__image-section { 
    flex: 1; 
    background: linear-gradient(135deg, var(--color-cream) 0%, #f5ebe0 100%); 
    position: relative;
    min-height: 550px;
    overflow: hidden;
}
.modal__image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.modal__image-section:hover .modal__image {
    transform: scale(1.02);
}
.modal__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.modal__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--color-dark);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}
.modal__dot:hover {
    opacity: 0.8;
    transform: scale(1.15);
}
.modal__dot.active {
    opacity: 1;
    transform: scale(1.4);
    border-color: var(--color-gold);
    background: var(--color-gold);
}

/* Ссылки на маркетплейсы */
.modal__links {
    margin-top: 20px;
}

.modal-links-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-link-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 11px;
}

.modal-link-btn.wb {
    background: linear-gradient(135deg, #cb11ab 0%, #8b117a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(203, 17, 171, 0.25);
}

.modal-link-btn.wb:hover {
    background: linear-gradient(135deg, #d416b5 0%, #a51695 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(203, 17, 171, 0.4);
}

.modal-link-btn.ozon {
    background: linear-gradient(135deg, #005bff 0%, #0042b8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 91, 255, 0.25);
}

.modal-link-btn.ozon:hover {
    background: linear-gradient(135deg, #0a6cff 0%, #004dd4 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 255, 0.4);
}

.modal__info-section { 
    flex: 0.75; 
    padding: 40px 35px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 18px;
    min-width: 350px;
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-warm) 100%);
    height: 100%;
    box-sizing: border-box;
}
.modal__info-section::-webkit-scrollbar {
    width: 6px;
}
.modal__info-section::-webkit-scrollbar-track {
    background: transparent;
}
.modal__info-section::-webkit-scrollbar-thumb {
    background: var(--color-accent-light);
    border-radius: 3px;
}
.modal__info-section::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

.modal__title { 
    font-family: var(--font-serif); 
    font-size: 32px; 
    font-weight: 400; 
    color: var(--color-dark); 
    letter-spacing: 1px;
    line-height: 1.2;
    flex-shrink: 0;
}
.modal__divider { 
    width: 70px; 
    height: 2px; 
    background: linear-gradient(90deg, var(--color-gold) 0%, rgba(201, 169, 110, 0.3) 100%);
    margin: 10px 0 20px 0;
    flex-shrink: 0;
}
.modal__description { 
    font-size: 14px; 
    line-height: 1;
    color: var(--color-text); 
    white-space: pre-line;
    font-weight: 300;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.modal__description strong {
    color: var(--color-dark);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
}

/* Ссылки на маркетплейсы */
.modal__links {
    margin-top: 12px;
    flex-shrink: 0;
}
.modal__links-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-dark);
    font-weight: 500;
    /*letter-spacing: 0.3px;*/
    margin-bottom: 20px;
}

.modal-links-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Color Swatches */
.modal__colors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}
.modal__colors-label {
    font-size: 13px;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight:500;
    /*letter-spacing: 0.3px;*/
     margin-bottom: 15px;
}
.modal__colors-wrapper {
    display: flex;
    gap: 14px;
    align-items: center;
}
.color-swatch {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    position: relative;
}
.color-swatch::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
.color-swatch.black { background: #1a1a1a; }
.color-swatch.beige { background: var(--color-cream); border: 1px solid rgba(0,0,0,0.05); }
.color-swatch.white { background: #ffffff; border: 1px solid rgba(0,0,0,0.12); }

.color-swatch.active {
    border-color: var(--color-gold);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25), 0 4px 15px rgba(0, 0, 0, 0.15);
}
.color-swatch:hover:not(.active) {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}
.color-swatch.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* FOOTER */
.footer { background: var(--color-dark); color: rgba(255,255,255,0.6); padding: 60px 30px 30px; }
.footer__inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.footer__heading { font-family: var(--font-serif); font-size: 24px; color: #fff; letter-spacing: 3px; margin-bottom: 15px; }
.footer__subheading { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); margin-bottom: 15px; }
.footer__text { font-size: 13px; line-height: 1.8; }
.footer__bottom { max-width: 900px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 11px; opacity: 0.4; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .slider__arrow { width: 44px; height: 44px; font-size: 18px; }
    .slider__arrow--prev { left: 15px; }
    .slider__arrow--next { right: 15px; }
    .slide__content { padding: 100px 20px; }
    .thumb-item { width: 50px; height: 70px; }
    .thumbnails-bar { padding: 10px 15px; }
    .thumb-nav { display: none !important; }
    
    /* Модальное окно на мобильных */
    .modal__content {
        max-width: 100%;
        max-height: 92vh;
        flex-direction: column;
        overflow-y: auto;
        border-radius: 0;
    }
    .modal__body {
        flex-direction: column;
        min-width: auto;
        min-height: auto;
    }
    .modal__image-section { 
        flex: none; 
        width: 100%;
        max-height: 55vh;
        min-height: 280px;
        background: var(--color-cream);
    }
    .modal__image { 
        width: 100%; 
        height: 100%; 
        object-fit: contain; 
        object-position: center;
        display: block;
    }
    .modal__info-section { 
        padding: 25px 20px; 
        max-height: none;
        overflow: visible;
        min-width: auto;
        gap: 20px;
    }
    .modal__title { font-size: 24px; }
    .modal__description { font-size: 13px; line-height: 1.8; }
    .modal__divider { width: 50px; margin: 8px 0 15px 0; }
    .modal__close { 
        width: 36px; 
        height: 36px; 
        top: 10px; 
        right: 10px; 
        font-size: 18px;
    }
    .modal__nav {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .modal__nav--prev { left: 10px; top: 25vh; }
    .modal__nav--next { right: 10px; top: 25vh; }
    .modal__colors { 
        gap: 10px; 
        margin-top: 12px; 
        padding-top: 15px; 
    }
    .color-swatch { width: 32px; height: 32px; }
    .modal-links-container { 
        gap: 10px; 
        flex-direction: column;
    }
    .modal-link-btn { 
        width: 100%;
        min-width: auto;
        padding: 12px 15px; 
        font-size: 12px; 
    }
    .modal__dots {
        bottom: 10px;
        padding: 6px 10px;
    }
    .modal__dot {
        width: 9px;
        height: 9px;
    }
    .footer__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}

@media (max-width: 480px) {
    .thumb-item { width: 45px; height: 60px; }
    .thumb-nav { width: 28px; height: 28px; font-size: 12px; }
    .thumbnails-bar { padding: 8px 10px; gap: 6px; }
    .modal__image-section { height: 45vh; min-height: 240px; }
    .modal__info-section { 
        padding: 20px 15px; 
        gap: 16px; 
    }
    .modal__title { font-size: 22px; }
    .modal__description { font-size: 12px; line-height: 1.7; }
    .modal-link-btn { 
        padding: 10px 12px; 
        font-size: 11px; 
    }
    .modal__close {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .modal__nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .modal__nav--prev { left: 5px; }
    .modal__nav--next { right: 5px; }
    .color-swatch { width: 28px; height: 28px; }
    .modal__dots {
        padding: 5px 8px;
        gap: 6px;
    }
    .modal__dot {
        width: 8px;
        height: 8px;
    }
}