* {
    --webkit-print-color-adjust: exact !important;
    -color-adjust: exact !important;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0B0F19 0%, #121826 100%);
    color: #E2E8F0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Звёздная пыль */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

/* Первый слой - крупные яркие звезды */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(3px 3px at 20px 30px, #00F5D460, transparent),
        radial-gradient(2px 2px at 80px 70px, #00F5D450, transparent),
        radial-gradient(2.5px 2.5px at 150px 120px, #00F5D440, transparent),
        radial-gradient(2px 2px at 300px 200px, #00F5D445, transparent),
        radial-gradient(3px 3px at 500px 400px, #00F5D455, transparent),
        radial-gradient(1.5px 1.5px at 250px 350px, #00F5D435, transparent),
        radial-gradient(2px 2px at 450px 150px, #00F5D440, transparent),
        radial-gradient(3px 3px at 600px 300px, #00F5D460, transparent);
    background-size: 800px 800px;
    z-index: -2;
    animation: parallax-stars 80s linear infinite;
}

/* Второй слой - мелкие мерцающие звезды */
body::after {
    background-image:
        radial-gradient(1.5px 1.5px at 100px 200px, #FFFFFF, transparent),
        radial-gradient(1px 1px at 300px 350px, #FFFFFF, transparent),
        radial-gradient(2px 2px at 450px 50px, #FFFFFF, transparent),
        radial-gradient(1px 1px at 600px 150px, #FFFFFF, transparent),
        radial-gradient(1.5px 1.5px at 250px 450px, #FFFFFF, transparent),
        radial-gradient(1px 1px at 500px 300px, #FFFFFF, transparent),
        radial-gradient(2px 2px at 150px 550px, #FFFFFF, transparent),
        radial-gradient(1px 1px at 700px 200px, #FFFFFF, transparent);
    background-size: 800px 800px;
    animation: parallax-stars-fast 60s linear infinite;
    opacity: 0.8;
}

@keyframes parallax-stars-slow {
    to {
        background-position: 800px 800px;
    }
}

@keyframes parallax-stars-fast {
    to {
        background-position: -800px -800px;
    }
}

@keyframes parallax-stars {
    to {
        background-position: 600px 600px;
    }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.1);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 212, 0.3);
    border-radius: 3px;
}

/* Hero shape */
#hero-shape {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%),
        conic-gradient(from 0deg, #8b5cf6, #ec4899, #3b82f6, #8b5cf6);
    border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%;
    filter: blur(30px);
    opacity: 0.85;
    animation: pulseGlow 5s infinite ease-in-out alternate;
    pointer-events: none;
}

@media (min-width: 768px) {
    #hero-shape {
        width: 400px;
        height: 400px;
    }

    /* Добавь это обязательно */
    html {
        -webkit-overflow-scrolling: touch;
        -overflow-scrolling: touch;
    }

    body {
        overscroll-behavior-y: none;
    }
}

@media (min-width: 1024px) {
    #hero-shape {
        width: 500px;
        height: 500px;
    }

    /* Добавь это обязательно */
    html {
        -webkit-overflow-scrolling: touch;
        -overflow-scrolling: touch;
    }

    body {
        overscroll-behavior-y: none;
    }
}

@keyframes pulseGlow {
    0% {
        filter: blur(15px) brightness(1);
        opacity: 0.6;
    }

    100% {
        filter: blur(25px) brightness(1.2);
        opacity: 0.9;
    }
}

/* Hero video overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    opacity: 0.65;
    filter: blur(1px) brightness(0.8) contrast(1.1);
}

/* Burger animation */
.burger-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger-active span:nth-child(2) {
    opacity: 0;
}

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

/* Стили для секции индивидуального заказа */
.custom-order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin: 40px 0;
}

.custom-order-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-order-card h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.custom-order-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-order-card {
        padding: 30px 20px;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

/* Добавьте в style.css если нужно улучшить внешний вид */
.btn-primary {
    background: #00F5D4;
    color: #0B0F19;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Дополнительные стили для мобильной оптимизации */
@media (max-width: 640px) {
    /* Улучшаем скролл на iOS */
    .overflow-y-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Предотвращаем zoom при фокусе на iOS */
    @media (max-width: 480px) {
        input, textarea {
            font-size: 16px !important;
        }
    }
}

/* Улучшаем доступность для тач-устройств */
button, input, textarea {
    touch-action: manipulation;
}

/* Плавная анимация появления */
#customOrderModal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}