/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 1.5rem 0.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.logo-img {
    max-height: 38px;
    height: auto;
    width: auto;
    display: block;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    position: relative;
}

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

/* Hide "Оживить фото" button in header */
.header-telegram-btn {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* Login button — clean pill style */
.login-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.55em 1.2em !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .nav { padding: 2rem 1rem 0.25rem; }
    .logo-img { max-height: 32px; }
    .nav-links { gap: 0.375rem; }
    .login-btn { padding: 0.375rem 0.875rem !important; font-size: 0.75rem !important; }
    .language-selector-btn { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
    .profile-btn { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
    .profile-email { max-width: 60px; }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    padding: 10rem 0 0;
    background: transparent;
}

/* Background elements */
.hero-bg {
    display: none;
}

/* All hero content above bg */
.hero > .container {
    position: relative;
}

/* Hero text — left aligned, full width */
.hero-center {
    text-align: left;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--primary-red), #FF8A75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 2.5rem;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    margin-top: 2.5rem;
}

.hero-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Showcase carousel
   ======================================== */

.showcase-wrapper {
    margin-top: 3.5rem;
}

/* Stage — centered, clips nothing */
.showcase-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 340px;
}

.showcase-card {
    position: absolute;
    width: 220px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    will-change: transform, opacity;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.showcase-card.active {
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px rgba(255, 72, 60, 0.15);
}

.showcase-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-card-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background: rgba(255, 72, 60, 0.85);
    backdrop-filter: blur(6px);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.showcase-card-badge svg {
    width: 10px;
    height: 10px;
}

/* Dots */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.showcase-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-pill);
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.showcase-dot:hover {
    background: rgba(255, 255, 255, 0.45);
}

.showcase-dot.active {
    width: 1.5rem;
    background: var(--primary-red);
}

/* Progress bar — mobile only */
.showcase-progress {
    display: none;
    margin-top: 0.75rem;
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.showcase-progress-bar {
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    max-width: 80px;
    min-width: 8px;
}

.showcase-dot.dot-fade {
    opacity: 0.3;
    width: 0.375rem;
    height: 0.375rem;
}

@media (max-width: 768px) {
    .hero { padding: 6rem 0 0; }
    .hero-title { font-size: 1.875rem; line-height: 1.1; }
    .hero-subtitle { font-size: 0.875rem; margin-bottom: 2rem; }
    .showcase-wrapper { margin-top: 1.5rem; }
    .showcase-stage { height: 260px; }
    .showcase-card { width: 160px; border-radius: var(--radius-lg); }
    .showcase-card-badge { font-size: 0.5rem; padding: 0.2rem 0.375rem; }
    .hero-actions { margin-top: 1.5rem; }
    .hero-actions .btn { font-size: 0.8125rem; padding: 0.75rem 1.5rem; }

    .showcase-dots {
        margin-top: 0.75rem;
        gap: 0.375rem;
    }

    .showcase-dot {
        width: 6px;
        height: 6px;
    }

    .showcase-dot.active {
        width: 20px;
        height: 6px;
    }

    .showcase-dot.dot-fade {
        width: 6px;
        height: 6px;
        opacity: 0.3;
    }

    .showcase-progress {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero { padding: 5rem 0 0; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.8125rem; }
    .showcase-stage { height: 220px; }
    .showcase-card { width: 140px; }
}
