/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2E5C9A;
    --secondary: #4A90E2;
    --accent: #00B4D8;
    --dark: #1A2332;
    --navy: #2B4C7D;
    --light-blue: #87CEEB;
    --white: #FFFFFF;
    --success: #10B981;
    --fluid-glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: radial-gradient(ellipse at top, var(--light-blue) 0%, var(--primary) 20%, var(--dark) 100%) !important;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin: 0 0 20px;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Фоновая анимация */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: liquidFloat 20s infinite ease-in-out;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(3px);
    will-change: transform;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.3) 0%, rgba(74, 144, 226, 0.15) 100%);
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.4) 0%, rgba(46, 92, 154, 0.2) 100%);
    top: 50%;
    right: 5%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(135, 206, 235, 0.1) 100%);
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
}

.shape:nth-child(4) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.25) 0%, rgba(74, 144, 226, 0.1) 100%);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes liquidFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(20px) translateX(-15px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-15px) translateX(25px) rotate(270deg) scale(1.05);
    }
}

/* Header */
header {
    background: var(--fluid-glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo img {
    width: 70px;
    height: 40px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--fluid-glass-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    position: relative;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
    left: 5px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger-line.top {
    top: 10px;
}

.hamburger-line.middle {
    top: 14px;
}

.hamburger-line.bottom {
    bottom: 10px;
}

.menu-toggle.active .hamburger-line.top {
    transform: rotate(45deg);
    top: 14px;
}

.menu-toggle.active .hamburger-line.middle {
    opacity: 0;
}

.menu-toggle.active .hamburger-line.bottom {
    transform: rotate(-45deg);
    bottom: 14px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

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

.contact-btn {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 50%); /* Темно-синий градиент */
    color: var(--white);
    padding: 1rem 2rem; /* Увеличиваем отступы */
    border-radius: 16px; /* Более мягкие углы */
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Более яркая тень */
    position: relative;
    overflow: hidden;
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%); /* Сдвиг градиента при наведении */
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); /* Усиливаем тень */
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 968px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    .menu-toggle.active {
        color: var(--white) !important;
    }
    .nav-links {
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 35, 50, 0.95);
        backdrop-filter: blur(20px) saturate(200%);
        padding: 6rem 1rem 2rem;
        border: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-links a {
        color: rgba(255, 255, 255, 0.95) !important;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
        padding: 1rem 2rem;
        margin: 0.5rem 1rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        font-size: 1.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    .nav-links .contact-btn {
        background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 50%);
        padding: 1.25rem 2.5rem;
        font-size: 1.2rem;
        font-weight: 700;
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        border-radius: 20px;
    }
    .nav-links .contact-btn:hover {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Header scroll effect */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Изменяем цвет текста в меню при скролле */
header.scrolled .logo,
header.scrolled .nav-links a {
    color: var(--dark);
}

header.scrolled .menu-toggle {
    color: var(--dark);
}

header.scrolled .contact-btn {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

header.scrolled .contact-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #00D4FF 0%, #87CEEB 50%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: gradientShift 10s infinite;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary svg {
    vertical-align: middle;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    position: relative;
}

.tech-stack-grid {
    display: grid;
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
    gap: 2rem;
}

.tech-item {
    background: var(--fluid-glass-bg);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.tech-item:hover::before {
    transform: translateX(100%);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-item[data-tilt] {
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tech-name {
    font-weight: 600;
    color: var(--white);
}

/* Services */
.services {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--fluid-glass-bg);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.service-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Cases */
.cases {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.case-item {
    background: var(--fluid-glass-bg);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.case-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.case-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.case-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.case-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.case-results {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.result-item {
    color: rgba(255, 255, 255, 0.8);
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

.result-label {
    font-size: 0.875rem;
}

.case-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.case-tags .case-tag {
    background: var(--navy);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.case-tags .case-tag:hover {
    transform: scale(1.05);
}

/* Process */
.process {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.process-step {
    background: var(--fluid-glass-bg);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.process-step h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.process-step p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact */
.contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
}

.contact h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    position: relative;
    background: var(--fluid-glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    border-radius: 32px;
    z-index: -1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
    color: var(--light-blue);
    background: rgba(26, 35, 50, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px) saturate(180%);
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    position: relative;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.15);
    transform: translateY(-2px);
}

.contact-form input:hover,
.contact-form textarea:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.contact-form input.success,
.contact-form textarea.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.error-message {
    color: #ff5555;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn.loading {
    color: transparent;
}

/* Иконки для полей */
.input-group::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.input-group:has(input[name="name"])::after {
    content: '👤';
}

.input-group:has(input[name="email"])::after {
    content: '📧';
}

.input-group:has(textarea)::after {
    content: '💬';
    top: 1.5rem;
    transform: none;
}

.input-group:has(input:focus)::after,
.input-group:has(textarea:focus)::after {
    opacity: 1;
}

/* Анимация для успешной отправки */
.contact-form.success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    display: none;
    animation: slideIn 0.3s ease;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--white);
}

.form-status.error {
    background: rgba(255, 85, 85, 0.2);
    border: 1px solid rgba(255, 85, 85, 0.3);
    color: var(--white);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(25px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--fluid-glass-bg);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--glass-border);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Плавная анимация появления при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.25, 0.25, 1);
}

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

/* Mobile Optimizations */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-features {
        justify-content: center;
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .section-title {
        font-size: 2rem;
    }
    .container {
        padding: 0 15px;
    }
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 4px solid var(--white);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
