/*
Theme Name: dds_crosslifestudio.com
Theme URI: https://crosslifestudio.com/
Author: Алексей Миронов
Author URI: https://crosslifestudio.com/
Description: Контентно-образовательная платформа о цифровых профессиях и удалённой работе с фокусом на дизайн, онлайн-навыки, карьерные траектории и способы заработка на глобальном рынке.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: crosslife
Tags: blog, education, two-columns, custom-menu, custom-logo, featured-images, threaded-comments
*/

/* =========================================================
   1. Базовые сбросы и переменные
   ========================================================= */
:root {
    --bg-deep: #0F1217;
    --bg-surface: #FFFFFF;
    --bg-card-dark: #1A1E26;
    --bg-subtle: #1E232E;
    --accent: #00D2FF;
    --accent-2: #1FE7CF;
    --accent-warm: #FFC284;
    --text-main: #E5E9F0;
    --text-heading: #FFFFFF;
    --text-muted: #8B93A5;
    --text-dark: #1A1E26;
    --border-line: #2A2F3A;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 10px 40px rgba(0, 210, 255, 0.15);
    --radius-btn: 40px;
    --radius-card: 14px;
    --max-w: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background: var(--bg-deep);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent-warm);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-heading);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

ul, ol {
    padding-left: 1.4em;
    margin: 0 0 1em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 3px solid var(--accent-warm);
    background: rgba(255, 194, 132, 0.06);
    color: var(--text-main);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: #0a0d12;
    color: var(--text-main);
    padding: 1em 1.2em;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--border-line);
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--border-line);
}

th, td {
    border: 1px solid var(--border-line);
    padding: 0.7em 1em;
    text-align: left;
}

th {
    background: var(--bg-subtle);
    color: var(--text-heading);
    font-weight: 600;
}

.screen-reader-text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================================
   2. Общий каркас
   ========================================================= */
.site-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.shell {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    flex: 1;
    padding: 40px 0 80px;
}

/* =========================================================
   3. Шапка
   ========================================================= */
.site-head {
    background: rgba(15, 18, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-line);
    padding: 18px 0;
}

.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    padding: 8px;
    flex-shrink: 0;
}

.brand-svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin: 0;
    text-decoration: none;
    display: block;
}

.brand-title:hover {
    color: var(--accent);
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--accent-warm);
    margin-top: 4px;
}

.owner-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-warm);
    box-shadow: 0 0 8px var(--accent-warm);
}

/* Навигация */
.nav-block {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: var(--bg-subtle);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text-main);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   4. Контент — общая разметка
   ========================================================= */
.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.layout.has-sidebar {
    grid-template-columns: 67% 27%;
    gap: 6%;
}

.layout.no-sidebar {
    grid-template-columns: 85%;
    justify-content: center;
}

.page-title {
    margin-bottom: 26px;
}

.page-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin-bottom: 30px;
}

/* =========================================================
   5. Хлебные крошки
   ========================================================= */
.crumbs {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 26px;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.crumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs .sep {
    opacity: 0.55;
    margin: 0 2px;
}

.crumbs .current {
    color: var(--text-heading);
}

/* =========================================================
   6. Карточки записей
   ========================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    color: var(--text-dark);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1E232E, #0F1217);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: #0a0d12;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.card:hover .card-tag {
    opacity: 1;
    transform: translateY(0);
}

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

.card-meta {
    font-size: 0.78rem;
    color: #6A7285;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.18rem;
    margin: 0 0 10px;
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent);
}

.card-excerpt {
    color: #4A5264;
    font-size: 0.95rem;
    margin: 0 0 16px;
    flex: 1;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    text-decoration: none;
    align-self: flex-start;
}

.card-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.card-more:hover {
    color: var(--accent-warm);
}

.card-more:hover::after {
    transform: translateX(4px);
}

/* =========================================================
   7. Кнопки
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-btn);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0d12;
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.45);
    color: #0a0d12;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    color: #0a0d12;
}

.filter-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-subtle);
    color: #B0B8C8;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    background: var(--accent);
    color: #0a0d12;
}

/* =========================================================
   8. Главная — тематические блоки
   ========================================================= */
.home-main {
    padding: 60px 0 90px;
}

.home-main .shell {
    max-width: 85%;
    width: 85%;
}

.section {
    margin-bottom: 80px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
}

.section-kicker {
    display: inline-block;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.section-lead {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Hero — первый блок */
.hero-block {
    background: radial-gradient(ellipse at top left, rgba(0, 210, 255, 0.12), transparent 55%),
                radial-gradient(ellipse at bottom right, rgba(255, 194, 132, 0.08), transparent 55%),
                linear-gradient(145deg, #161b25 0%, #0F1217 100%);
    border: 1px solid var(--border-line);
    border-radius: 22px;
    padding: 60px 48px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .accent-word {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tracks — карьерные маршруты */
.tracks-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.track-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-line);
    border-radius: 18px;
    padding: 30px;
    position: relative;
    transition: border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.track-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.track-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.track-card:hover::before {
    opacity: 1;
}

.track-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(31, 231, 207, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--accent);
}

.track-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.track-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.track-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border-line);
}

.track-meta strong {
    color: var(--accent-warm);
}

/* Tools — инструменты дизайнера */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tool-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: rgba(0, 210, 255, 0.04);
}

.tool-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0d12;
    font-weight: 800;
    font-size: 1.1rem;
}

.tool-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Skill income — шкала доходности */
.skill-scale {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.skill-seg {
    width: 26px;
    height: 6px;
    background: var(--border-line);
    border-radius: 3px;
}

.skill-seg.on {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

/* Steps — блок с шагами */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    counter-reset: step;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-line);
    border-radius: 16px;
    padding: 30px 26px;
    position: relative;
    counter-increment: step;
}

.step-card::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-warm);
    margin-bottom: 16px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* CTA — глобальный рынок */
.cta-band {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(255, 194, 132, 0.08) 100%),
                var(--bg-card-dark);
    border: 1px solid var(--border-line);
    border-radius: 22px;
    padding: 50px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.cta-band p {
    margin: 0;
    color: var(--text-muted);
    max-width: 540px;
}

/* =========================================================
   9. Сайдбар и виджеты
   ========================================================= */
.side-col {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.widget {
    background: var(--bg-card-dark);
    border: 1px solid var(--border-line);
    border-radius: 14px;
    padding: 22px 24px;
}

.widget h2,
.widget h3,
.widget .widget-title {
    font-size: 1.05rem;
    margin: 0 0 16px;
    color: var(--text-heading);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-line);
    font-weight: 700;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(42, 47, 58, 0.5);
    font-size: 0.92rem;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-main);
    text-decoration: none;
}

.widget a:hover {
    color: var(--accent);
}

.widget .search-form {
    display: flex;
    gap: 8px;
}

.widget select,
.widget input[type="text"],
.widget input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-line);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* =========================================================
   10. Single / Page — статья
   ========================================================= */
.article-wrap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-line);
    border-radius: 18px;
    padding: 40px 42px;
}

.article-title {
    margin-bottom: 14px;
}

.article-meta {
    display: flex;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-line);
    flex-wrap: wrap;
    align-items: center;
}

.article-meta a {
    color: var(--text-muted);
}

.article-meta a:hover {
    color: var(--accent);
}

.skill-income {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-radius: 10px;
    font-size: 0.85rem;
}

.skill-income-label {
    color: var(--text-muted);
}

.skill-income-value {
    color: var(--accent-warm);
    font-weight: 600;
}

.article-thumb {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 30px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    font-size: 1.02rem;
    color: var(--text-main);
}

.article-body h2,
.article-body h3 {
    margin-top: 1.6em;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.article-body a:hover {
    color: var(--accent-warm);
}

.article-body img {
    border-radius: 10px;
    margin: 1.5em 0;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-tags-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-right: 6px;
}

/* =========================================================
   11. Пагинация
   ========================================================= */
.pager {
    margin: 40px 0 10px;
    display: flex;
    justify-content: center;
}

.pager .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.pager .page-numbers:hover {
    background: var(--bg-card-dark);
    color: var(--accent);
    border-color: var(--accent);
}

.pager .page-numbers.current {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0d12;
    font-weight: 700;
}

.pager .page-numbers.dots {
    background: transparent;
    color: var(--text-muted);
}

/* =========================================================
   12. Комментарии
   ========================================================= */
.comments-area {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-line);
    border-radius: 18px;
    padding: 34px 38px;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 22px;
}

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

.comment-list ol.children {
    list-style: none;
    padding-left: 30px;
    margin-top: 16px;
}

.comment-item {
    margin-bottom: 22px;
    padding: 20px 22px;
    background: var(--bg-card-dark);
    border-radius: 12px;
    border: 1px solid var(--border-line);
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-head .avatar {
    border-radius: 50%;
}

.comment-author {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-left: auto;
}

.comment-body-text {
    color: var(--text-main);
    font-size: 0.95rem;
}

.comment-body-text p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--accent);
}

.comment-respond {
    padding-top: 20px;
    border-top: 1px solid var(--border-line);
}

.comment-form {
    display: grid;
    gap: 14px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-line);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

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

.form-submit {
    margin: 0;
}

.form-submit input[type="submit"] {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0d12;
    border: none;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
}

/* =========================================================
   13. 404 и форма поиска
   ========================================================= */
.not-found-wrap {
    text-align: center;
    padding: 80px 20px;
    max-width: 720px;
    margin: 0 auto;
}

.not-found-code {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.not-found-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.not-found-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-line);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    border-color: var(--accent);
    outline: none;
}

.search-form button {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0d12;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================================
   14. Подвал
   ========================================================= */
.site-foot {
    background: #0a0d12;
    border-top: 1px solid var(--border-line);
    padding: 60px 0 30px;
    color: var(--text-muted);
    margin-top: auto;
}

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

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

.foot-col .widget h2,
.foot-col .widget h3,
.foot-col .widget .widget-title {
    color: var(--text-heading);
    border-bottom-color: var(--border-line);
    font-size: 1rem;
    margin-bottom: 18px;
}

.foot-col .widget a {
    color: var(--text-muted);
}

.foot-col .widget a:hover {
    color: var(--accent);
}

.foot-col .widget li {
    border-bottom: none;
    padding: 5px 0;
}

.foot-bottom {
    padding-top: 26px;
    border-top: 1px solid var(--border-line);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.foot-owner {
    color: var(--accent-warm);
}

/* =========================================================
   15. Cookie-баннер
   ========================================================= */
.cookie-bar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    background: var(--bg-card-dark);
    border: 1px solid var(--accent);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 720px;
    margin: 0 auto;
    transform: translateY(calc(100% + 30px));
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-text {
    flex: 1;
    color: var(--text-main);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0d12;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
    flex-shrink: 0;
}

/* =========================================================
   16. Список записей (архивы, поиск)
   ========================================================= */
.archive-head {
    margin-bottom: 30px;
}

.archive-kicker {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* =========================================================
   17. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    .layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout.no-sidebar {
        grid-template-columns: 1fr;
    }
    .home-main .shell {
        max-width: 100%;
        width: 100%;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .tracks-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tracks-grid .track-card:first-child {
        grid-column: 1 / -1;
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .foot-cols {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .hero-block {
        padding: 40px 30px;
    }
    .article-wrap,
    .comments-area {
        padding: 28px 26px;
    }
}

@media (max-width: 600px) {
    .shell {
        padding: 0 16px;
    }
    .site-main {
        padding: 24px 0 60px;
    }
    .head-row {
        gap: 16px;
    }
    .nav-toggle {
        display: inline-block;
    }
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 14px;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    .main-nav a {
        display: block;
        padding: 12px 14px;
    }
    .brand-block {
        flex: 1;
        gap: 12px;
    }
    .brand-title {
        font-size: 1rem;
    }
    .brand-tagline {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    .tracks-grid {
        grid-template-columns: 1fr;
    }
    .tracks-grid .track-card:first-child {
        grid-column: auto;
    }
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .hero-block {
        padding: 30px 22px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .foot-cols {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .cta-band {
        padding: 30px 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-bar {
        flex-direction: column;
        gap: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }
    .cookie-btn {
        width: 100%;
    }
    .section {
        margin-bottom: 50px;
    }
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    .article-wrap,
    .comments-area {
        padding: 22px 18px;
    }
    .card-body {
        padding: 18px 18px 16px;
    }
}
