/* ================================================

   0. CRITICAL CSS & SETUP

   ================================================ */

:root {

    /* -- Theme: Natural Premium -- */

    /* -- Tone: Elegant, 'slow design' -- */



    /* Main Palette - Replaced Blue with Charcoal */

    --bg-primary: #FAF9F7;

    --bg-secondary: #E5E2DE;

    --bg-tertiary: #F5F3F1;

    --text-primary: #3D3A39; /* Deep Charcoal */

    --text-secondary: #6E3030;

    --border-light: #DCD9D5;



    /* Accent Palette - Removed Navy */

    --accent-burgundy: #6E3030;

    --accent-gold: #CBB994;

    --accent-copper: #B27D55;



    /* Typography */

    --font-heading: 'Lora', 'Playfair Display', serif;

    --font-body: 'Raleway', 'Open Sans', sans-serif;

    --font-menu: 'Montserrat', sans-serif;



    /* Gradients */

    --gradient-burgundy: linear-gradient(135deg, var(--accent-burgundy) 0%, var(--accent-copper) 100%);

    --gradient-gold: linear-gradient(135deg, #D6C9AD 0%, var(--accent-gold) 100%);



    /* Transitions */

    --transition-fast: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --transition-slow: 0.8s cubic-bezier(0.23, 1, 0.32, 1);

}



[data-theme="dark"] {

    /* Dark theme based on deep charcoal */

    --bg-primary: #2C2A29;

    --bg-secondary: #3D3A39;

    --bg-tertiary: #353231;

    --text-primary: #FAF9F7;

    --text-secondary: #E5E2DE;

    --border-light: #4F4C4B;

    --accent-burgundy: #B27D55;

    --accent-gold: #CBB994;

}



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

html { scroll-behavior: smooth; font-size: 16px; }



body {

    font-family: var(--font-body);

    font-size: 17px;

    background-color: var(--bg-primary);

    color: var(--text-primary);

    overflow-x: hidden;

    transition: background 0.4s ease, color 0.4s ease;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    display: flex;

    flex-direction: column;

    min-height: 100vh;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");

}

#main-content {

    flex: 1 0 auto;

}

body.no-scroll { overflow: hidden; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

@media (max-width: 768px) { .container { padding: 0 1rem; } body { font-size: 16px; } }



/* ================================================

   1. PRELOADER & PAGE TRANSITIONS

   ================================================ */

.preloader {

    position: fixed; top: 0; left: 0; width: 100%; height: 100%;

    /* UPDATED: Always dark background */

    background: #2C2A29;

    z-index: 10000; display: flex;

    align-items: center; justify-content: center;

    transition: opacity 0.8s ease, visibility 0.8s ease;

}

.preloader.loaded { opacity: 0; visibility: hidden; }

.preloader-logo {

    opacity: 0; transform: scale(0.8);

    animation: preload-logo-anim 1.5s ease-out forwards;

}

.preloader-logo img { width: 250px; height: auto; }

@keyframes preload-logo-anim {

    0% { opacity: 0; transform: scale(0.8); }

    50% { opacity: 1; transform: scale(1.1); }

    100% { opacity: 1; transform: scale(1); }

}



.page { display: none; padding-top: 90px; }

.page.active-page { display: block; }

.page.page-enter { animation: pageFadeIn 0.8s var(--transition-slow); }

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



/* ================================================

   2. HEADER & NAVIGATION

   ================================================ */

.header {

    position: fixed; top: 0; left: 0; right: 0; padding: 1.5rem 2rem;

    z-index: 1000; transition: all 0.4s ease;

}

.header.transparent-nav {

    padding-top: 2rem;

    padding-bottom: 2rem;

}

.header.scrolled {

    background: rgba(250, 249, 247, 0.85);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border-light);

    padding-top: 1rem;

    padding-bottom: 1rem;

}

[data-theme="dark"] .header.scrolled {

    background: rgba(44, 42, 41, 0.85); /* Dark charcoal transparent */

    border-bottom: 1px solid var(--border-light);

}

.nav-container {

    max-width: 1600px; margin: 0 auto; display: flex;

    justify-content: space-between; align-items: center;

}

.logo { height: 50px; cursor: pointer; text-decoration: none; }

.nav-menu { display: flex; gap: 2.5rem; list-style: none; align-items: center; }

.nav-link {

    font-family: var(--font-menu);

    font-size: 16px;

    font-weight: 600;

    color: var(--text-primary);

    text-decoration: none;

    position: relative;

    transition: color 0.3s ease;

    cursor: pointer;

    padding: 0.5rem 0;

    letter-spacing: 0.02em;

}

.nav-link.active::after, .nav-link:hover::after { width: 100%; }

.nav-link::after {

    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;

    background: var(--accent-burgundy); transition: width 0.4s var(--transition-fast);

}

.nav-actions { display: flex; gap: 1rem; align-items: center; }



/* --- Logo Logic --- */

.logo img, .footer-logo img { height: 100%; width: auto; transition: opacity 0.3s ease; }

.footer-logo { height: 65px; margin-bottom: 1rem; display: inline-block; }

.logo .logo-dark, .footer-logo .logo-dark { display: none; }

.logo .logo-light, .footer-logo .logo-light { display: block; }

[data-theme="dark"] .logo .logo-light, [data-theme="dark"] .footer-logo .logo-light { display: none; }

[data-theme="dark"] .logo .logo-dark, [data-theme="dark"] .footer-logo .logo-dark { display: block; }



/* --- Homepage Header Dark Theme Force --- */

body[data-current-page="home"] .header {

    --text-primary-override: #FAF9F7;

    --border-light-override: rgba(250, 249, 247, 0.3);

}



body[data-current-page="home"][data-theme="light"] .header.scrolled {

    background: rgba(44, 42, 41, 0.85);

    border-bottom: 1px solid #4F4C4B;

}



body[data-current-page="home"] .header .nav-link,

body[data-current-page="home"] .header .city-selector-text,

body[data-current-page="home"] .header .city-selector-icon,

body[data-current-page="home"] .header .mobile-nav-toggle,

body[data-current-page="home"] .header .cart-btn,

body[data-current-page="home"] .header .auth-btn {

  color: var(--text-primary-override, var(--text-primary));

}



body[data-current-page="home"] .header .icon-btn:not(.theme-toggle) {

    border-color: var(--border-light-override, var(--border-light));

}

body[data-current-page="home"] .header .icon-btn:not(.theme-toggle):hover {

    background: rgba(255, 255, 255, 0.1);

}



body[data-current-page="home"] .header .logo .logo-light { display: none !important; }

body[data-current-page="home"] .header .logo .logo-dark { display: block !important; }





/* City Selector & Actions */

.city-selector { display: flex; align-items: center; gap: 0.5rem; background: transparent; cursor: pointer; position: relative; }

.city-selector-icon { width: 20px; height: 20px; color: var(--text-primary); }

.city-selector-text { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }

.city-selector-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: var(--bg-primary); border-radius: 0.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-light); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 100; min-width: 120px; }

.city-selector-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.city-option { padding: 0.75rem 1.5rem; cursor: pointer; transition: background 0.2s ease; }

.city-option:hover { background: var(--bg-tertiary); }

.icon-btn { width: 40px; height: 40px; border: 1px solid var(--border-light); background: transparent; color: var(--text-primary); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }

.icon-btn:hover { background: var(--bg-tertiary); border-color: var(--accent-gold); }

.cart-btn { background: var(--text-primary); color: var(--bg-primary); border: none; }

.cart-btn:hover { background: var(--accent-burgundy); border: none; }

/* --- Navbar Social Icons --- */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-left: 1px solid var(--border-light);
    padding-left: 1rem;
}

/* Adjust for dark/transparent header on home page */
body[data-current-page="home"] .nav-socials {
    border-color: var(--border-light-override, var(--border-light));
}

.nav-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-light); /* Matches 'social-link' base style */
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect identical to contact page socials */
.nav-social-link:hover {
    background: var(--accent-burgundy);
    color: white;
    transform: translateY(-3px);
}

/* Hide on mobile/tablet to prevent crowding */
@media (max-width: 992px) {
    .nav-socials {
        display: none;
    }
}


/* ================================================

   3. HERO & HOME PAGE

   ================================================ */

.hero {

    height: 100vh; min-height: 700px; position: relative; overflow: hidden;

    display: flex; flex-direction: column; justify-content: center;

    align-items: center; color: white; margin-top: -90px;

}

.hero-background-layers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }

.hero-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }

.hero-layer-video { object-fit: cover; width: 100%; height: 100%; }

.hero-overlay {

    position: absolute; top: 0; left: 0; width: 100%; height: 100%;

    background: linear-gradient(180deg, rgba(61, 58, 57, 0.5) 0%, rgba(61, 58, 57, 0.2) 50%, rgba(61, 58, 57, 0.5) 100%);

    z-index: -1;

}

.hero-content { text-align: center; z-index: 1; padding: 0 2rem; max-width: 900px; margin: 0 auto; }

.hero-title img { height: 110px; width: auto; margin-bottom: 1.5rem; }

.hero-subtitle { font-family: var(--font-body); font-size: 1.3rem; font-weight: 400; opacity: 0.95; margin-bottom: 3rem; max-width: 600px; line-height: 1.7; }

.hero-cta { display: flex; gap: 1.5rem; justify-content: center; }



.btn {

    padding: 1rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1rem;

    cursor: pointer; transition: all var(--transition-fast); text-decoration: none; display: inline-block;

    position: relative; overflow: hidden; z-index: 1;

}

.btn-primary {

    background: var(--gradient-burgundy);

    box-shadow: 0 4px 20px rgba(110, 48, 48, 0.2);

    border: none;

    color: white;

}

.btn-primary:hover {

    box-shadow: 0 8px 30px rgba(110, 48, 48, 0.3);

    transform: translateY(-4px);

}

.btn-secondary {

    border: 1px solid var(--border-light);

    color: var(--text-primary);

    background: var(--bg-tertiary);

}

.btn-secondary:hover {

    background: var(--bg-secondary);

    border-color: var(--text-secondary);

}



.hero .btn-secondary {

    border: 1px solid rgba(255, 255, 255, 0.7);

    color: white;

    background: transparent;

}

.hero .btn-secondary:hover {

    background: rgba(255, 255, 255, 0.1);

    border-color: white;

}

.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); animation: bounce 2.5s infinite; cursor: pointer; z-index: 5; }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -15px); } 60% { transform: translate(-50%, -7px); } }

.scroll-indicator svg { width: 30px; height: 30px; color: white; opacity: 0.8; }



/* ================================================

   4. SHARED SECTIONS

   ================================================ */

.page-section { padding: 7rem 0; border-bottom: 1px solid var(--border-light); }

.page-section:last-child { border-bottom: none; }

.section-header { text-align: center; margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; }



h1, .hero-title { font-family: var(--font-heading); font-size: clamp(48px, 5vw, 60px); font-weight: 700; }

h2, .section-title { font-family: var(--font-heading); font-size: clamp(34px, 4vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }



.section-title {

    color: #960018; /* Carmine Red */

    margin-bottom: 1.5rem;

}



/* .section-subtitle { font-size: 1.2rem; color: var(--text-secondary); font-weight: 400; line-height: 1.7; max-width: 3000x; }
*/

.section-subtitle {
    font-size: 1.1rem;      /* Немного крупнее обычного текста */
    color: #666;            /* Темно-серый цвет для контраста с заголовком */
    text-align: center;     /* Выравнивание по центру */
    margin-bottom: 30px;    /* Отступ снизу до контента */
    font-weight: 300;       /* Легкое начертание шрифта */
    line-height: 1.5;       /* Межстрочный интервал для читаемости */
}


.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

.stat-card {

    text-align: center; padding: 2.5rem; background: transparent;

    border-radius: 1rem;

    transition: all var(--transition-fast);

    border: 1px solid transparent;

}

.stat-card:hover {

    background: var(--bg-primary);

    border-color: var(--accent-gold);

    box-shadow: 0 10px 30px rgba(203, 185, 148, 0.15);

    transform: translateY(-10px);

}

.stat-number { font-family: 'Roboto Slab', serif; font-size: 3.5rem; font-weight: 900; color: var(--accent-burgundy); margin-bottom: 0.5rem; transition: all var(--transition-fast); }

.stat-card:hover .stat-number { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.stat-label { font-size: 1.1rem; color: var(--text-primary); font-weight: 500; }



.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

.why-us-card {

    background: var(--bg-tertiary); border: 1px solid var(--border-light);

    padding: 3rem; border-radius: 1rem; text-align: center;

    transition: all var(--transition-fast);

}

.why-us-card:hover {

    transform: translateY(-8px);

    border-color: var(--accent-gold);

    box-shadow: 0 15px 35px rgba(203, 185, 148, 0.15);

}

.why-us-card svg { color: var(--accent-burgundy); margin-bottom: 1.5rem; width: 50px; height: 50px; transition: all var(--transition-fast); }

.why-us-card:hover svg { color: var(--accent-gold); transform: scale(1.1); }

.why-us-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; color: var(--text-primary); }

.why-us-card p { color: var(--text-secondary); line-height: 1.7; }



/* ================================================

   5. CATALOG & PRODUCTION STYLES

   ================================================ */

.category-grid-container { display: grid; gap: 2rem; }

.category-grid-row { display: grid; gap: 2rem; }

.category-grid-row.three-items { grid-template-columns: repeat(3, 1fr); }

.category-grid-row.two-items { grid-template-columns: repeat(2, 1fr); }



.category-showcase-card {

    position: relative; height: 400px; border-radius: 1rem; overflow: hidden;

    display: flex; align-items: flex-end; justify-content: flex-start;

    padding: 2rem; color: white; text-align: left;

    cursor: pointer; transition: all var(--transition-fast);

    background-size: cover; background-position: center;

}

.category-showcase-card:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.category-showcase-card h3 {

    text-shadow: 0 4px 15px rgba(0,0,0,0.6); z-index: 2; position: relative;

    font-size: 2rem; font-family: var(--font-heading); font-weight: 700;

}

.category-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; transition: transform var(--transition-slow); }

.category-overlay {

    position: absolute; top: 0; left: 0; width: 100%; height: 100%;

    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);

    z-index: 1; transition: background var(--transition-fast);

}

.category-showcase-card:hover .category-overlay { background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%); }



/* UPDATED: Dry Mix Brand Card Styles */

.brand-card {

    align-items: center;

    justify-content: center;

    padding: 2rem;

}

.brand-card-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    z-index: 2;

    position: relative;

    color: white; /* Changed color for visibility on image */

}

.brand-card .brand-logo {

    height: 70px; /* Increased logo size */

    margin-bottom: 0.75rem;

}

.brand-card .brand-title-text {

    font-family: 'Oswald', sans-serif;

    font-size: 4rem;

    font-weight: 600;

    letter-spacing: 0.05em;

    color: white;

    text-shadow: 0 2px 4px rgba(0,0,0,0.5);

}

.brand-card .brand-subtitle {

    font-family: 'Raleway', sans-serif;

    font-size: 1.1rem;

    color: rgba(255, 255, 255, 0.9);

    font-weight: 600;

    text-shadow: 0 1px 3px rgba(0,0,0,0.4);

}





/* ================================================

   6. OTHER PAGES (ABOUT, CONTACTS, ETC.)

   ================================================ */



/* ABOUT PAGE */

.about-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; }

@media(max-width: 992px) { .about-layout { grid-template-columns: 1fr; } }

.founder-card { text-align: center; background: var(--bg-tertiary); padding: 2.5rem; border-radius: 1rem; }

.founder-card .founder-gif { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; display: block; border: 4px solid var(--bg-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.founder-name { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; margin-bottom: 0.25rem; }

.founder-title { color: var(--accent-copper); font-weight: 500; margin-bottom: 1rem; font-size: 1rem; }

.founder-bio { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.timeline { position: relative; padding-left: 2rem; border-left: 1px solid var(--border-light); }

.timeline-item { position: relative; margin-bottom: 2.5rem; }

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

.timeline-dot { position: absolute; left: -0.5rem; top: 5px; width: 16px; height: 16px; background: var(--accent-burgundy); border-radius: 50%; border: 3px solid var(--bg-primary); }

.timeline-year { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.5rem; }

.timeline-content { color: var(--text-secondary); }



/* CONTACTS & FORMS */

#map { height: 450px; width: 100%; border-radius: 1rem; border: 1px solid var(--border-light); z-index: 1; filter: grayscale(80%) contrast(1.1); }

.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; margin-top: 4rem; }

@media(max-width: 992px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.5rem; }

.form-input, .form-textarea, .form-select {

    width: 100%; padding: 1.1rem; border: 1px solid var(--border-light);

    border-radius: 0.5rem; font-family: var(--font-body); font-size: 1rem;

    background: var(--bg-primary); color: var(--text-primary); transition: all var(--transition-fast);

}

.form-input:focus, .form-textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(203, 185, 148, 0.3); outline: none; }

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

.contact-info-block { background: var(--bg-tertiary); padding: 2rem; border-radius: 1rem; }

.contact-info-block h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1.5rem; }

.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }

.contact-info-item svg { color: var(--accent-burgundy); margin-top: 3px; flex-shrink: 0; }

.contact-info-item p { margin: 0; line-height: 1.6; color: var(--text-secondary); }

.contact-info-item strong { color: var(--text-primary); }

.social-links { display: flex; gap: 1rem; margin-top: 2rem; }

.social-link {

    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;

    background: var(--border-light); color: var(--text-secondary); border-radius: 50%;

    text-decoration: none; transition: all var(--transition-fast);

}

.social-link:hover { background: var(--accent-burgundy); color: white; transform: translateY(-3px); }





/* ================================================

   7. UTILITY, MODALS & ANIMATIONS

   ================================================ */

.hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }

.reveal.visible { opacity: 1; transform: translateY(0); }

.cursor {

    width: 10px; height: 10px; background: var(--accent-burgundy); border-radius: 50%;

    position: fixed; pointer-events: none; z-index: 9999;

    transition: transform 0.15s ease-out; transform-origin: center center; display: none;

}

.cursor-follower {

    width: 40px; height: 40px; border: 1px solid var(--accent-burgundy); border-radius: 50%;

    position: fixed; pointer-events: none; z-index: 9999;

    transition: transform 0.3s ease-out, background-color .3s ease, width .3s ease, height .3s ease; display: none;

}

@media (pointer: fine) { .cursor, .cursor-follower { display: block; } }

.cursor-follower.active { transform: scale(1.5); background-color: rgba(110, 48, 48, 0.1); }



.modal-overlay {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(61, 58, 57, 0.7);

    backdrop-filter: blur(8px);

    z-index: 10002;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.4s ease, visibility 0.4s ease;

}

.modal-overlay.active {

    opacity: 1;

    visibility: visible;

}

.modal-content-box {

    background: var(--bg-primary);

    border: 1px solid var(--border-light);

    box-shadow: 0 20px 50px rgba(0,0,0,0.15);

    padding: 2.5rem;

    border-radius: 1rem;

    max-width: 90vw;

    width: 600px;

    position: relative;

    transform: scale(0.95);

    opacity: 0;

    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

}

.modal-overlay.active .modal-content-box {

    transform: scale(1);

    opacity: 1;

}



.modal-close-btn {

    position: absolute;

    top: 1rem;

    right: 1rem;

    width: 40px;

    height: 40px;

    background: transparent;

    border: none;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--text-secondary);

    border-radius: 50%;

}

.modal-close-btn:hover {

    background: var(--bg-tertiary);

    color: var(--text-primary);

}



.chat-toggle-btn {

    position: fixed;

    bottom: 2rem;

    right: 2rem;

    width: 60px;

    height: 60px;

    border-radius: 50%;

    border: none;

    background: var(--text-primary);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(61, 58, 57, 0.3);

    z-index: 999;

    transition: transform 0.3s ease, background-color 0.4s ease;

}

.chat-toggle-btn:hover { transform: scale(1.1); }



.chat-toggle-icon {

    stroke: var(--bg-primary);

    transition: stroke 0.4s ease;

}



.chat-widget-container {

    position: fixed;

    bottom: 6.5rem;

    right: 2rem;

    width: 350px;

    max-width: 90vw;

    background: var(--bg-primary);

    border: 1px solid var(--border-light);

    border-radius: 1rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    overflow: hidden;

    display: flex;

    flex-direction: column;

    transform: translateY(20px);

    opacity: 0;

    visibility: hidden;

    transition: transform 0.4s ease, opacity 0.4s ease;

    z-index: 998;

}

.chat-widget-container.active {

    transform: translateY(0);

    opacity: 1;

    visibility: visible;

}



.chat-widget-header { padding: 1rem; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }

.chat-widget-header span { font-weight: 600; }

.chat-widget-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); }

.chat-widget-messages { flex-grow: 1; padding: 1rem; overflow-y: auto; height: 300px; }

.chat-message { padding: 0.75rem 1rem; border-radius: 1rem; margin-bottom: 0.75rem; max-width: 80%; line-height: 1.5; }

.chat-message.user { background: var(--accent-burgundy); color: white; border-bottom-right-radius: 0.25rem; margin-left: auto; }

.chat-message.bot { background: var(--bg-secondary); color: var(--text-primary); border-bottom-left-radius: 0.25rem; }

.chat-widget-form { display: flex; padding: 0.75rem; border-top: 1px solid var(--border-light); }

.chat-input { flex-grow: 1; border: none; background: var(--bg-tertiary); padding: 0.75rem; border-radius: 50px; outline: none; font-size: 1rem; }

.chat-send-btn { background: var(--accent-burgundy); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 0.5rem; cursor: pointer; }



.toast-notification {

    position: fixed;

    bottom: 2rem;

    left: 50%;

    transform: translateX(-50%);

    background: var(--text-primary);

    color: var(--bg-primary);

    padding: 1rem 2rem;

    border-radius: 50px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    z-index: 10005;

    opacity: 0;

    visibility: hidden;

    transition: opacity 0.4s ease, transform 0.4s ease;

}

.toast-notification.show {

    opacity: 1;

    visibility: visible;

    transform: translate(-50%, -1rem);

}

[data-theme="dark"] .toast-notification {

    background: var(--bg-secondary);

    color: var(--text-primary);

}



.mobile-nav-toggle { display: none; }

.mobile-nav-menu { position: fixed; top: 0; right: -100%; width: min(300px, 80vw); height: 100%; background: var(--bg-primary); box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 10002; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); padding: 6rem 2rem 2rem; display: flex; flex-direction: column; }

.mobile-nav-menu.active { right: 0; }

.mobile-nav-menu .nav-menu { flex-direction: column; align-items: flex-start; gap: 1rem; }

.mobile-nav-menu .nav-link { font-size: 1.25rem; width: 100%; padding: 0.75rem 0; }

.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 10001; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }

body.mobile-menu-open .mobile-menu-overlay { opacity: 1; visibility: visible; }

body.mobile-menu-open { overflow: hidden; }

@media (max-width: 992px) { .nav-menu { display: none; } .mobile-nav-toggle { display: flex; } }



/* ================================================

   8. PRODUCT STYLES (CARD & PAGE)

   ================================================ */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }



.product-card {

    background: var(--bg-primary);

    border: 1px solid var(--border-light);

    border-radius: 0.5rem;

    overflow: hidden;

    cursor: pointer;

    transition: all var(--transition-fast);

    display: flex;

    flex-direction: column;

}

.product-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 15px 30px rgba(0,0,0,0.1);

}

.product-card-image {

    height: 300px;

    background-color: var(--bg-secondary);

    overflow: hidden;

}

.product-card-image img, .product-card-image video {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;

}

.product-card:hover .product-card-image img,

.product-card:hover .product-card-image video {

    transform: scale(1.05);

}

.product-card-image video {

    pointer-events: none;

}

.product-card-info {

    padding: 1.25rem;

    text-align: center;

    background: var(--bg-primary);

    flex-grow: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.product-card-info h3 {

    font-family: 'Montserrat', sans-serif;

    font-size: 1.1rem;

    font-weight: 600;

    margin: 0;

    color: var(--text-primary);

}

.product-card-info .price {

    font-size: 0.9rem;

    font-weight: 500;

    color: var(--text-secondary);

    margin-top: 0.25rem;

}

.back-to-catalog-btn { display: inline-block; margin-bottom: 2rem; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }

.back-to-catalog-btn:hover { color: var(--accent-burgundy); }



/* Default Product Page */

#product-page {

    transition: background 0.6s ease-out;

}

.product-container { display: grid; grid-template-columns: 4fr 6fr; gap: 3rem; max-width: 1200px; margin: 0 auto; background-color: var(--bg-primary); padding: 2rem; border-radius: 1rem; border: 1px solid var(--border-light); }

.product-gallery { display: flex; flex-direction: column; gap: 1rem; }

.product-main-image { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    background-color: var(--bg-secondary); 
    border-radius: 0.5rem; 
    overflow: hidden; 
    border: 1px solid var(--border-light); 
    cursor: zoom-in; /* NEW: Indicates clickability */
}

.product-main-image img, .product-main-image video { width: 100%; height: 100%; object-fit: cover; }

.product-main-image video::-webkit-media-controls { display: none !important; }

.product-main-image video { pointer-events: none; }



/* === НОВЫЙ БЛОК ДЛЯ КНОПКИ ЗВУКА === */

.video-mute-toggle {

    position: absolute;

    top: 1rem;

    right: 1rem;

    z-index: 10;

    background: rgba(0, 0, 0, 0.4);

    color: white;

    border: 1px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    width: 40px;

    height: 40px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: background 0.3s ease;

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

}

.video-mute-toggle:hover {

    background: rgba(0, 0, 0, 0.7);

}

.video-mute-toggle svg {

    width: 20px;

    height: 20px;

}

/* === КОНЕЦ НОВОГО БЛОКА === */



.product-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.75rem; }

.thumbnail-item { aspect-ratio: 1 / 1; border-radius: 0.5rem; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s ease; background: var(--bg-secondary); }

.thumbnail-item:hover { border-color: var(--accent-copper); }

.thumbnail-item.active { border-color: var(--accent-gold); }

.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }



.thumbnail-item--video {

    position: relative;

}

.thumbnail-item--video::after {

    content: '';

}



.product-details { display: flex; flex-direction: column; }

.product-header { margin-bottom: 1.5rem; }

.product-brand { font-size: 0.9rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.product-title { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; margin: 0.25rem 0 0.75rem; color: var(--text-primary); }

/* СТАЛО */
.product-short-desc { 
    font-size: 1rem; 
    line-height: 1.6; 
    color: var(--text-secondary); 
    white-space: pre-wrap; /* <-- ДОБАВЬТЕ ЭТУ СТРОКУ */
}

.product-price-block { margin: 1.5rem 0; }

.product-price { font-size: 2.25rem; font-weight: 900; color: var(--accent-burgundy); }

.price-disclaimer { font-size: 0.8rem; color: var(--text-secondary); opacity: 0.8; }

.product-info-block { margin: 1.5rem 0; }

.product-info-block h3 { margin-bottom: 0.5rem; font-family: var(--font-heading); font-size: 1.2rem; }

.product-purchase-block { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.product-availability { font-weight: 600; }

.product-full-details-link { color: var(--text-secondary); font-size: 0.9rem; }

.product-full-description { margin-top: 4rem; }



.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

.news-card { background: var(--bg-primary); border-radius: 1rem; overflow: hidden; border: 1px solid var(--border-light); transition: transform 0.3s ease, box-shadow 0.3s ease; }

.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.news-card img { width: 100%; height: 220px; object-fit: cover; }

.news-card-content { padding: 1.5rem; }

.news-date { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.5rem; display: block; }

.news-card-content h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-primary); }

.training-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; background: var(--bg-tertiary); padding: 4rem; border-radius: 1rem; }

.training-offer h3 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1.5rem; }

.training-offer ul { list-style: none; margin: 1.5rem 0; padding-left: 1rem; }

.training-offer li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; }

.training-offer li::before { content: '✓'; color: var(--accent-burgundy); position: absolute; left: 0; font-weight: bold; }

#cart-overlay { justify-content: flex-end; }

#cart-overlay .modal-content-box { height: 100vh; width: 450px; max-width: 100vw; border-radius: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; }

.cart-header { padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }

#cart-items { flex-grow: 1; overflow-y: auto; padding: 1rem 0; }

.cart-footer { padding-top: 1rem; border-top: 1px solid var(--border-light); }

.footer { background: var(--bg-tertiary); color: var(--text-secondary); border-top: 1px solid var(--border-light); text-align: center; padding: 3rem 0; }

.footer-links { list-style: none; display: flex; justify-content: center; gap: 2rem; margin: 1.5rem 0; }

.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }

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

.footer-copyright { font-size: 0.9rem; }

.footer-admin-link { margin-top: 1rem; font-size: 0.8rem; }

.footer-admin-link a { color: var(--text-secondary); }

.faq-accordion { max-width: 800px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border-light); }

.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 1.5rem 0; font-size: 1.2rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }

.faq-question:hover { color: var(--accent-burgundy); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, padding 0.5s ease-out; }

.faq-answer p { padding: 0 0 1.5rem 0; line-height: 1.7; color: var(--text-secondary); }

.faq-item.active .faq-answer {
    max-height: 2000px !important; /* Было 300px, ставим с запасом */
}

.faq-toggle-icon { font-size: 1.5rem; font-weight: 300; color: var(--accent-burgundy); transition: transform 0.3s ease; }

.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }

/* --- UPDATED GALLERY GRID FOR UNIFORMITY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }

.gallery-item { position: relative; aspect-ratio: 1 / 1; border-radius: 0.75rem; overflow: hidden; cursor: pointer; background-color: var(--bg-secondary); }

/* Updated selector to include video */
.gallery-item img, 
.gallery-item video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease, filter 0.4s ease; 
}

.gallery-item:hover img,
.gallery-item:hover video { 
    transform: scale(1.1); 
    filter: brightness(0.9); 
}

#gallery-carousel-overlay { background: rgba(44, 42, 41, 0.85); backdrop-filter: blur(8px); }

/* UPDATED CAROUSEL CONTENT STYLES FOR CONSISTENT SIZE */
.gallery-carousel-content { 
    position: relative; 
    width: 90vw; 
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
}

#carousel-image, #carousel-video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Scale image/video to fit container, keeping aspect ratio */
    border-radius: 0.5rem; 
    max-width: none; /* Remove previous max-width constraint to allow scaling up */
    max-height: none;
}

#carousel-caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 0.75rem 1.5rem; border-radius: 50px; }

.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.3); width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }

#carousel-prev { left: 1rem; }

#carousel-next { right: 1rem; }

.partners-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; }

.partner-logo { filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }

.partner-logo:hover { filter: grayscale(0%); opacity: 1; }

.partner-logo img { max-width: 150px; }

.form-group.checkbox-group { display: flex; align-items: center; gap: 0.5rem; }

.form-group.checkbox-group label { cursor: pointer; }

.video-modal-overlay { background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); }

.video-modal { position: relative; width: 90vw; max-width: 1200px; aspect-ratio: 16 / 9; }

.video-modal-close { position: absolute; top: -2.5rem; right: 0; font-size: 2rem; color: white; background: none; border: none; cursor: pointer; }

.video-modal-content { width: 100%; height: 100%; }

.video-modal-content iframe { width: 100%; height: 100%; border: none; }

.product-price-original { text-decoration: line-through; color: var(--text-secondary); font-size: 1.2rem; margin-right: 0.5rem; }



@media (max-width: 992px) {

    .category-grid-row.three-items, .category-grid-row.two-items { grid-template-columns: 1fr; }

    .training-layout { grid-template-columns: 1fr; }

    .nav-container { padding: 0 1rem; }

    .header { padding: 1rem; }

}

@media (max-width: 768px) {

    .product-container { grid-template-columns: 1fr; }

    .contact-layout { grid-template-columns: 1fr; }

    .hero-title img { height: 90px; }

    .hero-subtitle { font-size: 1.1rem; }

    .btn { padding: 0.8rem 2rem; font-size: 0.9rem; }

}



/* ================================================

   9. PRODUCT PAGE THEMES (NEW)

   ================================================ */



/* --- GENERAL THEME OVERRIDES --- */

[data-paint-style] #product-page .product-container {

    background: rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.1);

}

[data-paint-style] #product-page .product-main-image {

    background: transparent;

    border-color: rgba(255, 255, 255, 0.1);

}

[data-paint-style] #product-page .product-full-description h2 {

    background: none;

    -webkit-text-fill-color: inherit;

}

[data-paint-style] #product-page #pp-variant-select {

    background: rgba(0,0,0,0.2);

    border-color: rgba(255, 255, 255, 0.2);

    color: inherit;

}



/* --- THEME: ILLUZION --- */

/* --- THEME: ILLUZION --- */

body[data-paint-style="ILLUZION"] #product-page {
    /* БЫЛО: background: linear-gradient(135deg, #6B5BD3, #4AC0C0, #D1A067); */
    
    /* СТАЛО: Фон-картинка */
    background-image: url('illuzion3.jpeg'); /* <-- ЗАМЕНИТЕ ЭТО */
    background-size: cover; /* Растягивает картинку на весь экран */
    background-position: center; /* Центрирует картинку */
    background-repeat: no-repeat; /* Убирает повторение */
    background-attachment: fixed; /* Фиксирует фон при прокрутке */

    color: #3B3B3B; /* <-- ИЗМЕНЕНО с #ffffff */
}

body[data-paint-style="ILLUZION"] #product-page .product-title { font-family: 'Cinzel', serif; }

body[data-paint-style="ILLUZION"] #product-page .product-short-desc,

body[data-paint-style="ILLUZION"] #product-page .product-full-description,

body[data-paint-style="ILLUZION"] #product-page .product-info-block { font-family: 'Raleway', sans-serif; }



body[data-paint-style="ILLUZION"] #product-page .back-to-catalog-btn,

body[data-paint-style="ILLUZION"] #product-page .product-brand,

body[data-paint-style="ILLUZION"] #product-page .product-short-desc,

body[data-paint-style="ILLUZION"] #product-page .product-info-block h3,

body[data-paint-style="ILLUZION"] #product-page .product-full-description h2,

body[data-paint-style="ILLUZION"] #product-page .product-full-description p,

body[data-paint-style="ILLUZION"] #product-page .product-title,

body[data-paint-style="ILLUZION"] #product-page .product-price,

body[data-paint-style="ILLUZION"] #product-page .price-disclaimer,

body[data-paint-style="ILLUZION"] #product-page .product-availability,

body[data-paint-style="ILLUZION"] #product-page .product-full-details-link,

body[data-paint-style="ILLUZION"] #product-page .product-price-original {

    color: #3B3B3B; /* <-- ИЗМЕНЕНО с #ffffff */
    /* text-shadow: 0 1px 3px rgba(0,0,0,0.1); <-- Удалена тень */
}

body[data-paint-style="ILLUZION"] #product-page .product-purchase-block {

    border-color: rgba(255, 255, 255, 0.2);
}

body[data-paint-style="ILLUZION"] #product-page .thumbnail-item:hover { border-color: rgba(255, 255, 255, 0.7); }

body[data-paint-style="ILLUZION"] #product-page .thumbnail-item.active { border-color: #ffffff; }



body[data-paint-style="ILLUZION"] #product-page .btn-primary {

    background: rgba(255, 255, 255, 0.1);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: none;

}

body[data-paint-style="ILLUZION"] #product-page .btn-primary:hover {

    background: rgba(255, 255, 255, 0.2);

}



/* --- THEME: MILO --- */

body[data-paint-style="MILO"] #product-page { background: linear-gradient(135deg, #FAF7F0, #EADDC5); color: #3B3B3B; }

body[data-paint-style="MILO"] #product-page .product-title { font-family: 'Playfair Display', serif; }

body[data-paint-style="MILO"] #product-page .product-short-desc,

body[data-paint-style="MILO"] #product-page .product-full-description,

body[data-paint-style="MILO"] #product-page .product-info-block { font-family: 'Raleway', sans-serif; }



body[data-paint-style="MILO"] #product-page .back-to-catalog-btn,

body[data-paint-style="MILO"] #product-page .product-brand,

body[data-paint-style="MILO"] #product-page .product-short-desc,

body[data-paint-style="MILO"] #product-page .product-info-block h3,

body[data-paint-style="MILO"] #product-page .product-full-description h2,

body[data-paint-style="MILO"] #product-page .product-full-description p,

body[data-paint-style="MILO"] #product-page .product-title,

body[data-paint-style="MILO"] #product-page .product-price,

body[data-paint-style="MILO"] #product-page .price-disclaimer,

body[data-paint-style="MILO"] #product-page .product-availability,

body[data-paint-style="MILO"] #product-page .product-full-details-link,

body[data-paint-style="MILO"] #product-page .product-price-original {

    color: #3B3B3B;

}



body[data-paint-style="MILO"] #product-page .product-container,

body[data-paint-style="MILO"] #product-page .product-main-image {

    background: rgba(255, 255, 255, 0.3);

    border-color: rgba(0, 0, 0, 0.1);

}

body[data-paint-style="MILO"] #product-page .product-purchase-block {

    border-color: rgba(0, 0, 0, 0.1);

}

body[data-paint-style="MILO"] #product-page .btn-primary {

    background: #3B3B3B;

    color: #FAF7F0;

}

body[data-paint-style="MILO"] #product-page .thumbnail-item:hover { border-color: #A99B85; }

body[data-paint-style="MILO"] #product-page .thumbnail-item.active { border-color: #3B3B3B; }

body[data-paint-style="MILO"] #product-page #pp-variant-select {

    background: rgba(255,255,255,0.4);

    border-color: rgba(0,0,0,0.1);

    color: #3B3B3B;

}



/* --- THEME: SERICO --- */

body[data-paint-style="SERICO"] #product-page { background: linear-gradient(135deg, #F1F0ED, #D9D9D9, #CFC8C3); color: #4A4A4A; }

body[data-paint-style="SERICO"] #product-page .product-title { font-family: 'Cormorant Garamond', serif; }

body[data-paint-style="SERICO"] #product-page .product-short-desc,

body[data-paint-style="SERICO"] #product-page .product-full-description,

body[data-paint-style="SERICO"] #product-page .product-info-block { font-family: 'Open Sans', sans-serif; }



body[data-paint-style="SERICO"] #product-page .back-to-catalog-btn,

body[data-paint-style="SERICO"] #product-page .product-brand,

body[data-paint-style="SERICO"] #product-page .product-short-desc,

body[data-paint-style="SERICO"] #product-page .product-info-block h3,

body[data-paint-style="SERICO"] #product-page .product-full-description h2,

body[data-paint-style="SERICO"] #product-page .product-full-description p,

body[data-paint-style="SERICO"] #product-page .product-title,

body[data-paint-style="SERICO"] #product-page .product-price,

body[data-paint-style="SERICO"] #product-page .price-disclaimer,

body[data-paint-style="SERICO"] #product-page .product-availability,

body[data-paint-style="SERICO"] #product-page .product-full-details-link,

body[data-paint-style="SERICO"] #product-page .product-price-original {

    color: #4A4A4A;

}

body[data-paint-style="SERICO"] #product-page .product-container,

body[data-paint-style="SERICO"] #product-page .product-main-image {

    background: rgba(255, 255, 255, 0.4);

    border-color: rgba(0, 0, 0, 0.1);

}

body[data-paint-style="SERICO"] #product-page .product-purchase-block {

    border-color: rgba(0, 0, 0, 0.1);

}

body[data-paint-style="SERICO"] #product-page .btn-primary {

    background: #4A4A4A;

    color: #F1F0ED;

}

body[data-paint-style="SERICO"] #product-page .thumbnail-item:hover { border-color: #B0A8A3; }

body[data-paint-style="SERICO"] #product-page .thumbnail-item.active { border-color: #4A4A4A; }

body[data-paint-style="SERICO"] #product-page #pp-variant-select {

    background: rgba(255,255,255,0.4);

    border-color: rgba(0,0,0,0.1);

    color: #4A4A4A;

}



/* --- THEME: UNA --- */

body[data-paint-style="UNA"] #product-page { background: linear-gradient(135deg, #F2F0EC, #E5E2DE); color: #373737; }

body[data-paint-style="UNA"] #product-page .product-title { font-family: 'Lora', serif; }

body[data-paint-style="UNA"] #product-page .product-short-desc,

body[data-paint-style="UNA"] #product-page .product-full-description,

body[data-paint-style="UNA"] #product-page .product-info-block { font-family: 'Open Sans', sans-serif; }



body[data-paint-style="UNA"] #product-page .back-to-catalog-btn,

body[data-paint-style="UNA"] #product-page .product-brand,

body[data-paint-style="UNA"] #product-page .product-short-desc,

body[data-paint-style="UNA"] #product-page .product-info-block h3,

body[data-paint-style="UNA"] #product-page .product-full-description h2,

body[data-paint-style="UNA"] #product-page .product-full-description p,

body[data-paint-style="UNA"] #product-page .product-title,

body[data-paint-style="UNA"] #product-page .product-price,

body[data-paint-style="UNA"] #product-page .price-disclaimer,

body[data-paint-style="UNA"] #product-page .product-availability,

body[data-paint-style="UNA"] #product-page .product-full-details-link,

body[data-paint-style="UNA"] #product-page .product-price-original {

    color: #373737;

}



body[data-paint-style="UNA"] #product-page .product-container,

body[data-paint-style="UNA"] #product-page .product-main-image {

    background: rgba(255, 255, 255, 0.4);

    border-color: rgba(0, 0, 0, 0.1);

}

body[data-paint-style="UNA"] #product-page .product-purchase-block {

    border-color: rgba(0, 0, 0, 0.1);

}

body[data-paint-style="UNA"] #product-page .btn-primary {

    background: #373737;

    color: #F2F0EC;

}

body[data-paint-style="UNA"] #product-page .thumbnail-item:hover { border-color: #C5C2BE; }

body[data-paint-style="UNA"] #product-page .thumbnail-item.active { border-color: #373737; }

body[data-paint-style="UNA"] #product-page #pp-variant-select {

    background: rgba(255,255,255,0.4);

    border-color: rgba(0,0,0,0.1);

    color: #373737;

}



/* ================================================

   10. TEAM CAROUSEL (NEW)

   ================================================ */

.team-carousel-container {

    position: relative;

    max-width: 500px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 1rem;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    border: 1px solid var(--border-light);

}



.team-carousel-slide {

    display: none;

    width: 100%;

    animation: fade 0.8s ease-in-out;

}



.team-carousel-slide.active {

    display: block;

}



.team-carousel-slide img {

    width: 100%;

    display: block;

}



@keyframes fade {

    from { opacity: .4 }

    to { opacity: 1 }

}



.carousel-control {

    cursor: pointer;

    position: absolute;

    top: 50%;

    width: auto;

    padding: 16px;

    margin-top: -22px;

    color: white;

    font-weight: bold;

    font-size: 24px;

    transition: 0.6s ease;

    border-radius: 0 3px 3px 0;

    user-select: none;

    background-color: rgba(0,0,0,0.3);

    border: none;

}



.carousel-control.prev {

    left: 1rem;

}



.carousel-control.next {

    right: 1rem;

}



.carousel-control:hover {

    background-color: rgba(0,0,0,0.8);

}



/* ================================================

   11. HOTFIX (User Request)

   ================================================ */



/* Сохраняет переносы строк в подробном описании товара */

#pp-full-desc {

    white-space: pre-wrap;

}

#pp-short-desc {
    white-space: pre-wrap; 
}


/* ================================================
   12. FIXES — 2025-10-31
   ================================================ */

/* 12.1 FAQ на тёмной теме: делаем текст вопросов/ответов белым */
[data-theme="dark"] .faq-question,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .faq-answer p {
  color: var(--text-primary) !important;
}

/* 12.2 Поле ввода чата на тёмной теме: белый текст и курсор */
.chat-input {
  color: var(--text-primary);
  caret-color: var(--text-primary);
}
.chat-input::placeholder { 
  color: var(--text-secondary); 
  opacity: .7; 
}
[data-theme="dark"] .chat-input::placeholder {
  /* мягкий светлый плейсхолдер на dark */
  color: rgba(250, 249, 247, 0.7);
}

/* 12.3 Модалки: вертикальные отступы после заголовков
   (Производство — info-modal и Регистрация декоратора) */
.info-modal h2,
#decorator-modal-overlay .modal-content-box h3,
#auth-modal-overlay .modal-content-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}
.info-modal #launch-video-btn {
  margin-top: 1rem;
}

/* 12.4 Раздел "Обучение": дополнительные отступы вокруг заголовков и кнопки */
#training .section-header .section-title { margin-bottom: 1rem; }
#training .section-header .section-subtitle { margin-bottom: 2rem; }
#training .training-form-container h3 { margin-bottom: 0.75rem; }
#training .training-form-container .btn { margin-top: 0.75rem; }


/* ================================================
   13. ФОН ДЛЯ СТРАНИЦЫ "О КОМПАНИИ"
   ================================================ */

#about-hero-section {
  position: relative; /* Нужно для оверлея */
  
  /* --- ВАШ ФОН --- */
  background-image: url('../m.jpeg'); /* <-- ПУТЬ К ФОТКЕ m.jpeg */
  
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* Красивый эффект "прилипшего" фона при прокрутке */
}

/* Добавляем оверлей (затемнение), чтобы текст читался */
#about-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% черного. Можешь поменять 0.5 на 0.7 для более сильного затемнения */
  z-index: 1; 
}

/* Весь контент (контейнер) должен быть поверх оверлея */
#about-hero-section .container {
  position: relative;
  z-index: 2;
}

/* --- Переопределяем цвета текста на белый, чтобы их было видно --- */

/* Заголовок и подзаголовок */
#about-hero-section .section-title,
#about-hero-section .section-subtitle {
  color: #ffffff;
}

/* Таймлайн (текст и линия) */
#about-hero-section .timeline {
  border-left-color: rgba(255, 255, 255, 0.4); /* Делаем линию таймлайна полупрозрачной белой */
}
#about-hero-section .timeline-year {
  color: #ffffff;
}
#about-hero-section .timeline-content {
  color: #dddddd; /* Чуть темнее белого для иерархии */
}

/* Блок сертификатов (текст и иконка) */
#about-hero-section .certification-block svg {
  color: #ffffff;
}
#about-hero-section .certification-block h3 {
   color: #ffffff;
}
/* === ИЗМЕНЕНИЕ: ТЕКСТ СТАЛ БЕЛЫМ И !IMPORTANT === */
#about-hero-section .certification-block p {
   color: #ffffff !important; /* !important нужен, чтобы перебить inline-style="color: var(--text-secondary);" в HTML */
}

/* Карточку основателя (.founder-card) мы не трогаем, 
  т.к. у нее свой светлый фон, и на нем темный текст смотрится хорошо.
*/

/* ================================================
   14. ИЗМЕНЕНИЕ ЦВЕТА КНОПКИ НА ГЛАВНОЙ
   ================================================ */

/* Нацеливаемся на .btn-primary, который находится 
  внутри .hero (главный экран)
*/
.hero .btn-primary {
  /* Убираем бордовый градиент и ставим серый */
  background: rgba(128, 128, 128, 0.5); /* Полупрозрачный серый */
  
  /* Добавляем рамку, как у второй кнопки ("О компании") */
  border: 1px solid rgba(255, 255, 255, 0.7);
  
  color: white; /* Цвет текста уже белый, но для надежности */
  
  /* Убираем тень от бордового градиента */
  box-shadow: none;
}

/* Стиль при наведении */
.hero .btn-primary:hover {
  background: rgba(150, 150, 150, 0.7); /* Чуть светлее при наведении */
  border-color: white;
  transform: translateY(-4px); /* Оставляем эффект "подъема" */
  box-shadow: none; /* Убедимся, что тени нет */
}

/* ================================================
   1. ЯДЕРНЫЙ CSS ПРОТИВ GOOGLE BANNER
   ================================================ */

/* Скрываем фрейм с баннером */
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Жестко фиксируем body на месте, чтобы Google не сдвигал сайт */
body {
    top: 0px !important;
    position: static !important;
    margin-top: 0px !important;
}

/* Скрываем полосу, если она загружается как div */
body > .skiptranslate {
    display: none !important;
}

/* Скрываем всплывающие подсказки перевода */
.goog-tooltip, 
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
}

/* Убираем подсветку текста и ховер-эффекты при наведении */
.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


/* ================================================
   2. СТИЛИ ДЛЯ КНОПОК СМЕНЫ ЯЗЫКА
   ================================================ */

.lang-switcher {
    display: flex;
    gap: 5px;       /* Расстояние между кнопками */
    margin-left: 15px; /* Отступ слева от выбора города */
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-light); /* Используем переменную из вашей темы */
    color: var(--text-primary);
    padding: 4px 8px;      /* Размер кнопки */
    font-size: 0.8rem;     /* Размер шрифта */
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;    /* Скругление углов */
    transition: all 0.3s ease;
    font-family: var(--font-menu); /* Шрифт как в меню */
}

/* Стиль при наведении и для активной кнопки */
.lang-btn:hover,
.lang-btn.active {
    background: var(--accent-burgundy); /* Ваш фирменный бордовый цвет */
    color: white;
    border-color: var(--accent-burgundy);
}

/* Адаптив: скрываем кнопки на очень маленьких экранах, чтобы не ломать шапку */
@media (max-width: 480px) {
    .lang-switcher {
        display: none;
    }
}


.partner-logo img {
        max-width: 250px !important; /* Было 150px, стало побольше */
        width: 100%;
        height: auto;
		gap: 8rem;
    }


/* === ЛОГИКА СМЕНЫ ЛОГОТИПОВ ПАРТНЕРОВ === */

/* По умолчанию (Светлая тема): показываем обычное, скрываем темное */
.partner-logo .img-light {
    display: block;
    width: 100%;
    height: auto;
}

.partner-logo .img-dark {
    display: none; /* Скрыто */
    width: 100%;
    height: auto;
}

/* При темной теме: скрываем обычное, показываем темное */
[data-theme="dark"] .partner-logo .img-light {
    display: none !important;
}

[data-theme="dark"] .partner-logo .img-dark {
    display: block !important;
}