

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.sticky-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: calc(1600px - 4rem);
    z-index: 100;
    padding: 0.8rem 2rem;
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-radius 0.3s ease;
    border-radius: 100px;
}

.sticky-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
}

.sticky-nav.scrolled .nav-logo {
    color: #0A0A0A;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.sticky-nav.scrolled .nav-links a {
    color: #0A0A0A;
    opacity: 0.6;
}

.nav-links a:hover,
.sticky-nav.scrolled .nav-links a:hover {
    opacity: 1;
}

.nav-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.nav-icon-btn:hover {
    opacity: 1;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}



.sticky-nav.scrolled .nav-icon-btn {
    color: #0A0A0A;
}

:root {
    --font-primary: 'Inter', sans-serif;
    --color-text: #ffffff;
    --color-bg: #0a0a0a;
    --color-accent: #A1887F;

    /* Typography system */
    --fs-hero: 8vw;
    --fs-h1: clamp(2.5rem, 4.5vw, 5rem);
    --fs-h2: clamp(2rem, 3.5vw, 3.5rem);
    --fs-h3: 1.4rem;
    --fs-body: 1rem;
    --fs-small: 0.85rem;
    --fs-label: 0.75rem;
    --fs-btn: 0.85rem;
}

/* ... existing code ... */

.stage-number {
    font-family: var(--font-primary);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 2rem;
    opacity: 1;
}

.empty-block {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* --- Block 2 / Hero Slider --- */
.hero-alt-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.15) translate(-3%, 0%);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-alt-bg.active {
    opacity: 1;
}

.block2-controls-container {
    position: fixed;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1600px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.block2-nav-btn {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.block2-nav-btn svg {
    width: 18px;
    height: 18px;
}

.block2-nav-btn:hover {
    transform: scale(1.1);
    background: var(--color-accent);
    color: #fff;
}

/* New solid section class */
.solid-section {
    position: relative;
    background-color: var(--color-bg);
    z-index: 2;
    padding: 4rem 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-poster {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    object-fit: cover;
    transform: scale(1.08);
    transform-origin: center;
    z-index: -2;
}

.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    object-fit: cover;
    transform: scale(1.08);
    transform-origin: center;
    z-index: -1;
}

.hero-video.ended {
    opacity: 0;
}

/* Optional overlay for better text contrast */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for better text contrast at top and bottom */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 2rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-transform: uppercase;
}

.category {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.center-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    will-change: transform, opacity;
}

.main-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    margin-bottom: 1rem;
}

/* Adjusting to match reference 'möbelia' style more closely if desired, 
   but 'FOSHAN' usually looks better uppercase or capitalized. 
   I will stick to uppercase for impact unless requested otherwise. */

.subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-top: 0;
    text-transform: none;
    opacity: 0.7;
    line-height: 1.6;
}

/* Hero badges (производство · гарантия · доставка) */
.hero-badges {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: none;
    opacity: 0.65;
    margin-bottom: 1.2rem;
}

/* Hero CTA button */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 2.5rem;
    height: 52px;
    border-radius: 100px;
    background: #fff;
    color: #1a1a1a;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    pointer-events: auto;
}
.hero-cta-btn:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: scale(1.03);
}

/* Scroll hint — fixed к видео-зоне */
.hero-scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: heroBounce 2s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.3s;
}
.hero-scroll-text {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-scroll-hint svg {
    opacity: 0.85;
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}
@keyframes heroBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.bottom-bar {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-family: var(--font-primary);
    font-size: var(--fs-small);
    letter-spacing: 0.08em;
    opacity: 0.8;
    text-transform: uppercase;
    padding-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    .category {
        display: none;
    }
    .hero-badges {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
    }
    .hero-cta-btn {
        height: 46px;
        padding: 0 2rem;
        font-size: 0.85rem;
        margin-top: 1.5rem;
    }
    .hero-scroll-hint {
        bottom: 1.2rem;
    }
}

/* --- About Section --- */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-section {
    position: relative;
    background-color: #0A0A0A;
    color: #ffffff;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12rem 0 8rem;
    z-index: 7;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

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

.about-left {
    display: flex;
    flex-direction: column;
}

.about-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #A1887F;
    margin-bottom: 1.5rem;
}

.about-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    color: #ffffff;
}

.about-heading-accent {
    color: #A1887F;
}

.about-line {
    width: 60px;
    height: 3px;
    background: #A1887F;
    margin: 2.5rem 0;
    border-radius: 2px;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.9rem 0;
    border-bottom: 2px solid #ffffff;
    transition: all 0.3s ease;
    width: fit-content;
}

.about-cta:hover {
    color: #A1887F;
    border-color: #A1887F;
    gap: 1.2rem;
}

.about-cta svg {
    transition: transform 0.3s ease;
}

.about-cta:hover svg {
    transform: translateX(4px);
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.about-stat-num {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
}

.about-stat-label {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.5;
    line-height: 1.3;
}

.about-desc {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    line-height: 1.75;
    color: #ffffff;
    opacity: 0.65;
}

.about-desc p {
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-section {
        padding: 6rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    
}

/* --- White Stages Section --- */
.white-section {
    position: relative;
    background-color: #FFFFFF;
    color: #0A0A0A;
    z-index: 3;
    /* Must cover video */
    padding: 8rem 0;
    min-height: 80vh;
    /* Substantial height */
}

.mononova-catalog {
    padding: 8rem 0;
    background-color: #fff !important; /* Pure white as requested */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
    margin-bottom: 6rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--fs-h3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0A0A0A;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
}

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

.stage-card {
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.stage-card:last-child {
    border-right: none;
}

.stage-number {
    font-family: var(--font-primary);
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 2rem;
    opacity: 1;
}

.stage-title {
    font-family: var(--font-primary);
    font-size: var(--fs-h3);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.stage-desc {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.5;
    color: rgba(10, 10, 10, 0.7);
}

/* Responsive Stages */
@media (max-width: 1024px) {
    .stages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .stage-card {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .stages-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- Photo Section --- */
.photo-section {
    background-color: #FFFFFF;
    padding-bottom: 10rem;
    position: relative;
    z-index: 3;
}

.photo-wrapper {
    width: 100%;
    height: 80vh;
    /* Large impactful height */
    border-radius: 2rem;
    /* Rounded corners as requested */
    overflow: hidden;
    position: relative;
}

.block-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* "Not necessarily visible entirely" */
    transition: transform 0.5s ease;
}

.photo-wrapper:hover .block-photo {
    transform: scale(1.02);
    /* Subtle zoom on hover */
}

/* --- Redesigned Catalog (Mononova Style) --- */
.catalog-section {
    background-color: #ffffff;
    color: #000;
    padding: 10rem 0;
    position: relative;
    z-index: 3;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.catalog-main-title {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.filters-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #eeeeee;
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-primary);
    font-size: var(--fs-btn);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filters-btn:hover {
    background: #e0e0e0;
}

/* --- Mononova Popular Models --- */
.popular-models {
    background-color: #ffffff;
    color: #0A0A0A;
    padding: 8rem 0 0 0;
    z-index: 5;
    position: relative;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.section-main-title {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1.5px solid #0A0A0A;
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: #0A0A0A;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.4s ease;
}

.view-all-btn:hover {
    background: #0A0A0A;
    color: #fff;
}

.m-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem; /* Unified horizontal and vertical gaps */
}

.m-card {
    display: flex;
    flex-direction: column;
}

.m-card.row-1 {
    grid-column: span 2;
}

.m-card.row-2 {
    grid-column: span 3;
}

.m-image {
    width: 100%;
    aspect-ratio: 1.25 / 1; /* Default for top row */
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    /* Removed shadow and borders as per user request */
}

.m-card.row-2 .m-image {
    aspect-ratio: 1.9 / 1; /* Fine-tuned to match row-1 height with span 3 vs span 2 */
}

.m-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Fill the plaque */
    object-position: bottom; /* Keep sofa base in view if slightly cropped at top */
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.m-card:hover .m-product-img {
    transform: scale(1.05);
}

.mononova-catalog {
    padding: 8rem 0;
    background-color: #f5f5f5 !important; /* Slightly darker to contrast with white images */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.m-overlay-info {
    width: 100%;
    padding: 2rem;
    position: absolute; 
    top: 0; 
    left: 0;
    z-index: 2;
    /* Removed background gradient as per user request */
}

.m-card:hover .m-image {
    transform: translateY(-5px);
}

.m-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #000;
}

.m-price {
    font-size: var(--fs-body);
    font-weight: 400;
    opacity: 0.6;
    color: #000;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .m-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .m-card.row-1, .m-card.row-2 {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .m-grid {
        grid-template-columns: 1fr;
    }
    .m-card.row-2 .m-image {
        aspect-ratio: 1.25 / 1;
    }
}

/* --- Manifesto Section --- */
.manifesto-section {
    background-color: #ffffff;
    padding: 2rem 0 0 0;
    z-index: 6;
    position: relative;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

.manifesto-card {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.manifesto-card-inner {
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifesto-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.manifesto-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.manifesto-slide.active-slide {
    opacity: 1;
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* --- Manifesto Story Indicators --- */
.story-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    width: 100%;
    padding: 0 2rem;
    z-index: 2;
}

.story-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
}

.manifesto-logo {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: 4rem;
}

.manifesto-text {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.manifesto-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.2rem 3rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 60px;
    font-family: var(--font-primary);
    font-size: var(--fs-btn);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.manifesto-btn:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}



/* --- Interactive Hotspot --- */
.empty-block {
    cursor: default;
}

.hotspot-cta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 9;
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    width: min(90%, calc(100% - 160px));
    margin: 0;
}

.hotspot-cta-accent {
    display: block;
    font-weight: 400;
    font-size: var(--fs-h3);
    letter-spacing: 0.15em;
    opacity: 0;
    margin-top: 1rem;
}

.sofa-hotspot {
    position: fixed;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.plus-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    z-index: 11;
    text-decoration: none;
}

.plus-btn:hover {
    transform: scale(1.1);
    background: var(--color-accent);
    color: #fff;
}

/* Pulsing aura */
.plus-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: hotspotPulse 2s infinite;
    z-index: -1;
}

@keyframes hotspotPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Spotlight Effect Removed as per user request (was causing 'black box' look) */
.hotspot-highlight {
    display: none;
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1100px;
    border-radius: 32px;
    overflow: hidden;
    color: #000;
    padding: 3rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s ease;
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
    z-index: 10;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.modal-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f0f0f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-placeholder span {
    font-size: var(--fs-small);
    letter-spacing: 0.2rem;
    opacity: 0.2;
}

.modal-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.modal-price {
    font-size: var(--fs-h3);
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-accent);
}

.modal-description {
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.modal-specs {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
}

.modal-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: var(--fs-small);
}

.modal-buy-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 1.2rem;
    font-size: var(--fs-btn);
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.modal-buy-btn:hover {
    transform: translateY(-2px);
    background: #222;
}

.modal-secondary-btn {
    width: 100%;
    background: transparent;
    color: #000;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1.2rem;
    font-size: var(--fs-btn);
    font-weight: 600;
    letter-spacing: 0.08em;
    border-radius: 12px;
    cursor: pointer;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.4rem;
    transition: opacity 0.3s;
}

.form-status.success {
    color: #4CAF50;
}

.form-status.error {
    color: #F44336;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.fade-up {
    transform: translateY(40px);
}

.animate-on-scroll.fade-in {
    transform: none;
}

.animate-on-scroll.reveal-left {
    transform: translateX(-30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Staggered delays for child elements (grids) */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Ensure modal is perfectly centered */
.modal-content {
    margin: auto;
}

/* --- Footer --- */
.main-footer {
    background-color: #0A0A0A;
    color: #fff;
    padding: 8rem 0;
    z-index: 10;
    position: relative;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-title {
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

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

.footer-col ul li {
    margin-bottom: 1.2rem;
}

.footer-col ul li a, .footer-contact-link {
    color: #fff;
    text-decoration: none;
    font-size: var(--fs-body);
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-col ul li a:hover, .footer-contact-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-contact-block {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.4;
    margin-bottom: 0.3rem;
}

.footer-contact-link {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-legal-name {
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-legal-line {
    font-size: var(--fs-small);
    opacity: 0.6;
    margin-bottom: 0.4rem;
}

.sub-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: var(--fs-small);
    opacity: 0.6;
}

.sub-footer-inner a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.sub-footer-inner a:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-card {
        grid-column: span 2;
    }
    
    .product-card.card-full {
        grid-column: span 4;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card, .product-card.card-full, .product-card.card-texture {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ============================
   UNIFIED TYPOGRAPHY SYSTEM
   ============================ */

/* Section labels (small uppercase markers) */
.section-label {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-bottom: 1.2rem;
}

/* Section headings (h2 level) */
.section-heading {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: none;
    margin: 0;
}

/* Body text */
.body-text {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.75;
}

/* ============================
   ADVANTAGES SECTION
   ============================ */
.advantages-section {
    background-color: #0A0A0A;
    color: #fff;
    padding: 8rem 0;
    position: relative;
    z-index: 8;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

.advantages-section.photo-active {
    background-color: #0A0A0A;
}

.advantages-header {
    text-align: left;
    margin-bottom: 4rem;
    position: relative;
    z-index: 40;
}

.section-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #A1887F;
    margin-bottom: 1.2rem;
    transition: color 1s ease;
}

.advantages-heading {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    transition: color 1s ease;
}

.advantages-subtext {
    font-size: var(--fs-h3);
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin: 0;
}

/* Photo overlay */
.adv-hover-photo {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
    overflow: hidden;
    background: #000;
}

.adv-hover-photo.visible {
    opacity: 1;
}

.adv-hover-photo-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 35;
}

.adv-hover-photo-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 10;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.4s ease, transform 2.5s ease;
}

.adv-hover-photo-img.no-transition {
    transition: none !important;
}

.adv-hover-photo-img.active {
    z-index: 20;
    opacity: 1;
    transform: scale(1);
}

.advantages-section > .container {
    position: relative;
    z-index: 40;
}

/* List */
.lux-adv-list {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.lux-adv-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 4.2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.6s ease;
    cursor: default;
    position: relative;
    border-radius: 0;
}

.lux-adv-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lux-adv-tag {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #A1887F;
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.5s ease;
}

.lux-adv-item.scroll-active .lux-adv-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.lux-adv-item.scroll-active {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding-left: 2.5rem;
}

.lux-adv-num {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 32px;
    color: #A1887F;
    opacity: 0.5;
    transition: opacity 0.5s ease, color 0.5s ease;
}

.lux-adv-item.scroll-active .lux-adv-num {
    opacity: 1;
}

.lux-adv-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
    color: #fff;
    transition: color 0.5s ease;
}

.lux-adv-desc {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
    transition: all 0.5s ease;
}

.lux-adv-item.scroll-active .lux-adv-desc {
    color: rgba(255,255,255,0.7);
}

/* Photo active states */
.advantages-section.photo-active .lux-adv-list {
    border-top-color: rgba(255,255,255,0.1);
}

.advantages-section.photo-active .lux-adv-item {
    border-bottom-color: rgba(255,255,255,0.1);
}

.advantages-section.photo-active .lux-adv-item.scroll-active {
    background: rgba(255,255,255,0.08);
}

.advantages-section .section-label {
    color: #A1887F;
    opacity: 1;
}

.advantages-section.photo-active .section-label {
    color: #A1887F;
    opacity: 1;
}

.advantages-section.photo-active .advantages-heading {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.advantages-section.photo-active .advantages-subtext {
    color: #ffffff;
    opacity: 0.8;
}

.advantages-section.photo-active .lux-adv-num {
    color: #ffffff;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.advantages-section.photo-active .lux-adv-title {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.advantages-section.photo-active .lux-adv-desc {
    color: #ffffff;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.advantages-section.photo-active .lux-adv-tag {
    color: #A1887F;
    background: rgba(255,255,255,0.1);
}

/* Scroll-active item when photo active */
.advantages-section.photo-active .lux-adv-item.scroll-active .lux-adv-title {
    color: #fff;
}

.advantages-section.photo-active .lux-adv-item.scroll-active .lux-adv-num {
    color: #A1887F;
    opacity: 1;
}

.advantages-section.photo-active .lux-adv-item.scroll-active .lux-adv-desc {
    color: rgba(255,255,255,0.7);
}

.advantages-section.photo-active .lux-adv-item.scroll-active .lux-adv-tag {
    color: #fff;
    background: rgba(255,255,255,0.15);
}


/* Hide inline photos on desktop */
.lux-adv-photo {
    display: none;
}

@media (max-width: 900px) {
    .advantages-section {
        padding: 5rem 0;
        background-color: #0A0A0A;
        color: #fff;
    }
    .advantages-section .section-label {
        color: #A1887F;
        opacity: 1;
    }
    .advantages-section .advantages-heading {
        color: #fff;
    }
    .advantages-section .advantages-subtext {
        color: rgba(255,255,255,0.6);
    }
    /* Hide background overlay on mobile */
    .advantages-section .adv-hover-photo {
        display: none;
    }
    .lux-adv-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1.5rem;
        border-bottom-color: rgba(255,255,255,0.1);
    }
    .lux-adv-list {
        border-top-color: rgba(255,255,255,0.1);
    }
    .lux-adv-num {
        color: #A1887F;
        opacity: 0.7;
    }
    .lux-adv-title {
        color: #fff;
    }
    .lux-adv-desc {
        color: rgba(255,255,255,0.5);
    }
    .lux-adv-tag {
        align-self: start;
        color: #A1887F;
        background: rgba(255,255,255,0.1);
    }
    .lux-adv-item.scroll-active {
        padding-left: 1.5rem;
    }
    .lux-adv-item.scroll-active .lux-adv-num {
        opacity: 1;
    }
    .lux-adv-item.scroll-active .lux-adv-desc {
        color: rgba(255,255,255,0.7);
    }
    .lux-adv-item.scroll-active .lux-adv-tag {
        color: #fff;
        background: rgba(255,255,255,0.15);
    }
    /* Show photo inside card on mobile */
    .lux-adv-photo {
        display: block;
        width: 100%;
        height: 250px;
        object-fit: cover;
        object-position: center 20%;
        border-radius: 12px;
        margin-top: 0.5rem;
        opacity: 0.7;
        transition: opacity 0.5s ease;
    }
    .lux-adv-item.scroll-active .lux-adv-photo {
        opacity: 1;
    }
}

.contacts-section {
    background-color: #0A0A0A;
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.03) 0%, transparent 50%);
    color: #fff;
    padding: 8rem 0;
    position: relative;
    z-index: 9;
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contacts-info {
    padding-right: 2rem;
}

.contacts-title {
    font-family: var(--font-primary);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.contacts-desc {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 4rem;
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
}

.contact-value {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--color-accent);
}

.contacts-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    padding: 3.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-title {
    font-family: var(--font-primary);
    font-size: var(--fs-h3);
    font-weight: 500;
    color: #fff;
    margin: 0 0 1rem 0;
}

.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #fff;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
    margin-top: 1.5rem;
    background: #fff;
    color: #000;
    border: none;
    padding: 1.2rem;
    border-radius: 40px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contacts-form-wrapper {
        padding: 2.5rem 1.5rem;
    }
}

/* --- Mobile Logo (hidden on desktop) --- */
.nav-logo-mobile {
    display: none;
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}
.sticky-nav.scrolled .nav-logo-mobile {
    color: #0A0A0A;
}

/* --- Hamburger Button (hidden on desktop) --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.sticky-nav.scrolled .hamburger-line {
    background: #0A0A0A;
}
.hamburger-btn.active .hamburger-line {
    background: #fff;
}

/* Hide nav elements when mobile menu is open */
.sticky-nav:has(.hamburger-btn.active) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: transparent !important;
}

.sticky-nav:has(.hamburger-btn.active) .nav-logo-mobile,
.sticky-nav:has(.hamburger-btn.active) .nav-icons {
    opacity: 0;
    pointer-events: none;
}

/* Hide nav completely when search overlay is open */
body.search-open .sticky-nav {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
}
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: rgba(10, 10, 10, 0.98);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100dvh;
    gap: 2rem;
    padding: 2rem;
}
.mobile-menu-logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.mobile-menu.active .mobile-menu-logo {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.mobile-menu-links a {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu.active .mobile-menu-links a {
    opacity: 0.8;
    transform: translateY(0);
}
.mobile-menu.active .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-links a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-links a:hover {
    opacity: 1;
}
.mobile-menu-contacts {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}
.mobile-menu.active .mobile-menu-contacts {
    opacity: 1;
    transform: translateY(0);
}
/* (contacts flex continued from .mobile-menu-contacts above) */
.mobile-menu-contacts a {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}
.mobile-menu-contacts a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .nav-left {
        display: none;
    }
    .nav-logo-mobile {
        display: block;
    }
    .hamburger-btn {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .nav-links {
        display: none;
    }
}

/* --- Sub Footer --- */
.sub-footer {
    background-color: #0A0A0A;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    border-radius: 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.sub-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sub-footer a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .sub-footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Mobile Responsive Overrides --- */
@media (max-width: 768px) {
    /* Hero: use svh for mobile address bar, remove fixed positioning for perf */
    .hero {
        height: 100svh;
        overflow: hidden;
    }
    .main-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    .subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    .empty-block {
        height: 100svh;
    }
    .hero-poster {
        position: fixed;
        height: 100vh;
        height: 100lvh;
        will-change: transform;
        -webkit-transform: scale(1.08) translateZ(0);
        transform: scale(1.08) translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .hero-video {
        position: fixed;
        height: 100vh;
        height: 100lvh;
        will-change: transform;
        -webkit-transform: scale(1.08) translateZ(0);
        transform: scale(1.08) translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    .hero-alt-bg {
        position: fixed;
        will-change: transform;
        -webkit-transform: translateZ(0);
    }
    .hotspot-cta {
        position: fixed;
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        width: min(85%, calc(100% - 120px));
    }
    .sofa-hotspot {
        position: fixed;
    }
    .block2-controls-container {
        position: fixed;
        padding: 0 1rem;
    }
    .block2-nav-btn {
        width: 40px;
        height: 40px;
    }

    /* Popular models */
    .popular-models {
        padding: 4rem 0 0 0;
    }
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .m-overlay-info {
        padding: 1rem;
    }
    .m-title {
        font-size: 1rem;
    }

    /* Manifesto */
    .manifesto-text {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    .manifesto-btn {
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }

    /* About section */
    .about-section {
        padding: 4rem 0;
    }

    /* Advantages section */
    .advantages-section {
        padding: 4rem 0;
    }
    .advantages-header {
        margin-bottom: 2rem;
    }
    /* Fix photo overlay on mobile — keep within section bounds */
    .advantages-section {
        overflow: hidden;
    }

    /* Contacts section */
    .contacts-section {
        padding: 4rem 0;
    }
    .contact-value {
        font-size: 1.1rem;
    }
    .form-input {
        padding: 1.2rem 0;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    .submit-btn {
        padding: 1.4rem;
        font-size: 1rem;
        min-height: 48px;
        margin-top: 0.5rem;
    }
    .contacts-form {
        gap: 1rem;
    }
    .contacts-form-wrapper {
        padding: 1.5rem;
    }
    .form-status {
        min-height: 0;
        margin-top: 0;
    }
    .form-title {
        margin: 0 0 0.5rem 0;
    }

    /* Footer */
    .main-footer {
        padding: 4rem 0;
    }
}

/* --- Entrance Animation System --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Staggered Delays for Grids */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Animation Variants */
.fade-in {
    transform: translateY(0);
}

.fade-up {
    transform: translateY(40px);
}

.fade-up.visible {
    transform: translateY(0);
}

/* --- End Animation System --- */

/* ── Search Overlay ── */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background: rgba(10, 10, 10, 0.97);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
    overscroll-behavior: contain;
}

.search-overlay-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.9rem 1rem 0.9rem 3rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.search-input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}

.search-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}
.search-close-btn:hover {
    color: #fff;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.5rem;
}

.search-loading,
.search-hint,
.search-no-results,
.search-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 3rem 0;
}

.search-error button {
    margin-top: 1rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.search-error button:hover {
    opacity: 0.8;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.search-result-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-variant {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.search-result-price {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-show-all {
    display: block;
    text-align: center;
    padding: 1rem;
    color: var(--color-accent);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.search-show-all:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .search-overlay-inner {
        padding: 0.8rem 1rem 1rem;
    }
    .search-result-img {
        width: 48px;
        height: 48px;
    }
}