/*
Theme Name: dds_maxactors.ru
Theme URI: https://maxactors.ru/
Author: Анна Соколова
Author URI: https://maxactors.ru/
Description: Stage Light — минималистичная контрастная тема для информационного портала об актёрской профессии, кастингах и индустрии.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: stlight
*/

:root {
    --paper: #F4F6F9;
    --alt: #E8ECF1;
    --dark: #1A1F2B;
    --ink: #1E232E;
    --accent: #4B7BEC;
    --accent-deep: #1E2A47;
    --gold: #F5C542;
    --muted: #7B8496;
    --line: #D0D7E2;
    --white: #FFFFFF;
    --head-font: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --body-font: "Roboto", "PT Sans", "Segoe UI", Arial, sans-serif;
    --mono-font: "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    color: var(--ink);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 0.7em;
    letter-spacing: -0.01em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main { display: block; }

/* ---------- Раскладки ---------- */

.layout-single {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 3.4rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    padding: 2.6rem 0 3.4rem;
}

.content-area { min-width: 0; }

/* ---------- Верхняя полоса и шапка ---------- */

.topline {
    height: 3px;
    background: var(--gold);
}

.site-head {
    background-color: var(--dark);
    background-image: radial-gradient(rgba(75, 123, 236, 0.35) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #EEF1F6;
    padding: 1.4rem 0;
    border-bottom: 1px solid #262D3B;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 62%;
}

.brand-logo { display: block; max-height: 54px; width: auto; }

.brand-mark { display: block; flex: 0 0 46px; }

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

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
    color: #FFFFFF;
}

a.brand-name:hover { color: var(--gold); }

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #9AA5B8;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--accent);
    color: #FFFFFF;
    font-family: var(--head-font);
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #E6EAF2;
    font-family: var(--head-font);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

.crumbs a { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs .sep { margin: 0 0.35rem; color: var(--line); }

/* ---------- Кнопки и текстовые ссылки ---------- */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.85rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn:hover {
    background: #3A66CE;
    border-color: #3A66CE;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(27, 31, 46, 0.22);
}

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

.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: none;
    transform: none;
}

.btn-light {
    background: var(--gold);
    border-color: var(--gold);
    color: #1A1F2B;
}

.btn-light:hover {
    background: #E0B02F;
    border-color: #E0B02F;
    color: #1A1F2B;
}

.entry-body a,
.widget .textwidget a,
.comment-text a {
    color: var(--accent);
    border-bottom: 1px dotted var(--accent);
}

.entry-body a:hover,
.widget .textwidget a:hover,
.comment-text a:hover {
    color: #6D93F0;
    border-bottom-style: solid;
}

/* ---------- Заголовки секций и разделители ---------- */

.sec-title {
    position: relative;
    padding-left: 22px;
    margin-bottom: 1.4rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0.16em;
    bottom: 0.16em;
    width: 3px;
    background: var(--accent);
}

.frame-divider {
    height: 6px;
    background-image: repeating-linear-gradient(to right, var(--gold) 0 6px, transparent 6px 14px);
    opacity: 0.3;
    margin: 0;
}

/* ---------- Карточки записей ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.8rem;
}

.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 6px 6px 0 0 rgba(27, 31, 46, 0.15);
    transition: box-shadow 0.2s ease;
}

.card:hover { box-shadow: 10px 10px 0 0 rgba(27, 31, 46, 0.2); }

.card-thumb { display: block; overflow: hidden; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1A1F2B 0%, #2C3752 100%);
    background-image:
        radial-gradient(rgba(245, 197, 66, 0.35) 1px, transparent 1px),
        linear-gradient(135deg, #1A1F2B 0%, #2C3752 100%);
    background-size: 18px 18px, auto;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}

.card-title {
    font-size: 1.18rem;
    margin: 0.55rem 0 0.5rem;
}

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    font-family: var(--mono-font);
    letter-spacing: 0.03em;
}

.card-excerpt {
    color: #3C4655;
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

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

.card-foot { margin-top: auto; padding-top: 1.1rem; }

.card-more {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    border-bottom: 1px dotted var(--accent);
}

.card-more:hover { border-bottom-style: solid; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--head-font);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4A5364;
    background: var(--alt);
    padding: 0.28rem 0.55rem;
    border-radius: 2px;
}

.tag-chip:hover { color: var(--accent); }

.tag-chip .swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 1px;
}

/* ---------- Главная: hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0B0F19 0%, #1A2844 100%);
    color: #EDF1F8;
    padding: 4.2rem 0 4.4rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(75, 123, 236, 0.35) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero-mask {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 420px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--mono-font);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border-left: 3px solid var(--gold);
    padding-left: 0.7rem;
    margin-bottom: 1.2rem;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.hero-lead {
    color: #B9C4D8;
    font-size: 1.08rem;
    max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.hero-stage { min-width: 0; }
.hero-stage svg { display: block; width: 100%; height: auto; }

/* ---------- Главная: секции ---------- */

.front-section { padding: 3.6rem 0; }
.front-section.is-alt { background: var(--alt); }

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.sec-lead {
    color: #4A5364;
    max-width: 48em;
    margin-top: -0.6rem;
    margin-bottom: 2.2rem;
}

/* Таймлайн */

.road {
    position: relative;
    margin-top: 2.4rem;
}

.road::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
}

.road-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 2rem;
}

.road-stage {
    text-align: right;
    padding-right: 1.4rem;
    min-width: 0;
}

.road-stage h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }

.road-stage .road-num {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.road-mark {
    display: flex;
    justify-content: center;
    padding-top: 0.45rem;
}

.road-mark i {
    display: block;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.road-item:hover .road-mark i {
    background: var(--gold);
    border-color: var(--gold);
}

.road-text {
    padding-left: 1.4rem;
    color: #45505F;
    font-size: 0.97rem;
    min-width: 0;
}

/* Статистика */

.figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 2rem;
    margin-top: 2.2rem;
}

.figure { min-width: 0; }

.figure b {
    display: block;
    font-family: var(--mono-font);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.figure hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0.8rem 0 0.7rem;
}

.figure span { display: block; color: #4A5364; font-size: 0.92rem; }

/* Рубрикатор */

.topic-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2.6rem 1.6rem;
    margin-top: 3rem;
}

.topic-tile {
    position: relative;
    display: block;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 2.4rem 1.4rem 1.5rem;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.topic-tile:hover {
    border-color: var(--accent);
    box-shadow: 6px 6px 0 0 rgba(27, 31, 46, 0.12);
}

.topic-icon {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-icon svg { display: block; width: 24px; height: 24px; }

.topic-tile strong {
    display: block;
    font-family: var(--head-font);
    font-size: 1.05rem;
    color: var(--ink);
}

.topic-tile em {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

/* Лента последних записей на главной */

.front-feed-foot { margin-top: 2.2rem; }

/* ---------- Контент записей и страниц ---------- */

.entry-head { margin-bottom: 1.6rem; }

.entry-title { font-size: 2.5rem; margin-bottom: 0.6rem; }

.entry-meta {
    font-family: var(--mono-font);
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.entry-thumb { margin-bottom: 1.8rem; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-body { font-size: 1.02rem; }

.entry-body h2 { font-size: 1.75rem; margin-top: 2rem; }
.entry-body h3 { font-size: 1.35rem; margin-top: 1.6rem; }

.entry-body ul,
.entry-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }

.entry-body li { margin-bottom: 0.45em; }

.entry-body img { display: block; height: auto; }

.entry-body blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--alt);
    border-left: 4px solid var(--gold);
    font-size: 1.15rem;
    color: #2A3242;
}

.entry-body blockquote p { margin: 0; }
.entry-body blockquote p + p { margin-top: 0.7em; }

.entry-body blockquote p::before { content: "«"; }
.entry-body blockquote p::after { content: "»"; }

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
}

.entry-body th,
.entry-body td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-body th { background: var(--alt); font-family: var(--head-font); }

.entry-body code {
    font-family: var(--mono-font);
    background: var(--alt);
    padding: 0.1rem 0.35rem;
    font-size: 0.9em;
}

.entry-foot {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.page-title-block { margin-bottom: 2rem; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar { min-width: 0; padding-top: 0.4rem; }

.widget {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.4rem 1.4rem 1.5rem;
    margin-bottom: 1.8rem;
    color: #2A3242;
}

.widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-left: 14px;
    position: relative;
    color: var(--ink);
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 3px;
    background: var(--accent);
}

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

.widget li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

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

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

.widget .post-date {
    display: block;
    font-family: var(--mono-font);
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.widget .textwidget { color: #3C4655; font-size: 0.95rem; }

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 4px;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

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

/* ---------- Поиск ---------- */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

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

.search-form button { flex: 0 0 auto; }

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

.comments-title { font-size: 1.4rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.4rem; }

.comment-item { margin-bottom: 1.2rem; }

.comment-body {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.1rem 1.3rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author { font-family: var(--head-font); font-weight: 700; }

.comment-date { font-family: var(--mono-font); font-size: 0.78rem; color: var(--muted); }

.comment-hold { color: var(--muted); font-size: 0.9rem; }

.comment-actions a {
    font-size: 0.85rem;
    font-family: var(--head-font);
    font-weight: 600;
    border-bottom: 1px dotted var(--accent);
}

.comment-respond {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.5rem 1.6rem 1.7rem;
}

.comment-respond .comment-reply-title { font-size: 1.2rem; margin-bottom: 0.9rem; }

.comment-form label {
    display: block;
    font-family: var(--head-font);
    font-size: 0.88rem;
    font-weight: 600;
    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.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    background: var(--paper);
    color: var(--ink);
}

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

.comment-form p { margin-bottom: 1rem; }

.comment-form .submit {
    display: inline-block;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

.comment-form .submit:hover { background: #3A66CE; border-color: #3A66CE; }

/* ---------- Подвал ---------- */

.site-foot {
    background-color: var(--dark);
    background-image: radial-gradient(rgba(75, 123, 236, 0.35) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #C8D0DE;
    padding: 3rem 0 0;
    margin-top: 3rem;
    border-top: 3px solid var(--gold);
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

.foot-cols .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
    color: #C8D0DE;
}

.foot-cols .widget-title { color: #FFFFFF; }
.foot-cols .widget-title::before { background: var(--gold); }

.foot-cols .widget a { color: #C8D0DE; }
.foot-cols .widget a:hover { color: var(--gold); }

.foot-cols .widget li { border-bottom: 1px solid #2B3342; }

.foot-cols .widget .textwidget { color: #A8B2C4; }

.foot-cols .widget .post-date { color: #8C97AB; }

.copyright {
    margin-top: 2.6rem;
    padding: 1.3rem 0;
    border-top: 1px solid #2B3342;
    font-size: 0.85rem;
    color: #8C97AB;
}

/* ---------- Cookie-баннер ---------- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #12161F;
    border-top: 3px solid var(--gold);
    color: #DCE2EC;
    font-size: 0.9rem;
    padding: 1rem 1.4rem;
}

.cookie-banner p { margin: 0; max-width: 62em; }

/* ---------- 404 ---------- */

.err-block { padding: 3rem 0 4rem; }

.err-code {
    font-family: var(--mono-font);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin: 0 0 0.6rem;
}

.err-block .search-form { max-width: 480px; margin: 1.6rem 0; }

.no-results { padding: 1rem 0 2rem; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero h1 { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar { margin-top: 2.6rem; }

    .layout-single,
    .front-inner,
    .hero-inner { width: 100%; }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .hero-stage { max-width: 460px; }

    .nav-toggle { display: inline-block; }

    .main-nav {
        display: none;
        flex-basis: 100%;
        width: 100%;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 1rem;
    }

    .main-nav li { border-top: 1px solid #2B3342; }
    .main-nav a { display: block; padding: 0.7rem 0; border-bottom: 0; }

    .brand { max-width: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }

    .hero { padding: 3rem 0 3.2rem; }
    .hero-mask { width: 280px; right: -70px; bottom: -60px; }

    .front-section { padding: 2.6rem 0; }

    .figure b { font-size: 2rem; }

    .road::before { left: 7px; transform: none; }

    .road-item {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 0 0.8rem;
        margin-bottom: 1.6rem;
    }

    .road-stage {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding-right: 0;
    }

    .road-mark {
        grid-column: 1;
        grid-row: 1 / span 2;
        justify-content: flex-start;
    }

    .road-text {
        grid-column: 2;
        grid-row: 2;
        padding-left: 0;
        margin-top: 0.3rem;
    }

    .topic-map { gap: 2.4rem 1.2rem; }

    .card-body { padding: 1.1rem 1.1rem 1.3rem; }

    .comment-list .children { padding-left: 0.8rem; }

    .cookie-banner { padding: 0.9rem 1.1rem; font-size: 0.85rem; }

    .entry-body blockquote { padding: 1.1rem 1.1rem; font-size: 1.05rem; }
}

.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;
}
