/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #051815;
}
::-webkit-scrollbar-thumb {
    background: #0d2e29;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b66ff;
}

/* Sidebar Animations */
.sidebar-transition {
    transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Collapsed State Styles (Desktop) */
@media (min-width: 1024px) {
    #sidebar.collapsed .nav-text,
    #sidebar.collapsed .nav-arrow {
        display: none;
    }
    #sidebar.collapsed .menu-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    #sidebar.collapsed .nav-item-content {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    #sidebar.collapsed .section-divider {
        margin: 0.5rem auto;
        width: 50%;
    }
    #sidebar.collapsed .menu-btn-large {
        padding: 0.5rem;
        justify-content: center;
    }
    #sidebar.collapsed .logo-text {
        display: none;
    }
}

/* SEO Text Block – стили через селекторы */
.seo-text-block {
    background: #051815;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #8ca0b3;
    font-size: 0.875rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
    .seo-text-block {
        padding: 2rem;
    }
}

.seo-text-block h1 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    display: block;
}

.seo-text-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.seo-text-block > p {
    margin-bottom: 1.5rem;
    line-height: 1.625;
}

.seo-text-block > div:first-of-type {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .seo-text-block > div:first-of-type {
        grid-template-columns: 1fr 1fr;
    }
}

.seo-text-block h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-text-block ul {
    list-style-type: disc;
    padding-left: 1.25rem;
}

.seo-text-block ul li {
    margin-bottom: 0.5rem;
}

.seo-text-block ul li::marker {
    color: #37ff5a;
}

/* Нумерованный список — переопределяем сброс Tailwind */
.seo-text-block ol {
    list-style-type: decimal !important;
    list-style-position: outside;
    padding-left: 2rem !important;
    margin: 0 0 1rem 0;
}

.seo-text-block ol li {
    display: list-item !important;
    margin-bottom: 0.5rem;
    padding-left: 0.35rem;
}

.seo-text-block ol li::marker {
    color: #3b66ff;
    font-weight: 700;
}

.seo-text-block strong,
.seo-text-block ol span {
    color: #fff;
    font-weight: 700;
}

.seo-text-block > h3 {
    margin-bottom: 1rem;
}

.seo-text-block > div:last-of-type {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.seo-text-block table {
    width: 100%;
    min-width: 280px;
    text-align: left;
    border-collapse: collapse;
}

.seo-text-block thead tr {
    background: #051815;
    color: #fff;
}

.seo-text-block th {
    padding: 1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seo-text-block th:first-child {
    width: 33.333333%;
}

.seo-text-block tbody {
    background: #0a2420;
}

.seo-text-block tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

.seo-text-block tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.seo-text-block td {
    padding: 1rem;
}

.seo-text-block td:first-child {
    font-weight: 700;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-text-block tbody tr:last-child td:last-child {
    color: #37ff5a;
    font-weight: 700;
}
