/* Custom Styles for IONEX */

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

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Common Header Styles */
header {
    transition: all 0.3s ease;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.8), rgba(10, 10, 15, 0.6));
}

/* Hero Carousel Styles (for index.html) */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
}

/* Первый слайд видим сразу без перехода и моргания */
.hero-slide:first-child {
    opacity: 1;
    transition: none !important;
}

/* Активный слайд */
.hero-slide.active {
    opacity: 1;
}

/* Убираем transition для первого слайда даже с классом active */
.hero-slide:first-child.active {
    transition: none !important;
}

/* Анимация Ken Burns только после инициализации */
.hero-carousel.initialized .hero-slide.active {
    animation: kenburns 12s ease-in-out;
}

/* Но не для первого слайда при загрузке */
.hero-carousel:not(.initialized) .hero-slide:first-child.active {
    animation: none;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Hero Content Animation - плавное появление всего блока */
.hero-content {
    animation: heroFadeIn 1.2s ease-out both;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Pulse Badge Animation */
.pulse-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 128, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 128, 255, 0.5);
    }
}

/* Logo Image */
.logo-image {
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Logo styling - version with white background */
img[src*="VDkYEIbs"] {
    background: transparent !important;
    /* Remove white background using CSS blend mode */
    mix-blend-mode: multiply;
}

/* Alternative approach for header/footer on dark background */
header img[src*="VDkYEIbs"],
footer img[src*="VDkYEIbs"] {
    /* Screen mode works better for logos on dark backgrounds */
    mix-blend-mode: screen;
}

/* Add subtle glow effect on hover */
img[src*="VDkYEIbs"]:hover {
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.4));
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Button */
.glow-button {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    box-shadow: 0 0 40px rgba(0, 128, 255, 0.6), 0 0 60px rgba(0, 212, 170, 0.4);
}

/* Nav CTA Button — без ::before shimmer эффекта */
.nav-cta-button {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
    position: relative;
    overflow: visible;
    transition: box-shadow 0.25s ease-out;
    display: inline-block;
}

.nav-cta-button:hover {
    box-shadow: 0 0 35px rgba(0, 128, 255, 0.55), 0 0 50px rgba(0, 212, 170, 0.3);
}

/* Outline Button */
.outline-button {
    background: transparent;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#0A0A0F, #0A0A0F),
        linear-gradient(135deg, #0080FF, #00D4AA);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.outline-button:hover {
    background-image:
        linear-gradient(135deg, rgba(0, 128, 255, 0.1), rgba(0, 212, 170, 0.1)),
        linear-gradient(135deg, #0080FF, #00D4AA);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.3);
}

/* Glass Card */
.glass-card {
    background: rgba(21, 21, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 128, 255, 0.3);
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.3);
}

/* Floating Spheres Background */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0080FF, transparent);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00D4AA, transparent);
    top: 50%;
    right: 10%;
    animation-delay: 7s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #0080FF, transparent);
    bottom: 10%;
    left: 50%;
    animation-delay: 14s;
}

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

/* Floating Image */
.floating-image {
    animation: floatingImage 6s infinite ease-in-out;
    position: relative;
}

.floating-image .glow-effect {
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2), rgba(0, 212, 170, 0.2));
    border-radius: 2rem;
    filter: blur(40px);
    z-index: -1;
}

@keyframes floatingImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Icon Gradient */
.icon-gradient {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.3);
}

/* Category Card */
.category-card {
    background: rgba(21, 21, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.3);
    border-color: rgba(0, 128, 255, 0.3);
}

.category-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.9), rgba(0, 212, 170, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

/* Project Card */
.project-card {
    background: rgba(21, 21, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 128, 255, 0.3);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Projects Swiper Carousel */
.projects-swiper {
    padding-bottom: 4px !important;
}

.projects-swiper .swiper-slide {
    height: auto;
}

.projects-swiper .project-card {
    height: 100%;
}

/* Swiper pagination bullets для карусели проектов */
.projects-swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.projects-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.projects-swiper-pagination .swiper-pagination-bullet-active {
    background: #0080FF;
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

/* Timeline Steps */
.timeline-step {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.4);
    position: relative;
    z-index: 10;
}

/* Enhanced Timeline Steps */
.timeline-step-enhanced {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow:
        0 10px 30px rgba(0, 128, 255, 0.4),
        0 0 40px rgba(0, 212, 170, 0.3);
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step-enhanced:hover {
    transform: scale(1.1);
    box-shadow:
        0 15px 40px rgba(0, 128, 255, 0.6),
        0 0 60px rgba(0, 212, 170, 0.5);
}

.timeline-step-enhanced .step-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.3), transparent 70%);
    animation: stepGlow 3s ease-in-out infinite;
    z-index: -1;
}

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

/* Calculator Styles */
.step-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1C1C26;
    border: 2px solid #1C1C26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6B6B7B;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.5);
}

.step-indicator.completed {
    background: #00D4AA;
    border-color: transparent;
    color: white;
}

/* Option Card */
.option-card {
    background: rgba(21, 21, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    border-color: rgba(0, 128, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.3);
    transform: translateY(-4px);
}

.option-card.selected {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2), rgba(0, 212, 170, 0.2));
    border-color: #0080FF;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.5);
}

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #0080FF, #00D4AA);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.5);
    border: none;
}

/* ---- Filter Radio ---- */
.filter-radio {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    flex-shrink: 0;
    position: relative !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.filter-radio::after {
    content: '' !important;
    display: block;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0);
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0080FF, #00D4AA) !important;
    transition: transform 0.2s ease;
}
.filter-radio.active {
    border-color: #0080FF !important;
    background: rgba(0, 128, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.18) !important;
}
.filter-radio.active::after {
    transform: translate(-50%, -50%) scale(1) !important;
}

/* ---- Filter Checkbox ---- */
.filter-checkbox {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    border-radius: 6px !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    flex-shrink: 0;
    position: relative !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.filter-checkbox::after {
    content: '' !important;
    display: block;
    position: absolute !important;
    top: 46% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) rotate(45deg);
    width: 5px !important;
    height: 9px !important;
    border-right: 2.5px solid white !important;
    border-bottom: 2.5px solid white !important;
    border-top: none !important;
    border-left: none !important;
    transition: transform 0.2s ease;
}
.filter-checkbox.active {
    border-color: #0080FF !important;
    background: linear-gradient(135deg, #0080FF, #00D4AA) !important;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.18) !important;
}
.filter-checkbox.active::after {
    transform: translate(-50%, -50%) scale(1) rotate(45deg) !important;
}

/* ---- Sort Select ---- */
.catalog-sort-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.6rem 2.8rem 0.6rem 1rem;
    background-color: rgba(21, 21, 29, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230080FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: 1px solid rgba(0, 128, 255, 0.25);
    border-radius: 0.75rem;
    color: #E8E8F0;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.catalog-sort-select:hover {
    border-color: rgba(0, 128, 255, 0.5);
    background-color: rgba(0, 128, 255, 0.06);
}
.catalog-sort-select:focus {
    border-color: #0080FF;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}
.catalog-sort-select option {
    background-color: #15151d;
    color: #E8E8F0;
}

/* Service Checkbox */
.service-checkbox {
    display: block;
    background: rgba(21, 21, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-checkbox:hover {
    border-color: rgba(0, 128, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.2);
}

.service-checkbox input[type="checkbox"] {
    display: none;
}

.service-checkbox input[type="checkbox"]:checked + .service-content {
    border-left: 4px solid #0080FF;
    padding-left: 1rem;
}

.service-content {
    display: flex;
    justify-content: between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0A0B0;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 128, 255, 0.3);
}

/* Floating Call Button */
.floating-call-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 128, 255, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.floating-call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 128, 255, 0.7);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 128, 255, 0.5);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 128, 255, 0.8), 0 0 60px rgba(0, 212, 170, 0.6);
    }
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background: #6B6B7B;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    width: 30px;
    border-radius: 5px;
}

/* Target Audience Cards */
.audience-card {
    min-height: 320px;
    perspective: 1000px;
}

.audience-card .glass-card {
    background: rgba(21, 21, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 107, 123, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.audience-card:hover .glass-card {
    border-color: rgba(0, 128, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 128, 255, 0.2), 0 0 40px rgba(0, 212, 170, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .audience-card {
        min-height: 280px;
    }

    .audience-card .glass-card {
        padding: 1.5rem !important;
    }

    .audience-card h3 {
        font-size: 1.25rem !important;
    }
}

/* Range Slider Styles */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        rgba(0, 128, 255, 0.8) 0%,
        rgba(0, 212, 170, 0.8) 100%
    );
    outline: none;
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-track {
    height: 8px;
    border-radius: 4px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.4);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 128, 255, 0.6);
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 128, 255, 0.8);
}

/* Firefox */
.range-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        rgba(0, 128, 255, 0.8) 0%,
        rgba(0, 212, 170, 0.8) 100%
    );
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.4);
    transition: all 0.3s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 128, 255, 0.6);
}

.range-slider::-moz-range-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 128, 255, 0.8);
}

/* Filter Radio & Checkbox Styles */
.filter-radio,
.filter-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #6B6B7B;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-radio {
    border-radius: 50%;
}

.filter-checkbox {
    border-radius: 4px;
}

.filter-radio.active,
.filter-checkbox.active {
    border-color: #0080FF;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.4);
}

.filter-radio.active::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    margin: 4px auto;
}

.filter-checkbox.active::after {
    content: '✓';
    display: block;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(21, 21, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(107, 107, 123, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(21, 21, 29, 0.5);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0090FF, #00E4BA);
}

/* Outline button for modal */
.outline-button {
    background: transparent;
    border: 2px solid rgba(107, 107, 123, 0.5);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.outline-button:hover {
    border-color: #0080FF;
    background: rgba(0, 128, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 128, 255, 0.2);
}

/* Hero Zoom Animation */
@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Journey Map Station Animation */
@keyframes stationFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.journey-station {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-station:hover {
    transform: translateY(-5px) !important;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-sphere {
        filter: blur(60px);
        opacity: 0.2;
    }

    .sphere-1 {
        width: 250px;
        height: 250px;
    }

    .sphere-2 {
        width: 300px;
        height: 300px;
    }

    .sphere-3 {
        width: 200px;
        height: 200px;
    }

    .floating-call-button {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}

/* Alpine.js Transitions */
[x-cloak] {
    display: none !important;
}

/* Collapse Animation */
[x-collapse] {
    transition: height 0.3s ease;
}

/* Particles Canvas */
#particlesCanvas {
    pointer-events: none;
}

/* ================================================
   SEO SECTION
   ================================================ */

/* Фоновые орбы — чистый CSS, без JS */
.seo-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: auto;
}
.seo-bg-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,128,255,0.12) 0%, transparent 70%);
    top: -100px;
    left: -150px;
    animation: seoOrbDrift1 18s ease-in-out infinite alternate;
}
.seo-bg-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,212,170,0.1) 0%, transparent 70%);
    bottom: -80px;
    right: -100px;
    animation: seoOrbDrift2 22s ease-in-out infinite alternate;
}
/* Сетка-паттерн */
.seo-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,128,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,128,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Орбы дрейфуют очень медленно, не нагружая CPU */
@keyframes seoOrbDrift1 {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, 30px); }
}
@keyframes seoOrbDrift2 {
    from { transform: translate(0, 0); }
    to   { transform: translate(-30px, -20px); }
}

/* Пульсирующая точка */
.seo-pulse-dot {
    animation: seoPulse 2s ease-in-out infinite;
}
@keyframes seoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ---- Feature Cards ---- */
.seo-feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,128,255,0.12);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.seo-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,128,255,0.06), rgba(0,212,170,0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.seo-feature-card:hover {
    border-color: rgba(0,128,255,0.35);
    background: rgba(0,128,255,0.05);
    box-shadow: 0 0 30px rgba(0,128,255,0.1);
}
.seo-feature-card:hover::before {
    opacity: 1;
}
.seo-feature-card--accent {
    border-color: rgba(0,212,170,0.2);
    background: rgba(0,212,170,0.04);
}
.seo-feature-card--accent:hover {
    border-color: rgba(0,212,170,0.4);
    box-shadow: 0 0 30px rgba(0,212,170,0.12);
}

.seo-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,128,255,0.15), rgba(0,212,170,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #0080FF;
}
.seo-feature-card--accent .seo-feature-icon {
    background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,128,255,0.1));
    color: #00D4AA;
}

.seo-feature-num {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.seo-feature-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #E8E8F0);
    line-height: 1.5;
}
.seo-feature-label span {
    font-weight: 400;
    color: var(--text-muted, #6B6B7B);
    font-size: 1rem;
}

/* ---- Text Cards ---- */
.seo-text-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2rem;
    transition: border-color 0.3s ease;
}
.seo-text-card:hover {
    border-color: rgba(0,128,255,0.2);
}

.seo-text-card__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary, #E8E8F0);
    margin-bottom: 1rem;
}
.seo-text-card__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.seo-text-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary, #A0A0B0);
    margin-bottom: 1.1rem;
}
.seo-text-card p strong {
    color: var(--text-primary, #E8E8F0);
    font-weight: 600;
}

.seo-text-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.seo-text-card__list li {
    font-size: 1.05rem;
    color: var(--text-secondary, #A0A0B0);
    padding-left: 1.3rem;
    position: relative;
}
.seo-text-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0080FF;
    font-size: 0.8rem;
}

/* ---- SEO Tags ---- */
.seo-tag {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-muted, #6B6B7B);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    transition: color 0.25s ease, border-color 0.25s ease;
    cursor: default;
}
.seo-tag:hover {
    color: var(--text-secondary, #A0A0B0);
    border-color: rgba(0,128,255,0.25);
}

/* Мобильные адаптации */
@media (max-width: 640px) {
    .seo-feature-num { font-size: 3rem; }
    .seo-feature-label { font-size: 1.05rem; }
    .seo-bg-orb--1 { width: 280px; height: 280px; }
    .seo-bg-orb--2 { width: 220px; height: 220px; }
}

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

::-webkit-scrollbar-track {
    background: #0A0A0F;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0080FF, #00D4AA);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0099FF, #00F0C0);
}

/* Selection */
::selection {
    background: rgba(0, 128, 255, 0.3);
    color: white;
}

/* Focus Styles */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(0, 128, 255, 0.5);
    outline-offset: 2px;
}

/* Filter Radio Button */
input.f-radio {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color .15s, background .15s;
    vertical-align: middle;
    position: relative;
}
input.f-radio:checked {
    border: 6px solid #0080FF;
    background: #fff;
}
input.f-radio:hover:not(:checked) {
    border-color: rgba(0,128,255,0.5);
}

/* Filter Checkbox */
.filter-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #6B6B7B;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox.active {
    border-color: #0080FF;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
}

.filter-checkbox.active::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Product Card */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(0, 128, 255, 0.5);
}

/* Badge Styles */
.badge-new {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #0080FF, #00D4AA);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.4);
}

.badge-discount {
    padding: 0.25rem 0.75rem;
    background: #FF3B30;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}
.faq-p {
    margin-top: 10px;
}
