/*
Theme Name: dds_skilledbird.com
Theme URI: https://skilledbird.com
Author: Андрей Ковалёв
Author URI: https://skilledbird.com
Description: Тема для образовательного портала SkilledBird — площадки о программировании и инженерии ПО.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dds_skilledbird
*/

/* ===== СБРОС И БАЗА ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.618;
    color: #EFF3F8;
    background-color: #121826;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #00C2D4;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #E6B91E; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #EFF3F8;
    margin: 1.618em 0 .618em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

code, pre, kbd, samp {
    font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace;
    font-size: 0.95em;
}

code {
    background: #2D3A4A;
    color: #F5A623;
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: #0B1120;
    color: #A0E8B0;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #1E2A3A;
    position: relative;
}

pre::before {
    content: "> ";
    color: #E6B91E;
}

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

blockquote {
    border-left: 3px solid #E6B91E;
    padding: 10px 20px;
    margin: 1.5em 0;
    background: rgba(30, 42, 58, 0.5);
    color: #A0B3CC;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid #1E2A3A;
}
th, td {
    border: 1px solid #1E2A3A;
    padding: 10px 14px;
    text-align: left;
}
th {
    background: #1E2A3A;
    color: #E6B91E;
    font-weight: 600;
}
tr:nth-child(even) td { background: rgba(30, 42, 58, 0.3); }

hr {
    border: 0;
    border-top: 1px dashed #1E2A3A;
    margin: 2em 0;
}

::selection { background: #E6B91E; color: #121826; }

/* ===== РАЗМЕТКА ===== */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.layout-split {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
}

.layout-wide .content-area { max-width: 85%; margin: 0 auto; }

@media (max-width: 960px) {
    .layout-split { grid-template-columns: 1fr; gap: 40px; }
    .layout-wide .content-area { max-width: 100%; }
}

/* ===== ШАПКА ===== */
.site-head {
    background: #1E2A3A;
    border-bottom: 1px solid rgba(230, 185, 30, 0.15);
    padding: 18px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 0 1 auto;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: block;
}

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

.brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #EFF3F8;
    margin: 0;
    line-height: 1.3;
    display: block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #A0B3CC;
    margin: 2px 0 0;
    display: block;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand:hover .brand-title { color: #E6B91E; }

/* ===== ГЛАВНОЕ МЕНЮ ===== */
.main-nav {
    display: flex;
    align-items: center;
}

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

.main-nav a {
    display: block;
    padding: 10px 16px;
    color: #EFF3F8;
    font-weight: 500;
    position: relative;
    border-radius: 6px;
    transition: color .2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background-image: radial-gradient(circle, #E6B91E 1px, transparent 1.5px);
    background-size: 6px 2px;
    background-repeat: repeat-x;
    opacity: 0;
    transition: opacity .2s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    opacity: 1;
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #E6B91E;
}

.main-nav a:hover {
    color: #00C2D4;
}

/* Adapted menu for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid #E6B91E;
    color: #E6B91E;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 960px) {
    .head-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        width: 100%;
        display: none;
        padding-top: 12px;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 12px 16px; min-height: 48px; display: flex; align-items: center; }
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 12px 12px 10px 10px;
    transition: all .25s ease;
    font-family: inherit;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, #00C2D4 0%, #4A7FD4 100%);
    color: #121826;
    opacity: 0.9;
}

.btn-primary:hover {
    opacity: 1;
    color: #121826;
    box-shadow: 0 8px 24px rgba(0, 194, 212, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #E6B91E;
    border: 1.5px solid #E6B91E;
}

.btn-outline:hover {
    background: rgba(230, 185, 30, 0.1);
    color: #E6B91E;
    box-shadow: 0 6px 18px rgba(230, 185, 30, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .btn {
        min-height: 48px;
        padding: 14px 24px;
        border-radius: 16px 16px 14px 14px;
    }
}

/* ===== КАРТОЧКИ ЗАПИСЕЙ ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    margin: 30px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #1E2A3A;
    border-radius: 14px;
    overflow: hidden;
    border-top: 3px solid #00C2D4;
    background-image:
        radial-gradient(circle, rgba(160, 179, 204, 0.06) 1px, transparent 1px);
    background-size: 16px 16px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: "";
    position: absolute;
    top: 14px;
    right: -20px;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E6B91E'><path d='M21 3c-6 0-11 3-14 8-2 3.5-3 7.5-3 10h2c0-1 .5-2.5 1.3-4.3L17 10l-9.5 9 1.5 1 11-10c-1 4-3 7-7 9.5V21c4.5-2 8-7 8-14 0-1 0-2-.1-4z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .3s ease, right .3s ease;
}

.card:hover::before {
    opacity: 1;
    right: 14px;
}

.card-row {
    flex-direction: row;
    align-items: stretch;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #0B1120;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-vertical {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0B1120;
}

.card-thumb-vertical a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.card-title a { color: #EFF3F8; }
.card-title a:hover { color: #E6B91E; }

.card-meta {
    font-size: 0.82rem;
    color: #A0B3CC;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-meta a { color: #A0B3CC; }
.card-meta a:hover { color: #00C2D4; }

.card-excerpt {
    color: #A0B3CC;
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex: 1;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a {
        position: static;
    }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ===== САЙДБАР ===== */
.sidebar {
    font-size: 0.95rem;
}

.widget {
    background: #1E2A3A;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 24px;
    border-top: 2px solid #E6B91E;
}

.widget-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #E6B91E;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(230, 185, 30, 0.3);
}

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

.widget li {
    padding: 7px 0;
    border-bottom: 1px dashed rgba(160, 179, 204, 0.15);
}

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

.widget li a { color: #EFF3F8; }
.widget li a:hover { color: #00C2D4; }

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero {
    padding: 70px 0 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(0, 194, 212, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #121826 0%, #1E2A3A 100%);
    border-radius: 20px;
    margin-bottom: 50px;
    border: 1px solid rgba(0, 194, 212, 0.12);
}

.hero-title {
    font-size: 2.5rem;
    margin: 0 0 18px;
    background: linear-gradient(90deg, #E6B91E, #00C2D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: #A0B3CC;
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topic-block {
    margin: 60px 0;
    padding: 40px;
    background: #1E2A3A;
    border-radius: 16px;
    border-left: 3px solid #00C2D4;
    position: relative;
    background-image:
        radial-gradient(circle, rgba(160, 179, 204, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

.topic-block:nth-child(even) {
    border-left: none;
    border-right: 3px solid #E6B91E;
}

.topic-block h2 {
    margin-top: 0;
    color: #E6B91E;
    font-size: 1.8rem;
}

.topic-block h2::before {
    content: "◆ ";
    color: #00C2D4;
    margin-right: 6px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.topic-item {
    background: rgba(11, 17, 32, 0.5);
    padding: 22px;
    border-radius: 10px;
    border: 1px solid rgba(0, 194, 212, 0.15);
    transition: border-color .25s ease, transform .25s ease;
}

.topic-item:hover {
    border-color: #E6B91E;
    transform: translateY(-3px);
}

.topic-item h3 {
    margin-top: 0;
    font-size: 1.05rem;
    color: #00C2D4;
}

.topic-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    color: #E6B91E;
}

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.step {
    counter-increment: step;
    padding: 22px;
    background: rgba(11, 17, 32, 0.5);
    border-radius: 10px;
    position: relative;
    padding-top: 40px;
}

.step::before {
    content: counter(step);
    position: absolute;
    top: 12px;
    left: 22px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: linear-gradient(135deg, #E6B91E, #F5A623);
    color: #121826;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #EFF3F8;
}

.step p {
    margin: 0;
    color: #A0B3CC;
    font-size: 0.92rem;
}

/* ===== ОТДЕЛЬНАЯ ЗАПИСЬ / СТРАНИЦА ===== */
.post-head {
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.1rem;
    margin: 0 0 12px;
}

.post-meta {
    color: #A0B3CC;
    font-size: 0.88rem;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.post-meta a { color: #A0B3CC; }
.post-meta a:hover { color: #E6B91E; }

.post-thumb {
    margin: 20px 0 30px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 8;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content {
    font-size: 1.02rem;
}

.post-content img {
    border-radius: 8px;
    margin: 1em 0;
}

.post-content ul, .post-content ol {
    padding-left: 1.5em;
}

.post-content li { margin: 0.4em 0; }

.post-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed rgba(160, 179, 204, 0.2);
}

.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 194, 212, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0 6px 6px 0;
    color: #00C2D4;
}

.post-tags a:hover {
    background: rgba(230, 185, 30, 0.15);
    color: #E6B91E;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.crumbs {
    padding: 14px 0;
    font-size: 0.88rem;
    color: #A0B3CC;
    margin-bottom: 10px;
}

.crumbs a { color: #00C2D4; }
.crumbs a:hover { color: #E6B91E; }

.crumbs .sep {
    margin: 0 8px;
    color: #E6B91E;
    opacity: 0.6;
}

.crumbs .current { color: #EFF3F8; }

/* ===== ПАГИНАЦИЯ ===== */
.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 0;
    flex-wrap: wrap;
}

.pager a, .pager span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #1E2A3A;
    color: #EFF3F8;
    font-weight: 500;
    min-width: 42px;
    text-align: center;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.pager a:hover {
    border-color: #E6B91E;
    color: #E6B91E;
}

.pager .current {
    background: linear-gradient(135deg, #E6B91E, #F5A623);
    color: #121826;
    font-weight: 700;
}

/* ===== КОММЕНТАРИИ ===== */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed rgba(160, 179, 204, 0.2);
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: #E6B91E;
}

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

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

.comment-item {
    background: #1E2A3A;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 14px;
    border-left: 2px solid #00C2D4;
}

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

.comment-avatar img {
    border-radius: 50%;
    display: block;
}

.comment-author {
    font-weight: 600;
    color: #EFF3F8;
}

.comment-date {
    font-size: 0.82rem;
    color: #A0B3CC;
}

.comment-body {
    color: #EFF3F8;
}

.comment-body p { margin: 0 0 0.5em; }

.comment-reply a {
    font-size: 0.85rem;
    color: #E6B91E;
}

/* Форма коммента */
.comment-respond {
    background: #1E2A3A;
    padding: 26px;
    border-radius: 12px;
    border-top: 2px solid #E6B91E;
}

.comment-respond h3 {
    margin-top: 0;
}

.comment-form p {
    margin: 0 0 18px;
    position: relative;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: #A0B3CC;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    background: #0B1120;
    border: none;
    border-bottom: 2px solid #2D3A4A;
    color: #EFF3F8;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 6px 6px 0 0;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-bottom-color: #E6B91E;
    box-shadow: 0 2px 0 0 rgba(230, 185, 30, 0.3);
}

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

/* ===== ПОИСК ===== */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 560px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    background: #1E2A3A;
    border: 1px solid rgba(160, 179, 204, 0.2);
    color: #EFF3F8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #E6B91E;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
}

.error-404 .code {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #E6B91E, #00C2D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.error-404 .search-form {
    margin: 24px auto;
}

/* ===== ПОДВАЛ ===== */
.site-foot {
    background: #0B1120;
    padding: 50px 0 24px;
    margin-top: 70px;
    border-top: 1px solid rgba(0, 194, 212, 0.15);
    position: relative;
    overflow: hidden;
}

.site-foot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 80px;
    background-image:
        repeating-linear-gradient(100deg, transparent 0, transparent 28px, rgba(0, 194, 212, 0.12) 28px, rgba(0, 194, 212, 0.12) 29px),
        repeating-linear-gradient(80deg, transparent 0, transparent 40px, rgba(230, 185, 30, 0.08) 40px, rgba(230, 185, 30, 0.08) 41px);
    pointer-events: none;
}

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

@media (max-width: 800px) {
    .foot-cols { grid-template-columns: 1fr; gap: 26px; }
}

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

.foot-col .widget-title {
    color: #E6B91E;
    font-size: 1rem;
    border-bottom: 1px dashed rgba(230, 185, 30, 0.25);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.foot-col .widget a { color: #A0B3CC; }
.foot-col .widget a:hover { color: #E6B91E; }

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

.site-copy {
    text-align: center;
    padding-top: 22px;
    border-top: 1px dashed rgba(160, 179, 204, 0.12);
    color: #A0B3CC;
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

/* ===== COOKIE БАННЕР ===== */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #1E2A3A;
    border: 1px solid rgba(230, 185, 30, 0.3);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cookie-bar.is-visible { display: flex; }

.cookie-text {
    color: #EFF3F8;
    font-size: 0.92rem;
    flex: 1;
    min-width: 220px;
}

.cookie-accept {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-bar { padding: 16px; }
    .cookie-accept { width: 100%; text-align: center; }
}

/* ===== УТИЛИТЫ / SCREEN READER ===== */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.alignwide, .alignfull { margin: 1em 0; }

.wp-caption {
    max-width: 100%;
    margin: 1em 0;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #A0B3CC;
    text-align: center;
    margin-top: 4px;
}

/* ===== АДАПТИВНАЯ ТИПОГРАФИКА ===== */
@media (max-width: 600px) {
    body { font-size: 15px; }
    h1, .hero-title { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.15rem; }
    .site-main { padding: 24px 0 50px; }
    .topic-block { padding: 26px 20px; }
    .hero { padding: 40px 20px; }
}
