/* 
   KRASNOVA 4 — Obsidian & Gold Style System
   Premium Web Design System
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --color-bg-obsidian: #090909;
    --color-bg-carbon: #121212;
    --color-bg-card: #181818;
    
    --color-gold-light: #fee197;
    --color-gold-base: #dfba6b;
    --color-gold-dark: #b89543;
    --color-gold-muted: #987f61;
    --color-gold-deep: #4f3622;
    
    --color-text-white: #f5f5f5;
    --color-text-silver: #c0c0c0;
    --color-text-muted: #808080;
    
    --color-border-subtle: rgba(255, 255, 255, 0.08);
    --color-border-gold: rgba(223, 186, 107, 0.3);
    --color-border-gold-active: rgba(223, 186, 107, 0.8);

    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --page-max-width: 1300px;
    --section-gap: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-obsidian);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-silver);
    background-color: var(--color-bg-obsidian);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-obsidian);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-muted);
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-text-white);
    font-weight: 400;
    letter-spacing: -0.01em;
}

p {
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.text-gold {
    color: var(--color-gold-base);
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.mt-40 { margin-top: 40px; }
.mt-80 { margin-top: 80px; }
.mb-80 { margin-bottom: 80px; }

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-bg-obsidian);
}

.section-carbon {
    background-color: var(--color-bg-carbon);
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.section-label {
    display: block;
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold-base);
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 30px;
    font-weight: 300;
}

.section-title span {
    font-style: italic;
    color: var(--color-gold-base);
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-bottom: 60px;
    font-weight: 300;
}

.grid {
    display: grid;
    gap: 40px;
}

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

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

/* Premium Buttons & Links */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-gold-base);
    color: var(--color-gold-base);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 16px 36px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-gold-base);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-gold:hover {
    color: var(--color-bg-obsidian);
    border-color: var(--color-gold-base);
}

.btn-gold:hover::before {
    width: 100%;
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    color: var(--color-gold-base);
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 6px;
}

.ghost-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--color-gold-base);
    transition: var(--transition-smooth);
}

.ghost-link:hover::after {
    width: 100%;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(9, 9, 9, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 24px 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 16px 0;
    background-color: rgba(9, 9, 9, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0.95;
    font-family: var(--font-serif);
    color: var(--color-text-white);
    text-decoration: none;
}

.header-logo .logo-title {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--color-text-white);
    text-transform: uppercase;
}

.header-logo .logo-subtitle {
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.44em;
    color: var(--color-gold-base);
    margin-top: 3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-silver);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold-base);
    transition: var(--transition-fast);
}

.nav-link.active, .nav-link:hover {
    color: var(--color-text-white);
}

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

.nav-btn {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--color-gold-base);
    color: var(--color-gold-base);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background-color: var(--color-gold-base);
    color: var(--color-bg-obsidian);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 1001; /* Stay above the full screen mobile nav */
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 8px; }
.mobile-nav-toggle span:nth-child(3) { top: 16px; }

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 9, 9, 0.4) 0%, rgba(9, 9, 9, 0.85) 90%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    padding-top: 100px;
}

.hero-tag {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-gold-base);
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 300;
    margin-bottom: 24px;
}

.hero-title span {
    font-style: italic;
    color: var(--color-gold-base);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-base) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-silver);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Scroll Down Indicator */
.hero-scroll-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    cursor: pointer;
}

.hero-scroll-btn span {
    margin-bottom: 8px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--color-border-subtle);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--color-gold-base);
    animation: scroll-dot 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scroll-dot {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(40px); }
}

/* Bento Grid Concept Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 24px;
}

.bento-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento-item.col-2 {
    grid-column: span 2;
}

.bento-item.row-2 {
    grid-row: span 2;
}

.bento-item.img-item {
    padding: 0;
}

.bento-item.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.bento-title {
    font-size: 22px;
    color: var(--color-text-white);
    margin-bottom: 10px;
}

.bento-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-silver);
    font-weight: 300;
}

.bento-item.stat-item {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-color: var(--color-border-gold);
}

.bento-stat-num {
    font-family: var(--font-serif);
    font-size: 72px;
    line-height: 1;
    color: var(--color-gold-base);
    margin-bottom: 10px;
}

.bento-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

/* Bento Stat Items Interactive Backgrounds */
.bento-item.stat-item {
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-item.stat-item:hover {
    border-color: var(--color-border-gold-active);
    box-shadow: 0 4px 20px rgba(223, 186, 107, 0.05);
}

.stat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.22;
    transition: opacity 0.5s ease;
}

.bento-item.stat-item:hover .stat-bg {
    opacity: 0.45;
}

.stat-bg svg {
    width: 100%;
    height: 100%;
}

.stat-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Rotating dial animation for 7 residences */
.rotating-dial {
    transform-origin: 50px 50px;
    animation: spin-slow 25s linear infinite;
    transition: animation-duration 0.5s ease;
}

.bento-item.stat-item:hover .rotating-dial {
    animation-duration: 8s;
}

/* Dimension lines hover transitions for 145m² */
.dim-line-x, .dim-line-y {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dim-line-x {
    transform-origin: 50px 12px;
}

.dim-line-y {
    transform-origin: 88px 50px;
}

.bento-item.stat-item:hover .dim-line-x {
    transform: scaleY(1.15) translateY(-2px);
}

.bento-item.stat-item:hover .dim-line-y {
    transform: scaleX(1.15) translateX(2px);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Parking Elevator Background Effect */
.bento-item.parking-item {
    position: relative;
    overflow: hidden;
}

.parking-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity 0.5s ease, background-color 0.5s ease;
}

.bento-item.parking-item:hover .parking-container {
    opacity: 0.35;
    background-color: rgba(223, 186, 107, 0.02);
}

.parking-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(223, 186, 107, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 186, 107, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
}

.parking-lift {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: 280px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.bento-item.parking-item:hover .parking-lift {
    transform: translateY(-50%) scale(1.03);
}

.parking-lift svg {
    width: 100%;
    height: 100%;
}

.parking-hud {
    position: absolute;
    bottom: 12px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--color-gold-base);
    opacity: 0.8;
}

/* Lift Platform Moving Group */
.lift-platform-group {
    animation: lift-move-anim 12s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Telemetry Floor Fades */
.hud-lvl {
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.hud-lvl.lvl-0 { animation: fade-lvl-0 12s infinite; }
.hud-lvl.lvl-1 { animation: fade-lvl-1 12s infinite; }
.hud-lvl.lvl-2 { animation: fade-lvl-2 12s infinite; }

.car-status-dot {
    animation: hud-blink 1s infinite alternate;
}

.parking-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 58%;
}

/* Animations for Lift and Telemetry */
@keyframes lift-move-anim {
    0%, 15%, 100% {
        transform: translateY(30px);
    }
    40%, 55% {
        transform: translateY(80px);
    }
    80%, 95% {
        transform: translateY(130px);
    }
}

@keyframes fade-lvl-0 {
    0%, 15%, 100% { opacity: 1; }
    20%, 95% { opacity: 0; }
}

@keyframes fade-lvl-1 {
    0%, 35% { opacity: 0; }
    40%, 55% { opacity: 1; }
    60%, 100% { opacity: 0; }
}

@keyframes fade-lvl-2 {
    0%, 75% { opacity: 0; }
    80%, 95% { opacity: 1; }
    98%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .parking-content {
        max-width: 100%;
    }
    .parking-lift {
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.08;
        width: 240px;
        height: 120px;
    }
    .bento-item.parking-item:hover .parking-lift {
        transform: translate(50%, -50%) scale(1.05);
    }
}

/* Security Scanner Background Effect */
.bento-item.security-item {
    position: relative;
    overflow: hidden;
}

.scanner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity 0.5s ease, background-color 0.5s ease;
}

.bento-item.security-item:hover .scanner-container {
    opacity: 0.35;
    background-color: rgba(223, 186, 107, 0.02);
}

.scanner-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(223, 186, 107, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 186, 107, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center;
}

.scanner-face {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.bento-item.security-item:hover .scanner-face {
    transform: translateY(-50%) scale(1.05);
}

.scanner-face svg {
    width: 100%;
    height: 100%;
}

.scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(223, 186, 107, 0) 0%, 
        rgba(223, 186, 107, 0.6) 20%, 
        var(--color-gold-light) 50%, 
        rgba(223, 186, 107, 0.6) 80%, 
        rgba(223, 186, 107, 0) 100%
    );
    box-shadow: 
        0 0 8px rgba(223, 186, 107, 0.6), 
        0 0 16px rgba(223, 186, 107, 0.3);
    animation: scan-sweep-vertical 4s ease-in-out infinite;
    z-index: 3;
}

.scanner-hud {
    position: absolute;
    bottom: 12px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--color-gold-base);
    opacity: 0.8;
}

.hud-status {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-base);
    border-radius: 50%;
    display: inline-block;
    animation: hud-blink 1.5s infinite steps(1, start);
    box-shadow: 0 0 6px var(--color-gold-base);
}

.hud-label {
    font-weight: bold;
}

/* Animations */
@keyframes scan-sweep-vertical {
    0%, 100% {
        top: 0%;
        opacity: 0.1;
    }
    10% {
        opacity: 1;
    }
    50% {
        top: calc(100% - 2px);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    95% {
        opacity: 0.1;
    }
}

@keyframes hud-blink {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulse-node {
    0%, 100% {
        transform: scale(1);
        fill-opacity: 0.6;
    }
    50% {
        transform: scale(1.4);
        fill-opacity: 1;
        fill: var(--color-gold-light);
    }
}

/* Biometric node anim styling */
.biometric-node {
    transform-origin: center;
    animation: pulse-node 2.5s infinite ease-in-out;
}

/* Set transform origin correctly for each node relative to SVG's cx/cy coordinate */
.node-1 { transform-origin: 100px 50px; animation-delay: 0s; }
.node-2 { transform-origin: 85px 75px; animation-delay: 0.4s; }
.node-3 { transform-origin: 115px 75px; animation-delay: 0.8s; }
.node-4 { transform-origin: 72px 105px; animation-delay: 1.2s; }
.node-5 { transform-origin: 128px 105px; animation-delay: 1.6s; }
.node-6 { transform-origin: 100px 155px; animation-delay: 2.0s; }
.node-7 { transform-origin: 100px 90px; animation-delay: 0.2s; }

.security-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 480px) {
    .scanner-face {
        width: 120px;
        height: 120px;
        right: 2%;
    }
}

/* Bento Grid Full-Width Plans Layout */
.bento-item.col-3 {
    grid-column: span 3;
}

.plans-bento-item {
    justify-content: flex-start;
    gap: 24px;
}

.plans-header {
    width: 100%;
}

.plans-row {
    display: flex;
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

.plan-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-subtle);
    padding: 18px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.plan-card:hover {
    border-color: var(--color-gold-muted);
    background: rgba(255, 255, 255, 0.04);
}

.plan-image-wrapper {
    width: 100%;
    aspect-ratio: 1.25 / 1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0c;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.plan-image-wrapper img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.05);
    transition: var(--transition-smooth);
}

.plan-card:hover .plan-image-wrapper img {
    transform: scale(1.04);
    filter: brightness(1.05) contrast(1.1);
}

.plan-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-silver);
    text-align: center;
    margin-top: auto;
    font-weight: 500;
    transition: var(--transition-fast);
}

.plan-card:hover .plan-label {
    color: var(--color-gold-base);
}

/* Comparison Slider (Day & Night) */
.comparison-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.comparison-slider .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-slider .foreground-img {
    width: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider .background-img {
    z-index: 1;
}

.slider-label {
    position: absolute;
    bottom: 24px;
    padding: 8px 16px;
    background-color: rgba(9, 9, 9, 0.8);
    color: var(--color-text-white);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--color-border-subtle);
    z-index: 3;
}

.foreground-img .slider-label {
    left: 24px;
}

.background-img .slider-label {
    right: 24px;
}

.slider-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--color-gold-base);
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-obsidian);
    border: 2px solid var(--color-gold-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-base);
    font-size: 18px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 6;
}

/* Residence Selector (3D Interactive Floor Chooser) */
.residence-selector {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: stretch;
    height: 580px;
}

/* Building Blueprint Stack */
.building-stack {
    display: flex;
    flex-direction: column-reverse;
    border-left: 1px solid var(--color-border-subtle);
    padding-left: 24px;
    gap: 6px;
}

.building-floor {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
}

.building-floor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: transparent;
    transition: var(--transition-fast);
}

.building-floor:hover, .building-floor.active {
    background-color: rgba(223, 186, 107, 0.05);
    border-color: var(--color-border-gold);
    transform: translateX(4px);
}

.building-floor.active::before {
    background-color: var(--color-gold-base);
}

.floor-num {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-text-white);
}

.building-floor.active .floor-num {
    color: var(--color-gold-base);
}

.floor-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    text-align: left;
    line-height: 1.3;
}

.building-floor.active .floor-name {
    color: var(--color-text-silver);
}

.floor-type {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
    font-weight: 300;
}

.building-floor.active .floor-type {
    color: var(--color-text-muted);
}

.floor-status {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-border-subtle);
}

.status-available {
    color: var(--color-gold-base);
    border-color: var(--color-border-gold);
}

.status-reserved {
    color: var(--color-text-muted);
}

/* Floor Details Display */
.floor-display-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    display: grid;
    grid-template-columns: 42% 58%;
    height: 100%;
    position: relative;
}

.floor-view-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.floor-view-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-in-out;
}

.floor-view-img.active {
    opacity: 1;
}

.floor-view-container:hover .floor-view-img.active {
    transform: scale(1.03);
}

.floor-view-img[data-type="plan"] {
    object-fit: contain;
    background-color: #0b0b0c;
    padding: 24px;
    box-sizing: border-box;
}

.floor-view-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    padding: 6px 12px;
    background-color: rgba(9, 9, 9, 0.85);
    border: 1px solid var(--color-border-gold);
    color: var(--color-gold-base);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Floor Slider Tabs */
.floor-view-tabs {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 4px;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 30px;
    cursor: default;
}

.floor-tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floor-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.floor-tab-btn.active {
    color: #050505;
    background: var(--color-gold-base, #d4af37);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Floor Slider Navigation Arrows */
.floor-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: auto;
}

.floor-view-container:hover .floor-nav-arrow {
    opacity: 1;
}

.floor-nav-arrow.prev {
    left: 15px;
}

.floor-nav-arrow.next {
    right: 15px;
}

.floor-nav-arrow:hover {
    background: rgba(212, 175, 55, 0.85);
    color: #000;
    border-color: rgba(212, 175, 55, 0.85);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Floor Slider Counter */
.floor-slider-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
    padding: 4px 10px;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-family: monospace;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.floor-info-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.floor-info-box > div:first-child {
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
}

.floor-details-title {
    font-size: 30px;
    margin-bottom: 12px;
}

.floor-details-desc {
    font-size: 15px;
    color: var(--color-text-silver);
    font-weight: 300;
    margin-bottom: 0;
}

.floor-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 20px 0;
    height: 160px;
    margin-bottom: 24px;
}

.floor-info-box .btn-gold {
    margin-top: auto;
}

.spec-info-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.spec-info-item strong {
    font-size: 16px;
    font-family: var(--font-serif);
    color: var(--color-text-white);
}

/* Immersive Gallery Section */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.gallery-tab-btn {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-silver);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-tab-btn.active, .gallery-tab-btn:hover {
    color: var(--color-gold-base);
    border-color: var(--color-gold-base);
    background-color: rgba(223, 186, 107, 0.03);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 1px solid var(--color-border-subtle);
    content-visibility: auto;
    contain-intrinsic-size: 300px 225px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 9, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

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

.gallery-zoom-icon {
    color: var(--color-gold-base);
    font-size: 24px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

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

/* Пагинация галереи */
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.gallery-page-btn {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-silver);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.gallery-page-btn:hover:not(.active):not(.disabled) {
    color: var(--color-gold-base);
    border-color: var(--color-gold-base);
    background-color: rgba(223, 186, 107, 0.05);
}

.gallery-page-btn.active {
    background-color: var(--color-gold-base);
    border-color: var(--color-gold-base);
    color: var(--color-carbon);
    font-weight: 700;
    cursor: default;
}

.gallery-page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 9, 9, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--color-border-subtle);
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-size: 32px;
    cursor: pointer;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 24, 24, 0.8);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition-fast);
}

.lightbox-nav-btn:hover {
    color: var(--color-gold-base);
    border-color: var(--color-gold-base);
}

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

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

.lightbox-caption {
    text-align: center;
    color: var(--color-text-silver);
    font-family: var(--font-serif);
    font-size: 20px;
    margin-top: 16px;
}

/* New Premium Technologies Showcase Gallery */
.tech-showcase {
    margin-top: 60px;
    margin-bottom: 60px;
}

.tech-showcase-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold-base);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
}

.tech-showcase-title {
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1.2;
    color: var(--color-text-white);
    font-weight: 400;
}

.tech-showcase-title span {
    color: var(--color-gold-base);
    font-style: italic;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tech-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
    content-visibility: auto;
    contain-intrinsic-size: 300px 400px;
}

.tech-card:hover {
    border-color: var(--color-border-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tech-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.tech-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.tech-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-text-white);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.tech-card-desc {
    font-size: 14px;
    color: var(--color-text-silver);
    line-height: 1.6;
    font-weight: 300;
}

/* Слайдер в карточках технологий с премиальным слайд-эффектом и Ken Burns */
.tech-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #0c0805;
    overflow: hidden;
}

.tech-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.3, 1), opacity 1.8s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

/* Активный слайд: выезжает справа и встает в центр */
.tech-slider-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

/* Уходящий слайд: уезжает влево */
.tech-slider-slide.exiting {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

/* Изображение внутри слайдера */
.tech-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: scale(1.02);
}

/* Четные картинки плавно приближаются */
.tech-slider-slide.active:nth-child(even) .tech-slider-img {
    animation: premiumZoomIn 10s ease-in-out forwards;
}

/* Нечетные картинки плавно отдаляются */
.tech-slider-slide.active:nth-child(odd) .tech-slider-img {
    animation: premiumZoomOut 10s ease-in-out forwards;
}

@keyframes premiumZoomIn {
    0% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1.10);
    }
}

@keyframes premiumZoomOut {
    0% {
        transform: scale(1.10);
    }
    100% {
        transform: scale(1.02);
    }
}



.section-divider {
    border: none;
    border-top: 1px solid var(--color-border-subtle);
    width: 100%;
}

.anatomy-hint {
    font-size: 11px;
    color: var(--color-gold-base);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 16px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.anatomy-hint::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-gold-base);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(223, 186, 107, 0.7);
    animation: mapPulseAnim 2s infinite;
}

@keyframes mapPulseAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(223, 186, 107, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(223, 186, 107, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(223, 186, 107, 0);
    }
}

/* Anatomy of Quality Section */
.anatomy-container {
    position: relative;
    border: 1px solid var(--color-border-subtle);
    overflow: hidden;
}

.anatomy-base-img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.pulsar {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--color-gold-base);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.pulsar::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-gold-base);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.pulsar.active {
    background-color: var(--color-text-white);
}

.pulsar.active::after {
    border-color: var(--color-text-white);
}

.anatomy-details-box {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-content {
    display: none;
}

.spec-content.active {
    display: block;
    animation: fade-in 0.6s ease;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Roof Configurator & Sub-pulsars (Interactive Quality Anatomy)
   ========================================================== */
.pulsar-sub {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-gold-base);
    border-radius: 50%;
    z-index: 9;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.pulsar-sub::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--color-gold-base);
    border-radius: 50%;
    opacity: 0.5;
}

.pulsar-sub .sub-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-sans);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Показывать суб-маркеры только в режиме крыши */
.anatomy-container.show-roof-config-options .pulsar-sub {
    opacity: 0.7;
    visibility: visible;
}

.anatomy-container.show-roof-config-options .pulsar-sub:hover,
.anatomy-container.show-roof-config-options .pulsar-sub.active {
    opacity: 1;
    background-color: var(--color-text-white);
    transform: translate(-50%, -50%) scale(1.2);
}

.anatomy-container.show-roof-config-options .pulsar-sub:hover .sub-label,
.anatomy-container.show-roof-config-options .pulsar-sub.active .sub-label {
    opacity: 1;
    left: 24px;
}

.anatomy-container.show-roof-config-options .pulsar-sub.active::before {
    border-color: var(--color-text-white);
    animation: pulse-ring 1.5s infinite ease-out;
}

.roof-config-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 12px;
}

.config-tab-btn {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-silver);
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.config-tab-btn:hover {
    border-color: var(--color-gold-base);
    color: var(--color-text-white);
}

.config-tab-btn.active {
    background-color: var(--color-gold-base);
    border-color: var(--color-gold-base);
    color: var(--color-bg-obsidian);
    font-weight: 600;
}

.roof-tab-content {
    display: none;
}

.roof-tab-content.active {
    display: block;
    animation: fade-in 0.5s ease;
}

.spec-num {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--color-gold-base);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.spec-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.spec-points {
    list-style: none;
}

.spec-points li {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--color-border-subtle);
    padding-bottom: 6px;
}

.spec-points li strong {
    color: var(--color-text-white);
    font-weight: 500;
}

/* Interactive SVG Map */
.map-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: center;
}

.custom-map-container {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 20px;
    position: relative;
    border-radius: 8px;
}

/* Map tabs */




.map-views-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 12px;
}

.map-view-tab-btn {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-silver);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.map-view-tab-btn:hover {
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.map-view-tab-btn.active {
    color: var(--color-text-white);
    border-color: var(--color-gold-base);
    background-color: rgba(223, 186, 107, 0.05);
}

/* Map wrapper & contents */
.map-view-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 500;
    overflow: hidden;
    border-radius: 4px;
}

.map-view-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    overflow: hidden;
}

.map-view-content.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.svg-map {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: all;
}

/* Google Maps Iframe & Filter */
.google-map-iframe {
    width: 130%;
    height: 130%;
    position: absolute;
    top: -15%;
    left: -15%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) grayscale(100%) contrast(95%);
    opacity: 0.85;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.google-map-iframe:hover {
    opacity: 1;
    filter: invert(90%) hue-rotate(180deg) grayscale(75%) contrast(95%);
}

/* Блокируем карту Google только в режиме наложения */
.map-view-wrapper.overlay-mode .google-map-iframe {
    pointer-events: none !important;
}

/* Стили для режима наложения (Overlay Mode) */
.map-view-wrapper.overlay-mode .map-view-content {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease-in-out;
}

.map-view-wrapper.overlay-mode #map-view-google-static {
    opacity: 0.2;
    z-index: 1;
}

.map-view-wrapper.overlay-mode #map-view-svg {
    opacity: 1 !important;
    z-index: 2;
    pointer-events: auto; /* Разрешаем клики по схеме для работы разметчика */
}

/* Разрешаем клики по интерактивным элементам SVG в режиме наложения */
.map-view-wrapper.overlay-mode #map-view-svg .map-marker,
.map-view-wrapper.overlay-mode #map-view-svg .map-main-point,
.map-view-wrapper.overlay-mode #map-view-svg rect,
.map-view-wrapper.overlay-mode #map-view-svg circle,
.map-view-wrapper.overlay-mode #map-view-svg text {
    pointer-events: auto;
}

.map-marker {
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-marker circle {
    transition: fill 0.3s ease, r 0.3s ease;
}

.map-marker:hover circle, .map-marker.active-marker circle {
    fill: var(--color-text-white) !important;
    r: 8px;
}

.map-marker text {
    font-family: var(--font-sans);
    font-size: 11px;
    fill: var(--color-text-silver);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    paint-order: stroke fill;
    stroke: var(--color-bg-card);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-marker:hover text, .map-marker.active-marker text {
    opacity: 1;
    fill: var(--color-gold-base) !important;
}

/* Элегантное постоянное отображение названий точек при активном фильтре */
#map-view-svg[data-active-filter="restaurants"] .map-marker[data-category="restaurants"] text,
#map-view-svg[data-active-filter="culture"] .map-marker[data-category="culture"] text,
#map-view-svg[data-active-filter="education"] .map-marker[data-category="education"] text,
#map-view-svg[data-active-filter="administration"] .map-marker[data-category="administration"] text,
#map-view-svg[data-active-filter="wellness"] .map-marker[data-category="wellness"] text {
    opacity: 0.95;
    fill: var(--color-text-white);
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    pointer-events: auto;
}

/* Pulsing Main Home Marker */
.map-main-point {
    pointer-events: none;
}

.map-pulse {
    animation: map-pulse-ring 2.5s infinite ease-out;
    transform-origin: 350px 150px;
}

@keyframes map-pulse-ring {
    0% { transform: scale(0.6); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.map-filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-bottom 0.3s ease;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
}

.map-filter-buttons.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.map-filter-btn {
    background: transparent;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-silver);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-filter-btn.active, .map-filter-btn:hover {
    color: var(--color-gold-base);
    border-color: var(--color-gold-base);
    background-color: rgba(223, 186, 107, 0.03);
}

.map-info-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 30px;
}

.map-info-card h4 {
    font-size: 24px;
    margin-bottom: 8px;
}

.map-point-dist {
    display: inline-block;
    border: 1px solid var(--color-border-gold);
    color: var(--color-gold-base);
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Premium Form Styles (Closed Sales Club) */
.form-wrapper {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    padding: 60px;
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold-base);
    margin-bottom: 8px;
}

.form-input, .form-select {
    width: 100%;
    background-color: rgba(9, 9, 9, 0.6);
    border: 1px solid var(--color-border-subtle);
    color: var(--color-text-white);
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus, .form-select:focus {
    border-color: var(--color-gold-base);
    box-shadow: 0 0 10px rgba(223, 186, 107, 0.1);
}

.form-select option {
    background-color: var(--color-bg-card);
    color: var(--color-text-white);
}

.form-success-message {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--color-gold-base);
    padding: 30px;
    border: 1px solid var(--color-border-gold);
    background-color: rgba(223, 186, 107, 0.02);
    text-align: center;
    animation: fade-in 0.8s ease;
}

/* Audio Player widget */
.ambient-audio-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: rgba(24, 24, 24, 0.8);
    border: 1px solid var(--color-border-gold);
    color: var(--color-gold-base);
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.ambient-audio-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(223, 186, 107, 0.2);
    background-color: var(--color-bg-card);
}

.ambient-audio-toggle.playing {
    background-color: var(--color-gold-base);
    color: var(--color-bg-obsidian);
    border-color: var(--color-gold-base);
}

.audio-icon {
    font-size: 16px;
    line-height: 1;
}

/* Footer Section */
.footer {
    background-color: #050505;
    border-top: 1px solid var(--color-border-subtle);
    padding: 80px 0 40px 0;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-text-white);
    margin-bottom: 24px;
}

.footer-logo span {
    color: var(--color-gold-base);
}

.footer-text {
    font-size: 14px;
    color: var(--color-text-muted);
    max-width: 320px;
    line-height: 1.7;
}

.footer-menu-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold-base);
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-silver);
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

.author-signature a {
    color: var(--color-text-silver);
    border-bottom: 1px solid var(--color-border-subtle);
}

.author-signature a:hover {
    color: var(--color-gold-base);
    border-color: var(--color-gold-base);
}

/* Animation utilities for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .section-title {
        font-size: 40px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
    
    .bento-item.col-2 {
        grid-column: span 2;
    }
    
    .residence-selector {
        grid-template-columns: 1fr;
        gap: 40px;
        height: auto;
    }
    
    .building-stack {
        border-left: none;
        border-bottom: 1px solid var(--color-border-subtle);
        padding-left: 0;
        padding-bottom: 24px;
    }
    
    .map-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(9, 9, 9, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 120px 40px 40px 40px;
        gap: 30px;
        align-items: center;
        justify-content: flex-start;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
    }
    
    .header-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header-nav .nav-link {
        font-size: 18px;
        letter-spacing: 0.15em;
    }

    .header-nav .nav-btn {
        font-size: 16px;
        padding: 12px 30px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 50px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 46px;
    }
    
    .comparison-slider {
        height: 380px;
    }
    
    .floor-display-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .floor-info-box > div:first-child {
        height: auto;
        margin-bottom: 20px;
    }
    
    .floor-specs {
        height: auto;
        margin-bottom: 30px;
    }
    
    .floor-view-container {
        height: 300px;
    }
    
    .floor-info-box {
        padding: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-wrapper {
        padding: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Bento Grid Mobile Layout (768px and below) */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-item.col-2,
    .bento-item.col-3 {
        grid-column: span 1;
    }
    
    .bento-item.row-2 {
        grid-row: span 1;
    }
    
    .bento-item {
        padding: 24px;
    }

    /* Plans row responsive layout */
    .plans-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .plan-card {
        padding: 14px;
    }
    
    .plan-image-wrapper {
        aspect-ratio: 1.33 / 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gallery-tab-btn {
        text-align: center;
    }
    
    .comparison-slider {
        height: 280px;
    }
}

/* ==========================================
   13. Переключатель языков (Language Selector)
   ========================================== */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-silver);
    cursor: pointer;
    padding: 4px 6px;
    transition: var(--transition-fast);
    position: relative;
}

.lang-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-gold-base);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.lang-btn.active {
    color: var(--color-gold-base);
}

.lang-btn.active::after,
.lang-btn:hover::after {
    width: 80%;
}

.lang-btn:hover {
    color: var(--color-text-white);
}

@media (max-width: 1024px) {
    .header-nav .lang-selector {
        margin-left: 0;
        margin-top: 20px;
        gap: 16px;
    }
    
    .header-nav .lang-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Адаптивное сжатие меню на средних экранах для предотвращения переполнения */
@media (min-width: 1025px) and (max-width: 1200px) {
    .header-nav {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 12px;
        letter-spacing: 0.08em;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }
    
    .lang-selector {
        gap: 4px;
        margin-left: 6px;
    }
    
    .lang-btn {
        padding: 4px;
        font-size: 10px;
    }
}
