* {
    box-sizing: border-box;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    background-color: #f4f6f9;
    color: #333;
    margin: 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 100;
}

.site-header-container {
    max-width: 1500px; /* Совпадает с максимальной шириной главного .container */
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Логотип */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    user-select: none;
}

.site-logo:hover .logo-text .highlight {
    color: #047857; /* Легкое темнение при наведении */
}

.logo-icon {
    display: block;
    flex-shrink: 0;
}

.logo-text {
    font-size: 21px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1;
}

.logo-text .highlight {
    color: #059669; /* Денежный зеленый акцент */
    font-weight: 700;
    transition: color 0.15s ease;
}

.site-header-right {
    display: flex;
    align-items: center;
}

/* Отступ сверху для главного контейнера с контентом */
.container {
    margin-top: 20px !important;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .site-header-container {
        padding: 10px 15px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .container {
        margin-top: 15px !important;
    }
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.container.breadcrumb {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #1a2a3a;
    border-bottom: 2px solid #dbeaff;
    padding-bottom: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
}

.insider-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.insider-table th {
    background-color: #dbeaff;
    color: #003366;
    padding: 7px 8px;
    border: 1px solid #b8d3ff;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.insider-table td {
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.row-purchase {
    background-color: #eafaf1 !important;
}

.row-sale {
    background-color: #fdedec !important;
}
.insider-table tr.row-sale-oe {
    background-color: #ffffcc !important;
}

.insider-table tbody tr:hover {
    filter: brightness(0.96);
}

.text-right {
    text-align: right;
}

a {
    color: #0000cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ticker-link {
    font-weight: bold;
    color: #000099;
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}
/* Компактная ширина для названия компании */
table.insider-table td.col-company,
table.insider-table th.col-company {
    max-width: 240px;
    width: 240px;
    white-space: normal; /* Разрешаем перенос длинных слов/названий */
    /*word-break: break-word;*/ /* Переносим слишком длинные слова аккуратно */
}
/* Тултип для заголовков таблиц */
.section-title {
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #555;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    cursor: help;
    position: relative;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 125%;
    left: 0;
    background-color: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    white-space: normal;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    line-height: 1.4;
    border: 1px solid #444;
}

/* Базовый класс для всех заглавных плашек */
.section-title {
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px 4px 0 0;
    margin-top: 20px;
}

/* Ссылка внутри заголовка */
.section-title a.title-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-title a.title-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Цветовые темы для каждого типа выборки */
.theme-cluster {
    background-color: #0d5c3a; /* Тёмно-изумрудный (Кластеры) */
    border-left: 4px solid #2ecc71;
}

.theme-buys {
    background-color: #1e4620; /* Лесной зелёный (Все покупки) */
    border-left: 4px solid #27ae60;
}

.theme-pennystocks {
    background-color: #4a3b00; /* Темно-янтарный (Дешевые акции) */
    border-left: 4px solid #f1c40f;
}

.theme-sales {
    background-color: #5c1d1d; /* Тёмно-красный (Продажи) */
    border-left: 4px solid #e74c3c;
}

.theme-stream {
    background-color: #2c3e50; /* Графитовый / Нейтральный поток */
    border-left: 4px solid #3498db;
}

/* Иконка тултипа */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 130%;
    right: 0;
    background-color: #1a1a1a;
    color: #f1f1f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1000;
    line-height: 1.4;
    border: 1px solid #444;
}
/* Базовый класс для плашки заголовка */
.section-title {
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    border-radius: 4px 4px 0 0;
    margin-top: 20px;
}

/* Контейнер-обертка: держит ссылку и иконку рядом */
.title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Отступ между ссылкой и значком '?' */
    position: relative;
}

.section-title a.title-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.section-title a.title-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Цветовые темы */
.theme-cluster { background-color: #0d5c3a; border-left: 4px solid #2ecc71; }
.theme-buys { background-color: #1e4620; border-left: 4px solid #27ae60; }
.theme-pennystocks { background-color: #4a3b00; border-left: 4px solid #f1c40f; }
.theme-sales { background-color: #5c1d1d; border-left: 4px solid #e74c3c; }
.theme-stream { background-color: #2c3e50; border-left: 4px solid #3498db; }

/* Иконка тултипа рядом с текстом */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    position: relative;
}

/* Выплывающее окно тултипа */
.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 130%;
    left: 0; /* Всплывает ровно под иконкой/заголовком */
    background-color: #1a1a1a;
    color: #f1f1f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 1000;
    line-height: 1.4;
    border: 1px solid #444;
}

/* Нижняя полоса подвала */
/* Нижняя полоса подвала */
.site-bottom-footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 0;
    font-size: 13px;
    color: #64748b;
}

.site-bottom-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Левая часть: копирайт + меню */
.footer-left-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-right-content {
	display: flex;
}
.footer-copyright {
    font-weight: 400;
    color: #475569;
    white-space: nowrap;
}

/* Навигация */
.footer-links-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links-nav a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links-nav a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.footer-links-nav .sep {
    color: #cbd5e1;
    font-size: 12px;
    user-select: none;
}

/* Правая часть: стрелочка */
.scroll-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-left: 16px;
}

.scroll-to-top-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .site-bottom-container {
        flex-direction: column-reverse;
        gap: 12px;
        align-items: center;
    }

    .footer-left-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-links-nav {
        justify-content: center;
    }

    .scroll-to-top-btn {
        margin-left: 0;
    }
}

/* SEO Text Block Styles */
.seo-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.seo-content {
    max-height: 120px; /* Высота в свернутом состоянии */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Эффект плавного затухания снизу в свернутом виде */
.seo-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Стили при разворачивании */
.seo-block.is-expanded .seo-content {
    max-height: 2000px; /* Запас высоты для полного текста */
}

.seo-block.is-expanded .seo-content::after {
    opacity: 0;
}

/* Оформление заголовков и списков внутри SEO-текста */
.seo-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.seo-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #343a40;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.seo-content p {
    margin-bottom: 0.75rem;
}

.seo-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
}

.seo-content li {
    margin-bottom: 0.25rem;
}

/* Кнопка сворачивания/разворачивания */
.seo-toggle-btn {
    display: block;
    margin: 1rem auto 0 auto;
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0d6efd;
    background-color: transparent;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.seo-toggle-btn:hover {
    color: #ffffff;
    background-color: #0d6efd;
}
/* FAQ Section Styles */
.faq-section {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #dbeaff;
    padding-bottom: 8px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8fafc;
    transition: border-color 0.2s ease;
}

.faq-item.is-open {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.faq-question:hover {
    color: #059669; /* Зеленый фирменный акцент */
    background-color: #f1f5f9;
}

.faq-icon {
    font-size: 16px;
    font-weight: 700;
    color: #64748b;
    margin-left: 12px;
    transition: transform 0.25s ease;
    user-select: none;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg); /* Плюс превращается в крестик */
    color: #059669;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 16px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding: 4px 16px 14px 16px;
}

.faq-answer p {
    margin: 0;
}