/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
========================================= */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   КАСТОМНЫЙ КУРСОР
========================================= */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease;
}

/* =========================================
   ПРЕЛОАДЕР
========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.loader-box {
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary);
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.loader-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--secondary);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

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

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.loader-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

.loader-text {
    color: var(--white);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================================
   НАВИГАЦИЯ
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.header.scrolled .header-inner {
    padding: 15px 24px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 45px;
}

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

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.header-phone i {
    color: var(--primary);
}

.header-phone:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
}

.btn-glow {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-glow::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: var(--transition);
}

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

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-link {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--primary-light);
}

.mobile-phone {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
}

/* =========================================
   HERO СЕКЦИЯ
========================================= */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

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

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover .hero-photo {
    transform: scale(1.05);
}

.hero-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    opacity: 0;
    transition: var(--transition);
}

.hero-image-wrapper:hover .hero-image-glow {
    opacity: 1;
}

.hero-card {
    position: absolute;
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float-card 6s ease-in-out infinite;
}

.hero-card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.hero-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-card-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
}

.hero-card-text {
    font-size: 13px;
    color: var(--gray);
}

.floating-card {
    bottom: 30px;
    left: -30px;
}

/* Поднимаем плавающую карточку в Hero */
.floating-card {
    bottom: 80px; /* Было 30px, подняли, чтобы не терялась при скролле */
    left: -30px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    position: relative;
    animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

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

/* =========================================
   СЕКЦИИ
========================================= */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.2;
}

.section-desc {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================
   О НАС - ПРЕИМУЩЕСТВА
========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    transform: rotate(5deg);
}

.feature-card:hover .feature-icon i {
    color: var(--white);
}

.feature-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 20px;
    opacity: 0;
    filter: blur(20px);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-glow {
    opacity: 0.3;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-text {
    color: var(--gray);
    line-height: 1.7;
}

/* =========================================
   УСЛУГИ
========================================= */
.services {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.services-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    top: -200px;
    right: -200px;
    animation: float 10s ease-in-out infinite;
}

.services .section-title {
    color: var(--white);
}

.services .section-desc {
    color: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

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

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-card:hover .service-number {
    color: rgba(99, 102, 241, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 24px;
    color: var(--primary-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.service-text {
    color: var(--gray-light);
    line-height: 1.7;
}

/* =========================================
   ТАРИФЫ (УМЕНЬШЕННЫЕ КАРТОЧКИ)
========================================= */
.pricing-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.pricing-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px 50px 10px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-carousel::-webkit-scrollbar {
    display: none;
}

.pricing-carousel:active {
    cursor: grabbing;
}

.pricing-card {
    flex: 0 0 320px; /* Делаем фиксированную ширину для карусели */
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex; /* Включаем Flexbox */
    flex-direction: column; /* Вертикальное расположение */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 36px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-from {
    font-size: 14px;
    color: var(--gray);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
}

.price-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.price-period {
    font-size: 14px;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1; /* Выталкивает кнопку в самый низ карточки */
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray);
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary);
    font-size: 12px;
}

.btn-outline-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    transition: var(--transition);
    width: 100%;
}

.btn-outline-full:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    width: 100%;
}

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

/* =========================================
   КОМАНДА (БЕСКОНЕЧНАЯ КАРУСЕЛЬ)
========================================= */
.team-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.team-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 50px 10px;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-carousel:active {
    cursor: grabbing;
}

.team-card {
    flex: 0 0 320px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    user-select: none;
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.team-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: filter 0.5s ease, transform 0.5s ease;
    filter: grayscale(100%);
}

.team-card:hover .team-photo img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-photo-overlay {
    opacity: 1;
}

.team-info {
    padding: 24px 20px;
    text-align: center;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* =========================================
   НАМ ДОВЕРЯЮТ (БЕСКОНЕЧНЫЙ СКРОЛЛ)
========================================= */
.trusted-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.trusted-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.trusted-carousel::-webkit-scrollbar {
    display: none;
}

.trusted-carousel:active {
    cursor: grabbing;
}

.trusted-logo {
    flex: 0 0 220px;
    background: var(--white);
    padding: 24px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    user-select: none;
}

.trusted-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trusted-logo i {
    color: var(--primary);
    font-size: 28px;
}

/* =========================================
   КОНТАКТЫ
========================================= */
.contacts {
    position: relative;
    overflow: hidden;
}

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

.contacts-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    bottom: -200px;
    left: -200px;
    animation: float 12s ease-in-out infinite;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contacts-info .section-tag {
    margin-bottom: 16px;
}

.contacts-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contacts-info .section-desc {
    text-align: left;
    margin: 0 0 40px 0;
}

.contacts-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon i {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--gradient-primary);
}

.contact-item:hover .contact-icon i {
    color: var(--white);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 14px;
    color: var(--gray);
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--dark);
    transition: var(--transition);
    outline: none;
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: var(--gray);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -10px;
    left: 16px;
    font-size: 12px;
    color: var(--primary);
    background: var(--white);
    padding: 0 8px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    color: #10b981;
    font-weight: 600;
}

.form-success.show {
    display: flex;
}

.form-success i {
    font-size: 20px;
}

/* =========================================
   ФУТЕР
========================================= */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-desc {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-light);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-contacts a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contacts a:hover {
    color: var(--primary-light);
}

.footer-contacts i {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 14px;
}

.footer-login {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

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

/* =========================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="500"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="600"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="700"] { transition-delay: 0.7s; }
.animate-on-scroll[data-delay="800"] { transition-delay: 0.8s; }

/* =========================================
   АДАПТИВНОСТЬ
========================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-actions {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
}
