/* --- СУЧАСНІ CSS ЗМІННІ (THEME MANAGEMENT) --- */
:root {
    --bg-color: #f7f5f0;
    --text-dark: #1a1a1a;
    --text-muted: #7a7a7a;
    --accent: #c49a6c;
    --accent-light: rgba(196, 154, 108, 0.1);
    --white: #ffffff;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Shadows & Transitions */
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --radius-lg: 32px;
    --radius-md: 16px;
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Кастомний курсор */
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

/* --- КУРСОР (ОПТИМІЗАЦІЯ) --- */
.cursor {
    width: 8px; height: 8px; background: var(--text-dark);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
}
.cursor-follower {
    width: 30px; height: 30px; border: 1.5px solid var(--text-dark);
    border-radius: 50%; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}
.cursor-follower.active {
    width: 60px; height: 60px; background: var(--accent-light); border-color: var(--accent);
}

/* --- PRELOADER --- */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.preloader-text { font-size: 3rem; font-weight: 800; letter-spacing: 12px; color: var(--accent); }

/* --- HEADER --- */
.header { 
    padding: 10px 0; 
    position: absolute; 
    width: 100%; 
    z-index: 100; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.btn-nav { 
    text-decoration: none; color: var(--text-dark); 
    font-weight: 700; text-transform: uppercase; font-size: 13px; 
}

/* --- HERO SECTION & SLIDER --- */
#hero { 
    position: relative;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

.hero-slider { width: 100%; }

.hero-slide-item {
    display: flex !important;
    align-items: center;
    padding: 40px 0;
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 0.8fr 1.2fr; 
    gap: 60px; 
    align-items: start;
}

.hero-title { 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.05; 
    margin-bottom: 25px; 
    text-transform: uppercase;
    will-change: transform, opacity;
}
.hero-title span { color: var(--accent); font-weight: 300; font-style: italic; text-transform: lowercase; }

.hero-subtitle { 
    font-size: 1.15rem; color: var(--text-muted); 
    margin-bottom: 40px; max-width: 450px; 
    will-change: transform, opacity;
}

.product-label {
    padding-bottom: 10px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 20px; border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 420px;
    will-change: transform, opacity;
}

.price-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.old-price { text-decoration: line-through; color: #bbb; font-size: 1.3rem; }
.new-price { font-size: 2.8rem; font-weight: 800; }

.btn-primary {
    display: block; width: 100%; text-align: center; padding: 20px;
    background: var(--text-dark); color: var(--white); text-decoration: none;
    border-radius: var(--radius-md); font-weight: 700; transition: 0.3s;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-3px); }

/* Image Container (Fix Spacing) */
.hero-image-wrap { 
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--card-shadow);
}
.parallax-img { 
    width: 100%; height: 120%; 
    object-fit: cover; 
    will-change: transform;
}

/* --- ДИНАМІЧНА ТАБЛИЦЯ --- */
.section-padding { padding: 40px 0; }

.shapes-selector {
    display: flex; justify-content: center; gap: 30px; margin-bottom: 60px;
}
.shape-item { 
    text-align: center; opacity: 0.4; 
    transition: 0.4s var(--ease-out); 
}
.shape-item.active { opacity: 1; transform: scale(1.1); }

.shape-icon {
    width: 110px; height: 110px; background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; border-radius: 24px; margin-bottom: 15px;
    box-shadow: var(--card-shadow);
}

.sizes-table-wrap {
    background: var(--white); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow); margin: 0 auto;
    overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 18px; color: var(--accent); font-weight: 800; border-bottom: 2px solid var(--bg-color); }
td { padding: 18px; border-bottom: 1px solid var(--bg-color); }



/* --- HERO SECTION (Оптимізація) --- */
#hero { 
    position: relative;
    padding-top: 40px; 
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    min-height: auto; /* Секція стає "резиновою" */
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    gap: 40px; 
    align-items: center; 
    width: 100%; 
}

/* --- HERO IMAGE WRAP (Чистий квадрат) --- */
.hero-image-wrap { 
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Завжди квадрат */
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    background: var(--white); /* Фон на випадок завантаження */
    box-shadow: var(--card-shadow);
}

.parallax-img { 
    width: 100%; 
    height: 100%; /* Прибрано 120% для уникнення стрибків */
    object-fit: cover; 
    display: block;
    will-change: opacity; /* Залишаємо тільки для плавності фейду */
}



.section-title { 
    font-size: 40px;
    line-height: 1.05; 
    margin-bottom: 40px; 
    text-transform: uppercase;
    text-align: center;
}

.section-desc { 
    font-size: 1.15rem; 
    color: var(--text-muted); 
    margin-bottom: 40px;
    margin-top: 40px; 
    max-width: 1200px; 
    text-align: center; margin-left: auto; margin-right: auto;
}

/* --- СТИЛІ ДЛЯ СЕКЦІЇ ПЕРЕВАГ --- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на десктопі */
    gap: 30px;
    margin-top: 50px;
}

.spec-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Вирівнювання по лівому краю для зручності читання великого тексту */
    text-align: left;
}

.spec-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.spec-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--accent-light);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.spec-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.spec-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшеті */
    }
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоні */
    }
    .spec-card {
        padding: 30px;
        align-items: center;
        text-align: center;
    }
}

#specs {
    position: relative;
    padding: 40px 0;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

.bg-light {
    background-color: #f9f9f9 !important;
}

/* --- СТИЛІ ДЛЯ ГАЛЕРЕЇ-СЛАЙДЕРА --- */

/* --- СТИЛІ ДЛЯ ГАЛЕРЕЇ --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Lightbox стилі */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* --- СТИЛІ ДЛЯ ФОРМИ (ЗАГЛУШКА) --- */
.contact-form-wrap {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    background: var(--bg-color);
    transition: all 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#contactForm .btn-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: 0.3s;
}

#contactForm .btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Адаптивність */
@media (max-width: 600px) {
    .contact-form-wrap {
        padding: 25px;
    }
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
    }
}

/* Адаптивність */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .lightbox-prev, .lightbox-next {
        font-size: 20px;
        padding: 5px 10px;
    }
}
.gallery-slider {
    margin-top: 30px;
}

.gallery-slide {
    position: relative;
    margin: 0 15px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s var(--ease-out);
}

.gallery-slide:hover {
    transform: translateY(-5px);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.gallery-slide:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
}

.gallery-slide:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Стилі для стрілок Slick (якщо потрібно перевизначити) */
.gallery-slider .slick-prev,
.gallery-slider .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: 0.3s;
}

.gallery-slider .slick-prev:hover,
.gallery-slider .slick-next:hover {
    background: var(--accent);
}

.gallery-slider .slick-prev:before,
.gallery-slider .slick-next:before {
    font-size: 20px;
    color: white;
}

.gallery-slider .slick-dots li button:before {
    font-size: 12px;
    color: var(--text-muted);
}

.gallery-slider .slick-dots li.slick-active button:before {
    color: var(--accent);
}

/* --- СТИЛІ ДЛЯ ВАРІАНТІВ ВИКОРИСТАННЯ --- */
.use-cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.use-case-item {
    background: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--card-shadow);
}

.use-case-item:hover,
.use-case-item.active {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.use-case-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-detail p {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.5;
    transition: opacity 0.2s;
}

/* Адаптивність */
@media (max-width: 768px) {
    .use-case-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .use-case-detail {
        padding: 20px;
    }
    .use-case-detail p {
        font-size: 1rem;
    }
}

/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .glass-card { margin: 0 auto; }
    .hero-image-wrap { aspect-ratio: 16/9; max-height: 450px; }
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
}

@media (max-width: 600px) {
    .section-title { font-size: 28px; }
    .container { padding: 0 20px; }
    .shapes-selector { gap: 15px; flex-wrap: wrap; }
    .shape-icon { width: 80px; height: 80px; font-size: 1.8rem; }
    .sizes-table-wrap { padding: 20px; }
    .preloader-text { font-size: 2rem; }
}

/* Адаптивність для стрілок */
@media (max-width: 768px) {
    .gallery-slider .slick-prev,
    .gallery-slider .slick-next {
        width: 30px;
        height: 30px;
    }
    .gallery-slider .slick-prev:before,
    .gallery-slider .slick-next:before {
        font-size: 16px;
    }
}


/* Адаптація для мобільних пристроїв */
@media (max-width: 1024px) {
    #hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .glass-card {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image-wrap {
        max-width: 500px; /* Обмежуємо ширину на великих планшетах */
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-image-wrap {
        border-radius: var(--radius-md);
    }
}

footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}