@font-face {
    font-family: 'Akony';
    src: local('Akony'), url('akony.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Benzin';
    src: local('Benzin'), url('https://fonts.cdnfonts.com/s/77465/Benzin-Medium.woff') format('woff');
    font-weight: 500;
}

@font-face {
    font-family: 'Onder';
    src: local('Onder');
    font-weight: normal;
}


:root {
    /* Extreme dark palette */
    --bg-dark: #000000;
    --surface-card: #080808;
    --surface-hover: #111111;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    /* Falling back through the requested fonts, assuming they are installed locally or web fonts are provided */
    --font-heading: 'Akony', 'Benzin', 'Onder', 'Unbounded', sans-serif;
    --font-body: 'Unbounded', 'Inter', sans-serif;
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #C6FF00; /* Subtle electric lime/yellow */
    
    /* Framer Easing Physics */
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body.framer-theme {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Removed film grain as per request */

/* HELPER CLASSES */
.container { max-width: 1280px; margin: 0 auto; padding: 0 4%; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 4%; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 4rem; }

/* HEADER */
.header-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1000px;
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.header-nav.scrolled .header-inner {
    background: rgba(5, 5, 5, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Akony', var(--font-heading);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        gap: 16px;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s var(--ease-smooth);
}

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

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-right: 16px;
    cursor: pointer;
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-toggle span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* BUTTONS */
.framer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.framer-btn.lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.framer-btn.super {
    padding: 20px 48px;
    font-size: 1.125rem;
    font-weight: 700;
}

.framer-btn.primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 0 rgba(255,255,255,0);
}

.framer-btn.primary:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

.framer-btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.framer-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
    transform: scale(1.02);
}

.framer-btn.dark {
    background: var(--bg-dark);
    color: var(--text-primary);
}
.framer-btn.dark:hover {
    background: #111;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding-top: 20rem; /* Fixed overlap */
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(198, 255, 0, 0.08), transparent 50%),
        radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, 0.03), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.hero-heading {
    font-family: 'Akony', var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* HERO SHOWCASE (Framer style floating image) */
.hero-showcase {
    margin-top: 6rem;
    width: 100%;
    perspective: 1000px;
}

.showcase-frame {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 100px rgba(255,255,255,0.03);
    transform: rotateX(10deg);
    transition: transform 1s var(--ease-smooth);
}

.hero-showcase:hover .showcase-frame {
    transform: rotateX(0deg);
}

.showcase-img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: brightness(0.9);
}

.showcase-reflections {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

/* TAPE / MARQUEE */
.logo-tape {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-card);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tape-track {
    display: inline-block;
    font-family: 'Akony', var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    animation: scrollSlide 20s linear infinite;
}

.tape-track .dot {
    margin: 0 30px;
    color: var(--accent);
}

@keyframes scrollSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* SECTIONS */
.section-layout {
    padding: 10rem 0;
}
.no-bottom { padding-bottom: 0; }

.section-head {
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'Akony', var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.section-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* BENTO GRID */
.bento-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    auto-rows: minmax(280px, auto);
}

@media (min-width: 1024px) {
    .bento-grid-4 {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 300px);
    }
    .col-span-2 { grid-column: span 2; }
    .row-span-2 { grid-row: span 2; }
}

.bento-card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
}

.bento-card:hover {
    transform: scale(1.01);
    border-color: var(--border-strong);
}

.bento-bg-img {
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 60%;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
    mask-image: linear-gradient(to top, black, transparent);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
}

.bento-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.bento-content.horizontal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
@media(max-width: 768px) {
    .bento-content.horizontal { flex-direction: column; align-items: flex-start; gap: 2rem; }
}

.text-center-bento .bento-content {
    align-items: center;
    text-align: center;
}

.icon-wrap {
    display: none;
}

/* Big Card & Centered specific alignment */
.bento-card.col-span-2.row-span-2 .bento-title {
    margin-top: 0;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.bento-card.col-span-2.row-span-2 .bento-text {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
}

.text-center-bento .bento-text {
    margin: 0 auto;
}

.bento-title {
    font-family: 'Akony', var(--font-heading);
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: normal;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: normal;
}

.bento-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.promo-text-wrap {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.bento-highlight {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.4) 0%, rgba(198, 255, 0, 0.1) 100%);
    border: 1px solid rgba(198, 255, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 0 40px rgba(198, 255, 0, 0.05);
}
.bento-highlight .bento-title { color: var(--text-primary); margin-bottom: 0.5rem; }
.bento-highlight .bento-text { color: var(--text-secondary); max-width: 400px; }
.bento-highlight .framer-btn.dark {
    background: rgba(198, 255, 0, 0.8);
    color: #000;
}
.bento-highlight .framer-btn.dark:hover {
    background: var(--accent);
}

/* PRICING LIST */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-row {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    transition: transform 0.4s var(--ease-smooth), background 0.4s;
    cursor: pointer;
}

.price-row:hover {
    background: var(--surface-hover);
    transform: translateX(10px);
}

.price-row.highlight {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
}

.price-info { width: 40%; }
.price-info h3 { font-family: 'Akony', var(--font-heading); font-size: 1.25rem; margin-bottom: 0.5rem; }
.price-info p { color: var(--text-secondary); font-size: 0.9rem; }

.flex-align { display: flex; align-items: center; gap: 12px; }
.tag { font-size: 0.7rem; padding: 2px 8px; background: var(--accent); color: #000; border-radius: 100px; text-transform: uppercase; font-weight: 700;}

.price-line {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0, var(--border-strong) 4px, transparent 4px, transparent 8px);
    margin: 0 2rem;
    opacity: 0.5;
}

.price-amount {
    font-family: 'Akony', var(--font-heading);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    min-width: max-content; /* Prevent stacking */
}

.hover-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    margin-left: 2rem;
    transition: all 0.3s var(--ease-elastic);
}

.price-row:hover .hover-btn-icon {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .price-row {
        padding: 1.5rem;
        flex-wrap: wrap;
        position: relative;
    }
    .price-info {
        width: 100%;
        margin-bottom: 1rem;
    }
    .price-info h3 {
        font-size: 1rem; /* Smaller for wide Akony text */
        line-height: 1.2;
        letter-spacing: 0.05em;
    }
    .price-info p {
        max-width: 80%;
    }
    .price-line {
        display: none; /* Hide the dots on mobile since it is stacked */
    }
    .price-amount {
        font-size: 1.3rem;
        letter-spacing: 0.05em; 
        align-self: flex-end;
        padding-bottom: 0.5rem;
    }
    .hover-btn-icon {
        position: absolute;
        bottom: 1.5rem;
        right: 1.5rem;
        margin-left: 0;
        width: 40px;
        height: 40px;
    }
}

/* 3D SCROLL GALLERY */
.gallery-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-dark); /* Ensure it covers things behind it */
    z-index: 50;
    padding-top: 5rem;
}

.gallery-viewport {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    perspective: 1200px;
}

.gallery-track {
    display: flex;
    gap: 4vw;
    padding-left: 50vw; /* Center the first card */
    padding-right: 50vw; /* Buffer space at end */
    will-change: transform;
    /* Transformation logic handled by JS */
}

.gallery-card {
    flex-shrink: 0;
    width: clamp(280px, 35vw, 500px);
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    background: var(--surface-card);
    will-change: transform, z-index;
    transition: transform 0.1s linear; /* Smooth micro-stutters during scroll */
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.1s linear;
}

/* BIG CTA */
.section-cta {
    padding: 10rem 0;
    position: relative;
    overflow: hidden; /* Prevent horizontal scroll, but ensure height is enough */
}

.cta-heading {
    font-family: 'Akony', var(--font-heading);
    font-size: clamp(20px, 4vw, 42px); /* Scaled down to fit ЗАПИСАТЬСЯ in one line */
    font-weight: normal;
    letter-spacing: 0;
    line-height: 1.1;
    margin-bottom: 4rem;
    text-transform: uppercase;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FOOTER */
.framer-footer {
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-light);
    background: #000;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: space-between;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .footer-grid { flex-direction: row; }
}

.footer-brand .logo {
    font-family: 'Akony', var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: normal;
}
.footer-brand p { color: var(--text-secondary); }

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.link-col a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.legal a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
}


/* --- ANIMATION SYSTEM --- */

/* Mask Reveal (Nikoland style) */
.mask-wrap {
    overflow: hidden;
    display: block; /* ensure block level for text lines */
    line-height: 1.1;
}

.mask-wrap.inline-mask {
    display: inline-flex;
    padding: 10px; /* buffer for box shadows */
    margin: -10px;
}

.mask-inner {
    display: inline-block;
}

@keyframes maskSlideUp {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }
    1% {
        opacity: 1; /* Make visible before sliding */
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.load-slide-up {
    transform: translateY(110%);
    opacity: 0;
    animation: maskSlideUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Legacy generic reveals */
.load-fade-up, .load-scale-up, .scroll-reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.load-fade-down {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.load-fade-up { transform: translateY(30px); }
.load-scale-up { transform: scale(0.95) translateY(20px); }
.scroll-reveal { 
    transform: translateY(40px) scale(0.98); 
    opacity: 0; 
    filter: blur(10px);
    will-change: transform, opacity, filter;
}

/* Animated In States */
.header-nav.load-fade-down {
    animation: fadeDownIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes premiumReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.load-fade-up {
    animation: premiumReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes premiumScaleUp {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.load-scale-up {
    animation: premiumScaleUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Observer class for progressive cinematic reveal */
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeDownIn {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; transition-delay: 0.5s; }

/* --- MOBILE TWEAKS --- */
@media (max-width: 1024px) {
    .desktop-map {
        display: none !important;
    }
    #location-buttons {
        flex-direction: column !important;
    }
    #location-buttons button {
        width: 100%;
        padding: 16px 24px !important;
        font-size: 15px !important;
    }
    .section-cta {
        padding-top: 4rem !important; /* adjust spacing when map is hidden */
    }
}
