/*
Theme Name: dds_projectnd.ru
Author: Илья Поляков
Description: Информационная тема для образовательной онлайн-платформы по полиграфии. Дизайн-концепция «Лаборатория печати»: холодный индустриальный минимализм с лимонным акцентом контроля качества.
Version: 1.1
Text Domain: printlab
*/

/* =========================================================
   Токены
========================================================= */
:root {
    --bg:         #F4F7FA;
    --bg-alt:     #E9EEF5;
    --header-bg:  #0A1A2F;
    --footer-bg:  #0A1A2F;
    --sidebar-bg: #FFFFFF;
    --text:       #1E293B;
    --accent:     #FACC15;
    --accent2:    #00B4D8;
    --muted:      #64748B;
    --border:     #CBD5E1;
    --card-shadow: 4px 4px 0px rgba(10, 26, 47, 0.15);
    --card-shadow-hover: -4px 4px 0px rgba(10, 26, 47, 0.15);
    --shell: min(92%, 1180px);
    --heading: 'Inter', 'Manrope', system-ui, sans-serif;
    --body: 'IBM Plex Sans', 'Roboto', system-ui, sans-serif;
}

/* =========================================================
   База
========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(100,116,139,0.06) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, rgba(100,116,139,0.06) 0 1px, transparent 1px 26px);
    background-position: top left;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading);
    color: var(--text);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

h1 { font-size: 3.5rem; margin: 0 0 0.6em; }
h2 { font-size: 2rem; margin: 0 0 0.6em; }
h3 { font-size: 1.35rem; margin: 0 0 0.5em; }

p { margin: 0 0 1.1em; }

a { color: var(--accent2); text-decoration: none; }

/* Текстовые ссылки внутри контента — пунктир лимонный */
.entry-content a,
.widget-text a,
.textwidget a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}
.entry-content a:hover,
.widget-text a:hover,
.textwidget a:hover {
    text-decoration-style: solid;
    text-decoration-color: var(--text);
}

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

/* =========================================================
   Заголовки секций: лимонная вертикальная полоса
========================================================= */
.section-title {
    position: relative;
    padding-left: 18px;
    margin-bottom: 1.4rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.1em;
    width: 5px;
    height: 2.1em;
    background: var(--accent);
    border-radius: 1px;
}
.section-title .accent { color: var(--accent); }
.hl { color: var(--accent); }

/* =========================================================
   Кнопки
========================================================= */
.btn {
    display: inline-block;
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.72em 1.5em;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
    text-decoration: none;
}
.btn-primary {
    background: var(--header-bg);
    color: var(--accent);
    border-color: var(--header-bg);
}
.btn-primary:hover {
    background: var(--accent);
    color: var(--header-bg);
    transform: translateY(2px);
}
.btn-outline {
    background: transparent;
    color: var(--accent2);
    border: 1px solid var(--accent2);
}
.btn-outline:hover {
    background: var(--accent2);
    color: #fff;
    transform: translateY(2px);
}

/* =========================================================
   Шапка
========================================================= */
.site-header {
    background: var(--header-bg);
    color: #fff;
    border-bottom: 3px solid var(--accent);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.brand-logo { display: block; flex: none; }
.brand-text { min-width: 0; }
.site-title {
    font-family: var(--heading);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    max-width: 520px;
}
.site-title a { color: #fff; }
.site-description {
    font-size: 0.78rem;
    color: #9fb2c9;
    margin: 0.35rem 0 0;
    max-width: 520px;
    line-height: 1.45;
}

/* Навигация */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.4rem;
    margin: 0; padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    display: block;
    color: #e2e9f2;
    font-family: var(--heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5em 0.85em;
    border-radius: 4px;
    transition: color .12s, background-color .12s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--header-bg);
    background: var(--accent);
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 4px;
    padding: 0.5em 0.8em;
    font-family: var(--heading);
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   Разметка контента
========================================================= */
.site-main { padding: 2.4rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3.2%;
    align-items: start;
}
.layout-single {
    display: block;
}
.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
}
.content-area { min-width: 0; }

/* Сайдбар */
.sidebar {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    padding: 1.4rem 1.3rem;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.4rem 0; border-bottom: 1px dashed var(--border); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--text); }
.sidebar a:hover { color: var(--accent2); }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* =========================================================
   Хлебные крошки
========================================================= */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding: 0.6rem 0;
}
.breadcrumbs a { color: var(--accent2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { color: var(--border); margin: 0 0.15rem; }

/* =========================================================
   Карточки записей
========================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow .16s ease, transform .16s ease;
    min-width: 0;
}
.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateX(2px);
}
.card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-alt);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Наложение «миллиметровки» на миниатюру */
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(10,26,47,0.10) 0 1px, transparent 1px 11px);
    pointer-events: none;
}
.card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0A1A2F, #1e3a5f);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-title {
    font-size: 1.2rem;
    margin: 0.4rem 0 0.6rem;
    line-height: 1.25;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent2); }
.card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    flex: 1;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-footer { margin-top: 1rem; }
.card .post-meta {
    font-size: 0.78rem;
    color: var(--muted);
    font-family: var(--heading);
    letter-spacing: 0.02em;
}
.meta-sep { color: var(--border); }
.meta-cat { color: var(--accent2); font-weight: 600; }
.read-more {
    display: inline-block;
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 2px dashed var(--accent);
    padding-bottom: 2px;
}
.read-more:hover { border-bottom-style: solid; border-bottom-color: var(--text); }

/* =========================================================
   Одиночная запись / страница
========================================================= */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.6rem; }
.entry-thumb {
    margin: 0 0 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { height: auto; border: 1px solid var(--border); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--header-bg);
    color: #fff;
    border-left: 5px solid var(--accent);
    border-radius: 0 4px 4px 0;
}
.entry-content blockquote p { margin: 0; }

/* Таблицы */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
}
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--border);
}
.entry-content th, .entry-content td { padding: 0.7em 0.9em; text-align: left; }
.entry-content th { background: var(--bg-alt); font-family: var(--heading); }

/* =========================================================
   Пагинация
========================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.4rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: var(--heading);
    font-weight: 700;
    border-radius: 4px;
    transition: background-color .12s, color .12s;
}
.pagination a.page-numbers:hover {
    background: var(--accent);
    color: var(--header-bg);
    border-color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--header-bg);
    color: var(--accent);
    border-color: var(--header-bg);
}
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* =========================================================
   Главная — общие секции
========================================================= */
.front-section { padding: 3.4rem 0; }
.front-section.alt { background: var(--bg-alt); }
.section-divider {
    position: relative;
    height: 1px;
    background: var(--border);
    width: var(--shell);
    margin-inline: auto;
}
.section-divider::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 9px; height: 9px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Hero */
.hero {
    background: var(--header-bg);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 4.2rem 0;
    border-bottom: 3px solid var(--accent);
}
.hero::before {
    content: "";
    position: absolute;
    left: -40px; bottom: -30px;
    width: 320px; height: 320px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23FACC15' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Cpath d='M100 5v40M100 155v40M5 100h40M155 100h40'/%3E%3Cpath d='M45 45l25 25M155 45l-25 25M45 155l25-25M155 155l-25-25'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.10;
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 { font-size: 3.5rem; color: #fff; margin-bottom: 0.5em; }
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 1.15rem; color: #c6d3e2; max-width: 32em; }
.hero-actions { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* Сетка «Проблемы → Решения» */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.6rem;
}
.problem-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem 1.4rem;
    min-width: 0;
    position: relative;
}
.front-section.alt .problem-card { background: #fff; }
.problem-icon { flex: none; color: var(--accent); }
.problem-icon svg { display: block; width: 44px; height: 44px; }
.problem-body { min-width: 0; }
.problem-body h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.problem-body p { font-size: 0.94rem; color: #475569; margin-bottom: 0.7rem; }
.problem-link {
    font-family: var(--heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    border-bottom: 2px dashed var(--accent);
    padding-bottom: 2px;
}
.problem-link:hover { border-bottom-style: solid; }
/* «Стоп-кадр» — тонкий крест браковки */
.problem-card::after {
    content: "×";
    position: absolute;
    top: 0.5rem; right: 0.8rem;
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    font-family: var(--heading);
}

/* Таймлайн */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 1.5rem auto 0;
    padding-left: 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 4px;
    background: var(--accent2);
    transform: translateX(-50%);
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0.6rem 2.2rem 1.8rem;
    min-width: 0;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-item::before {
    content: "";
    position: absolute;
    top: 1rem;
    width: 16px; height: 16px;
    background: var(--accent);
    border: 3px solid var(--header-bg);
    border-radius: 50%;
    z-index: 1;
}
.tl-item:nth-child(odd)::before { right: -8px; }
.tl-item:nth-child(even)::before { left: -8px; }
.tl-stage {
    display: inline-block;
    font-family: var(--heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 0.3rem;
}
.tl-item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.tl-item p { font-size: 0.92rem; color: #475569; margin: 0; }

/* Чек-лист */
.checklist {
    max-width: 720px;
    margin: 1.5rem auto 0;
    list-style: none;
    padding: 0;
}
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: border-color .12s;
    min-width: 0;
}
.check-item:hover { border-color: var(--accent); }
.check-box {
    flex: none;
    width: 26px; height: 26px;
    border: 3px solid var(--header-bg);
    border-radius: 4px;
    position: relative;
    margin-top: 2px;
    transition: background-color .12s;
}
.check-item:hover .check-box { background: var(--accent); }
.check-item:hover .check-box::after {
    content: "";
    position: absolute;
    left: 7px; top: 2px;
    width: 6px; height: 12px;
    border: solid var(--header-bg);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.check-text { min-width: 0; }
.check-text strong {
    display: block;
    font-family: var(--heading);
    font-size: 1.02rem;
    margin-bottom: 0.15rem;
}
.check-text span { font-size: 0.9rem; color: #475569; }
.check-item:hover .check-text strong {
    text-decoration: line-through;
    text-decoration-color: var(--accent2);
}

/* Блок последних записей на главной */
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.latest-head .btn-outline { flex: none; }

/* CTA-строка внутри hero не используется отдельно */

/* =========================================================
   Подвал
========================================================= */
.site-footer {
    background: var(--footer-bg);
    color: #c6d3e2;
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--accent);
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-cols .widget-title {
    color: #fff;
    font-family: var(--heading);
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.footer-cols .widget { color: #a9bace; font-size: 0.92rem; }
.footer-cols a { color: #d5e0ee; }
.footer-cols a:hover { color: var(--accent); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 0.32rem 0; }
.footer-cols .post-date { display: block; font-size: 0.76rem; color: #7d92aa; }
.footer-cols .textwidget a {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: var(--accent);
    color: #d5e0ee;
}
.site-copyright {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    color: #8298b1;
    letter-spacing: 0.06em;
    font-family: var(--heading);
}

/* =========================================================
   Форма поиска
========================================================= */
.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6em 0.8em;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.search-form .search-submit {
    flex: none;
    background: var(--header-bg);
    color: var(--accent);
    border: 1px solid var(--header-bg);
    border-radius: 4px;
    padding: 0.6em 1.1em;
    font-family: var(--heading);
    font-weight: 700;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent); color: var(--header-bg); }
.sidebar .search-form { margin-bottom: 0.5rem; }

/* =========================================================
   Комментарии
========================================================= */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.2rem; }
.comment-body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; align-items: baseline; }
.comment-author { font-family: var(--heading); font-weight: 700; }
.comment-date { font-size: 0.78rem; color: var(--muted); }
.comment-content p { margin: 0 0 0.5em; }
.comment-actions { font-size: 0.85rem; }
.comment-respond {
    margin-top: 1.6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.4rem 1.5rem;
}
.comment-form label { display: block; font-family: var(--heading); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--body);
    margin-bottom: 1rem;
    background: #fff;
    color: var(--text);
}
.comment-form .submit {
    background: var(--header-bg);
    color: var(--accent);
    border: 1px solid var(--header-bg);
    border-radius: 4px;
    padding: 0.7em 1.6em;
    font-family: var(--heading);
    font-weight: 700;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent); color: var(--header-bg); }

/* =========================================================
   404
========================================================= */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .code {
    font-family: var(--heading);
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(10,26,47,0.15);
}
.error-404 .search-form { max-width: 440px; margin: 1.6rem auto; }

/* =========================================================
   Cookie-баннер
========================================================= */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--header-bg);
    color: #e2e9f2;
    border-top: 3px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 60ch; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-accept {
    flex: none;
    background: var(--accent);
    color: var(--header-bg);
    border: none;
    border-radius: 4px;
    padding: 0.7em 1.6em;
    font-family: var(--heading);
    font-weight: 700;
    cursor: pointer;
}
.cookie-accept:hover { transform: translateY(2px); }

/* =========================================================
   Адаптив
========================================================= */
@media (max-width: 960px) {
    h1, .hero h1, .entry-title { font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.2rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero h1, .entry-title { font-size: 2.05rem; }
    h2 { font-size: 1.6rem; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav-toggle { display: block; align-self: flex-end; margin-top: -3rem; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; display: none; }
    .main-nav.is-open ul { display: flex; }
    .layout-single .content-area { width: 100%; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .front-section { padding: 2.4rem 0; }
    .hero { padding: 3rem 0; }

    /* Таймлайн в одну колонку */
    .timeline::before { left: 8px; }
    .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0.4rem 0 1.6rem 2.4rem; }
    .tl-item::before { left: 0 !important; right: auto !important; }

    .cookie-inner { flex-direction: column; align-items: stretch; }
    .cookie-accept { width: 100%; }
}
