/* Основные стили с цветами из DTEAM */
:root {
    /* Цветовая палитра из DTEAM (измененная на фиолетовую) */
    --color-primary: #0f172a;
    --color-secondary: #1e293b;
    /* Меняем синий на фиолетовый и его варианты */
    --color-accent: #ce35f1;
    --color-accent-light: #e066ff;
    --color-accent-dark: #a020f0;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-accent: 0 4px 14px rgba(206, 53, 241, 0.3);
    --shadow-accent-lg: 0 10px 30px rgba(206, 53, 241, 0.4);
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Размеры */
    --header-height: 80px;
    --container-width: 1200px;
    --section-padding: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Логотип всегда слева */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1002;
    position: relative;
}

/* Навигация на десктопе */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Только на мобильных - переопределяем */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Кнопка меню всегда справа */
    .mobile-menu-btn {
        order: 2; /* Помещаем кнопку в конец контейнера (справа) */
    }
    
    .logo {
        order: 1; /* Логотип остается слева */
        flex-grow: 1; /* Занимает все доступное пространство */
    }
}

/* Логотип */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--color-accent);
}

/* Навигация */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link:hover::after {
    width: 100%;
}

/* Кнопка мобильного меню */
/* Кнопка мобильного меню - ОБНОВЛЕННАЯ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
    padding: 12px 10px;
    margin-left: auto; /* Это сдвинет кнопку вправо */
    position: relative;
    z-index: 1002;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn:hover {
    background-color: rgba(206, 53, 241, 0.1);
    color: var(--color-accent);
}

.mobile-menu-btn.active {
    color: var(--color-accent);
}

/* Анимация иконки */
.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Только на мобильных */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px; /* Оптимальный размер для тач-устройств */
        height: 44px;
    }
    
    /* Убираем стандартное меню на мобильных */
    .nav-links {
        display: none;
    }
    
    /* Показываем меню только при активации */
    .nav-links.active {
        display: flex;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-menu-btn {
        font-size: 1.6rem;
        width: 40px;
        height: 40px;
        padding: 10px 8px;
    }
}

/* Герой секция */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(206, 53, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(224, 102, 255, 0.1) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Контент героя */
.hero-content {
    z-index: 2;
}

.hero-badge {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    background-color: rgba(206, 53, 241, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(206, 53, 241, 0.2);
}

/* Исправляем слипание текста в hero */
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-title-line {
    display: block;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-actions {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: rgba(206, 53, 241, 0.1);
    transform: translateY(-2px);
}

/* Компьютер */
/* Компьютер - ОБНОВЛЕННАЯ ВЕРСИЯ ДЛЯ МОБИЛЬНЫХ */
.computer-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.computer-screen {
    position: relative;
    width: 100%;
    padding-top: 64.5%;
    background: linear-gradient(145deg, #0f172a, #1e293b);
    border-radius: 16px;
    box-shadow: var(--shadow-2xl), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(206, 53, 241, 0.2), transparent 70%);
    z-index: 1;
}

.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.screen-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.screen-content p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 1rem;
    text-align: center;
    line-height: 1.5;
}

.screen-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

.feature i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.computer-base {
    position: relative;
    width: 70%;
    height: 24px;
    background: linear-gradient(to bottom, #334155, #1e293b);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.computer-stand {
    position: relative;
    width: 30%;
    height: 40px;
    background: linear-gradient(to bottom, #475569, #334155);
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
}

.computer-reflection {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05));
    border-radius: 8px;
    pointer-events: none;
}

/* ОТКЛЮЧАЕМ FLoating анимацию по умолчанию */
.floating {
    animation: floating 6s ease-in-out infinite;
}

/* Отключаем для мобильных */
@media (max-width: 768px) {
    .floating {
        animation: none !important;
    }
}

/* Индикатор скролла */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 0.875rem;
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-text-light);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Секции */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* О компании */
.about {
    background-color: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    padding: 24px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(206, 53, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
    font-size: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Статистика */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* Обновленные стили для статистики с 24/7 */
.stat-item:nth-child(4) {
    position: relative;
}

.stat-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-divider {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    line-height: 1;
}

.stat-divider.show {
    opacity: 1;
    transform: translateX(0);
}

/* Для обычных статистических элементов */
.stat-item:not(:nth-child(4)) .stat-number {
    margin-bottom: 10px;
}

/* Для четвертого элемента убираем отступ снизу у числа */
.stat-item:nth-child(4) .stat-number {
    margin-bottom: 0;
}

/* Адаптивность для статистики */
@media (max-width: 768px) {
    .stat-number-wrapper {
        gap: 1px;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-divider {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 600;
}

/* Продукты */
.products {
    background-color: var(--color-bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-accent-light);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    background-color: var(--color-accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.new {
    background-color: var(--color-success);
}

.product-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(206, 53, 241, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-accent);
    font-size: 1.75rem;
}

.product-title {
    margin-bottom: 16px;
    color: var(--color-primary);
}

.product-description {
    color: var(--color-text-light);
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text);
}

.product-features i {
    color: var(--color-accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.product-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-status,
.product-result,
.product-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.product-link:hover {
    gap: 12px;
}

/* Преимущества */
.advantages {
    background-color: var(--color-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background-color: white;
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(206, 53, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-accent);
    font-size: 2rem;
}

.advantage-card h3 {
    margin-bottom: 16px;
    color: var(--color-primary);
}

.advantage-card p {
    color: var(--color-text-light);
    margin: 0;
}

/* Партнеры */
.partners-section {
    text-align: center;
    padding: 60px;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

.partners-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.partners-subtitle {
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    color: var(--color-accent);
    transform: translateY(-5px);
}

.partner-logo i {
    font-size: 2.5rem;
}

.partner-logo span {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Контакты */
.contact {
    background-color: var(--color-bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(206, 53, 241, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.contact-details p {
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Команда */
.team-section {
    margin-top: 40px;
}

.team-section h3 {
    margin-bottom: 24px;
    color: var(--color-primary);
}

.team-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.team-avatar {
    width: 80px;
    height: 80px;
    background-color: rgba(206, 53, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 2rem;
    flex-shrink: 0;
}

.team-info h4 {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.team-position {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.team-description {
    color: var(--color-text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Форма */
.contact-form-container {
    background-color: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--color-border);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--color-text-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(206, 53, 241, 0.1);
    background-color: white;
}

.form-footer {
    margin-top: 30px;
}

.form-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Футер */
.footer {
    background-color: var(--color-bg-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--color-accent-light);
}

.footer-description {
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer-section h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94a3b8;
}

.footer-contacts i {
    color: var(--color-accent-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--color-border);
        display: block;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
        gap: 8px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 40px;
        margin-top: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-logos {
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        gap: 6px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        margin-top: 10px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: 20px;
    }
    
    .partner-logo i {
        font-size: 2rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Улучшаем контейнер компьютера для мобильных */
@media (max-width: 992px) {
    .computer-container {
        max-width: 500px;
        margin-top: 40px;
    }
    
    .screen-content h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .screen-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .screen-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Дополнительные стили для новой карточки */
.product-card:nth-child(4) .product-icon {
    background-color: rgba(206, 53, 241, 0.15);
}

.product-card:nth-child(4):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-accent-lg);
}

/* Анимация для иконки новой карточки */
@keyframes codePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.product-card:nth-child(4) .product-icon i {
    animation: codePulse 3s ease-in-out infinite;
}

/* === ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ 4 УСЛУГ В РЯД === */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

.product-card {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.product-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 70px;
    color: var(--color-text-light);
}

.product-features {
    margin-bottom: 20px;
    flex-grow: 1;
    min-height: 180px;
}

.product-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.product-features i {
    margin-top: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.product-footer {
    padding-top: 20px;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-features {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-title {
        min-height: auto;
    }
    
    .product-description {
        min-height: auto;
    }
    
    .product-features {
        min-height: auto;
    }
}

/* Анимация для карточек при скролле */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card {
    opacity: 0;
    animation: cardAppear 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

/* Дополнительные стили для новой карточки */
.product-card:nth-child(3) .product-icon {
    background-color: rgba(206, 53, 241, 0.15);
}

.product-card:nth-child(3):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-accent-lg);
}

.product-card:nth-child(2) .product-icon {
    background-color: rgba(206, 53, 241, 0.15);
}

.product-card:nth-child(2):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-accent-lg);
}

.product-card:nth-child(1) .product-icon {
    background-color: rgba(206, 53, 241, 0.15);
}

.product-card:nth-child(1):hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-accent-lg);
}

/* ==================== */
/* КАСТОМИЗАЦИЯ BITRIX24 ФОРМЫ */
/* ==================== */

/* Основные стили для формы Bitrix24 */
.b24-form-content, 
.b24-form-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

/* Заголовок формы */
.b24-form-header, 
.b24-form-title {
    color: var(--color-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    display: none !important; /* Скрываем, т.к. у нас свой заголовок */
}

/* Поля ввода */
.b24-form-field-input input,
.b24-form-field-textarea textarea,
.b24-form-field-select select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    background: white !important;
    color: var(--color-text) !important;
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

/* Фокус на полях */
.b24-form-field-input input:focus,
.b24-form-field-textarea textarea:focus,
.b24-form-field-select select:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(206, 53, 241, 0.1) !important;
    outline: none !important;
}

/* Кнопка отправки */
.b24-form-btn {
    background: var(--color-accent) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.b24-form-btn:hover {
    background: var(--color-accent-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-accent-lg) !important;
}

/* Лейблы полей */
.b24-form-field-label {
    color: var(--color-text) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Чекбоксы и радиокнопки */
.b24-form-field-checkbox input,
.b24-form-field-radio input {
    accent-color: var(--color-accent) !important;
}

/* Сообщения об ошибках */
.b24-form-field-error {
    color: var(--color-danger) !important;
    font-size: 0.875rem !important;
    margin-top: 5px !important;
}

/* Успешное сообщение */
.b24-form-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid var(--color-success) !important;
    border-radius: var(--radius-md) !important;
    padding: 20px !important;
    color: var(--color-success) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .b24-form-field {
        margin-bottom: 20px !important;
    }
    
    .b24-form-btn {
        padding: 14px 24px !important;
    }
}

/* Скрываем ненужные элементы */
.b24-form-agreement,
.b24-form-copyright,
.b24-form-description {
    display: none !important;
}

/* Исправление выравнивания заголовка формы */
.form-header {
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.form-header h3 {
    text-align: center !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
}

.form-header p {
    text-align: center !important;
    margin: 0 auto 30px auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 600px !important;
    position: relative !important;
    left: 0 !important;
}

/* Для формы Bitrix24 тоже центрируем текст */
.b24-form-header,
.b24-form-title,
.b24-form-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Убедимся, что контейнер формы тоже центрирован */
.contact-form-container {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==================== */
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОДВАЛА */
/* ==================== */

/* Стили для списка тарифов в подвале */
.footer-tariffs li {
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-tariffs i {
    color: var(--color-accent-light);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-tariffs span {
    line-height: 1.4;
}

.footer-tariffs strong {
    color: #e2e8f0;
    display: block;
    margin-bottom: 3px;
}

/* Улучшение адаптивности подвала */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-tariffs li {
        justify-content: center;
        text-align: left;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-contacts li {
        justify-content: center;
        text-align: center;
    }
}

/* ==================== */
/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПОДВАЛА ONE MARKET */
/* ==================== */

/* Информация о компании в первой колонке */
.footer-company-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-accent-light);
}

.company-name strong {
    font-weight: 700;
}

.footer-company-info p {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.footer-company-info .copyright {
    margin-top: 12px;
    color: #64748b;
    font-size: 0.8rem;
}

/* Ссылки на приложения */
.app-stores {
    margin-top: 25px;
    margin-bottom: 25px;
}

.app-stores h5 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-store-link,
.google-play-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-store-link:hover,
.google-play-link:hover {
    background-color: rgba(206, 53, 241, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.app-store-link i,
.google-play-link i {
    font-size: 1.3rem;
}

.app-store-link i {
    color: #007aff;
}

.google-play-link i {
    color: #34a853;
}

/* Адаптивность для нового подвала */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-company-info {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 30px;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-contacts li {
        justify-content: flex-start;
        text-align: left;
    }
    
    .footer-social {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .app-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .app-store-link,
    .google-play-link {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-store-link,
    .google-play-link {
        min-width: 100%;
    }
    
    .footer-company-info {
        text-align: center;
        padding-top: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Логотип Dream Team для шапки */
.dreamteam-logo-link {
    display: flex;
    align-items: center;
    height: 50px;
    transition: transform 0.3s ease;
}

.dreamteam-logo-link:hover {
    transform: scale(1.05);
}

.dreamteam-logo {
    height: 40px;
    width: auto;
}

/* Анимация кристалла */
.dreamteam-logo polygon {
    transition: all 0.3s ease;
}

.dreamteam-logo-link:hover polygon {
    animation: crystalRotate 3s infinite linear;
}

@keyframes crystalRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .dreamteam-logo-link {
        height: 40px;
    }
    
    .dreamteam-logo {
        height: 35px;
    }
    
    .dreamteam-logo text {
        font-size: 28px !important;
    }
    
    .dreamteam-logo text:nth-child(2) {
        font-size: 28px !important;
    }
}

/* ========== ПОЛНАЯ КАСТОМИЗАЦИЯ BITRIX24 ФОРМЫ ========== */
/* Дизайн полностью соответствует референсу, адаптивен */

.contact-form-container {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(102, 126, 234, 0.1);
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-container:hover {
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

/* Градиентная шапка */
.gradient-header {
    background: linear-gradient(135deg, #ffffff 0%, #fffbfb 100%);
    border-radius: 50px;
    color: white;
    padding: 32px 28px;
    text-align: center;
}

.gradient-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.gradient-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

/* Контейнер самой формы (отступы) */
.bitrix-custom-wrapper {
    padding: 28px 28px 16px;
}

/* ---------- ПЕРЕОПРЕДЕЛЕНИЕ СТИЛЕЙ BITRIX ---------- */
.b24-form {
    font-family: 'Inter', sans-serif !important;
}

.b24-form-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

/* Скрываем родной заголовок Bitrix */
.b24-form-header,
.b24-form-header-padding {
    display: none !important;
}

/* Лейблы полей */
.b24-form-control-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 6px !important;
    display: block !important;
    position: static !important;
    transform: none !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.b24-form-control-label span {
    color: #e53e3e !important;
}

/* Сами поля ввода */
.b24-form-control {
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #1a202c !important;
    background: #f7fafc !important;
    transition: all 0.2s ease !important;
    height: auto !important;
    box-shadow: none !important;
}

.b24-form-control:focus {
    border-color: #667eea !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15) !important;
    outline: none !important;
}

/* Поле телефона */
.b24-form-field-phone .b24-form-control {
    padding-left: 18px !important;
}

/* Текстовое поле */
textarea.b24-form-control {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Сообщения об ошибках */
.b24-form-field-error {
    font-size: 13px !important;
    margin-top: 6px !important;
    color: #e53e3e !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Кнопка отправки */
.b24-form-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 16px 28px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
    margin-top: 16px !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
}

.b24-form-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.45) !important;
}

.b24-form-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

/* Футер формы (ссылка Bitrix) */
.b24-form-sign {
    display: flex !important;
    justify-content: center !important;
    margin-top: 20px !important;
    opacity: 0.6 !important;
    font-size: 12px !important;
}

.b24-form-sign a {
    color: #667eea !important;
    text-decoration: none !important;
}

/* Сообщение об успешной отправке */
.b24-form-state-success {
    background: white !important;
    border-radius: 20px !important;
    padding: 30px !important;
    text-align: center;
}

.b24-form-state-success-text {
    color: #38a169 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Бейдж доверия под формой */
.form-trust-badge {
    text-align: center;
    padding: 0 28px 28px;
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-trust-badge i {
    color: #667eea;
    font-size: 14px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .gradient-header {
        padding: 24px 20px;
    }
    
    .gradient-header h3 {
        font-size: 24px;
    }
    
    .bitrix-custom-wrapper {
        padding: 20px;
    }
    
    .b24-form-btn {
        padding: 14px 20px !important;
        font-size: 17px !important;
    }
}

@media (max-width: 480px) {
    .gradient-header h3 {
        font-size: 22px;
    }
    
    .gradient-header p {
        font-size: 15px;
    }
    
    .bitrix-custom-wrapper {
        padding: 16px;
    }
}

/* ===== ОТСТУП МЕЖДУ ФОРМОЙ И ФУТЕРОМ ===== */
.contact-form-container {
    margin-bottom: 80px; /* Основной отступ */
}

@media (max-width: 768px) {
    .contact-form-container {
        margin-bottom: 50px; /* Чуть меньше на планшетах */
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        margin-bottom: 40px; /* Ещё меньше на телефонах */
    }
}