/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-large {
    font-size: 18px;
    padding: 15px 35px;
}

/* Навигация */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;

    position: fixed;   /* ✅ шапка всегда наверху окна */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;    /* выше всего остального */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    margin: 0;
}

/* Главный экран (Hero) */
.hero {
    background-color: #f5f7fa;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 20px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Главный экран (Hero) */
.hero {
    position: relative; /* ✅ Нужно для позиционирования видео */
    padding: 100px 0;
    text-align: center;
    overflow: hidden; /* ✅ Скрываем все, что выходит за рамки */
    color: #ffffff; /* ✅ Делаем текст белым по умолчанию */
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ ВИДЕО */
#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1; /* Видео на заднем плане */
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ ЗАТЕМНЕНИЯ (чтобы текст читался) */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Темный оверлей */
    z-index: 2;
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ КОНТЕНТА (поверх видео и оверлея) */
.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff; /* ✅ Убедимся, что текст белый */
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 20px;
    color: #f0f0f0; /* ✅ Чуть более тусклый белый */
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Общий заголовок секции */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Секция Особенностей */
.features {
    padding: 80px 0;
}

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

.feature-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 16px;
    color: #555;
}

/* Секция Цены */
.pricing {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

/* ✅ НОВЫЙ СТИЛЬ ДЛЯ ЯРЛЫКА */
.promo-badge {
    display: inline-block;
    background-color: #ffc107; /* Желтый */
    color: #333;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ✅ ИЗМЕНЕННЫЕ СТИЛИ ЦЕНЫ */
.pricing-card .price-original {
    font-size: 26px; /* Уменьшили */
    font-weight: 400; /* Сделали тоньше */
    color: #999; /* Сделали серым */
    text-decoration: line-through;
    margin-bottom: 0; /* Убрали отступ */
    line-height: 1;
}

.pricing-card .price-promo {
    font-size: 60px; /* Сделали крупнее */
    font-weight: 700;
    color: #007bff; /* Основной синий цвет */
    margin-bottom: 25px;
    line-height: 1.1;
}

.pricing-card .price-original span,
.pricing-card .price-promo span {
    font-size: 18px;
    font-weight: 500;
    color: #666;
}
/* ✅ КОНЕЦ ИЗМЕНЕНИЙ ЦЕНЫ */

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.pricing-features li {
    font-size: 17px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-features .check {
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-card .btn {
     /* width: 100%; */ /* Мы удалили это в прошлом шаге */
}

/* ✅ ИЗМЕНЕННЫЙ СТИЛЬ ДЛЯ ПРИМЕЧАНИЯ */
.pricing-note {
    font-size: 14px;
    color: #555;
    margin-top: 25px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.pricing-note strong {
    color: #dc3545; /* Срочный красный цвет */
    font-weight: 600;
}

/* Секция problem-solution */
.problem-solution {
    padding: 80px 0;
}

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

.problem-solution-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.problem-solution-icon {
    width: 64px;
    height: 64px;
    color: #007bff;
    margin-bottom: 20px;
}

.problem-solution-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.problem-solution-card p {
    font-size: 16px;
    color: #555;
}

/* --- Story Section --- */
.story-section {
    padding: 60px 0; /* Сохраняем отступы */
    background-color: #f0f0f0; /* Устанавливаем белый фон для всей SECTION */
    text-align: center; /* Центрируем контент */
}
.story-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
	text-align: center;
}

.story-section p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две одинаковые колонки */
    gap: var(--spacing); /* Отступ между колонками */
    align-items: center; /* Выравнивание контента по центру по вертикали */
    text-align: left; /* Текст внутри сетки будет выравниваться по левому краю */
}

.story-image {
    text-align: center; /* Центрируем изображение внутри колонки */
}

.story-image img {
    max-width: 80%; /* Изображение не будет слишком широким */
    height: auto;
    border-radius: 50%; /* Делаем изображение круглым */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Небольшая тень для объема */
}

.story-content .bio {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 0; /* Убираем нижний отступ, если это последний элемент */
}

/* --- 4. Final CTA Section (Most Important Contrast) --- */
:root {
    --primary-color: #007bff; /* Синий для кнопок */
    --accent-color: #ff9900; /* Акцентный оранжевый (для CTA!) */
    --text-color: #333;
    --bg-dark: #2c3e50;
    --spacing: 20px;
}
.final-cta {
    /* Используем акцентный оранжевый цвет для фона */
    background-color: var(--accent-color); 
    color: var(--bg-dark); /* Темный текст на оранжевом фоне для контраста */
    padding: 80px 0;
    text-align: center;
    /* Добавляем легкую тень снизу, чтобы выделить секцию */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); 
}

.final-cta h3 {
    font-size: 2.2em; /* Увеличиваем заголовок, чтобы привлечь внимание */
    color: var(--bg-dark); 
    margin-bottom: 20px;
    font-weight: 800; /* Очень жирный шрифт */
    text-transform: uppercase; /* Привлекаем внимание к экономии */
}

.final-cta p {
    font-size: 1.3em; /* Увеличиваем основной текст */
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 500;
}

.final-cta .small-text {
    font-size: 1em;
    opacity: 0.8; /* Делаем мелкий текст чуть бледнее */
    margin-top: 15px;
    font-style: italic;
}

/* Переопределяем кнопку для этой секции, чтобы она была еще более заметной */
.final-cta .btn-primary {
    background-color: var(--bg-dark); /* Темная кнопка на оранжевом фоне */
    color: white;
    /* Увеличиваем тень кнопки, чтобы она "выпрыгивала" */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
    transition: transform 0.2s;
}

.final-cta .btn-primary:hover {
    background-color: #1a242f; /* Еще темнее при наведении */
    transform: translateY(-2px); /* Эффект "нажатия" */
}


/* Футер */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

/* --- Адаптация (Media Query) --- */
@media (max-width: 768px) {
    /* Общие стили для мобильных устройств */
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* СТИЛИ ДЛЯ КАРТОЧЕК ЦЕН (PRICING GRID) */
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important; 
    }

    /* !!! КРИТИЧЕСКИЙ ФИКС ОТСТУПОВ КАРТОЧЕК !!! */
    .pricing-card {
        /* Принудительный вертикальный отступ между карточками */
        margin-bottom: 25px !important; 
        max-width: none !important;
        margin-left: auto;
        margin-right: auto;
        /* Увеличиваем нижний внутренний отступ для размещения кнопки */
        padding-bottom: 40px !important;
    	height: auto !important;
    	padding-bottom: 40px !important;
    }
    
    /* Убираем отступ у последней карточки */
    .pricing-card:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Дополнительный фикс для выделенной карточки */
    .pricing-featured {
        /* Убираем конфликтное смещение, если оно осталось */
        transform: translateY(0) !important;
    }

    
    /* Секция Story */
	.story-grid {
        grid-template-columns: 1fr; /* На мобильных устройствах - одна колонка */
        text-align: center; 
    }

    .story-image {
        margin-bottom: var(--spacing); 
    }

    .story-image img {
        max-width: 60%; 
    }
    
    /* Секция Final CTA */
	.final-cta h3 {
        font-size: 1.8em;
    }
    .final-cta p {
        font-size: 1.1em;
    }
}


/* === PRICING GRID === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* У .pricing-card убираем max-width/margin чтобы карточки стояли в ряд */
.pricing-card {
  /* удалить или закомментировать эти строки, если они есть:
     max-width: 450px;
     margin: 0 auto;
  */
  max-width: none;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* выделенная карточка */
.pricing-featured {
  border: 2px solid #007bff;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  transform: translateY(-4px);

  position: relative;      /* карточка – контейнер для бейджа */
  padding-top: 56px;       /* создаём пространство сверху под заголовок/цену */
}

.pricing-featured .promo-badge {
    position: absolute;
    top: -14px;             /* немного заходит за верхнюю рамку карточки */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;       /* больше не участвует в потоке, отступ не нужен */
    padding: 6px 14px;      /* можно чуть уменьшить, чтобы выглядел аккуратнее */
    font-size: 12px;
}

/* выравнивание кнопки внизу карточки */
.pricing-card .btn {
  margin-top: auto;
}


/* --- Cookie Banner Styles --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999; /* Поверх всего */
    display: none; /* Скрыт по умолчанию, JS его покажет */
    border-top: 1px solid #e1e1e1;
    font-family: sans-serif;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.cookie-content a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie-primary {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cookie-primary:hover {
    background-color: #155cb0;
}

.btn-cookie-outline {
    background-color: transparent;
    color: #555;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-outline:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .btn-cookie-primary, .btn-cookie-outline {
        flex: 1;
    }
}


/* --- Стили для Навигации и Гамбургера --- */

/* Контейнер для правой части (Кнопка + Гамбургер) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Стили самого гамбургера */
.hamburger {
    display: none; /* Скрыт на ПК */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Поверх меню */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация превращения в крестик (активный класс) */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Мобильное меню (скрыто по умолчанию) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Убрано за экран вправо */
    width: 250px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding: 80px 20px 20px; /* Отступ сверху под шапку */
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0; /* Выезжает */
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu .mobile-login-link {
    color: #007bff;
    border-bottom: none;
    margin-top: 10px;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Показываем гамбургер на мобильных */
    }

    /* Опционально: Скрыть кнопку Log In рядом с гамбургером, 
       если хотите оставить её только внутри меню */
    /* .btn-login-nav {
        display: none; 
    } 
    */
    
    .navbar .container {
        padding: 0 15px; /* Чуть меньше отступы по бокам на телефоне */
    }
}



/* --- Стили для Навигации и Гамбургера (Desktop + Mobile) --- */



/* Контейнер для кнопок справа */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Отступ между кнопкой Log In и Гамбургером */
}

/* Стили самого гамбургера */
.hamburger {
    display: flex; /* ВИДЕН ВСЕГДА */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002; /* Поверх меню */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация крестика */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Pricing Switch --- */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 16px;
}

.badge-save {
    background-color: #d4edda;
    color: #155724;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Стили самого переключателя (Switch) */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1a73e8; /* Ваш фирменный синий */
}

input:focus + .slider {
    box-shadow: 0 0 1px #1a73e8;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* === IMPROVED SELLING PRICE BLOCK === */

.price-block {
    margin: 25px 0 10px;
}

.price-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.price-currency {
    font-size: 26px;
    font-weight: 600;
    color: #666;
    margin-top: 10px;
    margin-right: 4px;
}

.price-main {
    font-size: 78px;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -2px;
    color: #111;
}

.price-cents {
    font-size: 22px;
    font-weight: 700;
    margin-top: 12px;
    margin-left: 4px;
    color: #333;
}

.price-period {
    font-size: 15px;
    color: #777;
    margin-top: 10px;
    font-weight: 500;
    text-transform: capitalize;
}

.price-savings {
    margin-top: 14px;
    background: #e8f9ee;
    color: #1c7c3c;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.hidden {
    display: none;
}


/* --- Dropdown Menu Styles (Mobile) --- */
.dropdown-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 15px 0; /* Совпадает с padding у ссылок */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit; /* Наследуем шрифт сайта */
}

.dropdown-content {
    display: none; /* Скрыто по умолчанию */
    background-color: #f9f9f9;
    padding-left: 20px; /* Отступ для вложенности */
}

.dropdown-content a {
    font-size: 16px; /* Чуть меньше основного текста */
    padding: 12px 0;
    font-weight: 500;
    color: #555;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Класс для открытия меню */
.dropdown-item.active .dropdown-content {
    display: block;
}

.dropdown-item.active .arrow {
    transform: rotate(180deg); /* Переворачиваем стрелку */
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* ========================================= */
/* СТИЛИ ДЛЯ РУКОВОДСТВА (MANUAL / DOCS)     */
/* ========================================= */

/* Основной контейнер */
.docs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 90px; /* Отступ под фиксированную шапку */
    display: flex;
    gap: 40px;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Боковая панель (Sidebar) */
.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

/* Оглавление (TOC) */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item { margin-bottom: 5px; }

.toc-link-h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.toc-link-h2:hover { background-color: #eef2f6; color: #007bff; }
.toc-link-h2.active { background-color: #e8f0fe; color: #007bff; }

.toc-arrow { font-size: 10px; transition: transform 0.2s; color: #999; }
.toc-item.open .toc-arrow { transform: rotate(180deg); }

.toc-sublist { list-style: none; padding-left: 20px; margin-top: 2px; display: none; }
.toc-item.open .toc-sublist { display: block; }

.toc-link-h3 {
    display: block;
    padding: 6px 12px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

.toc-link-h3:hover { color: #007bff; border-left-color: #ddd; }
.toc-link-h3.active { color: #007bff; border-left-color: #007bff; font-weight: 500; }

/* Основной контент (Статья) */
.docs-content {
    flex-grow: 1;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    min-width: 0;
}

.docs-content h1 { color: #007bff; border-bottom: 2px solid #007bff; padding-bottom: 15px; margin-bottom: 40px; margin-top: 0; font-size: 2.2em; }
.docs-content h2 { color: #202124; margin-top: 60px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; scroll-margin-top: 100px; }
.docs-content h3 { color: #444; margin-top: 30px; font-size: 1.3em; scroll-margin-top: 100px; }
.docs-content p { margin-bottom: 16px; color: #4d4d4d; }
.docs-content ul, .docs-content ol { margin-bottom: 20px; padding-left: 25px; color: #4d4d4d; }
.docs-content li { margin-bottom: 8px; }

/* Элементы оформления текста */
code { background-color: #f1f3f4; padding: 2px 6px; border-radius: 4px; font-family: 'Roboto Mono', monospace; font-size: 0.9em; color: #d63384; }

.note { background-color: #e8f0fe; border-left: 4px solid #007bff; padding: 15px; margin-bottom: 20px; border-radius: 4px; font-size: 0.95em; color: #333; }

.faq { background-color: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e9ecef; }
.question { font-weight: 700; color: #007bff; margin-bottom: 8px; display: block; }

/* Адаптив для документации */
@media (max-width: 900px) {
    .docs-wrapper { flex-direction: column; padding-top: 80px; gap: 20px; }
    .docs-sidebar { width: 100%; height: auto; position: relative; top: 0; max-height: 300px; background: white; padding: 15px; border-bottom: 1px solid #eee; }
    .docs-content { padding: 20px; box-shadow: none; }
}