* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ECEFF1;
    font: 17px system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: Impact, sans-serif;
    font-weight: normal;
    line-height: 1.2;
    color: #0277bd;
    margin-bottom: 15px;
    font-size: 36px;
    text-transform: uppercase;
}

h2, h3 {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: normal;
    line-height: 1.5;
    color: #111;
    margin-bottom: 15px;
}

h2 { font-size: 27px; font-weight: 400; letter-spacing: 0.3px; }
h3 { font-size: 23px; font-weight: 400; letter-spacing: 0.2px; }

.legal-container {
    display: flex;
    width: 100%;
    margin: 0;
    background: #ffffff;
    min-height: 100vh;
}

.legal-sidebar {
    width: 350px;
    background: #ffffff;
    border-right: 1px solid #e1e5e9;
    flex-shrink: 0;
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.law-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.law-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.law-name {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.chapters-nav {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.chapter {
    border-bottom: 1px solid #f0f2f5;
}

.chapter-title {
    padding: 16px 20px;
    background: #f8f9fb;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 14px;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chapter-title:hover {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.chapter-title.active {
    background: #e8f5e8;
    color: #2e7d32;
    border-left-color: #4caf50;
}

.chapter-toggle {
    font-size: 16px;
    transition: transform 0.3s ease;
    color: #666;
}

.chapter.open .chapter-toggle {
    transform: rotate(90deg);
}

.paragraphs-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.chapter.open .paragraphs-list {
    max-height: none;
}

.paragraph {
    border-bottom: 1px solid #f8f8f8;
}

.paragraph-title {
    padding: 12px 20px 12px 30px;
    background: #fafafa;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.paragraph-title:hover {
    background: #f0f0f0;
    color: #2196f3;
}

.paragraph-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #888;
}

.paragraph.open .paragraph-toggle {
    transform: rotate(90deg);
}

.articles-list {
    max-height: none;
    overflow: visible;
}

.paragraph:not(.open) .paragraph-title + .articles-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.paragraph.open .paragraph-title + .articles-list {
    max-height: none;
    overflow: visible;
}

.article-link {
    display: block;
    padding: 10px 20px 10px 50px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    position: relative;
    font-size: 13px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-link:hover {
    background: #f8f9fa;
    color: #1976d2;
    padding-left: 55px;
    text-decoration: none;
}

.article-link.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    border-left: 3px solid #2196f3;
}

.article-link.active::before {
    content: '▶';
    position: absolute;
    left: 30px;
    color: #2196f3;
    font-size: 10px;
}

.article-link:last-child {
    border-bottom: none;
}

.legal-content {
    flex: 1;
    padding: 0;
    background: white;
    overflow-y: auto;
}

.right-sidebar {
    width: 350px;
    background: #ffffff;
    border-left: 1px solid #e1e5e9;
    flex-shrink: 0;
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.right-header {
    background: linear-gradient(135deg, #D44B38 0%, #B73C2A 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-header:hover {
    background: linear-gradient(135deg, #B73C2A 0%, #9A2F20 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.qa-nav {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.qa-item {
    border-bottom: 1px solid #f0f2f5;
}

.qa-link {
    display: block;
    padding: 18px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.qa-link:hover {
    background: #f8f9fa;
    color: #1976d2;
    text-decoration: none;
}

.qa-question {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #1976d2;
    line-height: 1.3;
}

.qa-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qa-views svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.content-wrapper {
    padding: 40px;
    max-width: 100%;
    padding-top: 10px;
}

.legal-breadcrumb {
    margin: 0px 40px 6px 40px;
    font: 17px system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    background: none;
    padding: 6px 0;
    border-radius: 0;
    border-left: none;
}

.legal-breadcrumb a {
    color: #0277bd;
    text-decoration: none;
}

.legal-breadcrumb a:hover {
    text-decoration: underline;
}

.legal-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.legal-text {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.legal-text p {
    margin-bottom: 15px;
}

.legal-text ol, .legal-text ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.legal-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-related {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.legal-related h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
}

.legal-related a {
    color: #1976d2;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    transition: color 0.2s ease;
}

.legal-related a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.legal-related a:last-child {
    border-bottom: none;
}

.top-header {
    background: #000;
    color: white;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    height: 44px;
}

.header-logo {
    padding: 0 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    height: 44px;
}

.header-logo:hover {
    color: #69BB60;
    text-decoration: none;
}

.header-navigation {
    display: flex;
    align-items: center;
    height: 44px;
}

.nav-button {
    padding: 0 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 44px;
    transition: all 0.2s ease;
    font-size: 14px;
    border-left: 1px solid #333;
}

.nav-button:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

.nav-button.callback-btn {
    background: #69BB60;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    border-left: none;
}

.nav-button.callback-btn:hover {
    background: #5BA352;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    height: 44px;
}

.mobile-header {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.useful-links {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.useful-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: white;
    color: #495057;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.useful-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
    text-decoration: none;
}

.useful-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.share-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.share-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.share-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    margin-right: 10px;
}

.share-url {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    color: #495057;
}

.share-copy-btn {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    justify-content: center;
}

.share-copy-btn:hover {
    background: #0056b3;
}

.share-copy-btn svg {
    width: 16px;
    height: 16px;
}

.share-copy-btn.copied {
    background: #28a745;
}

.share-social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.share-social-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.share-social-btn.telegram {
    background: #0088cc;
}

.share-social-btn.telegram:hover {
    background: #006699;
}

.share-social-btn.vk {
    background: #4c75a3;
}

.share-social-btn.vk:hover {
    background: #3b5a82;
}

.share-social-btn.ok {
    background: #ee8208;
}

.share-social-btn.ok:hover {
    background: #cc6f07;
}

.share-social-btn.whatsapp {
    background: #25d366;
}

.share-social-btn.whatsapp:hover {
    background: #1da851;
}

.share-social-btn svg {
    width: 16px;
    height: 16px;
}

/* Прилипающее меню - работает только для десктопа */
.sticky-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    height: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

.sticky-menu.visible {
    transform: translateY(0);
}

/* Контейнер внутри прилипающего меню */
.sticky-menu .container {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
}

/* Мобильная версия прилипающего меню - ПОЛНОСТЬЮ СКРЫТА */
.sticky-menu .mobile-header {
    display: none !important;
}

/* Десктопная версия прилипающего меню - показывается по умолчанию */
.sticky-menu .desktop-menu {
    display: flex;
    width: 100%;
    height: 70px;
    align-items: center;
    justify-content: space-between;
}

/* Стили для десктопных ссылок прилипающего меню */
.sticky-menu .desktop-menu span a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    height: 60px;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
    font-size: 14px;
    border-left: none;
}

.sticky-menu .desktop-menu span a:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

.sticky-menu .desktop-menu .block-btn a,
.sticky-menu .desktop-menu .block-btn a.btn-green,
.sticky-menu .block-btn a.btn-green,
.sticky-menu a.btn-green {
    background: #69BB60;
    color: white;
    text-decoration: none;
    padding: 0 15px;
    height: 55px;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    border: none;
    outline: none;
}

.sticky-menu .desktop-menu .block-btn a:hover,
.sticky-menu .desktop-menu .block-btn a.btn-green:hover,
.sticky-menu .block-btn a.btn-green:hover,
.sticky-menu a.btn-green:hover {
    background: #71C967;
    color: white;
    text-decoration: none;
}

/* В мобильной версии полностью скрываем прилипающее меню */
@media screen and (max-width: 768px) {
    .sticky-menu {
        display: none !important;
    }
}

/* Боковая панель для мобильных */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay для затемнения при открытии sidebar */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Планшеты */
@media screen and (max-width: 768px) {
    .legal-sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 1002;
        top: 60px;
        left: 0;
        width: 100%;
        max-width: 350px;
        height: calc(100vh - 60px);
        transition: transform 0.3s ease;
        background: white;
        display: flex;
        flex-direction: column;
    }
    
    .legal-sidebar.open {
        transform: translateX(0);
    }
    
   .right-sidebar {
    position: static;
    transform: none;
    z-index: auto;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    transition: none;
    background: white;
    display: flex;
    flex-direction: column;
    order: 3;
    border-left: none;
    border-top: 1px solid #e1e5e9;
    margin-top: 30px;
}
    
    .qa-nav {
        overflow: visible;
        max-height: none;
    }
    
    .content-wrapper {
        padding: 20px;
        padding-top: 20px;
    }
    
    .legal-breadcrumb {
        margin: 0px 20px 0px 20px;
    }
    
    .legal-title {
        font-size: 24px;
    }
    
    .desktop-header {
        display: none;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .legal-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-button {
        justify-content: center;
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        min-height: 44px;
    }
    
    .chapter-title, .paragraph-title {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.3;
    }
    
    .article-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.3;
    }
    
    .qa-link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.4;
    }
    
    .useful-links {
        gap: 5px;
        flex-direction: column;
    }
    
    .useful-link {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
        width: 100%;
        display: block;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .useful-link svg {
        width: 12px;
        height: 12px;
    }
    
    .share-section {
        padding: 10px;
        margin: 15px 0;
    }
    
    .share-content {
        gap: 8px;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    
    .share-label {
        font-size: 13px;
        margin-right: 8px;
    }
    
    .share-url {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .share-copy-btn {
        padding: 8px 10px;
        min-width: 32px;
        height: 32px;
    }
    
    .share-copy-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Мобильные телефоны */
@media screen and (max-width: 480px) {
    .chapter-title, .paragraph-title {
        padding: 12px 15px;
        font-size: 13px;
        line-height: 1.2;
    }
    
    .article-link {
        padding: 8px 15px 8px 40px;
        font-size: 12px;
        line-height: 1.2;
    }
    
    .qa-link {
        padding: 15px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    .nav-button {
        padding: 10px 15px;
        font-size: 13px;
        line-height: 1.2;
        min-height: 40px;
    }
}

/* Стили для qa-tag */
.qa-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2px;
    white-space: nowrap;
    line-height: 1.3;
    box-sizing: border-box;
}

.qa-tag:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Мобильные стили для qa-tag */
@media screen and (max-width: 768px) {
    .qa-tag {
        display: inline-block !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 4px 2px !important;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap !important;
        line-height: 1.3;
        width: auto !important;
    }
}

@media screen and (max-width: 480px) {
    .qa-tag {
        padding: 6px 10px !important;
        font-size: 11px !important;
        margin: 3px 2px !important;
    }
}

/* ========== КНОПКА ПОИСКА В ПРАВОМ НИЖНЕМ УГЛУ ========== */
.search-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.search-toggle-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.5);
}

.search-button-icon {
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    z-index: 2;
    position: relative;
}

.search-button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
    z-index: 1;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* ========== ПАНЕЛЬ ПОИСКА (ПОД ГЛАВНЫМ МЕНЮ) ========== */
.search-panel {
    position: fixed;
    top: 0; /* Вместо 44px */
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.search-panel::before {
    content: '';
    display: block;
    height: 44px; /* Добавляем 44px высоты сверху */
    background: #ffffff; /* Тот же фон */
}

.search-panel-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px; 
}

.search-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    padding: 16px 24px;
    transition: all 0.15s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input-container:focus-within {
    border-color: #0277bd;
    box-shadow: 0 0 0 2px rgba(2, 119, 189, 0.1);
}

.search-icon {
    color: #6c757d;
    margin-right: 16px;
    flex-shrink: 0;
}

.search-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    outline: none;
    padding: 0;
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* ========== РЕЗУЛЬТАТЫ ПОИСКА ========== */
.search-results-container {
    margin-top: 24px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 2px;
    background: #ffffff;
}

.search-loading {
    text-align: center;
    padding: 48px 24px;
    color: #6c757d;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-result-item {
    border-bottom: 1px solid #f8f9fa;
    padding: 24px;
    transition: background-color 0.1s ease;
    position: relative;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-question {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-result-question a {
    color: #0277bd;
    text-decoration: none;
    transition: color 0.1s ease;
}

.search-result-question a:hover {
    color: #01579b;
}

.search-result-answer {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-result-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: default;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-no-results {
    text-align: center;
    padding: 64px 24px;
    color: #6c757d;
    background: #ffffff;
}

.search-no-results h3 {
    margin-bottom: 12px;
    color: #212529;
    font-size: 18px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.search-no-results p {
    font-size: 15px;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.search-suggestions {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions li {
    padding: 12px 0;
    color: #6c757d;
    font-size: 14px;
    border-bottom: 1px solid #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

/* ========== ОВЕРЛЕЙ (ПОД ГЛАВНЫМ МЕНЮ) ========== */
.search-overlay {
    position: fixed;
    top: 44px; /* Начинается под главным меню */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Ниже панели поиска */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== ВЫДЕЛЕНИЕ НАЙДЕННОГО ТЕКСТА ========== */
.search-result-answer strong {
    background: #69BB60;
    color: white;
    padding: 2px 4px;
    font-weight: 600;
    border-radius: 1px;
}

/* ========== СПЕЦИАЛЬНЫЕ ТИПЫ РЕЗУЛЬТАТОВ ========== */
.search-result-item[data-type="article"] .search-result-question a {
    color: #0277bd;
}

.search-result-item[data-type="qa"] .search-result-question a {
    color: #D44B38;
}

.search-result-item[data-type="article"]:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #0277bd;
}

.search-result-item[data-type="qa"]:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #D44B38;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media screen and (max-width: 768px) {
    .search-panel {
        top: 60px; /* Высота мобильного меню больше */
    }
    
    .search-overlay {
        top: 60px;
    }
    
    /* КНОПКА ОСТАЕТСЯ В НИЖНЕМ УГЛУ */
    .search-button-container {
        bottom: 20px; /* Возвращаем в нижний угол */
        right: 16px;
        z-index: 1100; /* Поверх всего на мобильных */
    }
    
    .search-toggle-button {
        width: 52px;
        height: 52px;
    }
    
    .search-button-icon {
        font-size: 20px;
    }
    
    .search-panel-content {
        padding: 20px 16px;
    }
    
    .search-input-container {
        padding: 14px 20px;
    }
    
    .search-input {
        font-size: 16px;
    }
    
    .search-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .search-results-container {
        max-height: calc(100vh - 350px);
    }
    
    .search-result-item {
        padding: 20px 16px;
    }
    
    .search-result-question {
        font-size: 16px;
    }
    
    .search-result-answer {
        font-size: 14px;
    }
    
    .search-result-tag {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .search-no-results {
        padding: 48px 16px;
    }
}

@media screen and (max-width: 480px) {
    /* КНОПКА ОСТАЕТСЯ В НИЖНЕМ УГЛУ НА МАЛЫХ ЭКРАНАХ */
    .search-button-container {
        bottom: 16px; /* Ближе к углу */
        right: 12px;
        z-index: 1100;
    }
    
    .search-toggle-button {
        width: 48px;
        height: 48px;
    }
    
    .search-button-icon {
        font-size: 18px;
    }
    
    .search-panel-content {
        padding: 16px 12px;
    }
    
    .search-input-container {
        padding: 12px 16px;
    }
    
    .search-result-item {
        padding: 16px 12px;
    }
    
    .search-result-question {
        font-size: 15px;
    }
    
    .search-result-meta {
        gap: 6px;
    }
    
    .search-results-container {
        max-height: calc(100vh - 320px);
    }
}

/* ========== ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ========== */
@media screen and (max-width: 360px) {
    .search-button-container {
        bottom: 12px;
        right: 8px;
        z-index: 1100;
    }
    
    .search-toggle-button {
        width: 44px;
        height: 44px;
    }
    
    .search-button-icon {
        font-size: 16px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ МАТЕРИАЛЫ ========== */
.materials-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
    font-size: 17px;
    line-height: 1.6;
}

.materials-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.materials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.material-link {
    display: block !important;
    border: 2px solid #ddd !important;
    border-radius: 10px !important;
    padding: 20px !important;
    text-align: center !important;
    background: white !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.3s !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
}

.material-link:hover {
    border-color: #69BB60 !important;
    text-decoration: none !important;
}

.material-link:before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.material-link span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
}

/* Иконки для блоков */
.material-education:before { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2369BB60' d='M12,3L1,9L12,15L21,9V10H23V9M5,13.18V17.18L12,21L19,17.18V13.18L12,17L5,13.18Z'/%3E%3C/svg%3E"); 
}

.material-seminars:before { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2369BB60' d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,19H5V5H19V19M8,7H16V9H8V7M8,11H16V13H8V11M8,15H13V17H8V15Z'/%3E%3C/svg%3E"); 
}

.material-materials:before { 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2369BB60' d='M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z'/%3E%3C/svg%3E"); 
}

/* БЛОК ЭКСПЕРТОВ */
.experts-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}

.experts-header {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
}

.experts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.expert-feature {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #69BB60;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.expert-feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.expert-feature-text {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

/* ОТЗЫВЫ */
.testimonials-block {
    background: #2e3440;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.testimonial-stars {
    color: #ffd700;
    font-size: 18px;
    margin-bottom: 10px;
}

.testimonial-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 130px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding-right: 10px;
}

.testimonial-item.active {
    opacity: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 15px;
    color: white;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.testimonial-author {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
    margin-top: 8px;
}

.testimonial-dots {
    text-align: center;
    margin-top: 15px;
    position: relative;
}

.testimonial-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: #69BB60;
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 480px) {
    .materials-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .materials-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .material-link {
        padding: 15px !important;
        min-height: 100px !important;
    }
    
    .material-link span {
        font-size: 14px;
    }
    
    .experts-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .experts-block {
        padding: 20px;
    }
    
    .experts-header {
        font-size: 16px;
    }
    
    .testimonial-text {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .testimonial-author {
        font-size: 11px;
    }
}