:root {
    --primary: #5b7cff;
    --secondary: #a78bfa;
    --dark-bg: #050508;
    --dark-surface: #0f0f16;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-primary: rgba(91, 124, 255, 0.5);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --max-width: 1280px;
    --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Background Effects */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -5;
    filter: blur(6px) brightness(0.4);
    opacity: 0.6;
    transition: opacity 1s ease-in-out; /* Плавный переход прозрачности */
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.ambient-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -10%; left: -10%;
}

.blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #3dd6cf, transparent);
    top: 40%; left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 40px; height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(91, 124, 255, 0.3);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

.nav-cta {
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--text-main);
    color: var(--dark-bg);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 102;
}

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(91, 124, 255, 0.1);
    border: 1px solid rgba(91, 124, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(91, 124, 255, 0.3);
}

.btn-primary:hover {
    background: #4a6bff;
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(91, 124, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-separator {
    width: 1px; height: 40px;
    background: var(--glass-border);
}

/* Glass Card & Visuals */
.glass-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(91, 124, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.visual-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.visual-dots {
    display: flex;
    gap: 6px;
}

.visual-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.visual-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.phone-mockups {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.phone {
    width: 160px;
    aspect-ratio: 9/19;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.phone img {
    width: 100%; height: 100%; object-fit: cover;
}

.phone-1 { transform: translateY(0) rotate(-5deg); z-index: 1; }
.phone-2 { transform: translateY(20px) rotate(5deg); z-index: 2; }

.glass-card:hover .phone-1 { transform: translateY(-10px) rotate(-8deg); }
.glass-card:hover .phone-2 { transform: translateY(10px) rotate(8deg); }

.visual-info {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-item div {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.info-item strong { color: var(--text-main); }
.info-item span { color: var(--text-muted); }

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.project-card {
    height: 500px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    /* Hardware acceleration and masking fix */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

.project-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-bg img {
    opacity: 0.4;
    transform: scale(1.05);
}

.project-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
}

.project-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s 0.1s;
}

.project-card:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s 0.2s;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition);
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-box p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Marquee / Tech Stack */
.scrolling-text-section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.marquee-container {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    width: max-content;
}

.marquee {
    display: flex;
    gap: 60px;
    animation: scroll 30s linear infinite;
}

.marquee span {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: 0.3s;
}

.marquee:hover span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow-primary);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Testimonials */
.testimonials-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.review-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--glass-bg);
}

.review-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}

.review-name {
    font-weight: 600;
    font-size: 16px;
}

.stars {
    color: #fbbf24;
    font-size: 14px;
    margin-top: 2px;
}

.review-text {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
}

/* Contact */
.contact-wrapper {
    text-align: center;
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.contact-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-big-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-big-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-big-link.telegram:hover {
    border-color: #229ED9;
    box-shadow: 0 0 30px rgba(34, 158, 217, 0.2);
}

.contact-big-link.kwork:hover {
    border-color: #76bc21;
    box-shadow: 0 0 30px rgba(118, 188, 33, 0.2);
}

/* Footer */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(91, 124, 255, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-4px);
    background: #4a6bff;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions, .hero-stats {
        justify-content: center;
    }

    .hero-stats {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding-top: 32px;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0; right: 0;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 15, 22, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        z-index: 101;
        padding: 40px;
    }

    nav.active {
        transform: translateX(0);
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }

    nav .nav-link {
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    nav .nav-cta {
        margin-top: 20px;
        width: 100%;
    }

    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-stats {
        gap: 20px;
    }

    .contact-big-link {
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

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

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .stat-separator {
        display: none;
    }

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

    .glass-card {
        padding: 24px;
    }

    .phone {
        width: 120px;
    }

    .project-card {
        height: 400px;
    }

    .testimonials-scroll {
        grid-template-columns: 1fr;
    }

    .contact-content h2 {
        font-size: 32px;
    }

    .contact-links {
        flex-direction: column;
    }
}

/* Image Modal / Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    /* Убираем align/justify для корректного скролла при зуме */
    /* align-items: center; */
    /* justify-content: center; */
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Включаем нативный скролл */
    display: flex;
    /* justify-content и align-items могут обрезать контент при переполнении,
       поэтому используем margin: auto для картинки */
    padding: 40px;
    scrollbar-width: thin; /* Тонкий скроллбар для Firefox */
    scrollbar-color: var(--primary) transparent;
}

.modal-content-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.modal-content-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.modal-content {
    margin: auto; /* Центрирование, когда картинка меньше экрана */
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transition: max-width 0.3s ease, width 0.3s ease;
    cursor: zoom-in;
    display: block;
}

/* Состояние зума - увеличиваем физические размеры */
.modal-content.zoomed {
    max-width: none;
    max-height: none;
    width: 180%; /* Заставляем картинку быть больше экрана */
    height: auto;
    cursor: grab; /* Курсор "рука" для десктопа */
}

.modal-content.zoomed:active {
    cursor: grabbing;
}

#caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    z-index: 1002;
}

.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1003;
    background: rgba(0,0,0,0.2);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.zoom-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1002;
}

/* Mobile specific for modal */
@media (max-width: 768px) {
    .modal-content-wrapper {
        padding: 0;
    }

    .modal-content {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 0;
    }

    .modal-content.zoomed {
        width: 250%; /* Ещё сильнее зум на мобильных */
    }

    .close-modal {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 40px; height: 40px;
    }
}