/*
Theme Name: dds_printuiu.rf
Author: Алексей Кузнецов
Description: Тема для онлайн-школы печати: швейцарская сетка, индустриальный характер, контраст белого, графита и электрик-бирюзы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: prntlab
*/

:root {
    --bg: #FFFFFF;
    --bg-alt: #F2F4F7;
    --graphite: #0F1115;
    --ink: #14171C;
    --teal: #00C2B8;
    --red: #FF3D2E;
    --muted: #6B7280;
    --rule: #D1D5DB;
    --head: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cg fill='none' stroke='%2314171C' stroke-width='3' opacity='.07'%3E%3Ccircle cx='120' cy='150' r='90'/%3E%3Ccircle cx='120' cy='150' r='60'/%3E%3Ccircle cx='120' cy='150' r='14'/%3E%3Ccircle cx='300' cy='110' r='70'/%3E%3Ccircle cx='300' cy='110' r='12'/%3E%3Cpath d='M30 150h180M230 110h140M0 245h400M0 262h400'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(20, 23, 28, 0.035) 0 1px, transparent 1px 16px);
    background-repeat: no-repeat, repeat;
    background-position: right -40px bottom -30px, 0 0;
    background-size: 440px auto, auto;
    background-attachment: fixed, scroll;
}

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

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.005em;
    margin: 1.4em 0 0.55em;
    color: var(--ink);
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.3rem; }

a { color: var(--teal); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.entry-content a, .page-lead a, .widget_text a, .reply-text a, .empty-note a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    padding-bottom: 1px;
    transition: background-size .2s ease;
}
.entry-content a:hover, .page-lead a:hover, .widget_text a:hover, .reply-text a:hover, .empty-note a:hover {
    background-size: 100% 2px;
}

blockquote {
    margin: 1.6em 0;
    padding: 0.4em 0 0.4em 1.4em;
    border-left: 4px solid var(--teal);
    font-size: 1.15rem;
}

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--rule); }
th, td { border: 1px solid var(--rule); padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

pre, code { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
pre { overflow-x: auto; background: var(--bg-alt); padding: 1em 1.2em; border: 1px solid var(--rule); }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--teal); color: var(--ink); padding: 0.6rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell { width: min(85%, 1240px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn, .comment-form .submit, .search-submit {
    display: inline-block;
    font-family: var(--head);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.85rem 1.5rem;
    border: 2px solid var(--teal);
    border-radius: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn-fill, .comment-form .submit, .search-submit { background: var(--teal); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line-light { color: #FFFFFF; border-color: #FFFFFF; }
.btn:hover, .comment-form .submit:hover, .search-submit:hover {
    transform: translateY(2px);
    box-shadow: 4px 4px 0 var(--red);
}
.btn-line:hover { border-color: var(--teal); }

/* ---------- Полоса CMYK ---------- */
.cmyk-strip { display: flex; height: 5px; }
.cmyk-strip span { flex: 1; }
.cmyk-strip span:nth-child(1) { background: #00AEEF; }
.cmyk-strip span:nth-child(2) { background: #EC008C; }
.cmyk-strip span:nth-child(3) { background: #FFE600; }
.cmyk-strip span:nth-child(4) { background: var(--ink); border-bottom: 1px solid #3A3F47; }

/* ---------- Шапка ---------- */
.masthead { background: var(--graphite); color: #FFFFFF; position: relative; }
.masthead-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; color: #FFFFFF; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.brand-name {
    font-family: var(--head); font-weight: 700; font-size: 1.12rem; line-height: 1.2;
    color: #FFFFFF;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    max-width: 62ch;
}
.brand-desc {
    font-size: 0.8rem; line-height: 1.45; color: #A7AEB8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    max-width: 90ch;
}
.nav-toggle {
    display: none; flex: 0 0 auto; align-items: center; gap: 0.6rem;
    background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF;
    padding: 0.55rem 0.8rem; font-family: var(--head); font-size: 1.05rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: #FFFFFF; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { border-top: 1px solid #2A2E36; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list li { margin: 0; }
.nav-list a {
    display: block; padding: 0.9rem 1.2rem; color: #FFFFFF;
    font-family: var(--head); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em;
    border-bottom: 3px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}
.nav-list li:first-child a { padding-left: 0; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: 0.9rem; color: var(--muted); padding: 1.4rem 0 0.4rem;
    overflow-wrap: anywhere;
}
.breadcrumbs a { color: var(--ink); font-weight: 500; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { margin: 0 0.35rem; color: var(--teal); font-weight: 700; }

/* ---------- Раскладки ---------- */
.page-shell { padding-bottom: 4.5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-title { font-size: 2.9rem; margin: 0.6rem 0 0.5rem; overflow-wrap: anywhere; }
.page-title-cat::before {
    content: ""; display: inline-block; width: 0.45em; height: 0.45em;
    background: var(--teal); margin-right: 0.35em; vertical-align: 0.14em;
}
.page-lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }
.empty-note { color: var(--muted); }

/* ---------- Заголовки секций ---------- */
.sec-title {
    display: flex; align-items: center; gap: 0.9rem;
    font-size: 2.4rem; margin: 0 0 1.2rem;
}
.sec-title::before {
    content: ""; flex: 0 0 42px; height: 5px; background: var(--teal);
}

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 2rem;
}
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex; flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: 5px 5px 0 rgba(20, 23, 28, 0.12);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--teal); box-shadow: 8px 8px 0 rgba(20, 23, 28, 0.24); }
.card.sticky { border-top: 4px solid var(--red); }
.card-media { border-bottom: 1px solid var(--rule); }
.card-media a { display: block; }
.card-img, .card-media img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 16 / 10; object-fit: cover;
}
.card-noimg {
    aspect-ratio: 16 / 10; position: relative;
    background-color: var(--graphite);
    background-image: radial-gradient(rgba(0, 194, 184, 0.35) 1.2px, transparent 1.6px);
    background-size: 10px 10px;
}
.card-noimg span {
    position: absolute; left: 50%; top: 50%; width: 46px; height: 46px;
    margin: -23px 0 0 -23px; border: 2px solid #FFFFFF; border-radius: 50%;
}
.card-noimg span::before, .card-noimg span::after {
    content: ""; position: absolute; background: #FFFFFF;
}
.card-noimg span::before { left: 50%; top: -12px; bottom: -12px; width: 2px; margin-left: -1px; }
.card-noimg span::after { top: 50%; left: -12px; right: -12px; height: 2px; margin-top: -1px; }

.card-body {
    flex: 1; display: flex; flex-direction: column;
    padding: 1.3rem 1.4rem 1.4rem; min-width: 0;
}
.card-cat {
    align-self: flex-start;
    font-size: 0.8rem; font-weight: 600; color: var(--muted);
    display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem;
}
.card-cat::before { content: ""; width: 8px; height: 8px; background: var(--teal); }
.card-cat:hover { color: var(--ink); }
.card-title { font-size: 1.5rem; margin: 0 0 0.6rem; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--teal); }
.card-excerpt { flex: 1; font-size: 0.97rem; color: #3A3F47; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule);
    font-size: 0.85rem; color: var(--muted);
}
.card-more { font-family: var(--head); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.card-more::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 0.4rem;
    border-left: 6px solid var(--teal); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.card-more:hover { color: var(--teal); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; align-items: center; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.8rem; height: 2.8rem; padding: 0 0.8rem;
    font-family: var(--head); font-size: 1.1rem; font-weight: 700;
    color: var(--ink); background: #FFFFFF; border: 2px solid var(--ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.pager a.page-numbers:hover { transform: translateY(2px); box-shadow: 4px 4px 0 var(--red); }
.pager .page-numbers.current { background: var(--teal); border-color: var(--teal); }
.pager .page-numbers.dots { border-color: transparent; background: transparent; min-width: auto; }

/* ---------- Запись ---------- */
.entry { min-width: 0; }
.entry-cats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.cat-mark {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.cat-mark::before { content: ""; width: 9px; height: 9px; background: var(--teal); }
.cat-mark:hover { color: var(--teal); }
.entry-meta { color: var(--muted); font-size: 0.9rem; }
.entry-cover { margin: 1.8rem 0; border: 1px solid var(--rule); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { max-width: 74ch; overflow-wrap: break-word; }
.entry-content h2 {
    display: flex; align-items: center; gap: 0.7rem;
}
.entry-content h2::before { content: ""; flex: 0 0 26px; height: 4px; background: var(--teal); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content ul li::marker { color: var(--teal); }
.entry-content img { display: block; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4em; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.entry-tags a { font-size: 0.85rem; color: var(--ink); border: 1px solid var(--rule); padding: 0.25rem 0.7rem; }
.entry-tags a:hover { border-color: var(--teal); }
.entry-pages { margin-top: 1.5rem; font-weight: 600; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    min-width: 0; margin-top: 0.6rem;
    background: var(--bg-alt); color: var(--ink);
    border-top: 5px solid var(--ink);
    padding: 1.6rem 1.5rem;
}
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget-title { font-size: 1.4rem; margin: 0 0 0.9rem; }
.sidebar .widget-title { color: var(--ink); display: flex; align-items: center; gap: 0.6rem; }
.sidebar .widget-title::before { content: ""; flex: 0 0 18px; height: 4px; background: var(--teal); }
.sidebar .widget li { padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); font-weight: 500; }
.sidebar .widget a:hover { color: #008C85; }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.sidebar .widget p { color: var(--ink); }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0; max-width: 520px; }
.search-field {
    flex: 1; min-width: 0; font: inherit; padding: 0.75rem 0.9rem;
    border: 2px solid var(--ink); border-right: 0; border-radius: 0; background: #FFFFFF; color: var(--ink);
}
.search-submit:hover { transform: none; box-shadow: none; background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

/* ---------- Главная ---------- */
.fs { padding: 5.5rem 0; position: relative; }
.fs + .fs { border-top: 1px solid var(--rule); }
.fs-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2.4rem; }

.fs.fs-hero, .fs.fs-quote {
    background-color: var(--graphite);
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
    background-size: 9px 9px;
    color: #FFFFFF;
    border-top: 0;
}
.fs-hero { padding: 5rem 0 5.5rem; }
.fs-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3.5rem; align-items: center;
}
.fs-hero-text { min-width: 0; }
.fs-hero-title {
    font-size: 3.5rem; line-height: 1.02; color: #FFFFFF; margin: 0 0 1.2rem;
    font-weight: 800; letter-spacing: -0.005em;
}
.fs-hero-sub { font-size: 1.3rem; line-height: 1.45; color: var(--teal); max-width: 40ch; margin-bottom: 2.2rem; }
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.fs-hero-art { margin: 0; min-width: 0; }
.fs-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 460; }

.fs-steps { background: #FFFFFF; }
.fs-steps-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 4rem; align-items: start;
}
.fs-steps-intro { min-width: 0; }
.fs-steps-intro p { color: var(--muted); max-width: 42ch; }
.step-list { list-style: none; margin: 0; padding: 0; min-width: 0; }
.step {
    display: flex; gap: 1.6rem; align-items: flex-start;
    padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; }
.step-num {
    flex: 0 0 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
    background: var(--teal); color: var(--ink);
    font-family: var(--head); font-weight: 800; font-size: 2.6rem; line-height: 1;
    box-shadow: 4px 4px 0 var(--ink);
}
.step-body { min-width: 0; }
.step-body h3 { margin: 0.1rem 0 0.35rem; font-size: 1.6rem; }
.step-body p { margin: 0; color: #3A3F47; }

.perf {
    height: 14px;
    background-image: radial-gradient(circle, var(--rule) 3px, transparent 3.5px);
    background-size: 16px 14px;
    background-repeat: repeat-x;
    background-position: 0 50%;
}

.fs-latest { background: var(--bg-alt); border-top: 1px solid var(--rule); }
.fs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.fs-head .sec-title { margin: 0; }

.fs-quote { padding: 5.5rem 0; }
.fs-quote-plate {
    position: relative; margin: 0;
    padding: 2.6rem 3rem 2.6rem 3.6rem;
    border-left: 0;
    text-align: center;
}
.fs-quote-plate::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--teal);
}
.fs-quote-plate p {
    font-family: var(--head); font-weight: 700; color: #FFFFFF;
    font-size: 3rem; line-height: 1.12; margin: 0 auto 1.4rem; max-width: 30ch;
}
.fs-quote-plate footer { color: var(--teal); font-size: 1rem; font-weight: 600; }

.fs-topics { background: #FFFFFF; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.topic {
    display: flex; flex-direction: column; gap: 0.5rem; min-width: 0;
    padding: 1.8rem 1.6rem; border: 1px solid var(--rule); background: #FFFFFF; color: var(--ink);
    transition: background-color .15s ease, border-color .15s ease;
}
.topic:hover { background: var(--teal); border-color: var(--teal); }
.topic-icon {
    width: 48px; height: 48px; margin-bottom: 0.6rem;
    fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter;
}
.topic-name { font-family: var(--head); font-size: 1.55rem; font-weight: 700; line-height: 1.15; }
.topic-note { font-size: 0.93rem; color: var(--muted); }
.topic:hover .topic-note { color: var(--ink); }

/* ---------- Комментарии ---------- */
.replies { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.replies-title { font-size: 1.9rem; }
.reply-list, .reply-list .children { list-style: none; margin: 0; padding: 0; }
.reply-list .children { margin-left: 2rem; }
.reply-box { border: 1px solid var(--rule); padding: 1.2rem 1.3rem; margin-bottom: 1rem; background: #FFFFFF; }
.reply-head { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.6rem; }
.reply-head img { display: block; }
.reply-author { display: block; font-weight: 600; }
.reply-date { font-size: 0.8rem; color: var(--muted); }
.reply-wait { color: var(--red); font-size: 0.9rem; }
.reply-link a { font-weight: 600; font-size: 0.9rem; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 2px solid var(--ink); border-radius: 0; background: #FFFFFF;
}
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-notes { color: var(--muted); font-size: 0.9rem; }

/* ---------- 404 ---------- */
.notfound { padding: 2rem 0 1rem; }
.notfound-code {
    font-family: var(--head); font-weight: 800; font-size: 8rem; line-height: 1; margin: 0;
    color: #FFFFFF; text-shadow: 4px 4px 0 var(--teal), -4px -4px 0 var(--red);
    -webkit-text-stroke: 2px var(--ink);
}
.notfound-home { margin-top: 1.8rem; }

/* ---------- Подвал ---------- */
.colophon { background: var(--graphite); color: #C9CED6; padding: 4rem 0 0; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget-title { color: #FFFFFF; display: flex; align-items: center; gap: 0.6rem; }
.colophon .widget-title::before { content: ""; flex: 0 0 18px; height: 4px; background: var(--teal); }
.colophon .widget, .colophon .widget p { color: #C9CED6; }
.colophon .widget a { color: #FFFFFF; }
.colophon .widget a:hover { color: var(--teal); }
.colophon .widget li { padding: 0.35rem 0; }
.colophon .widget_nav_menu a::before {
    content: ""; display: inline-block; width: 6px; height: 6px; background: var(--teal);
    margin-right: 0.6rem; vertical-align: 0.15em;
}
.colophon .post-date { color: #8C939E; }
.colophon-bottom {
    margin-top: 3rem; padding: 1.4rem 0 1.6rem;
    border-top: 2px dashed #2F343C; font-size: 0.85rem; color: #8C939E;
}
.colophon-bottom p { margin: 0; }

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    max-width: 960px; margin-inline: auto;
    background: var(--graphite); color: #FFFFFF;
    border: 1px solid #2F343C; border-left: 6px solid var(--teal);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
    padding: 1.1rem 1.4rem;
}
.cookie-text { margin: 0; font-size: 0.92rem; color: #D5D9DF; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { max-width: 100%; font-size: 0.85rem; color: var(--muted); }
.bypostauthor .reply-box { border-left: 4px solid var(--teal); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .shell { width: 92%; }
    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 3rem; }
    .fs { padding: 4rem 0; }
    .fs-hero-grid, .fs-steps-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .fs-hero-art { max-width: 520px; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-quote-plate p { font-size: 2.3rem; }
    .brand-desc { display: none; }

    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; padding: 0.4rem 0 0.8rem; }
    .nav-list a, .nav-list li:first-child a { padding: 0.75rem 0; border-bottom: 1px solid #2A2E36; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; background-size: 260px auto, auto; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.75rem; }
    .page-title { font-size: 2.2rem; }
    .sec-title { font-size: 1.95rem; }
    .sec-title::before { flex-basis: 28px; }
    .fs { padding: 3.2rem 0; }
    .fs-hero { padding: 3.2rem 0 3.6rem; }
    .fs-hero-title { font-size: 2.5rem; }
    .fs-hero-sub { font-size: 1.1rem; }
    .card-grid-3, .card-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.4rem 1.3rem; }
    .step { gap: 1.1rem; }
    .step-num { flex-basis: 52px; height: 52px; font-size: 2rem; }
    .fs-quote-plate { padding: 1.8rem 1.4rem 1.8rem 2rem; }
    .fs-quote-plate p { font-size: 1.75rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-name { font-size: 0.98rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .notfound-code { font-size: 5.5rem; }
    .reply-list .children { margin-left: 1rem; }
    .search-form { flex-direction: column; }
    .search-field { border-right: 2px solid var(--ink); border-bottom: 0; }
}
