/* === Reset & Variables === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

:root {
    --gold-primary: #D4AF37;
    --gold-secondary: #F4D03F;
    --gold-bright: #FFD700;
    --navy-dark: #1a1d3a;
    --navy-darker: #0f1123;
    --navy-darkest: #06070f;
    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --glass-bg: rgba(212, 175, 55, 0.08);
    --glass-border: rgba(212, 175, 55, 0.2);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--navy-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* === Background Effects === */
.background-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #06070f 0%, #1a1d3a 50%, #0f1123 100%);
    background-size: 200% 200%;
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.floating-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-primary), transparent);
    top: -10%;
    right: -10%;
    animation: float1 20s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--gold-secondary), transparent);
    bottom: -10%;
    left: -10%;
    animation: float2 20s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-bright), transparent);
    top: 50%;
    left: 50%;
    margin-left: -150px;
    margin-top: -150px;
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.9); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* === Layout === */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* === Logo === */
.logo-container {
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    pointer-events: none;
}

@keyframes glowPulse {
    0% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
    100% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

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

.logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 15px 40px rgba(212, 175, 55, 0.5));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.logo:hover {
    transform: scale(1.08) translateY(-5px);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Hero === */
.hero {
    text-align: center;
    margin-bottom: 60px;
    animation: heroFade 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.title {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title > span {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    animation: titleAppear 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.title > span:nth-child(1) { 
    animation-delay: 0.2s; 
}

.title > span:nth-child(2) { 
    animation-delay: 0.4s; 
}

.title > span:nth-child(3) { 
    animation-delay: 0.6s; 
}

.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #FFD700 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: white;
    font-size: clamp(36px, 9vw, 56px);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.subtitle {
    font-size: clamp(16px, 4vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* === Features === */
.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: featureSlide 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.feature-item:nth-child(1) { 
    animation-delay: 0.8s; 
    transform-origin: left center;
}
.feature-item:nth-child(2) { 
    animation-delay: 0.9s; 
    transform-origin: center;
}
.feature-item:nth-child(3) { 
    animation-delay: 1s; 
    transform-origin: right center;
}

@keyframes featureSlide {
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1.05); 
    }
    100% { transform: scale(1); }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 20px;
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.scroll-arrow {
    font-size: 24px;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.scroll-text {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Hide scroll hint on mobile and reduced motion */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .scroll-hint {
        display: none;
    }
    
    .title > span,
    .feature-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .logo-glow {
        animation-duration: 0.01ms;
    }
}

/* === Gallery === */
.gallery-section {
    width: 100%;
    max-width: 100%;
    margin: 80px 0;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
}

.gallery-title {
    font-size: clamp(24px, 6vw, 32px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.gallery-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
    will-change: scroll-position;
    transform: translateZ(0);
    contain: paint;
}

.gallery-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-container {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 60px 0;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 24px;
    padding: 0;
}

.gallery-track::before,
.gallery-track::after {
    content: '';
    flex: 0 0 40px;
}

.gallery-item {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    will-change: transform;
}

.gallery-image {
    width: 100%;
    border-radius: 24px;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.42, 0, 0.58, 1), 
                box-shadow 0.15s cubic-bezier(0.42, 0, 0.58, 1), 
                border-color 0.15s cubic-bezier(0.42, 0, 0.58, 1);
    border: 2px solid rgba(212, 175, 55, 0.15);
    contain: layout style paint;
    pointer-events: all;
}

.gallery-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    contain: paint; /* Faster rendering */
}

.gallery-sticker {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
    color: var(--navy-darkest);
    padding: 12px 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: opacity 0.15s cubic-bezier(0.42, 0, 0.58, 1), transform 0.15s cubic-bezier(0.42, 0, 0.58, 1);
    min-width: 140px;
    user-select: none;
}

.gallery-sticker h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-sticker p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.gallery-dots {
    display: none;
}

/* === CTA Buttons === */
.cta-section {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    touch-action: manipulation;
}

.cta-button:active {
    transform: scale(0.97);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
    color: var(--navy-darkest);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.cta-button.accent {
    background: linear-gradient(135deg, #1a1d3a, #2a2d4a);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.cta-button.secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.button-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.button-text {
    white-space: nowrap;
}

.button-icon {
    font-size: 20px;
}

/* Общий hover для всех CTA кнопок */
@media (hover: hover) and (pointer: fine) {
    .cta-button:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    }
}

/* === Responsive Design === */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .logo-container {
        margin-bottom: 30px;
    }
    
    .logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .logo-glow {
        inset: -15px;
    }
    
    .hero {
        margin-bottom: 40px;
    }
    
    .features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }
    
    .feature-item {
        flex: 0 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
        width: auto;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .gallery-section {
        margin: 50px 0;
    }
    
    .gallery-container {
        padding: 40px 0;
    }
    
    .gallery-track {
        gap: 12px;
        padding: 0;
    }
    
    .gallery-track::before,
    .gallery-track::after {
        flex: 0 0 32px;
    }
    
    .gallery-item {
        flex: 0 0 240px;
    }
    
    .gallery-image {
        padding: 8px;
        margin: 8px 0;
    }
    
    .gallery-sticker {
        margin-top: 12px;
        padding: 8px 12px;
        min-width: 110px;
    }
    
    .gallery-sticker h3 {
        font-size: 13px;
    }
    
    .gallery-sticker p {
        font-size: 10px;
    }
    
    .cta-section {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .button-icon {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .cta-button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .button-icon {
        font-size: 16px;
    }
    
    .cta-section {
        gap: 10px;
    }
}

/* === Landscape Mobile === */
@media (max-width: 900px) and (orientation: landscape) {
    .container {
        justify-content: flex-start;
        padding: 15px 16px;
    }
    
    .logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .logo-glow {
        inset: -15px;
    }
    
    .logo-container,
    .hero {
        margin-bottom: 20px;
    }
    
    .features {
        gap: 10px;
        margin-top: 15px;
    }
    
    .feature-item {
        flex: 0 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .gallery-section {
        margin: 30px 0;
    }
    
    .gallery-container {
        padding: 30px 0;
    }
    
    .gallery-track {
        gap: 10px;
        padding: 0;
    }
    
    .gallery-track::before,
    .gallery-track::after {
        flex: 0 0 24px;
    }
    
    .gallery-item {
        flex: 0 0 200px;
    }
    
    .gallery-sticker {
        margin-top: 8px;
        padding: 6px 10px;
        min-width: 100px;
    }
    
    .cta-section {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .button-icon {
        font-size: 16px;
    }
}

/* === Special Promo === */
body.special-promo .gradient-text {
    animation: titleAppear 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards, 
               specialShimmer 2s ease-in-out infinite;
}

@keyframes specialShimmer {
    0%, 100% { 
        filter: brightness(1.1) saturate(1.2);
    }
    50% { 
        filter: brightness(1.4) saturate(1.5) hue-rotate(10deg);
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-text {
        background: none !important;
        -webkit-text-fill-color: var(--gold-primary) !important;
        color: var(--gold-primary) !important;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.4) !important;
    }
    
    .logo-glow {
        animation: none;
    }
    
    .title > span {
        animation-delay: 0s !important;
    }
}

/* === Visibility Pause === */
body.paused * {
    animation-play-state: paused !important;
}

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

.sticky-cta-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 8px;
}

.footer-info {
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    flex-shrink: 0;
}

.sticky-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-btn.primary {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0a0e27;
    border: none;
}

.sticky-btn.accent {
    background: linear-gradient(135deg, #1a1d3a, #2a2d4a);
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.sticky-btn.secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.button-glow {
    /* Reuse from original */
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sticky-btn.primary:hover .button-glow {
    opacity: 1;
}

.scroll-to-top {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0a0e27;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    .container {
        padding-bottom: 120px;
    }

    .sticky-cta {
        transform: none !important; /* Always visible on mobile */
        transition: none; /* No slide on mobile */
    }

    .sticky-cta-content {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .sticky-btn {
        flex: none;
        width: 100%;
        padding: 4px 12px;
        font-size: 12px;
        min-height: 20px;
        text-align: left;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .button-text {
        font-size: 12px;
    }

    .button-icon {
        font-size: 16px;
        margin-right: 6px;
    }

    .footer-info {
        order: 4;
        width: 100%;
        padding: 4px 0;
        font-size: 10px;
        border-top: 1px solid var(--glass-border);
        margin-top: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
    }

    .scroll-to-top {
        display: none; /* Hide on mobile */
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-cta,
    .scroll-to-top {
        transition: none;
    }
}

/* Desktop hover effect */
@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover {
        transform: translateY(-3px);
        transition: transform 0.15s cubic-bezier(0.42, 0, 0.58, 1);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.01);
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
        border-color: rgba(212, 175, 55, 0.4);
    }
    
    .gallery-item:hover .gallery-sticker {
        opacity: 1;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    }
}