/* CSS Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #1E293B;
}

.logo-text {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3B82F6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3B82F6;
    font-weight: 600;
}

.phone a {
    color: inherit;
    text-decoration: none;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #3B82F6;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F8FAFC 0%, #E5F3FF 50%, #DBEAFE 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Частицы */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: float-particle 4s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.5;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1E293B;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: #64748B;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3B82F6;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-placeholder {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-8px);
}

.service-icon {
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 12px;
}

.service-description {
    color: #64748B;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    color: #64748B;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E5F3FF 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 18px;
    color: #64748B;
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #3B82F6;
    display: inline-block;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: #3B82F6;
    display: inline-block;
    margin-left: 4px;
}

.stat-label {
    color: #64748B;
    font-weight: 500;
    margin-top: 8px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3B82F6;
    font-weight: 500;
}

.about-image-placeholder {
    animation: float 6s ease-in-out infinite reverse;
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background: #ffffff;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.contact-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-item:hover {
    transform: translateX(8px);
}

.contact-icon {
    padding: 12px;
    background: #3B82F6;
    border-radius: 8px;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
}

.contact-details p {
    font-weight: 600;
    color: #3B82F6;
    margin-bottom: 4px;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-details span {
    color: #64748B;
    font-size: 14px;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #F8FAFC 0%, #E5F3FF 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-note {
    font-size: 12px;
    color: #64748B;
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: #1E293B;
    padding: 60px 0 30px;
    color: #94A3B8;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info .logo {
    margin-bottom: 16px;
    color: white;
}

.footer-info p {
    color: #94A3B8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a,
.footer-column span {
    display: block;
    color: #94A3B8;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #3B82F6;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748B;
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading состояние */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Отзывчивость */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px 0;
    }

    .nav {
        gap: 20px;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .header-contact {
        flex-direction: column;
        gap: 12px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-content,
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn-large {
        width: 100%;
    }

    .hero-content {
        gap: 30px;
    }

    .contacts-content {
        gap: 30px;
    }
}

/* Скрытые элементы для анимации */
.service-card,
.contact-item {
    transition: all 0.6s ease;
}

/* Успешная отправка формы */
.form-success {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    color: white !important;
}

.form-success:hover {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%) !important;
}
