/* ============================================
   eMOtion Collection — Dark Premium Design
   ============================================ */

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

:root {
    --black: #000000;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #2a2a2a;
    --white: #ffffff;
    --gray: #b0b0b0;
    --gray-light: #d8d8d8;
    --accent: #e649a7;
    --accent-glow: rgba(230, 73, 167, 0.3);
    --gold: #fdc845;
    --blue: #4a90d9;
    --red: #d94a4a;
    --yellow: #fdc845;
    --fuchsia: #e649a7;
    --font-main: 'Oswald', Arial, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    width: 80px;
    height: 80px;
    border: 2px solid var(--dark-4);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    position: absolute;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Section Container --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 20px;
    }
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex: 0 0 auto;
}

.logo-link {
    display: block;
}

.logo-img {
    height: 113px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-link:hover .logo-img {
    opacity: 0.8;
}

/* Burger */
.burger {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}

.burger.active span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.burger.active span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.mobile-menu.open {
    pointer-events: all;
}

.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-menu.open .mobile-menu-bg {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 360px;
    max-width: 85%;
    height: 100%;
    background: var(--black);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out);
    display: flex;
    flex-direction: column;
    padding: 80px 40px 40px;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    top: 50%;
    left: 0;
}

.close-btn span:first-child {
    transform: rotate(45deg);
}

.close-btn span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-link {
    display: block;
    padding: 18px 0;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.menu-link::before {
    content: attr(data-index);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-link:hover {
    color: var(--accent);
    padding-left: 12px;
}

.menu-link:hover::before {
    opacity: 1;
}

.mobile-menu-footer {
    margin-top: auto;
}

.mobile-socials {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.mobile-socials a {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.mobile-socials a:hover {
    opacity: 1;
    color: var(--accent);
}

.mobile-copy {
    font-size: 11px;
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 1px;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Background Video — desktop: aligned to the inner-right of .hero-content container (symmetric gutter with the left text block) */
.hero-bg-video {
    position: relative;
    width: 100%;
    max-width: 850px;
    aspect-ratio: 1 / 1;
    justify-self: start;
    align-self: center;
    margin-left: 30px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
}

/* Hide mobile video on desktop */
.hero-bg-video--mobile {
    display: none;
}

/* Mobile-only hands image — hidden on desktop */
.hero-mobile-image {
    display: none;
}

/* Hide webkit play button overlay */
.hero-bg-video video::-webkit-media-controls-start-playback-button {
    display: none !important;
}


.hero-bg-glow {
    display: none;
}

/* Hero Right Strip */
.hero-strip {
    display: none;
}

.strip-item {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.strip-item img {
    position: absolute;
    top: 50%;
    right: -55%;
    transform: translateY(-50%) scaleX(-1);
    width: 340px;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;
    transition: opacity 0.5s ease;
}

.strip-item:hover img {
    opacity: 0.65;
}

.strip-item:nth-child(2) img {
    right: -52%;
    width: 350px;
}
.strip-item:nth-child(3) img {
    right: -52%;
}

.strip-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 35%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Hero Content — two-column grid: text | video */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    min-height: 100vh;
}

.hero-text-block {
    max-width: 460px;
    justify-self: end;
    margin-right: 40px;
    position: relative;
    left: 100px;
    background: transparent;
    border: none;
    padding: 0;
}

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

.hero-text-block .hero-title {
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0;
}

.hero-text-block .title-line {
    display: block;
    font-size: 110px;
    font-weight: 500;
    letter-spacing: -3px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text-block .title-sub {
    display: block;
    font-size: 17px;
    font-weight: 200;
    letter-spacing: 5px;
    color: var(--accent);
    margin-top: 6px;
}

.hero-divider {
    width: 50px;
    height: 1px;
    background: var(--accent);
    margin: 28px 0;
    opacity: 0.6;
}

.hero-meta {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.hero-body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: #ececec;
    margin-bottom: 18px;
}

.hero-accent {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    color: #ff6ec0;
    margin-bottom: 18px;
}

.hero-accent--question {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.hero-accent em {
    font-style: italic;
}

/* Scroll Indicator */
.scroll-indicator {
    display: none !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: heroBlockIn 1s var(--ease-out) 2s forwards;
    z-index: 3;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), rgba(230, 73, 167, 0.2));
    border-radius: 1px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.4; }
}

.scroll-indicator span {
    font-size: 10px;
    letter-spacing: 5px;
    font-weight: 300;
    color: var(--white);
    opacity: 0.7;
    text-shadow: 0 0 20px rgba(230, 73, 167, 0.4);
}

/* --- Marquee --- */
.marquee-section {
    display: none; /* temporarily hidden — preview without running strips */
    background: var(--dark-4);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
    flex-shrink: 0;
}

.marquee-content span {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--white);
}

.marquee-content .marquee-bold {
    font-weight: 500;
    color: var(--accent);
}

.marquee-content .dot {
    font-size: 5px;
    color: var(--accent);
}

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

/* --- Catalog Section --- */
.catalog-section {
    padding: 30px 0 60px;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--black);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
        "image heading"
        "image info"
        "state info";
    gap: 24px 60px;
    align-items: start;
}

.catalog-heading {
    grid-area: heading;
    align-self: end;
}

.catalog-image {
    grid-area: image;
    align-self: start;
}

.catalog-state {
    grid-area: state;
    margin-top: -240px;
}

.catalog-info {
    grid-area: info;
    align-self: start;
}

.catalog-image {
    position: relative;
    height: 660px;
    margin-top: -90px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center -40px;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform-origin: top center;
}

/* +20% scale for the base palette (fuchsia/yellow/red/turquoise); crystal stays at 1.0 */
.catalog-image img.catalog-image--zoomed {
    transform: scale(1.2);
}

.catalog-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.catalog-descr {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: #e5e5e5;
    margin-bottom: 22px;
}

.catalog-sizes {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.catalog-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 1px;
}

.size-buttons {
    display: flex;
    gap: 10px;
}

/* Strass (rhinestone) series — separate block */
.catalog-strass {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-colors--strass {
    margin-bottom: 0;
}

.size-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 10px 22px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.size-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.size-btn.active {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.catalog-colors {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

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

.color-btn.active {
    border-color: var(--white);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 1), 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* --- Catalog State (description that swaps with selected color) --- */
.catalog-state {
    margin: 22px 0 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-state-title {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--white);
    margin: 0 0 6px;
}

.catalog-state-mood {
    color: #ff6ec0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 0 14px;
}

.catalog-state-body {
    color: #e5e5e5;
    font-size: 15.4px;
    font-weight: 400;
    line-height: 1.75;
}

.catalog-state-body p {
    margin: 0 0 10px;
}

.catalog-state-body p:last-child {
    margin-bottom: 0;
}

.catalog-color-name {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--gray);
    margin-top: 18px;
    margin-bottom: 8px;
}

.catalog-price {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.catalog-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    text-transform: uppercase;
}

.catalog-order-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
}

.catalog-order-btn--primary:hover {
    background: #ff6ec0;
    border-color: #ff6ec0;
    color: var(--black);
}

.catalog-order-btn--secondary:hover,
.catalog-order-btn:not(.catalog-order-btn--primary):hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Cart icon in header */
.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--black);
}

/* "Добавлено в корзину" toast */
.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 9999;
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.cart-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* --- Story Section --- */
.story-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: auto 140%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 100px 40px;
}

.story-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 5px;
    color: #ff6ec0;
    border: 1.5px solid rgba(255, 110, 192, 0.75);
    padding: 10px 28px;
    margin-bottom: 30px;
}

.story-badge--top {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin-bottom: 0;
}

/* --- Description toggle (clickable badge with expandable panel) --- */
.story-intro {
    background: var(--black);
    text-align: center;
    padding: 20px 20px 10px;
}

/* Hero-embedded ОПИСАНИЕ button (desktop only — sits right under "какой Мо ты сегодня?") */
.hero-description-toggle {
    display: none;
    margin-top: 24px;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .hero-description-toggle {
        display: inline-block;
    }
    /* Hide the standalone toggle in .story-intro on desktop — hero copy handles it */
    .story-intro > .description-toggle-wrap,
    .story-intro > #description-toggle {
        display: none;
    }
    .story-intro {
        padding: 0;
    }
    /* Drop hero's full-viewport height so the panel sits right after the button */
    .hero-section {
        min-height: auto;
        padding-bottom: 20px;
    }
    .hero-content {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 20px;
    }
}

.story-badge--toggle {
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}

.story-badge--toggle::after {
    content: ' +';
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.story-badge--toggle[aria-expanded="true"]::after {
    content: ' −';
}

.story-badge--toggle:hover {
    background: rgba(255, 110, 192, 0.15);
    border-color: #ff6ec0;
}

.description-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.description-panel.open {
    max-height: 4000px;
}

.description-panel-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px 20px;
    text-align: left;
    color: #e5e5e5;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

.description-panel-inner p { margin: 0 0 14px; }

.desc-h {
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--white);
    margin: 0 0 10px;
}

.desc-meta {
    color: #c8c8c8;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 22px !important;
}

.desc-h2 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: #ff6ec0;
    margin: 26px 0 12px;
}

.desc-state {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.desc-state-name {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--white);
    margin: 0 0 8px;
}

.desc-state-mood {
    color: #ff6ec0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 16px !important;
}


.story-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.story-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 40px;
}

.story-cta {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--white);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.story-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.4s var(--ease-out);
    z-index: -1;
}

.story-cta:hover {
    border-color: var(--accent);
    color: var(--white);
}

.story-cta:hover::before {
    left: 0;
}

/* --- Gallery Strip --- */
.gallery-strip {
    padding: 0;
    overflow: hidden;
    background: var(--black);
}

.gallery-track {
    display: flex;
    gap: 6px;
    animation: galleryScroll 40s linear infinite;
}

.gallery-item {
    flex: 0 0 228px;
    height: 228px;
    overflow: hidden;
    background: var(--black);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease-out);
    filter: grayscale(30%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 4 - 4px * 4)); }
}

/* --- About Section --- */
.about-section {
    padding: 64px 0 16px;
    min-height: auto;
    display: flex;
    align-items: center;
    background: var(--black);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 70%;
    margin: 0 auto;
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.about-img-wrapper:hover img {
    transform: scale(1.03);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--black), transparent);
    pointer-events: none;
}

.about-label {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--gold);
    margin-bottom: 16px;
}

.about-name {
    font-size: clamp(48px, 8vw, 100px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--accent);
    margin-bottom: 30px;
}

.about-divider {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 30px;
}

.about-bio {
    font-size: 15.4px;
    font-weight: 400;
    line-height: 1.8;
    color: #e5e5e5;
    margin-bottom: 20px;
}

.about-bio.accent {
    color: #ff6ec0;
    font-weight: 500;
}

/* --- Highlights Section --- */
.highlights-section {
    padding: 50px 0;
    background: var(--black);
}

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

/* Photo-backed card */
.highlight-card--photo {
    position: relative;
    min-height: 360px;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), border-color 0.5s ease;
}

.highlight-card--photo:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 73, 167, 0.35);
}

.highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.92) 100%);
    pointer-events: none;
}

.highlight-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 22px 24px;
    color: var(--white);
}

.highlight-number {
    font-size: 44px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 6px;
    line-height: 1;
    transition: color 0.4s ease;
}

.highlight-card--photo:hover .highlight-number {
    color: var(--accent);
}

.highlight-title {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 3.5px;
    color: #ff6ec0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.highlight-text {
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
    color: #e8e8e8;
    margin: 0;
}

.highlight-note {
    display: inline-block;
    margin-top: 6px;
    font-size: 11.5px;
    font-style: italic;
    color: #b8b8b8;
}

/* --- Footer --- */
.footer-section {
    background: var(--dark);
    padding-top: 0;
}

.footer-top-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    height: 56px;
    width: auto;
    opacity: 0.9;
}

.footer-heading {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-links a {
    font-size: 13px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 0.5px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-payment {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.payment-img {
    height: 30px;
    width: auto;
    opacity: 0.5;
}

.footer-bottom {
    background: var(--dark-4);
    padding: 16px 0;
}

.footer-bottom p {
    font-size: 11px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 1px;
    text-align: center;
}

/* --- Scroll Animations --- */
[data-animate] {
    opacity: 0;
    transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-left"] {
    transform: translateX(80px);
}

[data-animate="fade-right"] {
    transform: translateX(-80px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Allow animations even when user has reduced motion — keep them subtle but visible */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        transition: opacity 0.4s linear, transform 0.4s linear;
    }
    [data-animate="fade-up"] {
        transform: translateY(20px);
    }
    [data-animate="fade-left"],
    [data-animate="fade-right"] {
        transform: translateX(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-bg-video {
        width: 58.5vw;
        right: 40px;
        opacity: 0.5;
    }

    .hero-text-block {
        max-width: 420px;
    }

    .hero-text-block .title-line {
        font-size: 72px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .catalog-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .footer-center {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 60px;
    }

    .logo-img {
        height: 32px;
    }

    .hero-strip {
        display: none;
    }

    /* --- Hero: tight column layout, no full-viewport stretch --- */
    .hero-section {
        min-height: auto !important;
        height: auto !important;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .hero-bg-video--desktop {
        display: none !important;
    }

    .hero-bg-video,
    .hero-bg-video--mobile {
        display: none !important;
    }

    .hero-mobile-image {
        display: block;
        position: relative;
        width: 100%;
        margin: 8px 0 0;
        padding: 0;
        text-align: center;
    }

    .hero-mobile-image img {
        display: block;
        width: 100%;
        max-width: 480px;
        height: auto;
        margin: 0 auto;
    }

    .hero-bg-glow {
        display: none !important;
    }

    .hero-content {
        position: relative;
        padding: 24px 20px 32px !important;
        min-height: auto !important;
        height: auto !important;
        z-index: 1;
        display: block !important;
        align-items: initial !important;
    }

    .hero-text-block {
        max-width: 100%;
        padding: 0;
        background: transparent;
        text-align: left;
        justify-self: stretch;
        margin-right: 0;
        left: 0;
    }

    .hero-text-block .title-line {
        font-size: 56px;
    }

    .hero-text-block .title-sub {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .hero-body, .hero-accent {
        font-size: 14px;
    }

    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        padding: 12px 0 20px;
    }

    .gallery-item {
        flex: 0 0 220px;
        height: 220px;
    }

    /* --- All vertical sections: kill 100vh, tight padding --- */
    .catalog-section {
        padding: 24px 0 30px;
        min-height: auto;
    }

    .about-section {
        padding: 40px 0 20px;
        min-height: auto;
    }

    .story-section {
        min-height: auto;
        padding: 0;
    }

    .story-intro {
        padding: 16px 20px 12px;
    }

    .highlights-section {
        padding: 40px 0;
    }

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

    .highlight-card--photo {
        min-height: 280px;
        aspect-ratio: 5 / 3;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "image"
            "state"
            "info";
        gap: 16px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .catalog-image {
        height: 260px;
        max-width: 100%;
        margin: 0 auto;
        align-items: center;
    }

    .catalog-image img {
        object-position: center;
    }

    .catalog-image img.catalog-image--zoomed {
        transform: none;
    }

    .catalog-state {
        margin-top: 0;
    }

    /* Hide the separate "стразовая серия" wrapper on mobile (kept in HTML for desktop styling, but no longer used) */
    .catalog-strass {
        display: none;
    }

    /* CRYSTAL button sits inline with the other 4, with a small left margin and divider */
    .color-btn--strass {
        margin-left: 12px;
        position: relative;
    }

    .color-btn--strass::before {
        content: '';
        position: absolute;
        left: -8px;
        top: 10%;
        bottom: 10%;
        width: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

    /* Compact catalog so figurine + buttons + price + Заказать fit one screen */
    .catalog-sizes {
        margin-bottom: 10px;
    }
    .size-btn {
        padding: 7px 16px;
        font-size: 13px;
    }
    .catalog-colors {
        gap: 10px;
        margin-bottom: 10px;
    }
    .color-btn {
        width: 34px;
        height: 34px;
    }
    .catalog-color-name {
        margin-top: 10px;
        margin-bottom: 4px;
        font-size: 12px;
    }
    .catalog-price {
        font-size: 26px;
        margin-bottom: 12px;
    }
    .catalog-order-btn {
        padding: 10px 24px;
        font-size: 13px;
    }

    .catalog-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .catalog-descr {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

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

    .catalog-sizes {
        margin-bottom: 14px;
        justify-content: center;
    }

    .size-btn {
        padding: 9px 21px;
        font-size: 15px;
    }

    .catalog-colors {
        gap: 12px;
        margin-bottom: 16px;
        justify-content: center;
    }

    .color-btn {
        width: 39px;
        height: 39px;
        border-width: 2px;
    }

    .catalog-strass {
        margin-top: 12px;
        padding-top: 12px;
        gap: 8px;
        align-items: center;
    }

    .catalog-color-name {
        font-size: 12px;
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .catalog-price {
        font-size: 30px;
        margin-bottom: 14px;
    }

    .catalog-order-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
    }

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

    /* Flatten .about-text so its children become direct flex items —
       lets us interleave the photo between bio and name on mobile */
    .about-text {
        display: contents;
    }

    .about-bio { order: 1; }
    .about-image {
        order: 2;
        margin: 8px 0 16px;
    }
    .about-label { order: 3; }
    .about-name { order: 4; }
    .about-divider { order: 5; }

    .about-img-wrapper {
        max-width: 240px;
        margin: 0 auto;
    }

    .about-name {
        font-size: 48px;
        margin-bottom: 0;
    }

    .about-label {
        margin-bottom: 8px;
        margin-top: 8px;
    }

    /* --- Story / Description block: compact on mobile --- */
    .story-content {
        padding: 40px 20px 50px;
        max-width: 100%;
    }

    .story-title {
        font-size: 28px;
    }

    .story-parallax-bg {
        background-size: 80% auto;
    }

    .description-panel-inner {
        padding: 24px 16px 16px;
    }

    /* --- Footer: compact mobile --- */
    .footer-layout {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
        gap: 16px;
        padding: 32px 0 20px;
    }

    .footer-section {
        padding: 0;
    }

    .footer-center {
        order: -1;
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-heading {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

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

    .footer-links a {
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-payment {
        padding-bottom: 20px;
    }

    .payment-img {
        height: 22px;
    }
}

@media (max-width: 480px) {
    .hero-strip {
        display: none;
    }

    .catalog-order-btn {
        width: 100%;
    }

    .highlight-card--photo {
        min-height: 240px;
    }

    .mobile-menu-panel {
        width: 100%;
        max-width: 100%;
    }

    .menu-link {
        font-size: 18px;
    }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Selection --- */
::selection {
    background: var(--accent);
    color: var(--white);
}

/* --- Smooth Page Reveal --- */
body.loaded {
    opacity: 1;
}

/* Background particles - canvas overlay */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}
