/* ============================================
   Основные переменные
   ============================================ */
:root {
    /* Основные цвета - синяя гамма */
    --primary-color: #0a4b7a;
    --primary-dark: #062a4a;
    --primary-darker: #041a2f;
    --primary-light: #1a6ba5;
    --primary-lighter: #4a8fc4;
    --primary-gradient: linear-gradient(135deg, #041a2f 0%, #0a4b7a 50%, #1a6ba5 100%);
    
    /* Акцентные цвета - оранжевая гамма */
    --secondary-color: #f39523;
    --secondary-dark: #d47d1a;
    --secondary-light: #f5a94a;
    --secondary-lighter: #f8c47a;
    --secondary-gradient: linear-gradient(135deg, #f39523 0%, #d47d1a 100%);
    
    /* Фоновые цвета */
    --light-bg: #e8edf2;
    --dark-bg: #0a1a2e;
    --card-bg: rgba(255, 255, 255, 0.95);
    --dark-card-bg: rgba(10, 30, 50, 0.95);
    
    /* Текст */
    --dark-text: #1a2a3a;
    --light-text: #f0f4f8;
    --muted-text: #6a7a8a;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(4, 26, 47, 0.08);
    --shadow-md: 0 5px 20px rgba(4, 26, 47, 0.12);
    --shadow-lg: 0 10px 40px rgba(4, 26, 47, 0.2);
    --shadow-glow: 0 0 30px rgba(10, 75, 122, 0.3);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Сброс и базовые стили
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 10% 20%, rgba(10, 75, 122, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(243, 149, 35, 0.05) 0%, transparent 50%);
}

/* ============================================
   Основной контейнер
   ============================================ */
.main-container {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    flex: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Hero секция - градиент синий
   ============================================ */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 149, 35, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(10, 75, 122, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #ffffff, var(--secondary-lighter));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
}

/* ============================================
   Техническая информация
   ============================================ */
.tech-info {
    background: linear-gradient(135deg, rgba(4, 26, 47, 0.03) 0%, rgba(10, 75, 122, 0.05) 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin: 2rem;
    border-left: 5px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
}

.tech-info:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tech-info h4 {
    color: var(--primary-dark);
    font-weight: 700;
}

.tech-info strong {
    color: var(--primary-color);
}

/* ============================================
   Блок статистики
   ============================================ */
.stats-container {
    background: linear-gradient(135deg, rgba(4, 26, 47, 0.8) 0%, rgba(10, 75, 122, 0.6) 100%);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.stats-container:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.stats-container b {
    color: var(--secondary-color);
}

.stats-container span {
    color: white;
}

.stats-error {
    color: #ff6b6b;
    font-weight: bold;
}

.stats-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.update-counter {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

/* ============================================
   Карточки функций
   ============================================ */
.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 75, 122, 0.08);
    height: 100%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 75, 122, 0.15);
}

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

.feature-card .feature-icon {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: block;
    text-align: center;
    transition: all var(--transition-normal);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h4 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--muted-text);
    line-height: 1.6;
}

/* ============================================
   Преимущества кооперации (оранжевый градиент)
   ============================================ */
.coop-benefits {
    background: var(--secondary-gradient);
    color: white;
    padding: 3.5rem 2rem;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.coop-benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.coop-benefits .container {
    position: relative;
    z-index: 1;
}

.coop-benefits h2 {
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.coop-benefits .text-center i {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.coop-benefits h5 {
    font-weight: 600;
    margin-top: 0.5rem;
}

.coop-benefits p {
    opacity: 0.95;
    font-size: 0.95rem;
}

/* ============================================
   Заголовки секций
   ============================================ */
.section-title {
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.2rem;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

/* ============================================
   Выделенная цитата
   ============================================ */
.coop-highlight {
    background: linear-gradient(135deg, rgba(243, 149, 35, 0.08) 0%, rgba(243, 149, 35, 0.03) 100%);
    border-left: 5px solid var(--secondary-color);
    padding: 2rem 2.5rem;
    margin: 2rem 0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.coop-highlight:hover {
    background: linear-gradient(135deg, rgba(243, 149, 35, 0.15) 0%, rgba(243, 149, 35, 0.05) 100%);
    transform: translateX(5px);
}

.coop-highlight h3 {
    color: var(--primary-dark);
    font-weight: 700;
}

.coop-highlight p {
    color: var(--muted-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ============================================
   Полосы
   ============================================ */
.stripe {
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.stripe-white {
    background: white;
    border-radius: var(--radius-md);
}

.stripe-gray {
    background: var(--light-bg);
    border-radius: var(--radius-md);
}

/* ============================================
   Кнопки
   ============================================ */
.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.9rem 2.5rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(10, 75, 122, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 75, 122, 0.4);
    color: white;
    background: var(--secondary-gradient);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* ============================================
   Тех-бейджи
   ============================================ */
.tech-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(243, 149, 35, 0.3);
}

.tech-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(243, 149, 35, 0.4);
    color: white;
}

/* ============================================
   Футер
   ============================================ */
.footer {
    background: var(--primary-gradient);
    color: white;
    padding: 3.5rem 0 2rem;
    margin-top: auto;
    border-top: 3px solid var(--secondary-color);
}

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

.footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    transform: translateX(3px);
}

.footer-subtitle {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.footer-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-4px) scale(1.1);
    border-color: var(--secondary-color);
}

.footer-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .tech-info {
        margin: 1rem;
        padding: 1rem;
    }
    
    .stats-container {
        font-size: 0.8rem;
        padding: 10px 15px;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .coop-benefits {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .coop-highlight {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .stripe {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer .col-12 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .btn-primary-custom {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   Анимации для загрузки
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ============================================
   Стили для темной темы (опционально)
   ============================================ */
body.dark-theme {
    background: var(--dark-bg);
    color: var(--light-text);
}

body.dark-theme .main-container {
    background: var(--dark-card-bg);
    border-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .tech-info {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary-color);
}

body.dark-theme .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .feature-card h4 {
    color: var(--light-text);
}

body.dark-theme .feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-theme .coop-highlight {
    background: rgba(243, 149, 35, 0.1);
}

body.dark-theme .coop-highlight h3 {
    color: var(--secondary-color);
}

body.dark-theme .section-title {
    color: var(--light-text);
}

body.dark-theme .stripe-white {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-theme .stats-container {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-theme .footer {
    background: var(--primary-darker);
}

/* ============================================
   Утилиты
   ============================================ */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-secondary {
    background: var(--secondary-gradient);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.rounded-custom {
    border-radius: var(--radius-md);
}

.transition-all {
    transition: all var(--transition-normal);
}


/* ============================================
   Иконка щита в tech-info
   ============================================ */
.shield-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.shield-icon {
    font-size: 4.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(10, 75, 122, 0.3));
    transition: all var(--transition-normal);
    animation: shieldPulse 3s ease-in-out infinite;
}

.shield-icon:hover {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 8px 30px rgba(10, 75, 122, 0.4));
}

.shield-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes shieldPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Адаптивность для щита */
@media (max-width: 768px) {
    .shield-icon {
        font-size: 3rem;
    }
    
    .shield-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .shield-icon {
        font-size: 2.5rem;
    }
}