:root {
    /* Colors */
    --bg: #fbfbfd;
    --text: #1d1d1f;
    --secondary: #86868b;
    --accent: #0066cc;
    --accent-hover: #0077ed;
    --card-bg: #ffffff;
    
    /* Typography & Layout */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 1200px;
    --nav-height: 60px;

    /* Z-index layers */
    --z-bg: -1;
    --z-header: 1000;
    --z-nav: 1001;
    --z-modal: 9999;
}

/* Base Reset */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    overflow-x: hidden;
    width: 100%; /* Убрано max-width: 100vw, добавлено 100% для фикса скролла */
}

body { 
    background: var(--bg); 
    color: var(--text); 
    font-family: var(--font); 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

main { flex: 1; }

#particles-canvas { 
    display: none;
    position: fixed; top: 0; left: 0; z-index: var(--z-bg); pointer-events: none; 
}

.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 22px; 
    width: 100%; 
}

/* HEADER */
header { 
    position: sticky; top: 0; z-index: var(--z-header); 
    background: rgba(251, 251, 253, 0.85); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    height: var(--nav-height);
    display: flex; align-items: center;
}

nav { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-weight: 700; font-size: 18px; text-decoration: none; 
    color: var(--text); letter-spacing: -0.01em; z-index: var(--z-nav); 
}

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { 
    font-size: 13px; text-decoration: none; color: var(--secondary); 
    transition: color 0.2s ease; font-weight: 500; 
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* Повышена специфичность вместо !important */
.nav-links a.contact-btn { font-weight: 600; color: var(--accent); }

/* HAMBURGER */
.hamburger { display: none; cursor: pointer; z-index: var(--z-nav); }
.hamburger span { 
    display: block; width: 25px; height: 2px; 
    background: var(--text); margin: 5px 0; 
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

/* HERO SECTION */
.hero { 
    padding-top: 140px; 
    padding-bottom: 80px; 
    text-align: center; 
}
.hero h1 { 
    font-size: clamp(42px, 8vw, 88px); line-height: 1.05; 
    letter-spacing: -0.03em; font-weight: 700; margin-bottom: 24px; 
}
.hero p { 
    font-size: clamp(18px, 4vw, 24px); color: var(--secondary); 
    max-width: 700px; margin: 0 auto 40px; 
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn { 
    display: inline-block; padding: 16px 32px; border-radius: 980px; 
    font-weight: 600; text-decoration: none; font-size: 15px; border: none; cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary { 
    background: var(--accent); color: white; 
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3); 
}
.btn-primary:hover { 
    background: var(--accent-hover); transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4); 
}
.btn-secondary {
    background: transparent; color: var(--accent);
    border: 1px solid rgba(0, 102, 204, 0.3);
}
.btn-secondary:hover {
    background: rgba(0, 102, 204, 0.05);
}

/* FEATURES GRID */
.features { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; padding: 80px 0; 
}
.f-card { 
    background: var(--card-bg); padding: 40px; border-radius: 24px; 
    border: 1px solid rgba(0,0,0,0.05); height: 100%; 
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.f-card:hover { 
    transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); 
    border-color: rgba(0, 102, 204, 0.1); 
}
.f-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--text); }
.f-card p { color: var(--secondary); font-size: 16px; line-height: 1.5; }

/* STANDARD PAGE CONTENT */
.page-header { padding: 100px 0 40px; text-align: center; }
.page-header h1 { font-size: 48px; font-weight: 700; margin-bottom: 16px; }
.page-header p { font-size: 20px; color: var(--secondary); max-width: 600px; margin: 0 auto; }
.content-section { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.content-section h2 { font-size: 32px; margin: 40px 0 20px; }
.content-section p { margin-bottom: 20px; font-size: 17px; color: #333; }
.content-section ul, .content-section ol { margin-bottom: 20px; padding-left: 20px; }
.content-section li { margin-bottom: 10px; font-size: 17px; color: #333; }

/* FOOTER */
footer { 
    background: var(--bg); 
    border-top: 1px solid rgba(0,0,0,0.06); 
    padding: 60px 0 60px;
    margin-top: auto;
}
.footer-content {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; 
    margin-bottom: 60px; 
}
.footer-col strong { 
    display: block; color: var(--text); font-size: 14px; 
    font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-col a { 
    display: block; color: var(--secondary); text-decoration: none; 
    font-size: 14px; margin-bottom: 12px; transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover { 
    color: var(--accent); transform: translateX(4px); 
}
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 30px;
    display: flex; flex-direction: column; gap: 15px;
}
.copyright { font-size: 13px; font-weight: 500; color: var(--text); }
.disclaimer { font-size: 12px; line-height: 1.5; color: #999; max-width: 800px; }

/* COOKIE BANNER */
#cookie-banner {
    display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(29, 29, 31, 0.9); backdrop-filter: blur(12px);
    padding: 16px 24px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); z-index: var(--z-modal);
    align-items: center; gap: 20px; width: 90%; max-width: 500px; justify-content: space-between;
}
#cookie-banner p { margin: 0; color: #f5f5f7; font-size: 13px; line-height: 1.4; }
#cookie-banner button {
    background: #fff; color: #000; border: none; padding: 8px 20px;
    border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 12px;
    transition: background-color 0.2s ease; white-space: nowrap;
}
#cookie-banner button:hover { background: #e5e5e5; }

/* =========================================
   БЛОГ
========================================= */
.featured-article { 
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; background: var(--card-bg); 
    border-radius: 32px; overflow: hidden; margin-bottom: 64px; border: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.04); transition: transform 0.4s ease, box-shadow 0.4s ease; text-decoration: none; color: inherit;
}
.featured-article:hover { transform: translateY(-4px); box-shadow: 0 40px 80px rgba(0,0,0,0.06); }
.featured-img { background: #e8e8ed; width: 100%; height: 100%; object-fit: cover; }
.featured-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.tag { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.featured-content h2 { font-size: 32px; margin-bottom: 16px; line-height: 1.1; }
.featured-content p { color: var(--secondary); font-size: 18px; margin-bottom: 24px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; margin-bottom: 80px; }
.card { text-decoration: none; color: inherit; }
.card:hover .card-img-box { transform: scale(1.02); }
.card-img-box { width: 100%; aspect-ratio: 16/9; background: #e8e8ed; border-radius: 20px; overflow: hidden; margin-bottom: 20px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.3; letter-spacing: -0.01em; }
.card p { font-size: 16px; color: var(--secondary); line-height: 1.5; }
.meta { font-size: 12px; color: var(--secondary); margin-top: 12px; display: block; }

.dzen-promo { margin: 80px auto; padding: 0; }
.dzen-card {
    position: relative; background: #313131; border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px; padding: 60px 40px; text-align: center; overflow: hidden;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.dzen-glow {
    position: absolute; top: -50%; left: 50%; transform: translate(-50%, 0);
    width: 60%; height: 200%; background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none; z-index: 0;
}
.dzen-content { position: relative; z-index: 1; }
.dzen-icon { margin-bottom: 30px; display: inline-block; }
.dzen-content h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 600; margin: 0 0 16px; color: #ffffff; letter-spacing: -0.02em; }
.dzen-content p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); max-width: 480px; margin: 0 auto 40px; }
.dzen-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #ffffff; color: #000000; padding: 16px 32px; border-radius: 100px;
    font-weight: 600; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; font-size: 16px;
}
.dzen-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.4); }

/* =========================================
   ОБУЧЕНИЕ (Наставничество)
========================================= */
.hero-training { padding: 80px 0 40px; }
.hero-training h1 { font-size: clamp(40px, 8vw, 72px); line-height: 1.1; margin-bottom: 24px; }

.badge { 
    display: inline-block; padding: 6px 14px; background: rgba(0, 102, 204, 0.1); 
    color: var(--accent); border-radius: 20px; font-size: 12px; font-weight: 600; 
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 24px;
}

.program { padding: 60px 0; }
.program-title { font-size: 40px; font-weight: 700; margin-bottom: 60px; text-align: center; letter-spacing: -0.02em; }

.week-card {
    background: var(--card-bg); border-radius: 32px; padding: 48px; margin-bottom: 32px;
    display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
    border: 1px solid rgba(0,0,0,0.05); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.week-card:hover { transform: scale(1.01); box-shadow: 0 40px 80px rgba(0,0,0,0.04); }

.week-info { border-right: 1px solid #f2f2f7; }
.week-label { font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; display: block; }
.week-info h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }

.week-details ul { list-style: none; padding: 0; }
.week-details li { 
    font-size: 18px; color: var(--text); margin-bottom: 12px; 
    display: flex; align-items: flex-start; 
}
.week-details li::before { 
    content: "✓"; color: var(--accent); font-weight: 900; margin-right: 12px; font-size: 16px; margin-top: 4px;
}

.pricing { 
    padding: 80px 0; background: var(--card-bg); border-radius: 40px; 
    margin-bottom: 80px; text-align: center; border: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}
.price-value { font-size: 72px; font-weight: 700; margin: 24px 0; letter-spacing: -0.04em; }
.price-value span { font-size: 24px; color: var(--secondary); vertical-align: middle; }

/* =========================================
   FAQ
========================================= */
.faq-grid { max-width: 800px; margin: 0 auto 100px; padding: 0 20px; }
.faq-item { 
    background: var(--card-bg); border-radius: 20px; padding: 30px; 
    margin-bottom: 16px; border: 1px solid rgba(0,0,0,0.05); 
    cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.faq-item h3 { 
    font-size: 20px; margin-bottom: 0; display: flex; 
    justify-content: space-between; align-items: center; 
}
.faq-item p { 
    color: var(--secondary); line-height: 1.6; font-size: 16px; 
    display: none; margin-top: 16px; 
}
.faq-item.active p { display: block; animation: fadeIn 0.3s ease; }
.faq-icon { 
    font-weight: 300; font-size: 28px; color: var(--secondary); 
    transition: transform 0.3s ease, color 0.3s ease; 
}
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   МАНИФЕСТ
========================================= */
.manifesto-wrapper { 
    flex: 1; display: flex; align-items: center; justify-content: center; 
    text-align: center; padding: 100px 20px; min-height: 60vh;
}
.manifesto-container { max-width: 900px; }
.manifesto-wrapper h1 { 
    font-size: clamp(42px, 8vw, 88px); letter-spacing: -0.04em; 
    margin-bottom: 40px; font-weight: 700;
}
.manifesto-wrapper p { 
    font-size: clamp(20px, 4vw, 32px); line-height: 1.5; 
    color: var(--secondary); font-weight: 500;
}
.accent-text { color: var(--text); font-weight: 700; }

/* =========================================
   ГЛОССАРИЙ
========================================= */
.glossary-container { max-width: 900px; margin: 0 auto 80px; }
.term-card { 
    background: var(--card-bg); border-radius: 24px; padding: 40px; 
    margin-bottom: 24px; border: 1px solid rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.term-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.term-card h2 { font-size: 28px; margin-bottom: 12px; color: var(--accent); letter-spacing: -0.02em; }
.term-card p { font-size: 18px; color: var(--text); line-height: 1.6; }
.tag-category { 
    display: inline-block; padding: 6px 12px; background: #f5f5f7; border-radius: 6px; 
    font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; 
    color: var(--secondary); letter-spacing: 0.5px;
}

/* =========================================
   АУДИТ
========================================= */
.audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; padding: 60px 0; }
.audit-card { 
    background: var(--card-bg); padding: 48px; border-radius: 32px; 
    border: 1px solid rgba(0,0,0,0.05); transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; 
}
.audit-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.04); border-color: rgba(0, 102, 204, 0.1); }
.step-label { font-size: 14px; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; display: block; letter-spacing: 0.5px; }
.audit-card h3 { font-size: 24px; margin-bottom: 16px; letter-spacing: -0.01em; }
.audit-card p { color: var(--secondary); line-height: 1.6; }
.roi-section { 
    background: var(--card-bg); border-radius: 40px; padding: 80px 40px; text-align: center; 
    border: 1px solid rgba(0,0,0,0.05); margin: 40px 0 100px; box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}
.roi-value { font-size: clamp(80px, 10vw, 120px); font-weight: 800; color: var(--text); letter-spacing: -0.05em; line-height: 1; }
.roi-text { font-size: clamp(18px, 3vw, 24px); color: var(--secondary); margin-bottom: 40px; margin-top: 10px; }

/* =========================================
   КОРПОРАТИВНОЕ ОБУЧЕНИЕ
========================================= */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 80px; }
.stat-item { text-align: center; padding: 30px; background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,0.05); }
.stat-num { font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.stat-desc { font-size: 14px; color: var(--secondary); font-weight: 500; }
.section-title { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 40px; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 80px; }
.module-card { background: var(--card-bg); padding: 30px; border-radius: 24px; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.module-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.module-icon { font-size: 40px; margin-bottom: 20px; }
.module-card h3 { font-size: 20px; margin-bottom: 15px; }
.module-card ul { list-style: none; padding: 0; }
.module-card li { font-size: 14px; color: var(--secondary); margin-bottom: 10px; padding-left: 15px; position: relative; }
.module-card li::before { content: "•"; color: var(--accent); position: absolute; left: 0; font-weight: bold; }
.formats-list { max-width: 800px; margin: 0 auto 80px; }
.format-row { padding: 30px; background: #fff; border-radius: 20px; margin-bottom: 20px; border: 1px solid rgba(0,0,0,0.05); }
.format-row h3 { font-size: 18px; margin-bottom: 8px; }
.format-row p { font-size: 15px; color: var(--secondary); margin: 0; }
.security-block { background: #1d1d1f; color: #fff; padding: 60px 40px; border-radius: 32px; text-align: center; max-width: 900px; margin: 0 auto 80px; }
.security-block h3 { margin-bottom: 20px; font-size: 24px; }
.security-block p { color: #86868b; line-height: 1.6; max-width: 700px; margin: 0 auto; }

/* =========================================
   КНОПКА "НАВЕРХ"
========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    z-index: 998; /* Поверх контента, но под мобильным меню */
    
    /* Скрыта по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Центрирование стрелочки */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Класс, который добавляет JS при скролле */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px); /* Кнопка приподнимается при наведении */
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
}

/* Красивая стрелочка (SVG) */
.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
/* =========================================
   КАРТА САЙТА (Все страницы)
========================================= */
.sitemap-section {
    padding: 80px 0;
}

.sitemap-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.02em;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sitemap-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.sitemap-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 12px;
}

.sitemap-list a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

/* Эффект стрелочки при наведении */
.sitemap-list a::before {
    content: "→";
    opacity: 0;
    margin-left: -15px;
    color: var(--accent);
    transition: all 0.2s ease;
    font-size: 14px;
}

.sitemap-list a:hover {
    color: var(--accent);
    transform: translateX(15px); /* Текст чуть сдвигается вправо */
}

.sitemap-list a:hover::before {
    opacity: 1;
    margin-right: 8px;
    margin-left: 0;
}
/* ==========================================================
   МЕДИАЗАПРОСЫ (Сгруппированные)
========================================================== */

@media (max-width: 850px) {
    /* Блог */
    .featured-article { grid-template-columns: 1fr; gap: 0; }
    .featured-content { padding: 30px; }

    /* Обучение */
    .week-card { grid-template-columns: 1fr; padding: 32px; }
    .week-info { border-right: none; border-bottom: 1px solid #f2f2f7; padding-bottom: 24px; }
    .price-value { font-size: 52px; }
}

@media (max-width: 768px) {
    /* 1. Делаем отступы по краям 15px на мобильных */
    .container {
        padding: 0 15px;
    }

    /* 2. Чиним куки-баннер */
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        width: calc(100% - 30px);
        bottom: 15px;
        padding: 16px 15px;
        gap: 12px;
        border-radius: 24px;
    }
    #cookie-banner p { font-size: 12px; }
    #cookie-banner button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    /* Навигация и Гамбургер */
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
        background: rgba(251, 251, 253, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.3s ease-in-out; z-index: var(--z-header);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 24px; margin: 15px 0; }
    
    .hamburger { display: block; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    /* Главный экран */
    .hero { 
        padding-top: 120px; 
        padding-bottom: 40px; 
        text-align: center; 
    }
    .hero h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.2; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 15px; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }

    /* Карточки */
    .features { grid-template-columns: 1fr; gap: 20px; }

    /* Корпоративное обучение */
    .stats-grid { grid-template-columns: 1fr; }
    .security-block { padding: 40px 20px; }
    
    /* Футер */
    footer { padding: 80px 0 80px; }
}
/* =========================================
   БЛОК ПЕРЕЛИНКОВКИ "ЭКОСИСТЕМА"
========================================= */
.ecosystem-section {
    padding: 60px 0 100px;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 60px;
}

.ecosystem-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.eco-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.eco-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.08);
    border-color: rgba(0, 102, 204, 0.3);
}

/* Иконка слева */
.eco-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    transition: 0.3s;
    flex-shrink: 0;
}

.eco-card:hover .eco-icon-box {
    background: var(--accent);
    color: #fff;
}

/* Текст */
.eco-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.eco-content p {
    font-size: 14px;
    color: var(--secondary);
    margin: 0;
    line-height: 1.4;
}

/* Стрелочка справа */
.eco-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: 0.3s;
}

.eco-card:hover .eco-arrow {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(-45deg); /* Эффект взлета */
}

/* Метки (теги) */
.eco-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge-hot { background: rgba(255, 59, 48, 0.1); color: #ff3b30; }
.badge-new { background: rgba(52, 199, 89, 0.1); color: #34c759; }
.badge-pro { background: rgba(0, 122, 255, 0.1); color: #007aff; }

@media (max-width: 768px) {
    .ecosystem-grid { grid-template-columns: 1fr; }
    .eco-card { padding: 20px; }
}
/* =========================================
   БОЛЬШОЙ ХАБ РЕСУРСОВ (BENTO GRID)
========================================= */
.resource-hub-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02)); /* Легкий градиент */
    border-top: 1px solid rgba(0,0,0,0.06);
}

.hub-header {
    margin-bottom: 60px;
    text-align: left;
    max-width: 800px;
}

.hub-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hub-header p {
    font-size: 18px;
    color: var(--secondary);
}

/* СЕТКА */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); /* Широкие карточки */
    gap: 30px;
}

/* КАРТОЧКА */
.hub-card {
    background: var(--card-bg);
    border-radius: 32px; /* Сильное скругление */
    padding: 40px; /* Много воздуха внутри */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px; /* Фиксированная минимальная высота */
    border: 1px solid rgba(0,0,0,0.06);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hub-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    border-color: rgba(0, 102, 204, 0.2);
}

/* Верхняя часть карточки */
.hub-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hub-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

/* Бейджики (Категории) */
.hub-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-service { background: rgba(0, 102, 204, 0.08); color: var(--accent); }
.tag-free { background: rgba(52, 199, 89, 0.1); color: #34c759; }
.tag-info { background: rgba(142, 142, 147, 0.1); color: var(--secondary); }

/* Контент */
.hub-card h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hub-card p {
    font-size: 17px;
    color: var(--secondary);
    line-height: 1.5;
}

/* Стрелочка внизу */
.hub-arrow-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 15px;
    opacity: 0.8;
    transition: 0.3s;
}

.hub-card:hover .hub-arrow-row {
    opacity: 1;
    transform: translateX(5px);
}

/* Адаптив */
@media (max-width: 768px) {
    .hub-grid { grid-template-columns: 1fr; }
    .hub-card { padding: 30px; min-height: auto; }
    .hub-header h2 { font-size: 32px; }
}