/* ==========================================
   Begut Sites - Modern Animated Style
   Inspired by primer2 with dark theme
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Отключить выделение текста и курсор */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

:root {
    /* Gradient colors inspired by primer2 */
    --gradient-1: #667eea;
    --gradient-2: #764ba2;
    --gradient-3: #f093fb;
    --gradient-4: #4facfe;
    
    /* Dark theme colors */
    --bg-dark: #0f0f1e;
    --bg-darker: #08080f;
    --bg-card: #1a1a2e;
    --text-light: #e0e0e0;
    --text-muted: #a0a0b0;
    
    /* Accent colors */
    --accent-pink: #ff006e;
    --accent-blue: #00f5ff;
    --accent-purple: #8b5cf6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

/* Исключения для интерактивных элементов */
a, button {
    cursor: pointer;
}

/* Только поля ввода могут выделять текст */
input, textarea, select {
    cursor: text;
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

button, select {
    cursor: pointer;
}

/* Подсветка ошибок в форме */
input.error-highlight {
    border-color: #ff006e !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.3) !important;
    animation: shake 0.5s ease;
}

.service-buttons.error-highlight {
    outline: 2px solid #ff006e;
    outline-offset: 4px;
    border-radius: 1rem;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

/* Красивое уведомление (Toast) */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
    max-width: 500px;
    animation: toastAppear 0.5s ease forwards;
}

.toast-notification.show {
    animation: toastAppear 0.5s ease forwards;
}

.toast-notification.hide {
    animation: toastDisappear 0.5s ease forwards;
}

.toast-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: checkmark 0.6s ease;
}

.toast-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.toast-message {
    font-size: 1.1rem;
    opacity: 0.9;
}

@keyframes toastAppear {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes toastDisappear {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ==========================================
   NAVIGATION MENU
   ========================================== */

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gradient-1);
}

.nav-link:hover::after {
    width: 80%;
}

/* ==========================================
   HERO SECTION - Animated Header
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, 
                var(--bg-darker) 0%, 
                #1a1a35 50%, 
                var(--bg-darker) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Floating spheres animation - MORE VISIBLE */
.floating-sphere {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
                rgba(102, 126, 234, 0.5), 
                rgba(118, 75, 162, 0.25));
    filter: blur(50px);
    animation: float 15s ease-in-out infinite;
}

.sphere-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 550px;
    height: 550px;
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    top: 30%;
    right: 10%;
    animation-delay: -3s;
}

.sphere-4 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.sphere-5 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    animation-delay: -5s;
}

/* Floating bubbles - MORE NOTICEABLE */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
                rgba(102, 126, 234, 0.2), 
                rgba(240, 147, 251, 0.15));
    animation: bubbleFloat 30s ease-in-out infinite;
    opacity: 0;
    filter: blur(2px);
}

.bubble-1 {
    width: 100px;
    height: 100px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 140px;
    height: 140px;
    right: 15%;
    top: 40%;
    animation-delay: -10s;
}

.bubble-3 {
    width: 80px;
    height: 80px;
    left: 30%;
    bottom: 30%;
    animation-delay: -20s;
}

.bubble-4 {
    width: 120px;
    height: 120px;
    right: 25%;
    bottom: 25%;
    animation-delay: -15s;
}

.bubble-5 {
    width: 110px;
    height: 110px;
    left: 50%;
    top: 60%;
    animation-delay: -5s;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-120px) scale(1.15);
        opacity: 0.5;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(150px, -150px) scale(1.1);
    }
    50% {
        transform: translate(-100px, 100px) scale(0.9);
    }
    75% {
        transform: translate(120px, 120px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-text {
    font-size: 4.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: gradientShift 6s ease infinite, pulse 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.highlight-blue {
    background: linear-gradient(135deg, var(--gradient-4), var(--gradient-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.feature-item {
    padding: 0.75rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--gradient-1);
    transform: translateY(-3px);
}

.price-showcase {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.price-item {
    text-align: center;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.price-value.pink {
    background: linear-gradient(135deg, var(--accent-pink), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-value.blue {
    background: linear-gradient(135deg, var(--gradient-4), var(--gradient-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-label {
    color: var(--text-muted);
    font-size: 1rem;
}

.price-divider {
    font-size: 3rem;
    color: var(--gradient-2);
    opacity: 0.3;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.scroll-indicator {
    margin-top: 4rem;
    animation: bounce 2s infinite, fadeInUp 1s ease-out 1.2s both;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

.arrow-down {
    color: var(--gradient-1);
    opacity: 0.7;
}

/* ==========================================
   SECTIONS - Common Styles
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: bold;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--gradient-3), var(--gradient-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================
   SERVICES SECTION - Animated Cards
   ========================================== */

.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    animation: cardSlideUp 0.8s ease-out forwards;
    cursor: pointer;
}

.service-card-link:nth-child(2) .service-card {
    animation-delay: 0.2s;
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background animation for service cards */
.service-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, 
                rgba(102, 126, 234, 0.3), 
                rgba(240, 147, 251, 0.2),
                transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 4s ease-in-out infinite;
    transition: opacity 0.8s ease;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.service-card:hover .service-bg-animation {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6), 
                0 0 60px rgba(240, 147, 251, 0.3);
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: height 0.4s ease;
}

.card-gradient.pink {
    background: linear-gradient(90deg, var(--accent-pink), var(--gradient-3));
}

.card-gradient.blue {
    background: linear-gradient(90deg, var(--gradient-4), var(--gradient-1));
}

.service-card:hover .card-gradient {
    height: 100%;
    opacity: 0.1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.gradient-pink {
    background: linear-gradient(135deg, var(--accent-pink), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-blue {
    background: linear-gradient(135deg, var(--gradient-4), var(--gradient-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--gradient-1);
    flex-shrink: 0;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */

.portfolio {
    background: var(--bg-darker);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease-out forwards;
    position: relative;
    cursor: pointer;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

/* Hover button overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: rgba(10, 10, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-view-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    animation: btnAppear 0.5s ease-out;
}

@keyframes btnAppear {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.portfolio-view-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.portfolio-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-type {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.type-static {
    background: linear-gradient(135deg, var(--accent-pink), var(--gradient-3));
    color: white;
}

.type-animated {
    background: linear-gradient(135deg, var(--gradient-4), var(--gradient-1));
    color: white;
}

.portfolio-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--gradient-1);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.portfolio-link:hover {
    color: var(--gradient-4);
    transform: translateX(5px);
}

.portfolio-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 15px;
}

.placeholder-text {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.placeholder-subtext {
    color: var(--text-muted);
}

/* ==========================================
   STEPS SECTION - Animated Timeline with Large Animations
   ========================================== */

.steps {
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.steps-timeline {
    position: relative;
    max-width: 1100px;
    margin: 4rem auto;
}

.step-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    align-items: center;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-icon {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.6s ease;
}

.step-item:hover .step-icon {
    border-color: var(--gradient-1);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

.icon-circle {
    width: 280px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.icon-bg {
    fill: transparent;
    stroke: var(--gradient-1);
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: all 1s ease;
}

.step-item:hover .icon-bg {
    stroke: var(--gradient-3);
    stroke-dashoffset: 0;
    fill: rgba(102, 126, 234, 0.1);
}

.step-number {
    font-size: 5rem;
    font-weight: bold;
    fill: var(--gradient-1);
    text-anchor: middle;
    dominant-baseline: middle;
    opacity: 0.3;
    transition: all 0.5s ease;
}

.step-item:hover .step-number {
    opacity: 0;
}

.step-animation-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

.step-item:hover .step-animation-overlay {
    transform: translate(-50%, -50%) scale(1);
}

.animated-icon {
    font-size: 8rem;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
}

/* Специфичные анимации для каждого этапа */
.order-icon {
    animation: orderFloat 3s ease-in-out infinite;
}

@keyframes orderFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.code-icon {
    animation: codePulse 2s ease-in-out infinite;
}

@keyframes codePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 50px rgba(240, 147, 251, 1));
    }
}

.test-icon {
    animation: testCheck 2s ease-in-out infinite;
}

@keyframes testCheck {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

.rocket-icon {
    animation: rocketFly 3s ease-in-out infinite;
}

@keyframes rocketFly {
    0% {
        transform: translateY(0) rotate(-45deg);
    }
    50% {
        transform: translateY(-40px) rotate(-35deg);
    }
    100% {
        transform: translateY(0) rotate(-45deg);
    }
}

.step-content {
    padding: 1rem 0;
}

.step-title {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.step-description {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.15rem;
}

/* Убираем коннектор - теперь не нужен */
.step-connector {
    display: none;
}

/* ==========================================
   CONTACT FORM - Modern Style
   ========================================== */

.contact {
    background: var(--bg-dark);
}

.contact-form {
    max-width: 700px;
    margin: 3rem auto 0;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gradient-1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

/* Service selection buttons */
.service-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-btn {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-darker);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.2), 
                rgba(240, 147, 251, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: glowShift 3s ease-in-out infinite;
}

@keyframes glowShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.service-btn.active .btn-glow {
    opacity: 1;
}

.service-btn:hover {
    border-color: var(--gradient-1);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
}

.service-btn.active {
    border-color: var(--gradient-1);
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6), 
                0 0 60px rgba(240, 147, 251, 0.3);
    transform: scale(1.02);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.btn-price {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-btn.active .btn-price {
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.contact-info-block {
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.1), 
                rgba(118, 75, 162, 0.1));
    border-left: 4px solid var(--gradient-1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.contact-info-text {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.submit-button:active {
    transform: translateY(0);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-title.blue {
    color: var(--gradient-1);
}

.footer-title.pink {
    color: var(--accent-pink);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.social-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .nav-container {
        padding: 0.5rem 0.5rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        background: rgba(10, 10, 20, 0.7);
        border-radius: 8px;
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .price-showcase {
        flex-direction: column;
        gap: 1rem;
    }

    .price-divider {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-buttons {
        grid-template-columns: 1fr;
    }

    /* Steps section mobile */
    .step-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .step-icon {
        height: 200px;
    }

    .icon-circle {
        width: 180px;
        height: 180px;
    }

    .step-number {
        font-size: 3rem;
    }

    .animated-icon {
        font-size: 5rem;
    }

    .step-title {
        font-size: 1.6rem;
    }

    .step-description {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
