/*
Theme Name: KodyTut
Theme URI: 
Author: Your Name
Description: Тема для расшифровки кодов ошибок
Version: 2.0
*/

/* ---------- Глобальные ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------- Шапка и логотип ---------- */
header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 30px 0 50px 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightning {
    font-size: 50px;
    color: #fbbf24;
    line-height: 1;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none;
}

.slogan {
    font-size: 15px;
    font-style: italic;
    color: #cbd5f5;
    line-height: 1.2;
    margin-top: 2px;
}

nav a {
    color: #cbd5f5;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.15s;
}
nav a:hover {
    color: white;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    margin: 20px 0;
    font-size: 14px;
    color: #64748b;
}
.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ---------- Герой / поиск ---------- */
.hero {
    text-align: center;
    max-width: 700px;
    margin: auto;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.hero p {
    color: #cbd5f5;
    margin-bottom: 25px;
}

.search-box {
    background: white;
    padding: 8px;
    border-radius: 60px;
    display: flex;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    border-radius: 60px;
    background: transparent;
}

.searchwp-form,
.mini-search {
    background: white;
    border-radius: 60px;
    padding: 4px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.searchwp-form input[type="search"],
.mini-search input[type="search"],
.searchwp-form input[type="text"],
.mini-search input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 18px;
    border-radius: 60px 0 0 60px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: transparent;
    color: #0f172a;
}
.searchwp-form input::placeholder,
.mini-search input::placeholder {
    color: #94a3b8;
    opacity: 1;
}
.searchwp-form button,
.mini-search button,
.searchwp-form input[type="submit"],
.mini-search input[type="submit"] {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.searchwp-form button:hover,
.mini-search button:hover,
.searchwp-form input[type="submit"]:hover,
.mini-search input[type="submit"]:hover {
    background: #2563eb;
}

/* ---------- Живой поиск ---------- */
.searchwp-live-search-results {
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.result a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
}
.result a:hover {
    background: #f0f7ff;
}
.title {
    font-weight: 600;
    color: #1e40af;
    display: block;
    margin-bottom: 4px;
}
.excerpt {
    font-size: 14px;
    color: #475569;
}

/* ---------- Общие заголовки разделов ---------- */
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: #f97316;
    font-style: normal;
}

/* ---------- Табы (для страниц тегов/категорий) ---------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    border-radius: 40px;
    text-decoration: none;
    transition: 0.15s;
}
.tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.tab-btn.active {
    background: #1e3a8a;
    color: white;
}

/* ---------- Категории (плитки на главной) ---------- */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}
.cat {
    background: white;
    border-radius: 20px;
    padding: 22px 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: 0.25s;
    cursor: default;
    border: 1px solid #eef2f6;
    text-align: center;
}
.cat:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #b9d1f0;
}
.cat-icon {
    font-size: 34px;
    margin-bottom: 12px;
}
.cat h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}
.cat p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* ---------- Бренды (плитки) ---------- */
.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    color: black;
    background: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: 0.15s;
    text-decoration: none;
}

.brand:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

/* ---------- Карточки ошибок (сетка) ---------- */
.errors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.error-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
    transition: .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.error-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(0,80,200,.1);
}
.error-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.error-code {
    font-size: 18px;
    font-weight: 800;
    background: #eff6ff;
    color: #1e40af;
    padding: 5px 14px;
    border-radius: 30px;
}
.error-cat-tag {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}
.error-body {
    flex: 1;
}
.error-body a {
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    display: block;
    margin-bottom: 6px;
    line-height: 1.4;
}
.error-body a:hover { color: #2563eb; }
.error-body p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.error-footer {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* ---------- Пагинация ---------- */
.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.15s;
}
.pagination .page-numbers:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e3a8a;
}
.pagination .page-numbers.current {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    cursor: default;
}
.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: default;
}
.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #64748b;
}
.pagination .prev,
.pagination .next {
    padding: 0 16px;
}

/* ---------- Блок "Как пользоваться" ---------- */
.guide-section {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin: 60px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    border: 1px solid #e6edf5;
    box-shadow: 0 15px 35px -15px rgba(0,0,0,0.08);
}
.guide-item {
    text-align: center;
}
.guide-icon {
    background: #f0f7ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #3b82f6;
}
.guide-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}
.guide-item p {
    color: #475569;
    font-size: 15px;
}

/* ---------- Страница ошибки (детальная) ---------- */
.error-detail {
    background: white;
    border-radius: 32px;
    padding: 36px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(203, 213, 225, 0.4);
    transition: 0.2s;
    margin-bottom: 40px;
}
.error-detail:hover {
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.15);
}
.error-header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.error-badge {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #eef2ff, #d9e6ff);
    color: #1e40af;
    padding: 12px 32px;
    border-radius: 80px;
    line-height: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}
.error-title h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.error-meta {
    color: #475569;
    font-size: 16px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}
.error-meta span {
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 40px;
    transition: 0.15s;
}
.info-section {
    margin-top: 40px;
}
.info-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #3b82f6;
    padding-left: 16px;
}
.info-section h2 i {
    color: #3b82f6;
    font-size: 24px;
}
.info-card {
    background: #fafcff;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #eef2f6;
    transition: 0.2s;
}
.info-card:hover {
    border-color: #cbd5e1;
    background: white;
}
.info-card p, .info-card li {
    font-size: 16px;
    color: #1e293b;
    line-height: 1.6;
}
.info-card ul {
    margin-left: 20px;
}
.info-card li {
    margin-bottom: 10px;
}
.solution-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.step-number {
    background: #1e3a8a;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.step-text {
    flex: 1;
}
.step-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

/* Похожие ошибки */
.similar-errors {
    margin-top: 50px;
}
.similar-errors h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.similar-item {
    background: white;
    border-radius: 24px;
    padding: 24px;
    transition: all 0.25s ease;
    border: 1px solid #ecf1f7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.similar-item:hover {
    transform: translateY(-6px);
    border-color: #b9d1f0;
    box-shadow: 0 20px 30px -12px rgba(37,99,235,0.2);
}
.similar-code {
    font-size: 24px;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 12px;
    background: #eef2ff;
    display: inline-block;
    padding: 4px 16px;
    border-radius: 40px;
}
.similar-desc {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 16px 0 12px;
}
.similar-brand {
    color: #2563eb;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Кнопки "Поделиться" ---------- */
.share-btn {
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.15s;
    cursor: pointer;
    border: none;
}
.share-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* ---------- Прогресс-бар чтения ---------- */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #f97316);
    width: 0%;
    transition: width 0.1s;
}

/* ---------- Кнопка "Наверх" ---------- */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e3a8a;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}
.go-top.show {
    opacity: 1;
    visibility: visible;
}
.go-top:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* ---------- Рекламные блоки ---------- */
.ad-before {
    margin-bottom: 30px;
}
.ad-after {
    margin-top: 30px;
    margin-bottom: 20px;
}
.ad-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.ad-container .ad-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3d4a5c;
    margin-bottom: 12px;
}
.ad-container .ad-content {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 10px 5px;
    color: #1e293b;
    font-weight: 500;
}

/* ---------- Стили для страницы инструкции (manual) ---------- */
.manual-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
}
.manual-sidebar {
    flex: 1.2;
    min-width: 260px;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 24px;
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: 90vh;
    overflow-y: auto;
}
.manual-content {
    flex: 3;
    background: #fff;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.manual-toc ul {
    list-style: none;
    padding-left: 0;
}
.manual-toc li {
    margin-bottom: 0.8rem;
}
.manual-toc li.active a {
    font-weight: bold;
    color: #0073aa;
}
.manual-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}


/* ---------- Футер ---------- */
.footer-3 {
    background: #0f172a;
    padding: 48px 0 0;
    margin-top: 48px;
}
.footer-promo {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.footer-promo h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.footer-promo p {
    font-size: 13px;
    color: #bfdbfe;
    margin: 0;
}
.footer-promo-btn {
    background: #fbbf24;
    color: #0f172a;
    padding: 11px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.footer-promo-btn:hover { background: #f59e0b; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid #1e293b;
}
.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: .15s;
}
.footer-col a:hover {
    color: #fff;
    background: #1e293b;
}
.footer-badge {
    background: #1e3a8a;
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: #334155;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-stats {
    display: flex;
    gap: 16px;
}
.footer-stats span {
    font-size: 12px;
    color: #475569;
}
.footer-stats b { color: #fbbf24; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-promo { padding: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.site-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.site-stat {
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
    min-width: 100px;
}
.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
}
.stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.hero .search-box {
    display: flex;
    background: #fff;
    border-radius: 60px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    max-width: 580px;
    margin: 0 auto;
}
.hero .searchwp-form {
    display: flex;
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}
.hero .searchwp-form input[type="search"],
.hero .searchwp-form input[type="text"] {
    flex: 1;
    font-size: 15px;
    padding: 12px 20px;
}
.hero .searchwp-form button,
.hero .searchwp-form input[type="submit"] {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
}

.cat-badge {
    display: inline-block;
    margin-top: 6px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 4px;
}
.cat-badge-errors {
    background: #f1f5f9;
    color: #64748b;
}

.cat p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 6px;
}

.instr-promo {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 24px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 36px 0;
}
.instr-promo-left h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.instr-promo-left p {
    color: #bfdbfe;
    font-size: 14px;
    margin-bottom: 22px;
    line-height: 1.6;
}
.instr-promo-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.instr-promo-btn-main {
    background: #fbbf24;
    color: #0f172a;
    padding: 12px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.instr-promo-btn-main:hover { background: #f59e0b; }
.instr-promo-btn-sec {
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: 12px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.instr-promo-btn-sec:hover { background: rgba(255,255,255,.25); }
.instr-promo-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.instr-promo-cat {
    background: rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    transition: .15s;
}
.instr-promo-cat:hover { background: rgba(255,255,255,.2); }
.instr-promo-cat-icon { font-size: 22px; flex-shrink: 0; }
.instr-promo-cat-name { font-size: 14px; font-weight: 700; }
.instr-promo-cat-count { font-size: 12px; color: #bfdbfe; margin-top: 2px; }
.instr-promo-cat-arr { margin-left: auto; color: #bfdbfe; font-size: 20px; }

.instr-page-hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 36px 0 44px;
    text-align: center;
}
.instr-page-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}
.instr-page-hero p {
    color: #94a3b8;
    margin-bottom: 22px;
}
.instr-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.instr-stat {
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
    min-width: 100px;
}
.instr-stat b {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
}
.instr-stat span {
    font-size: 11px;
    color: #94a3b8;
}
.instr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.instr-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: .2s;
    color: #0f172a;
    text-decoration: none;
}
.instr-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 24px rgba(0,80,200,.1);
}
.instr-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.instr-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 14px;
}
.instr-pages {
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 10px;
}
.instr-emoji { font-size: 32px; }
.instr-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.instr-desc { font-size: 13px; color: #64748b; }
.instr-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.instr-brand {
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 12px;
}
.instr-link { font-size: 13px; font-weight: 700; color: #3b82f6; }

/* Карточки "Статей" — визуально близки к instr-card, но свой акцентный цвет (зелёный) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.article-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: .2s;
    color: #0f172a;
    text-decoration: none;
}
.article-card:hover {
    transform: translateY(-3px);
    border-color: #bbf7d0;
    box-shadow: 0 12px 24px rgba(5,150,105,.12);
}
.article-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.article-badge {
    font-size: 11px;
    font-weight: 700;
    color: #166534;
    background: #f0fdf4;
    padding: 3px 10px;
    border-radius: 14px;
}
.article-emoji { font-size: 32px; }
.article-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.article-desc { font-size: 13px; color: #64748b; }
.article-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.article-brand {
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 10px;
    border-radius: 12px;
}
.article-link { font-size: 13px; font-weight: 700; color: #059669; }

.cross-promo {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0;
}
.cross-promo h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.cross-promo p { font-size: 13px; color: #94a3b8; margin: 0; }
.cross-promo a {
    background: #fbbf24;
    color: #0f172a;
    padding: 11px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.type-switcher {
    display: flex;
    gap: 8px;
    margin: 16px 0 20px;
}
.type-btn {
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: .15s;
}
.type-btn.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
}
.type-btn:hover:not(.active) {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Шапка страницы ошибки */
.error-page-header {
    background: #f8fafc;
    padding: 28px 0 0;
}
.error-page-info h1 { color: #0f172a; }
.error-chip {
    background: #f1f5f9;
}
.error-chip:hover { background: #dbeafe; color: #1e40af; }
.error-page-top {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.error-page-badge {
    font-size: 36px;
    font-weight: 900;
    background: #fbbf24;
    color: #0f172a;
    padding: 16px 24px;
    border-radius: 16px;
    flex-shrink: 0;
    line-height: 1;
}
.error-page-info h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}
.error-page-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.error-chip {
    background: rgba(255,255,255,.12);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
}
.error-chip:hover { background: rgba(255,255,255,.2); }

/* Layout */
.error-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    margin-top: 20px;
    align-items: start;
}
.error-page-main { min-width: 0; }

/* Дисклеймер */
.disclaimer-box {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.disclaimer-icon { font-size: 20px; flex-shrink: 0; }
.disclaimer-box p { font-size: 13px; color: #92400e; margin: 0; line-height: 1.6; }

/* Секции */
.info-section { margin-bottom: 20px; }
.info-section h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}
.info-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
}

/* Нумерованные блоки */
.num-list { display: flex; flex-direction: column; gap: 10px; }
.num-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.num-circle {
    width: 32px;
    height: 32px;
    background: #1e40af;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.num-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.num-desc { font-size: 13px; color: #64748b; line-height: 1.5; }

/* Похожие ошибки */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.similar-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: #0f172a;
    transition: .15s;
    display: block;
}
.similar-item:hover { border-color: #3b82f6; background: #eff6ff; }
.similar-code { font-size: 16px; font-weight: 800; color: #1e40af; margin-bottom: 4px; }
.similar-desc { font-size: 12px; color: #64748b; }

/* Сайдбар */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    margin-bottom: 16px;
}
.sidebar-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.sidebar-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}
.sidebar-row span { color: #64748b; }
.sidebar-instr-link {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #0f172a;
    transition: .15s;
}
.sidebar-instr-link:hover { background: #eff6ff; }
.sidebar-instr-name { font-size: 13px; font-weight: 600; }
.sidebar-instr-pages { font-size: 11px; color: #64748b; margin-top: 2px; }
.sidebar-all-link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 8px;
    text-decoration: none;
}
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sidebar-tag {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: .15s;
    display: inline-block;
}
.sidebar-tag:hover { background: #dbeafe; color: #1e40af; }

.num-list-plain .num-item {
    background: transparent;
    border: none;
    padding: 8px 0;
}

.info-card .num-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    padding: 12px 0;
}
.info-card .num-item:last-child {
    border-bottom: none;
}

.share-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}
.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}
.share-vk { background: #0077ff; color: #fff; }
.share-vk:hover { background: #0062cc; }
.share-tg { background: #229ed9; color: #fff; }
.share-tg:hover { background: #1a85b8; }
.share-max { background: #6f42c1; color: #fff; }
.share-max:hover { background: #5a32a3; }
.share-copy { background: #f1f5f9; color: #334155; }
.share-copy:hover { background: #e2e8f0; }

.share-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.share-label {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    display: flex
}
.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}
.share-vk { background: #0077ff; color: #fff; }
.share-vk:hover { background: #0062cc; }
.share-tg { background: #229ed9; color: #fff; }
.share-tg:hover { background: #1a85b8; }
.share-max { background: #229ed9; color: #fff; }
.share-max:hover { background: #5a32a3; }
.share-copy { background: #f1f5f9; color: #334155; }
.share-copy:hover { background: #e2e8f0; }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 12px;
}
.specs-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}
.specs-item:nth-child(even) {
    border-right: none;
}
.specs-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}
.specs-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
}

.device-info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.device-specs-col {
    border-right: 1px solid #f1f5f9;
    padding-right: 28px;
}
.device-desc-col h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}
.device-desc {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.specs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.specs-item:last-child { border-bottom: none; }
.specs-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}
.specs-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    text-align: center;
}

.device-info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 20px;
    align-items: start;
}
.device-desc-col {
    border-right: 1px solid #f1f5f9;
    padding-right: 28px;
}
.device-desc-col h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}
.device-desc {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}
.device-specs-col { }
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.specs-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}
.specs-item:nth-child(even) {
    border-right: none;
}
.specs-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}
.specs-value {
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.ipv-pdf-viewport.ipv-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    padding: 12px !important;
    overflow: auto !important;
    background: #525659 !important;
}
.ipv-pdf-viewport.ipv-fullscreen canvas {
    width: 100% !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .errors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .instr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .error-card {
        padding: 12px;
    }
    .error-code {
        font-size: 14px;
        padding: 4px 10px;
    }
    .error-body a {
        font-size: 13px;
    }
    .error-body p {
        font-size: 12px;
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .instr-promo {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    .share-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .manual-layout {
        flex-direction: column;
    }
    .manual-sidebar {
        position: static;
    }
    .error-page-layout {
        grid-template-columns: 1fr;
    }
    .device-info-card {
        grid-template-columns: 1fr;
    }
    .device-desc-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 20px;
    }
    .device-specs-col {
        border-right: none;
        padding-right: 0;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .specs-item {
        border-right: none;
    }
    .guide-section {
        grid-template-columns: 1fr;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .error-badge {
        display: none;
    }
    .container {
        padding: 10px;
    }
    .error-detail {
        padding: 16px;
    }
    .error-title h1 {
        font-size: 22px;
    }
    .error-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .ad-before, .ad-after {
        margin-left: 5px;
        margin-right: 5px;
    }
    .ad-container {
        padding: 12px;
    }
}

.about-hero {
    text-align: center;
    padding: 48px 20px 36px;
}
.about-hero-icon {
    font-size: 56px;
    margin-bottom: 14px;
}
.about-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}
.about-hero p {
    font-size: 15px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.about-stat {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
}
.about-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1;
    margin-bottom: 6px;
}
.about-stat-label {
    font-size: 13px;
    color: #64748b;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    margin-bottom: 48px;
}
.about-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 20px;
}
.about-card h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}
.about-card p {
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 10px;
}
.about-card p:last-child { margin-bottom: 0; }
.about-steps { display: flex; flex-direction: column; gap: 14px; }
.about-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
}
.about-step-num {
    width: 32px;
    height: 32px;
    background: #1e40af;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.about-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.about-step p { font-size: 13px; color: #64748b; margin: 0; }
.about-sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 18px;
    margin-bottom: 18px;
}
.about-sidebar-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.about-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    transition: .15s;
    margin-bottom: 4px;
}
.about-sidebar-link:hover { background: #eff6ff; color: #1e40af; }
.about-sidebar-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.about-form { display: flex; flex-direction: column; gap: 10px; }
.about-form input,
.about-form textarea {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    transition: .15s;
}
.about-form input:focus,
.about-form textarea:focus { border-color: #3b82f6; }
.about-form textarea { resize: vertical; }
.about-form button {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: .15s;
}
.about-form button:hover { background: #2563eb; }
.about-form button:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .about-hero h1 { font-size: 24px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .errors-grid {
        grid-template-columns: 1fr;
    }
    .instr-grid {
        grid-template-columns: 1fr;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .similar-grid {
        grid-template-columns: 1fr;
    }
}