/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ===== */
:root {
    /* Цветовая палитра */
    --primary-dark: #0A192F;       /* Темно-синий фон */
    --primary: #112240;           /* Синий средний */
    --primary-light: #233554;     /* Светло-синий */
    
    --accent: #64FFDA;           /* Неоново-голубой */
    --accent-light: #8AFFE8;     /* Светло-голубой */
    --accent-dark: #4FD1C7;      /* Темно-голубой */
    
    --text-primary: #E6F1FF;     /* Белый текст */
    --text-secondary: #8892B0;   /* Серый текст */
    --text-muted: #5A6986;       /* Темно-серый текст */
    
    --card-bg: #112240;          /* Фон карточек */
    --card-border: #233554;      /* Граница карточек */
    
    --success: #64FFDA;          /* Успех */
    --warning: #FFD166;          /* Предупреждение */
    --danger: #FF6B6B;           /* Ошибка */
    
    --gradient-primary: linear-gradient(135deg, #64FFDA 0%, #4FD1C7 100%);
    --gradient-dark: linear-gradient(135deg, #0A192F 0%, #112240 100%);
    
    /* Тени */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(100, 255, 218, 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;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ТИПОГРАФИЯ ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.7;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(35, 53, 84, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.btn-nav {
    background: var(--gradient-primary);
    color: var(--primary-dark) !important;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== КНОПКИ ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== СЕКЦИИ ===== */
.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 120px 0;
    min-height: 100vh;
    align-items: center;
}

.section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    margin-bottom: 4rem;
    width: 100%;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
    padding-top: 100px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    margin-bottom: 2rem;
}

.badge-text {
    display: inline-block;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(136, 146, 176, 0.2);
}

.hero-visual {
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--primary);
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--primary-light);
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    background: var(--primary-dark);
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--gradient-dark);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo {
    font-size: 1.8rem;
}

.app-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.app-content {
    flex: 1;
    padding: 20px;
}

.app-day {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.app-exercises {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exercise {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-normal);
}

.exercise.active {
    border-color: var(--accent);
    background: rgba(100, 255, 218, 0.05);
}

.ex-icon {
    font-size: 1.5rem;
}

.ex-info {
    flex: 1;
}

.ex-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.ex-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

.progress-bar {
    height: 6px;
    background: var(--primary-light);
    border-radius: 3px;
    overflow: hidden;
    width: 80px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ===== ВКЛАДКИ ===== */
.tabs-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--card-border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn.active {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.tab-btn:hover:not(.active) {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.tabs-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ===== СЕТКИ ===== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.result-graph {
    height: 8px;
    background: var(--primary-light);
    border-radius: 4px;
    overflow: hidden;
}

.graph-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* ===== ФОРМЫ ===== */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-mission {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: var(--transition-normal);
}

.link-group a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-disclaimer {
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid var(--danger);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--card-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 80px 0;
        min-height: auto;
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
}
/* ===== ИСПРАВЛЕНИЯ ДЛЯ ПЕРЕКЛЮЧЕНИЯ СЕКЦИЙ ===== */

/* По умолчанию все секции скрыты */
.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 120px 0;
    min-height: 100vh;
    align-items: center;
}

/* Активная секция видна */
.section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Особые отступы для героя */
.hero.active {
    padding-top: 100px;
}

/* Исправление для мобильного меню */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        padding: 1rem;
        border-top: 1px solid var(--card-border);
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(35, 53, 84, 0.5);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .btn-nav {
        margin-top: 1rem;
        text-align: center;
    }
}

/* Анимация для вкладок */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Исправление для контейнера героя на мобильных */
@media (max-width: 992px) {
    .hero .container {
        display: block;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
}

/* Убедимся что кнопки формы работают */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Анимация загрузки */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}