/* ==================== RESET & DESIGN SYSTEM ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1C1917;
    --primary-dark: #0c0a09;
    --accent: #CA8A04;
    --accent-warm: #C67B5C;
    --text-dark: #1C1917;
    --text-body: #44403C;
    --text-light: #78716C;
    --text-muted: #A8A29E;
    --bg-white: #FAFAF9;
    --bg-light: #F5F0E8;
    --bg-warm: #FAF8F3;
    --border: #E7E0D5;
    --border-light: #F0EBE3;

    --gradient: linear-gradient(135deg, #1C1917 0%, #292524 100%);
    --gradient-gold: linear-gradient(135deg, #CA8A04 0%, #A16207 100%);
    --gradient-warm: linear-gradient(135deg, #CA8A04 0%, #D4A847 100%);

    --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(28, 25, 23, 0.07), 0 2px 4px -2px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -4px rgba(28, 25, 23, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(28, 25, 23, 0.08), 0 8px 10px -6px rgba(28, 25, 23, 0.04);
    --shadow-gold: 0 4px 14px rgba(202, 138, 4, 0.3);

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-h1: clamp(2.5rem, 5.5vw, 4rem);
    --text-h2: clamp(1.875rem, 3.5vw, 2.75rem);
    --text-h3: clamp(1.125rem, 2vw, 1.375rem);
    --text-body-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    --text-sm: 0.875rem;
    --text-xs: 0.75rem;

    --section-y: clamp(4rem, 8vw, 6rem);
    --container-max: 1200px;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 100px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration: 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-warm);
    font-size: var(--text-body-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px;
    /* Отступ для лого-бара */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== SCROLL REVEAL ==================== */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-item:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-item:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-item:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-item:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal-item:nth-child(6) {
    transition-delay: 0.4s;
}

/* ==================== SECTION HEADERS (replaces repetitive gold bars) ==================== */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header--center {
    text-align: center;
}

.section-title {
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.section-lead {
    color: var(--text-light);
    font-size: var(--text-body-size);
    max-width: 520px;
    line-height: 1.6;
}

.section-header--center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 70px;
    /* Сдвигаем хедер ниже лого-бара */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
    z-index: 50;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.logo img {
    height: 44px;
    width: auto;
    display: block;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color var(--duration) var(--ease);
}

.desktop-nav a:hover {
    color: var(--text-dark);
}

.desktop-nav a.active {
    color: var(--accent);
}

.phone {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity var(--duration);
}

.phone:hover {
    opacity: 0.7;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 51;
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.burger.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==================== TRANSPARENT HEADER (Landing Page) ==================== */
.header.header-transparent {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header.header-transparent .logo,
.header.header-transparent .desktop-nav a,
.header.header-transparent .phone {
    color: #fff;
}

.header.header-transparent .burger-line {
    background: #fff;
}

.header.header-transparent .desktop-nav a:hover,
.header.header-transparent .desktop-nav a.active {
    color: var(--accent);
}

/* Scrolled state for transparent header */
.header.header-transparent.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.08);
    border-bottom: 1px solid transparent;
}

.header.header-transparent.scrolled .logo,
.header.header-transparent.scrolled .desktop-nav a,
.header.header-transparent.scrolled .phone {
    color: var(--text-dark);
}

.header.header-transparent.scrolled .burger-line {
    background: var(--text-dark);
}

/* ==================== MOBILE MENU ==================== */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 44;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    z-index: 45;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: none; /* скрыт — закрытие через бургер/оверлей */
}

.mobile-menu-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.mobile-menu-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    flex: 1;
}

.mobile-menu-links li {
    border-bottom: 1px solid #e8e8e8;
}

.mobile-menu-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.0625rem 1.5rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.mobile-menu-links a:hover {
    background: #f7f7f7;
}

.mobile-menu-links a.active {
    color: var(--accent);
}

/* Стрелка «›» для пунктов с подкатегориями */
.mobile-menu-links a[href*="catalog"]::after {
    content: '›';
    font-size: 1.375rem;
    line-height: 1;
    color: #bbb;
    font-weight: 400;
}

.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-phone {
    text-align: center;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
}

.mobile-menu-cta {
    display: block;
    text-align: center;
    padding: 0.875rem;
    background: var(--gradient-gold);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(202, 138, 4, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(202, 138, 4, 0.25);
    color: #D4A847;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s var(--ease-out);
}

.hero-title {
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
    animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero-price {
    display: block;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
}

.hero-feature i {
    color: var(--accent);
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    text-decoration: none;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== SOCIAL PROOF BAR ==================== */
.proof-bar {
    background: var(--primary);
    padding: 1.75rem 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    position: relative;
    padding: 0.25rem 1rem;
}

.proof-item+.proof-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.proof-number {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
    line-height: 1;
}

.proof-suffix {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
}

.proof-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--text-sm);
}

.btn-primary {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(202, 138, 4, 0.4);
}

.btn-accent {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(202, 138, 4, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border);
}

.btn-outline-dark:hover {
    border-color: var(--text-dark);
}

/* ==================== SECTIONS ==================== */
section {
    padding: var(--section-y) 0;
}

/* ==================== FEATURED SECTION (главная) ==================== */
.featured-section {
    padding: var(--section-gap) 0;
    background: var(--bg-warm);
}

/* Ограничиваем показ первых 6 карточек на главной */
.featured-gallery .catalog-item:nth-child(n+7) {
    display: none;
}

/* На страницах товаров — 4 карточки в 2 колонки */
.related-gallery {
    grid-template-columns: repeat(2, 1fr);
}

/* Кнопка "Смотреть весь каталог" */
.featured-cta {
    margin-top: 2.5rem;
    text-align: center;
}

/* ==================== CATALOG ==================== */
.catalog {
    background: var(--bg-white);
}

.catalog-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Главная страница — блок популярных кухонь */
.featured-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.categories-gallery {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.catalog-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
}

.catalog-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.catalog-item:hover img {
    transform: scale(1.04);
}


/* Catalog Labels */
.catalog-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    z-index: 10;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.label-new {
    background: #10b981;
}

/* Зеленый для новинок */
.label-hit {
    background: var(--accent);
}

/* Золотой для хитов */
.label-sale {
    background: #ef4444;
}

/* Красный для скидок */

/* Persistent info overlay on catalog cards */
.catalog-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.catalog-style {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.catalog-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.catalog-price {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.catalog-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.catalog-cta p {
    color: var(--text-light);
    font-size: var(--text-body-size);
    margin-bottom: 1.25rem;
}

/* ==================== ADVANTAGES (numbered, not icon-circle) ==================== */
.advantages {
    background: var(--bg-warm);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.advantage-card {
    display: flex;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.advantage-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.advantage-num {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.02em;
    transition: color var(--duration);
}

.advantage-card:hover .advantage-num {
    color: var(--accent);
}

.advantage-text h3 {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
}

.advantage-text p {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ==================== STEPS ==================== */
.steps-section {
    background: var(--bg-white);
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 2rem auto 0;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.step-connector {
    width: 60px;
    height: 0;
    border-top: 2px dashed var(--border);
    margin-top: 22px;
    flex-shrink: 0;
}

/* ==================== GALLERY — BENTO GRID ==================== */
.gallery {
    background: var(--bg-light);
}

.gallery-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 0.75rem;
}

/* First item: featured, spans 2 cols & 2 rows */
.gallery-featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Last item: wide, spans 2 cols */
.gallery-wide {
    grid-column: 2 / 4;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.6) 0%, transparent 100%);
    padding: 2.5rem 1rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.gallery-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.gallery-caption {
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
}

/* ==================== BEFORE / AFTER ==================== */
.before-after {
    background: var(--bg-white);
}

.ba-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    user-select: none;
}

.ba-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ba-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Скрываем часть картинки "После" с помощью clip-path */
.ba-after {
    clip-path: inset(0 0 0 var(--position));
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.ba-before .ba-label {
    left: 20px;
}

.ba-after .ba-label {
    right: 20px;
}

/* Ползунок (input range) - невидимый, но функциональный слой сверху */
.ba-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
    z-index: 20;
    margin: 0;
}

/* Визуальная линия разделителя */
.ba-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    background: white;
    z-index: 15;
    pointer-events: none;
    /* Пропускаем клики сквозь линию на input */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==================== REVIEWS ==================== */
.reviews {
    background: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.review-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.review-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-rating {
    margin-left: auto;
    color: #fbbf24;
    /* Star color */
    font-size: 0.875rem;
}

.review-text {
    color: var(--text-body);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.reviews-cta {
    text-align: center;
}

/* ==================== FAQ ==================== */
.faq {
    background: var(--bg-warm);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease);
}

.faq-item[open] {
    border-color: var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    margin-left: 1rem;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--text-muted);
    transform: translate(-50%, -50%);
    transition: transform var(--duration) var(--ease);
    border-radius: 1px;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ==================== CTA SECTION — DARK ==================== */
.cta-section {
    padding: var(--section-y) 0;
    background: var(--primary);
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    font-size: var(--text-h2);
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.cta-inner p {
    font-size: var(--text-body-size);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== BLOG / NEWS ==================== */
.blog-section {
    background: var(--bg-warm);
}

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

.blog-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.blog-content p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0c0a09;
    color: white;
    padding: 30px 0 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--text-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--duration);
    font-size: var(--text-sm);
}

.footer-col a:hover {
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    font-size: var(--text-sm);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: all var(--duration) var(--ease);
}

/* Фирменные цвета соцсетей — постоянно */
.footer-socials a[aria-label="Telegram"] {
    background: #2AABEE;
}

.footer-socials a[aria-label="WhatsApp"] {
    background: #25D366;
}

.footer-socials a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-socials a[aria-label="TikTok"] {
    background: #010101;
    color: #69C9D0;
    box-shadow: 2px 2px 0 #EE1D52, -2px -2px 0 #69C9D0;
}

/* Hover — небольшое поднятие */
.footer-socials a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--text-xs);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 60;
    inset: 0;
    background-color: rgba(28, 25, 23, 0.5);
    backdrop-filter: blur(4px);
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background-color: #ffffff;
    margin: 8vh auto;
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s var(--ease-out);
    box-shadow: 0 25px 50px rgba(28, 25, 23, 0.2);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 50%;
    transition: all var(--duration);
    line-height: 1;
    border: none;
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--border);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    background: rgba(202, 138, 4, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--accent);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.modal-header p {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin: 0;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-body);
}

.modal-content input,
.modal-content select {
    height: 44px;
    padding: 0 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    transition: border-color var(--duration), box-shadow var(--duration);
    font-family: inherit;
    background: #ffffff;
    color: var(--text-dark);
}

.modal-content input::placeholder {
    color: var(--text-muted);
}

.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.1);
}

.modal-content .btn {
    margin-top: 0.125rem;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-consent {
    font-size: var(--text-xs) !important;
    color: var(--text-muted) !important;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.4;
}

/* ==================== STICKY MOBILE CTA ==================== */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(28, 25, 23, 0.08);
    transform: translateY(100%);
    transition: transform var(--duration) var(--ease);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-price {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ==================== FLOATING BUTTONS ==================== */
.social-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 39;
    transition: all var(--duration) var(--ease);
}

.social-float.hidden {
    transform: translateY(200px);
    opacity: 0;
    pointer-events: none;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration) var(--ease);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-btn.phone {
    background: var(--gradient-gold);
    position: relative;
    z-index: 1;
}

.social-btn.phone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .catalog-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }

    .gallery-featured {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .gallery-wide {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .phone {
        display: none;
    }

    /* Бургер — переносим влево с текстом МЕНЮ */
    .burger {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        height: 70px;
        z-index: 101;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 0 16px;
    }

    /* Обёртка трёх линий — стек по вертикали */
    .burger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* Текст МЕНЮ рядом с иконкой */
    .burger-label {
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        color: var(--text-dark);
        line-height: 1;
    }

    /* При открытом меню текст МЕНЮ скрываем */
    .burger.active .burger-label {
        display: none;
    }

    /* Логотип остаётся по центру */
    .logo-bar {
        justify-content: center;
    }

    /* Хедер на мобиле пустой — скрываем */
    .header {
        height: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible;
    }

    .header .container {
        height: 0;
        overflow: hidden;
        padding: 0;
    }

    .sticky-cta {
        display: flex;
    }

    .social-float {
        bottom: 80px;
        right: 16px;
    }

    .social-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0;
    }

    .proof-item+.proof-item::before {
        display: none;
    }

    .proof-item:nth-child(even)::before {
        display: block;
    }

    .catalog-gallery {
        grid-template-columns: 1fr;
    }

    .categories-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-item img {
        height: 260px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .step {
        padding: 1rem 0;
    }

    .step-connector {
        width: 0;
        height: 24px;
        border-top: none;
        border-left: 2px dashed var(--border);
        margin: 0;
    }

    .gallery-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .gallery-featured,
    .gallery-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-featured {
        grid-row: span 1;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SEO TEXT SECTION ==================== */
.seo-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-body);
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.seo-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.seo-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ==================== MAP SECTION ==================== */
.map-section {
    padding-bottom: 0;
    background: var(--bg-warm);
}

.map-container {
    width: 100%;
    height: 450px;
    filter: grayscale(100%);
    /* Стильная черно-белая карта */
    transition: filter 0.3s;
}

.map-container:hover {
    filter: grayscale(0%);
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs-wrapper {
    padding-top: 100px;
    /* Отступ от фиксированного хедера */
    background: var(--bg-warm);
    padding-bottom: 10px;
}

.breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* ==================== PRODUCT MODAL ==================== */
.modal-content.modal-product {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.product-modal-image {
    position: relative;
    background: #f0f0f0;
}

.modal-slider {
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 400px;
}

.modal-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.modal-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 10;
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

.product-modal-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#modalDesc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    margin: 1rem 0;
}

.product-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 0;
}

.product-modal-info .catalog-style {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-slider {
        min-height: 250px;
    }

    .product-modal-info {
        padding: 1.5rem;
    }
}

/* ==================== FILTERS ==================== */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    color: #4b5563;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: #1f2937;
    color: #1f2937;
}

.filter-btn.active {
    background: #1f2937;
    color: #fff;
    border-color: #1f2937;
}

/* ==================== PROMO BAR (внутренние страницы) ==================== */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: #0c0a09;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    padding: 0 1rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.promo-bar strong {
    color: var(--accent);
    margin-right: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== LOGO BAR (главная страница) ==================== */
.logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 100;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.logo-bar-link {
    display: flex;
    align-items: center;
    height: 70px;
    overflow: hidden;
}

.logo-bar-link img {
    height: 260px;
    width: auto;
    flex-shrink: 0;
}

/* Иконка телефона в logo-bar — только мобиль */
.logo-bar-phone {
    display: none;
}

@media (max-width: 768px) {
    .logo-bar-phone {
        display: flex;
        position: fixed;
        top: 0;
        right: 16px;
        height: 70px;
        align-items: center;
        padding: 0 10px;
        color: var(--text-dark);
        font-size: 1.1rem;
        text-decoration: none;
        z-index: 101;
    }
}

/* ==================== QUIZ ==================== */
.quiz-section {
    background: var(--bg-white);
}

.quiz-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.quiz-progress {
    margin-bottom: 2rem;
}

.quiz-progress-bar {
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
    margin-bottom: 0.5rem;
}

.quiz-progress-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

.quiz-question {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option input {
    display: none;
}

.quiz-card {
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-option input:checked+.quiz-card {
    border-color: var(--accent);
    background: rgba(202, 138, 4, 0.05);
}

.quiz-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.quiz-option input:checked+.quiz-card .quiz-icon {
    color: var(--accent);
}

.quiz-card span {
    font-weight: 600;
    color: var(--text-dark);
}

.quiz-card small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.quiz-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.quiz-form-fields {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-bonus {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-warm);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.quiz-bonus i {
    color: var(--accent);
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 1.5rem;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        text-align: left;
    }

    .quiz-icon {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
}

/* ==================== CONTACT MAP ==================== */
.map-section {
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 450px;
    background: #f0f0f0;
}

.map-container iframe {
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.3s ease;
}


/* ==================== FAQ ACCORDION ==================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.faq-accordion-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.faq-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-accordion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.faq-accordion-item:hover .faq-accordion-title {
    color: var(--accent);
}

.faq-accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

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

.faq-accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
}

.faq-accordion-item.active .faq-accordion-content {
    grid-template-rows: 1fr;
}

.faq-accordion-inner {
    overflow: hidden;
}

.faq-accordion-inner p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .faq-accordion-header {
        padding: 1rem 1.25rem;
    }

    .faq-accordion-title {
        font-size: 1rem;
    }

    .faq-accordion-inner p {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ==================== FAQ SECTION (Catalog Page) ==================== */
.faq {
    padding: var(--section-y) 0;
    background: var(--bg-warm);
}

.faq .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(202, 138, 4, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

.faq-icon {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: var(--accent);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
    padding: 0 1.5rem;
    font-size: var(--text-body-size);
    color: var(--text-body);
    line-height: 1.7;
    transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
}

/* FAQ Mobile */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer-inner {
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer-inner {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ==================== ПОРТФОЛИО (галерея работ) ==================== */
.portfolio-section {
    padding: 60px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay i {
    color: #fff;
    font-size: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Лайтбокс портфолио */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close-btn:hover {
    opacity: 1;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Превью "Наши работы" на главной */
.our-works-preview {
    padding: 60px 0;
    background: var(--bg-warm);
}

.works-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 2rem;
}

.works-preview-item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
}

.works-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.works-preview-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .works-preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 8px;
    }

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

/* ==================== УНИВЕРСАЛЬНЫЙ ЛАЙТБОКС ==================== */
.u-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.u-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.u-lb-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.u-lb-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.u-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 1;
}

.u-lb-close:hover {
    opacity: 1;
}

.u-lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.u-lb-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.u-lb-prev {
    left: 20px;
}

.u-lb-next {
    right: 20px;
}

.u-lb-counter {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.u-lb-link {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.u-lb-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Оверлей с иконкой увеличения — для цветов и главного фото товара */
.u-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.u-lb-overlay i {
    color: #fff;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.u-lb-overlay--main i {
    font-size: 2rem;
}

/* Показываем оверлей при наведении */
.color-sample-item:hover .u-lb-overlay {
    opacity: 1;
}


@media (max-width: 768px) {
    .u-lb-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .u-lb-prev {
        left: 8px;
    }

    .u-lb-next {
        right: 8px;
    }
}

/* ===== БЛОК КАТЕГОРИЙ (как у meko.by) ===== */
.categories-section {
    padding: 60px 0;
    background: var(--bg-warm);
}

.category-grid {
    margin-top: 40px;
}

.category-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
}

.category-card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}

.category-card:hover .category-card-img {
    transform: scale(1.04);
}

.category-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.category-card-subtitle {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
}

.category-card-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
    margin: 0;
}

@media (max-width: 560px) {
    .category-card-img {
        height: 260px;
    }
}

/* Бейдж с ценой на карточке товара */
.catalog-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FACC15;
    color: #1C1917;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
    z-index: 10;
}
/* ==================== ПОИСК ==================== */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--duration);
    display: flex;
    align-items: center;
}
.search-toggle:hover { background: var(--bg-light); }

.search-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--accent-warm);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 200;
    display: none;
    align-items: center;
    padding: 14px 20px;
    gap: 12px;
}
.search-overlay.active { display: flex; }
.search-overlay-form {
    flex: 1;
    display: flex;
    gap: 8px;
}
.search-overlay-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration);
}
.search-overlay-input:focus { border-color: var(--accent-warm); }
.search-overlay-btn {
    background: var(--accent-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity var(--duration);
}
.search-overlay-btn:hover { opacity: .85; }
.search-overlay-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 4px 8px;
}
.search-overlay-close:hover { color: var(--text-dark); }

/* Форма поиска в мобильном меню */
.mobile-search-form {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    margin-top: 8px;
}
.mobile-search-form input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
}
.mobile-search-form input:focus { border-color: var(--accent-warm); }
.mobile-search-form button {
    background: var(--accent-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1rem;
}

/* Страница поиска */
.search-page-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin-bottom: 8px;
}
.search-page-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration);
}
.search-page-input:focus { border-color: var(--accent-warm); }
.search-page-btn {
    background: var(--accent-warm);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--duration);
}
.search-page-btn:hover { opacity: .85; }

/* Поиск — цвет иконки в прозрачном хедере */
.header.header-transparent .search-toggle {
    color: rgba(255,255,255,0.9);
}
.header.header-transparent .search-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Поиск — скрываем иконку на мобиле (форма есть в мобильном меню) */
@media (max-width: 768px) {
    .search-toggle { display: none; }
}

/* ==================== ПОИСК — мобильная версия ==================== */
@media (max-width: 768px) {
    /* Иконка поиска — правее иконки телефона */
    .search-toggle {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 56px;
        height: 70px;
        z-index: 101;
        align-items: center;
        padding: 0 10px;
        background: none;
        border: none;
        color: var(--text-dark);
        font-size: 1.1rem;
        cursor: pointer;
    }

    /* Оверлей поиска — всё в одну строку, компактные отступы */
    .search-overlay {
        padding: 10px 12px;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .search-overlay-form {
        min-width: 0;
    }
    .search-overlay-input {
        min-width: 0;
        font-size: 0.9rem;
        padding: 9px 10px;
    }
    .search-overlay-btn {
        padding: 9px 12px;
        flex-shrink: 0;
    }
    .search-overlay-close {
        flex-shrink: 0;
        font-size: 1.2rem;
        padding: 4px 6px;
    }
}
