/*
Theme Name: dds_deremall.com
Author: Зубов Вячеслав
Description: Информационная тема для сайта обзоров и сравнения бюджетных ноутбуков. Тёмное оформление, акценты на сравнение характеристик и читабельность длинных обзоров.
Version: 1.1
Text Domain: dds_deremall
*/

/* ==========================================================================
   Подключаемые шрифты
   ========================================================================== */
@import url("/assets/acb6a81bdc9106bec9d6.css");

/* ==========================================================================
   Сброс и базовая типографика
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #E0E0E0;
    background-color: #121212;
    background-image:
        radial-gradient(circle at 12% 8%, rgba(0, 180, 216, 0.06), transparent 45%),
        radial-gradient(circle at 92% 92%, rgba(255, 159, 28, 0.04), transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #00B4D8;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover { color: #6FE0FF; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Geist', 'Inter', sans-serif;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 1.4em 0 0.7em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
    color: #E0E0E0;
}

code, pre, kbd, samp {
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 0.92em;
}

code {
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    padding: 2px 6px;
    border-radius: 4px;
    color: #6FE0FF;
}

pre {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    padding: 14px 16px;
    overflow-x: auto;
    color: #E0E0E0;
}

blockquote {
    margin: 1.2em 0;
    padding: 12px 18px;
    border-left: 3px solid #00B4D8;
    background: #1A1A1A;
    color: #AAAAAA;
    border-radius: 0 8px 8px 0;
}

hr {
    border: 0;
    height: 1px;
    background: #2C2C2C;
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 10px 14px;
    border: 1px solid #2C2C2C;
    text-align: left;
}

th {
    background: #242424;
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-weight: 600;
}

tbody tr:nth-child(even) td { background: #242424; }
tbody tr:nth-child(odd)  td { background: #1A1A1A; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* ==========================================================================
   Контейнеры, общая сетка
   ========================================================================== */
.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #00B4D8;
    color: #fff;
    padding: 8px 14px;
    z-index: 1000;
}

.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-head {
    background: rgba(18, 18, 18, 0.92);
    border-bottom: 1px solid #2C2C2C;
    padding: 18px 0;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
}

.brand-text { min-width: 0; }

.brand-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.brand-tag {
    font-size: 0.85rem;
    color: #AAAAAA;
    margin: 4px 0 0;
    line-height: 1.35;
}

/* ==========================================================================
   Основное меню
   ========================================================================== */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    color: #E0E0E0;
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 0.96rem;
    transition: background .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: rgba(0, 180, 216, 0.12);
    color: #6FE0FF;
}

.nav-toggle {
    display: none;
    border: 1px solid #2C2C2C;
    background: #1E1E1E;
    color: #E0E0E0;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Geist', sans-serif;
}

.nav-toggle:hover { border-color: #00B4D8; }

/* ==========================================================================
   Основная зона
   ========================================================================== */
.site-main { padding: 32px 0 48px; }

.layout {
    display: grid;
    gap: 32px;
    grid-template-columns: 67% 27%;
    align-items: start;
}

.layout--full { grid-template-columns: 85% }
.layout--full > .content { margin: 0 auto; }

.layout--front { grid-template-columns: 85%; }
.layout--front > .content { margin: 0 auto; }

@media (max-width: 960px) {
    .layout, .layout--full, .layout--front { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */
.crumbs {
    font-size: 0.9rem;
    color: #AAAAAA;
    margin: 0 0 22px;
    padding: 10px 14px;
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 10px;
}

.crumbs a {
    color: #AAAAAA;
}

.crumbs a:hover { color: #6FE0FF; }

.crumbs .sep {
    margin: 0 6px;
    color: #555;
}

.crumbs .current { color: #FFFFFF; }

/* ==========================================================================
   Карточки записей (см. правила A8, A10)
   ========================================================================== */
.cards {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
}

.card {
    display: flex;
    flex-direction: column;
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 180, 216, 0.45);
    box-shadow: 0 10px 30px -10px rgba(0, 180, 216, 0.25);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #242424;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.card-title {
    margin: 0 0 8px;
    font-family: 'Geist', sans-serif;
    font-size: 1.18rem;
    line-height: 1.3;
}

.card-title a { color: #FFFFFF; }
.card-title a:hover { color: #6FE0FF; }

.card-meta {
    font-size: 0.83rem;
    color: #AAAAAA;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.card-meta span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #FF9F1C;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.card-excerpt {
    color: #E0E0E0;
    font-size: 0.97rem;
    margin-bottom: 14px;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
    color: inherit;
}

.card-more {
    align-self: flex-start;
    margin-top: auto;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00B4D8;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: 14px;
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    text-decoration: none;
}

.btn:hover {
    background: #0088A9;
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn--ghost {
    background: transparent;
    border: 1px solid #00B4D8;
    color: #00B4D8;
}

.btn--ghost:hover {
    background: rgba(0, 180, 216, 0.1);
    color: #6FE0FF;
    box-shadow: none;
}

.btn--accent {
    background: #FF9F1C;
}

.btn--accent:hover { background: #E5841F; }

.btn-arrow::after {
    content: '→';
    margin-left: 4px;
    transition: transform .2s ease;
}

.btn:hover .btn-arrow::after,
a.btn-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Сайдбар, виджеты
   ========================================================================== */
.sidebar { min-width: 0; }

.widget {
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.widget-title {
    font-family: 'Geist', sans-serif;
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2C2C2C;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 40px;
    height: 2px;
    background: #00B4D8;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li { margin-bottom: 8px; }

.widget li a {
    color: #E0E0E0;
    border-bottom: 1px dashed transparent;
    transition: color .2s ease, border-color .2s ease;
}

.widget li a:hover {
    color: #6FE0FF;
    border-bottom-color: #00B4D8;
}

/* ==========================================================================
   Главная: тематические блоки
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #1A1A1A 0%, #1E1E1E 100%);
    border: 1px solid #2C2C2C;
    border-radius: 18px;
    padding: 38px 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.18), transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.2rem;
    margin-top: 0;
    max-width: 720px;
}

.hero p {
    max-width: 720px;
    color: #E0E0E0;
    font-size: 1.05rem;
}

.hero-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section {
    margin-bottom: 40px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.55rem;
}

.section-head .meta {
    color: #AAAAAA;
    font-size: 0.92rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color .25s ease, transform .25s ease;
}

.feature:hover {
    border-color: rgba(0, 180, 216, 0.45);
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 180, 216, 0.12);
    color: #00B4D8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-family: 'Geist', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.feature h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.feature p {
    margin: 0;
    color: #AAAAAA;
    font-size: 0.94rem;
}

/* Шаги выбора */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    counter-reset: step;
}

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.step {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-left: 3px solid #FF9F1C;
    border-radius: 10px;
    padding: 16px 18px;
    counter-increment: step;
    position: relative;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: 'JetBrains Mono', monospace;
    color: #FF9F1C;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 6px;
}

.step h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: #AAAAAA;
    font-size: 0.9rem;
}

/* Подсказки-выноски */
.tip {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-left: 4px solid #00B4D8;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 16px 0;
}

.tip--warn { border-left-color: #FF9F1C; }

.tip strong { color: #FFFFFF; }

/* Спецификация / характеристики */
.spec-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #2C2C2C;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
}

.spec-row:last-child { border-bottom: none; }
.spec-row .label { color: #AAAAAA; }
.spec-row .value { color: #E0E0E0; }

@media (max-width: 600px) {
    .spec-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Шкала производительности */
.perf {
    margin: 14px 0 18px;
}

.perf-label {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #AAAAAA;
    margin-bottom: 6px;
}

.perf-bar {
    height: 10px;
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.perf-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF9F1C 0%, #00B4D8 100%);
    border-radius: 5px;
}

/* ==========================================================================
   Запись — содержимое
   ========================================================================== */
.entry-head { margin-bottom: 18px; }

.entry-title {
    margin: 0 0 8px;
    font-size: 2rem;
}

.entry-meta {
    color: #AAAAAA;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.entry-content > * { max-width: 100%; }

.entry-content img {
    border-radius: 10px;
    border: 1px solid #2C2C2C;
    margin: 12px 0;
}

.entry-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #2C2C2C;
    display: block;
    margin-bottom: 22px;
}

.tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags a {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    color: #AAAAAA;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 999px;
    transition: border-color .2s ease, color .2s ease;
}

.tags a:hover {
    border-color: #00B4D8;
    color: #6FE0FF;
}

/* ==========================================================================
   Пагинация
   ========================================================================== */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: #1E1E1E;
    border: 1px solid #2C2C2C;
    color: #E0E0E0;
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.pagination .page-numbers:hover {
    border-color: #00B4D8;
    color: #6FE0FF;
}

.pagination .page-numbers.current {
    background: #00B4D8;
    border-color: #00B4D8;
    color: #FFFFFF;
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ==========================================================================
   Поиск
   ========================================================================== */
.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 10px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .2s ease;
}

.search-form input[type="search"]:focus { border-color: #00B4D8; }

.search-form button {
    padding: 10px 16px;
    background: #00B4D8;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    transition: background .2s ease;
}

.search-form button:hover { background: #0088A9; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-foot {
    background: #0E0E0E;
    border-top: 1px solid #2C2C2C;
    padding: 38px 0 18px;
    margin-top: 40px;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 800px) {
    .foot-cols { grid-template-columns: 1fr; }
}

.foot-cols .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.foot-cols .widget-title {
    border-bottom-color: #2C2C2C;
}

.foot-bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #2C2C2C;
    color: #AAAAAA;
    font-size: 0.88rem;
    text-align: center;
}

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #2C2C2C;
}

.comments h2, .comments h3 {
    font-size: 1.3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-list li {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.comment-list .children {
    list-style: none;
    padding-left: 18px;
    margin-top: 12px;
    border-left: 2px solid #2C2C2C;
}

.comment-meta {
    font-size: 0.85rem;
    color: #AAAAAA;
    margin-bottom: 6px;
}

.comment-meta strong { color: #FFFFFF; }

.comment-form label {
    display: block;
    font-size: 0.9rem;
    color: #AAAAAA;
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 10px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 12px;
    transition: border-color .2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus { border-color: #00B4D8; }

.comment-form textarea { min-height: 110px; resize: vertical; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
    text-align: center;
    padding: 40px 20px;
}

.notfound .code {
    font-family: 'Geist', sans-serif;
    font-size: 6rem;
    line-height: 1;
    color: #00B4D8;
    margin: 0 0 12px;
    font-weight: 700;
}

.notfound h1 { margin-top: 0; }

.notfound .actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.notfound .search-form {
    max-width: 460px;
    margin: 22px auto 0;
}

/* ==========================================================================
   Cookie-баннер (см. правило A11)
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #2C2C2C;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    color: #E0E0E0;
    font-size: 0.92rem;
}

.cookie-banner .btn {
    flex-shrink: 0;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 800px) {
    .hero { padding: 28px 22px; }
    .hero h1 { font-size: 1.7rem; }
}

@media (max-width: 700px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
    }
    .head-inner { gap: 12px; }
    .brand-tag { display: none; }
    .entry-title { font-size: 1.6rem; }
}

/* Утилиты */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignwide  { margin-left: -10%; margin-right: -10%; }
.alignfull  { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignleft  { float: left; margin-right: 18px; }
.alignright { float: right; margin-left: 18px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 960px) {
    .alignwide { margin-left: 0; margin-right: 0; }
}
