/**
 * style.css - Современный дизайн АнвиТех
 * Яркий, технологичный, с анимациями
 */

:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgb(99 102 241 / 0.3);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-padding) 0; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.logo__accent { color: var(--primary); }

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

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

.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { width: 100%; }

.header__phone {
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
}

.header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
    padding: 120px 0 80px;
}

.hero__content { max-width: 900px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 650px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero__stats {
    display: flex;
    gap: 48px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 8px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.hero__scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn--full { width: 100%; }

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

/* Services */
.services {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    display: block;
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--service-color, var(--primary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 16px;
    color: var(--white);
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.service-card__link svg {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* About */
.about { background: var(--white); }

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

.about__content .section-tag { margin-bottom: 16px; }
.about__content .section-title { text-align: left; margin-bottom: 32px; }

.about__text {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.about__text p { margin-bottom: 20px; }

.about__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.about__list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about__list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about__list strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.about__main-text {
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    white-space: pre-line;
}

.about__features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--gray-50);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-box__icon { font-size: 1.25rem; }

.about__visual {
    display: flex;
    justify-content: center;
}

.about__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.about__placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about__placeholder-inner {
    text-align: center;
    color: var(--white);
}

.about__placeholder-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.about__placeholder-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.about__floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    animation: float 4s ease-in-out infinite;
}

.about__floating-card--1 {
    top: -20px;
    right: -20px;
    animation-delay: 0.5s;
}

.about__floating-card--2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 1s;
}

/* Process */
.process {
    background: var(--gray-50);
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.process__step {
    position: relative;
    padding: 32px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.process__step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.process__step-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.5;
}

.process__step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.process__step-content p {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

/* Contacts */
.contacts { background: var(--white); }

.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.contacts__subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.contacts__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.contact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card__value {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-top: 4px;
}

.contact-card a { color: inherit; }

.contacts__form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
}

.contacts__form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.form-message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.form-message--success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.form-message--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-800);
}

.footer__brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer__nav h4,
.footer__contacts h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer__nav ul,
.footer__contacts ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav a,
.footer__contacts a {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer__nav a:hover,
.footer__contacts a:hover {
    color: var(--white);
}

.footer__bottom {
    text-align: center;
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* Responsive */
@media (min-width: 768px) {
    .header__toggle { display: none; }
    .nav { display: block; }
    
    .about__wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .contacts__wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__top {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .header__toggle { display: flex; }
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav.is-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 16px;
    }
    
    .header__phone { display: none; }
    
    .hero__stats {
        gap: 24px;
    }
    
    .hero__stat-value {
        font-size: 1.75rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .process__timeline {
        grid-template-columns: 1fr;
    }
    
    .contacts__form-container {
        padding: 24px;
    }
}
