/*
Theme Name: codotto.com
Author: Илья Коротков
Description: Редакционный сайт о hi-tech обзорах, который вырос из IT-сообщества и специализируется на практичных обзорах устройств, цифровых экосистем и технологических новинок для продвинутой аудитории.
Version: 1.1
Text Domain: codotto
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Spectral:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   БАЗА
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #1A1D20;
    color: #E8EDF2;
    font-family: 'Spectral', Georgia, serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: #E6FF4B; text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 .6em;
    color: #E8EDF2;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

code, pre, .ttx, .rating, .mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .92em;
}
code {
    background: #24282E;
    border: 1px solid #313840;
    border-radius: 4px;
    padding: 1px 6px;
}
pre {
    background: #14161A;
    border: 1px solid #313840;
    border-left: 3px solid #E6FF4B;
    padding: 16px 20px;
    overflow-x: auto;
    border-radius: 6px 0 0 6px;
}
pre code { background: none; border: 0; padding: 0; }

blockquote {
    margin: 1.4em 0;
    padding: .4em 0 .4em 18px;
    border-left: 3px solid #E6FF4B;
    color: #E8EDF2;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .96em;
    background: #20242A;
}
blockquote p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid #313840; margin: 2em 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #3A4250;
    font-size: .96em;
}
th, td {
    border: 1px solid #3A4250;
    padding: 10px 14px;
    text-align: left;
}
th { background: #20242A; font-family: 'Inter', sans-serif; font-weight: 600; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

::selection { background: #E6FF4B; color: #14161A; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #E6FF4B;
    color: #14161A;
    padding: 8px 14px;
    z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ============================================================
   КОНТЕЙНЕРЫ
   ============================================================ */
.wrap-outer {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin: 36px 0 60px;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
}
.layout.full-content {
    grid-template-columns: minmax(0, 85%);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 960px) {
    .layout.has-sidebar { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .layout.full-content { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   КНОПКИ — «лента / разъём»
   ============================================================ */
.btn, button.btn, a.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    padding: 11px 24px;
    background: transparent;
    color: #E6FF4B;
    border: 1px solid #E6FF4B;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    letter-spacing: .01em;
    text-transform: none;
    line-height: 1.2;
}
.btn:hover, button.btn:hover, a.btn:hover {
    background: #E6FF4B;
    color: #14161A;
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
    color: #A0B0C0;
    border-color: #3A4250;
    border-radius: 12px 0 0 12px;
}
.btn-ghost:hover {
    background: #3A4250;
    color: #fff;
}

/* Круглые навигационные кнопки */
.nav-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #3A4250;
    border-radius: 50%;
    color: #A0B0C0;
    font-size: 1.1rem;
    transition: border-color .18s ease, color .18s ease;
}
.nav-glyph:hover { border-color: #E6FF4B; color: #E6FF4B; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-top {
    background: #14161A;
    border-bottom: 1px solid #2B3036;
}
.site-top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}
.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #E8EDF2;
    letter-spacing: -0.01em;
}
.brand-name a { color: inherit; }
.brand-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: #8D9AAC;
    margin-top: 4px;
    max-width: 460px;
    line-height: 1.4;
}

/* Пульсирующая схема */
.brand-pulse {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: #E6FF4B;
}
.brand-pulse circle.dot { animation: pulse-dot 1.8s ease-in-out infinite; transform-origin: center; }
@keyframes pulse-dot {
    0%, 100% { opacity: .35; r: 2; }
    50% { opacity: 1; r: 3.2; }
}

/* Главное меню */
.main-nav {
    margin-left: auto;
}
.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: inline-block;
    color: #E8EDF2;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color .18s ease, background .18s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
    color: #E6FF4B;
    background: rgba(230, 255, 75, .07);
}

/* Бургер */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #3A4250;
    color: #E8EDF2;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav {
        display: none;
        flex-basis: 100%;
        margin-left: 0;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid #2B3036; border-radius: 0; }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.crumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    color: #8D9AAC;
    padding: 18px 0 0;
    margin: 0;
}
.crumbs a { color: #A0B0C0; }
.crumbs a:hover { color: #E6FF4B; }
.crumbs .sep { margin: 0 8px; color: #4A525C; }

/* ============================================================
   КАРТОЧКИ ЗАПИСЕЙ — сетка
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #24282E;
    border: 1px solid #2B3036;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
    border-color: #3A4250;
    transform: translateY(-2px);
}

.card-thumb {
    position: relative;
    overflow: hidden;
    background: #14161A;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity .25s ease;
}
/* Линзообразная рябь при наведении */
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(230, 255, 75, .08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.card:hover .card-thumb::after { opacity: 1; }

.card-body {
    flex: 1;
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
}
.card-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: #E6FF4B;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}
.card-cat a { color: #E6FF4B; }
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}
.card-title a { color: #E8EDF2; }
.card-title a:hover { color: #E6FF4B; }
.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: .74rem;
    color: #8D9AAC;
    margin-bottom: 10px;
}
.card-excerpt {
    color: #C2CAD4;
    font-size: .96rem;
    line-height: 1.55;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    margin-top: auto;
    padding-top: 14px;
}

/* Горизонтальная карточка (главная — главный обзор) */
.card-row {
    flex-direction: row;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-row .card-body {
    padding: 26px 28px;
}

@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============================================================
   ГЛАВНАЯ — «живая сетка»
   ============================================================ */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    margin-bottom: 60px;
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero-feature {
    background: #24282E;
    border: 1px solid #2B3036;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hero-feature .hero-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #20242A 0%, #14161A 70%);
    position: relative;
    overflow: hidden;
}
.hero-feature .hero-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(160, 176, 192, .04) 28px 29px),
        repeating-linear-gradient(90deg, transparent 0 28px, rgba(160, 176, 192, .04) 28px 29px);
}
.hero-feature .hero-img::after {
    content: "";
    position: absolute;
    width: 64%;
    height: 70%;
    left: 18%;
    top: 15%;
    background: linear-gradient(180deg, #2B3036 0%, #14161A 100%);
    border: 1px solid #3A4250;
    border-radius: 4px 4px 14px 14px;
    box-shadow: 0 14px 38px -14px rgba(0,0,0,.6);
}
.hero-feature .hero-body {
    padding: 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-feature .hero-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: .76rem;
    color: #E6FF4B;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.hero-feature h2 {
    font-size: 1.7rem;
    margin: 0 0 14px;
}
.hero-feature p {
    color: #C2CAD4;
    margin-bottom: 18px;
}

/* Блок «Сейчас читают» */
.now-reading {
    background: #20242A;
    border: 1px solid #2B3036;
    border-radius: 6px;
    padding: 22px 22px 18px;
    position: relative;
}
.now-reading::before {
    content: "";
    position: absolute;
    top: -1px; left: 22px; right: 22px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E6FF4B, transparent);
}
.now-reading-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: #A0B0C0;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 16px;
}
.now-reading-title::before {
    content: "● ";
    color: #E6FF4B;
    animation: pulse-dot-text 1.4s ease-in-out infinite;
}
@keyframes pulse-dot-text { 50% { opacity: .35; } }

.now-reading-list { list-style: none; padding: 0; margin: 0; }
.now-reading-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed #2B3036;
    align-items: center;
}
.now-reading-list li:first-child { border-top: 0; padding-top: 0; }
.reader-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A4250, #20242A);
    color: #E6FF4B;
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #3A4250;
}
.reader-info { font-size: .9rem; color: #C2CAD4; line-height: 1.35; min-width: 0; }
.reader-info span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: #8D9AAC;
    margin-top: 2px;
}

/* Тематические блоки на главной */
.front-block {
    margin: 60px 0;
}
.front-block-title {
    font-size: 1.5rem;
    margin: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.front-block-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #2B3036;
}
.front-block-lede {
    color: #A0B0C0;
    font-size: 1rem;
    margin: 0 0 28px;
    max-width: 760px;
}

/* Категорийные «чипсы» */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.chips li {
    margin: 0;
    list-style: none;
}
.chip {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    color: #C2CAD4;
    padding: 7px 14px 9px;
    border: 1px solid rgba(160, 176, 192, .25);
    border-radius: 3px;
    background: transparent;
    position: relative;
    transition: color .18s ease, border-color .18s ease;
}
.chip::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: -1px;
    height: 1px;
    background: #E6FF4B;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.chip:hover {
    color: #E6FF4B;
    border-color: rgba(230, 255, 75, .35);
}
.chip:hover::after { transform: scaleX(1); }

/* Шаги / 3 колонки */
.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cols-3 { grid-template-columns: 1fr; } }

.tile {
    background: #20242A;
    border: 1px solid #2B3036;
    border-radius: 6px;
    padding: 22px 22px 24px;
}
.tile h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.tile .tile-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: #E6FF4B;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    display: inline-block;
}
.tile p {
    color: #A0B0C0;
    font-size: .94rem;
    margin: 0;
}

/* ============================================================
   ОБЗОР / ОДНА ЗАПИСЬ
   ============================================================ */
.entry-header { margin-bottom: 24px; }
.entry-cat {
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    color: #E6FF4B;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
}
.entry-cat a { color: #E6FF4B; }
.entry-title {
    font-size: 2.2rem;
    margin: 0 0 16px;
}
.entry-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    color: #8D9AAC;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #2B3036;
}

.entry-thumb {
    margin: 24px 0 28px;
    border-radius: 6px;
    overflow: hidden;
}
.entry-thumb img { width: 100%; height: auto; display: block; }

.entry-content {
    font-family: 'Spectral', Georgia, serif;
    font-size: 18px;
    line-height: 1.75;
    color: #E8EDF2;
}
.entry-content h2 { font-size: 1.55rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.3em; }
.entry-content img { border-radius: 6px; }
.entry-content a { color: #E6FF4B; border-bottom: 1px solid rgba(230, 255, 75, .3); }
.entry-content a:hover { border-bottom-color: #E6FF4B; }

.entry-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #2B3036;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}
.tag-list {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: #8D9AAC;
}
.tag-list a {
    color: #A0B0C0;
    margin-right: 8px;
}
.tag-list a:hover { color: #E6FF4B; }

.post-nav {
    display: flex;
    gap: 14px;
    margin: 32px 0 0;
}
.post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #C2CAD4;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
}
.post-nav a:hover { color: #E6FF4B; }

/* ============================================================
   САЙДБАР — псевдо-OCP
   ============================================================ */
.sidebar { min-width: 0; }

.widget {
    background: #20242A;
    border: 1px solid #2B3036;
    border-radius: 4px;
    margin-bottom: 28px;
    padding: 22px 22px 18px;
    position: relative;
}
/* «винты» по углам */
.widget::before, .widget::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2B3036;
    border: 1px solid #3A4250;
}
.widget::before { top: 8px; left: 8px; }
.widget::after  { top: 8px; right: 8px; }

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #A0B0C0;
    margin: 0 0 14px;
    padding: 4px 14px;
    display: inline-block;
    border: 1px solid #3A4250;
    border-radius: 2px;
    background: #14161A;
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: 8px 0;
    border-top: 1px dashed #2B3036;
    font-size: .94rem;
}
.widget li:first-child { border-top: 0; }
.widget a { color: #C2CAD4; }
.widget a:hover { color: #E6FF4B; }

.widget_nav_menu li { padding: 6px 0; }
.widget select {
    width: 100%;
    background: #14161A;
    color: #E8EDF2;
    border: 1px solid #3A4250;
    padding: 8px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 9px 12px;
    background: #14161A;
    border: 1px solid #3A4250;
    color: #E8EDF2;
    border-radius: 12px 0 0 12px;
    font-family: inherit;
}

/* ============================================================
   ПОИСК
   ============================================================ */
.search-form {
    display: flex;
    gap: 0;
    max-width: 460px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 11px 16px;
    background: #20242A;
    border: 1px solid #3A4250;
    color: #E8EDF2;
    border-radius: 12px 0 0 12px;
    font-family: inherit;
    font-size: .95rem;
    outline: none;
    transition: border-color .18s ease;
}
.search-form input[type="search"]:focus { border-color: #E6FF4B; }
.search-form button {
    padding: 11px 22px;
    background: transparent;
    border: 1px solid #E6FF4B;
    border-left: none;
    color: #E6FF4B;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background .18s ease, color .18s ease;
}
.search-form button:hover { background: #E6FF4B; color: #14161A; }

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */
.pagination {
    margin: 40px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #3A4250;
    color: #C2CAD4;
    font-family: 'JetBrains Mono', monospace;
    font-size: .9rem;
    border-radius: 3px;
    transition: border-color .18s ease, color .18s ease;
}
.pagination .page-numbers:hover { border-color: #E6FF4B; color: #E6FF4B; }
.pagination .page-numbers.current {
    background: #E6FF4B;
    color: #14161A;
    border-color: #E6FF4B;
    font-weight: 600;
}
.pagination .page-numbers.dots { border: 0; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-bottom {
    background: #14161A;
    border-top: 1px solid #2B3036;
    margin-top: 80px;
    padding: 50px 0 24px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }

.footer-cols .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}
.footer-cols .widget::before,
.footer-cols .widget::after { display: none; }
.footer-cols .widget-title {
    background: transparent;
    border: 0;
    padding: 0;
    color: #E6FF4B;
    margin-bottom: 16px;
    font-size: .8rem;
}
.footer-cols .widget li { border-color: #2B3036; }

.footer-bottom {
    border-top: 1px solid #2B3036;
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
}
.footer-copy {
    color: #8D9AAC;
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
}

/* Переключатель «режим инженера» */
.mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #3A4250;
    color: #A0B0C0;
    padding: 7px 14px;
    border-radius: 12px 0 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease;
}
.mode-toggle:hover { color: #E6FF4B; border-color: #E6FF4B; }
.mode-toggle .lamp {
    width: 9px; height: 9px; border-radius: 50%;
    background: #3A4250;
    transition: background .18s ease, box-shadow .18s ease;
}
.is-warm .mode-toggle .lamp {
    background: #E6A24B;
    box-shadow: 0 0 8px rgba(230, 162, 75, .55);
}

/* «Тёплая лампа» — режим инженера */
body.is-warm {
    background: #2B231C;
    color: #F2E2D2;
}
body.is-warm .site-top,
body.is-warm .site-bottom { background: #221C16; }
body.is-warm .card,
body.is-warm .widget,
body.is-warm .tile,
body.is-warm .now-reading,
body.is-warm .hero-feature {
    background: #3A2D24;
    border-color: #4A3A2E;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
body.is-warm .entry-content { color: #F2E2D2; }
body.is-warm h1, body.is-warm h2, body.is-warm h3 { color: #F8E9D6; }
body.is-warm .crumbs, body.is-warm .card-meta, body.is-warm .footer-copy { color: #C0A998; }

/* ============================================================
   КОММЕНТАРИИ
   ============================================================ */
.comments-area { margin-top: 50px; }
.comments-title {
    font-size: 1.3rem;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2B3036;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list li { margin: 0 0 18px; }
.comment-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 18px;
    border-left: 2px solid #2B3036;
}
.comment-body {
    background: #20242A;
    border: 1px solid #2B3036;
    border-radius: 6px;
    padding: 18px 20px;
}
.comment-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: #8D9AAC;
    margin-bottom: 10px;
}
.comment-author { color: #E6FF4B; font-weight: 600; }
.comment-content { color: #C2CAD4; font-size: .96rem; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    margin-top: 8px;
    display: inline-block;
}

.comment-respond { margin-top: 30px; }
.comment-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    color: #A0B0C0;
    margin-bottom: 6px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #14161A;
    border: 1px solid #3A4250;
    color: #E8EDF2;
    padding: 10px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
    outline: none; border-color: #E6FF4B;
}
.comment-form .form-submit input[type="submit"] {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 11px 24px;
    background: transparent;
    color: #E6FF4B;
    border: 1px solid #E6FF4B;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.comment-form .form-submit input[type="submit"]:hover {
    background: #E6FF4B;
    color: #14161A;
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 60px 0;
}
.error-404 .code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6rem;
    color: #E6FF4B;
    line-height: 1;
    margin: 0 0 12px;
}
.error-404 .search-form {
    margin: 22px auto;
}
.error-404 p { color: #A0B0C0; }

/* ============================================================
   COOKIE-БАННЕР  (правило A11)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    background: #20242A;
    border: 1px solid #3A4250;
    border-left: 3px solid #E6FF4B;
    padding: 16px 20px;
    border-radius: 4px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 12px 28px rgba(0,0,0,.4);
    max-width: 760px;
    margin: 0 auto;
}
.cookie-banner p {
    margin: 0;
    color: #C2CAD4;
    font-size: .9rem;
    flex: 1 1 280px;
}
.cookie-banner button {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: #E6FF4B;
    color: #14161A;
    border: 0;
    border-radius: 12px 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease;
}
.cookie-banner button:hover { background: #fff; }

/* ============================================================
   УТИЛИТЫ
   ============================================================ */
.alignleft { float: left; margin: 4px 18px 18px 0; }
.alignright { float: right; margin: 4px 0 18px 18px; }
.aligncenter { display: block; margin: 0 auto 18px; }
.wp-caption {
    max-width: 100%;
    margin: 18px 0;
}
.wp-caption-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: #8D9AAC;
    margin-top: 8px;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.sticky { background: linear-gradient(180deg, #24282E 0%, #20242A 100%); }
.bypostauthor { }

@media (max-width: 600px) {
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .entry-title { font-size: 1.6rem; }
    .hero-feature h2 { font-size: 1.35rem; }
    .wrap-outer { padding: 0 16px; }
}
