/*
Theme Name: dds_alfaerkekolmak.com
Author: Артём Власов
Description: Контентный сайт о психологии личности, коммуникации и эмоциональном интеллекте.
Version: 1.1
Text Domain: aek_theme
*/

/* ——— базовые переменные ——— */
:root {
    --sand: #F9F6F0;
    --graphite: #1E1E2C;
    --terracotta: #C45B4A;
    --terracotta-deep: #9A3E2F;
    --sage: #6F8F7A;
    --sage-soft: #A7BEB0;
    --peach: #F3E0D8;
    --paper: #FFFFFF;
    --line: #E3DCCF;
    --muted: #6B6A70;
}

/* ——— reset / базовая типографика ——— */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--graphite);
    background-color: var(--sand);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(196,91,74,0.03) 0, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(111,143,122,0.04) 0, transparent 45%);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--terracotta);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--terracotta-deep); border-bottom-color: var(--terracotta-deep); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 700;
    color: var(--graphite);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    background: var(--peach);
    border-left: 4px solid var(--terracotta);
    font-style: italic;
    color: #3d2e28;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: #f2ece0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}
pre { padding: 1em; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid var(--line);
    background: var(--paper);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.6em 0.8em;
    text-align: left;
}
th {
    background: #efe8d9;
    font-weight: 700;
}

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

/* ——— индикатор прогресса чтения ——— */
.read-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--terracotta);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ——— шапка ——— */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--graphite);
    border-bottom: none;
}
.brand:hover { color: var(--terracotta); border-bottom: none; }
.brand-logo {
    width: 52px;
    height: 52px;
    display: block;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; max-width: 520px; }
.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--graphite);
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 2px;
    display: none;
}

/* главное меню */
.main-nav { margin-left: auto; }
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--graphite);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
}

/* мобильный toggle */
.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--graphite);
    margin: 4px 0;
    transition: transform 0.2s ease;
}

/* ——— основной макет ——— */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}
.layout {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
}
.layout.with-sidebar {
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
}
.layout.full { max-width: 85%; margin: 0 auto; }

/* ——— хлебные крошки ——— */
.breadcrumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 20px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.breadcrumbs a { color: var(--sage); border-bottom: none; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line); }
.breadcrumbs .current { color: var(--graphite); }

/* ——— карточки записей ——— */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cards-grid .card.card-featured {
    grid-column: span 2;
    grid-row: span 2;
    flex-direction: row;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,30,44,0.06);
}

/* вертикальные миниатюры через aspect-ratio */
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* featured — горизонтальная карточка: position absolute на <a> */
.card-featured { flex-direction: row; }
.card-featured .card-thumb-wrap {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    min-height: 260px;
}
.card-featured .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-bottom: none;
}
.card-featured .card-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-featured .card-body { padding: 28px; }
.card-featured .card-title { font-size: 1.55rem; }

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

.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.card-cats a {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--terracotta);
    color: #fff;
    border-bottom: none;
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.02em;
}
.card-cats a:nth-child(even) { background: var(--sage); }
.card-cats a:hover { opacity: 0.88; color: #fff; border-bottom: none; }

.card-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: var(--graphite); border-bottom: none; }
.card-title a:hover { color: var(--terracotta); border-bottom: none; }

.card-excerpt { color: #3a3a44; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-meta {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.82rem;
    color: var(--muted);
    font-family: "Helvetica Neue", Arial, sans-serif;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.card-date { display: inline-block; }
.card-more {
    display: inline-block;
    padding: 7px 14px;
    background: var(--sage);
    color: #fff;
    border-radius: 6px;
    font-size: 0.83rem;
    border-bottom: none;
    transition: background 0.2s ease, transform 0.15s ease;
}
.card-more:hover {
    background: var(--terracotta);
    color: #fff;
    transform: scale(1.02);
    border-bottom: none;
}

/* ——— одиночная запись ——— */
.entry-header { margin-bottom: 24px; }
.entry-title { font-size: 2rem; margin: 0 0 12px; }
.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: "Helvetica Neue", Arial, sans-serif;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.entry-featured { margin: 0 0 24px; }
.entry-featured img { width: 100%; border-radius: 8px; display: block; }

.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content img { border-radius: 6px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }

.author-note {
    margin: 2.5em 0;
    padding: 20px 24px;
    background: var(--peach);
    border-left: 4px solid var(--terracotta);
    border-radius: 0 6px 6px 0;
}
.author-note-title {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    margin: 0 0 8px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.author-note-body { margin: 0; color: #4a3a32; font-style: italic; }
.author-note-signature {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--terracotta-deep);
}

.entry-tags {
    margin-top: 2em;
    font-size: 0.88rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.entry-tags a {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 3px 10px;
    background: #efe8d9;
    color: var(--graphite);
    border-radius: 4px;
    border-bottom: none;
    font-size: 0.8rem;
}
.entry-tags a:hover { background: var(--sage); color: #fff; border-bottom: none; }

/* ——— сайдбар ——— */
.sidebar { font-size: 0.95rem; }
.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.widget-title {
    margin: 0 0 12px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--sage);
    padding-bottom: 8px;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: 6px 0;
    border-bottom: 1px dotted var(--line);
}
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--graphite); border-bottom: none; }
.widget a:hover { color: var(--terracotta); border-bottom: none; }

/* ——— подвал ——— */
.site-footer {
    background: #22222d;
    color: #d7d0c0;
    padding: 48px 24px 24px;
    margin-top: 60px;
}
.site-footer a { color: #f1d6ce; border-bottom: none; }
.site-footer a:hover { color: #fff; border-bottom: none; }
.footer-cols {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.footer-col .widget-title {
    color: #fff;
    border-bottom-color: var(--terracotta);
}
.footer-col ul li {
    border-bottom-color: rgba(255,255,255,0.08);
}
.footer-bottom {
    max-width: 1200px;
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.88rem;
    color: #aaa69a;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.footer-taglines {
    max-width: 1200px;
    margin: 28px auto 0;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.86rem;
    color: #c6bfae;
}
.footer-taglines span::before { content: "· "; color: var(--terracotta); }
.footer-taglines span:first-child::before { content: ""; }

/* ——— пагинация ——— */
.pagination {
    margin: 40px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    min-width: 40px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--graphite);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--line);
}
.pagination a:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}
.pagination .current {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}

/* ——— форма поиска ——— */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    position: relative;
}
.search-form .search-field {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sage);
    padding: 10px 10px 10px 34px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--graphite);
    outline: none;
    transition: border-color 0.2s ease;
}
.search-form .search-field:focus { border-bottom-color: var(--terracotta); }
.search-form::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F8F7A' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat center/contain;
}
.search-form .search-submit { display: none; }

/* ——— комментарии ——— */
.comments-area { margin-top: 48px; }
.comments-title {
    font-size: 1.3rem;
    border-bottom: 2px solid var(--sage);
    padding-bottom: 10px;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}
.comment-author { font-weight: 700; }
.comment-date { color: var(--muted); font-size: 0.82rem; }
.comment-content p { margin: 0 0 0.5em; }
.comment-reply-link {
    display: inline-block;
    font-size: 0.82rem;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--sage);
    border-radius: 4px;
    color: var(--sage);
    border-bottom: 1px solid var(--sage);
}
.comment-reply-link:hover {
    background: var(--sage);
    color: #fff;
    border-bottom-color: var(--sage);
}

.comment-form p { margin-bottom: 14px; }
.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--paper);
    color: var(--graphite);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit,
.comment-form input[type="submit"] {
    background: var(--sage);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
    background: var(--terracotta);
    transform: scale(1.02);
}

/* ——— cookie-баннер ——— */
.cookie-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: var(--graphite);
    color: #f1ebdb;
    padding: 16px 20px;
    border-radius: 10px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    z-index: 999;
    font-size: 0.92rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; flex: 1 1 300px; }
.cookie-banner a { color: var(--peach); border-bottom: 1px dotted var(--peach); }
.cookie-accept {
    background: var(--sage);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    transition: background 0.2s, transform 0.15s;
}
.cookie-accept:hover { background: var(--terracotta); transform: scale(1.02); }
.cookie-banner.hidden { display: none; }

/* ——— главная — тематические блоки ——— */
.front-hero {
    background: linear-gradient(135deg, var(--peach) 0%, #f7ede2 100%);
    padding: 60px 32px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
}
.front-hero h1 { font-size: 2.4rem; margin: 0 0 14px; }
.front-hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto; color: #3a2e27; }
.front-hero .hero-cta {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 28px;
    background: var(--sage);
    color: #fff;
    border-radius: 6px;
    border-bottom: none;
    font-family: "Helvetica Neue", Arial, sans-serif;
    transition: background 0.2s, transform 0.15s;
}
.front-hero .hero-cta:hover { background: var(--terracotta); color: #fff; transform: scale(1.02); border-bottom: none; }

.section-block {
    margin: 60px 0;
}
.section-block h2 {
    font-size: 1.85rem;
    margin: 0 0 24px;
    position: relative;
    padding-left: 16px;
}
.section-block h2::before {
    content: "";
    position: absolute;
    left: 0; top: 0.25em; bottom: 0.25em;
    width: 4px;
    background: var(--terracotta);
    border-radius: 2px;
}
.section-block.sage h2::before { background: var(--sage); }

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.topic-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}
.topic-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--terracotta-deep); }
.topic-card p { margin: 0; font-size: 0.95rem; color: #4a4a52; }

.steps-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.step-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    padding-top: 48px;
}
.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 14px; left: 18px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--sage);
    color: #fff;
    border-radius: 50%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
}
.step-item h4 { margin: 0 0 6px; font-size: 1rem; }
.step-item p { margin: 0; font-size: 0.9rem; color: #4a4a52; }

.cta-section {
    background: var(--graphite);
    color: #f1ebdb;
    padding: 44px 32px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
}
.cta-section h2 { color: #fff; margin: 0 0 12px; padding-left: 0; }
.cta-section h2::before { display: none; }
.cta-section p { max-width: 640px; margin: 0 auto 22px; color: #d7d0c0; }
.cta-section .cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--terracotta);
    color: #fff;
    border-radius: 6px;
    border-bottom: none;
    font-family: "Helvetica Neue", Arial, sans-serif;
    transition: background 0.2s, transform 0.15s;
}
.cta-section .cta-btn:hover { background: var(--terracotta-deep); color: #fff; transform: scale(1.02); border-bottom: none; }

/* ——— 404 ——— */
.error-404 {
    text-align: center;
    padding: 40px 16px;
}
.error-404 h1 {
    font-size: 4rem;
    color: var(--terracotta);
    margin: 0;
}
.error-404 .search-form { margin: 24px auto; }

/* ——— мобильное нижнее меню (опционально показывается в мобиле) ——— */
.mobile-bottom-nav { display: none; }

/* ——— адаптив ——— */
@media (max-width: 960px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid .card.card-featured { grid-column: span 2; }
    .layout.with-sidebar { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-list { grid-template-columns: repeat(2, 1fr); }
    .layout.full { max-width: 100%; }
    .brand-desc { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-main { padding: 24px 16px; }
    h1, .entry-title { font-size: 1.6rem; }
    .front-hero { padding: 40px 20px; }
    .front-hero h1 { font-size: 1.75rem; }
    .site-header-inner { padding: 14px 16px; }
    .main-nav {
        order: 3;
        width: 100%;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-top: 1px solid var(--line); padding: 10px 0; }
    .nav-toggle { display: block; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .cards-grid .card.card-featured { grid-column: span 1; flex-direction: column; }
    .cards-grid .card.card-featured .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .cards-grid .card.card-featured .card-thumb-wrap a {
        position: static;
    }
    .cards-grid .card.card-featured .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .footer-cols { grid-template-columns: 1fr; gap: 26px; }
    .topics-grid { grid-template-columns: 1fr; }
    .steps-list { grid-template-columns: 1fr; }
    .brand-text { display: none; }

    /* мобильное нижнее меню с иконками */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        background: var(--paper);
        border-top: 1px solid var(--line);
        justify-content: space-around;
        padding: 6px 4px;
        z-index: 990;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.05);
    }
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 10px;
        font-size: 0.7rem;
        color: var(--graphite);
        border-bottom: none;
        font-family: "Helvetica Neue", Arial, sans-serif;
    }
    .mobile-bottom-nav a:hover { color: var(--terracotta); border-bottom: none; }
    .mobile-bottom-nav svg { width: 22px; height: 22px; stroke: currentColor; }
    body { padding-bottom: 70px; }
    .cookie-banner { bottom: 74px; }
}

/* ——— мелкие утилиты ——— */
.alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }
.sticky, .bypostauthor { }

.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 4px;
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}
