/*
Theme Name: dds_syamilamohd.com
Author: Екатерина Фадеева
Description: Тёмная тема с неоновыми акцентами для информационного сайта о здоровье, семье, красоте и личных финансах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: smhd
*/

:root {
    --bg: #121212;
    --bg-alt: #1E1E1E;
    --bg-head: #0D0D0D;
    --bg-foot: #0A0A0A;
    --bg-side: #181818;
    --tx: #F5F5F5;
    --tx-soft: #D8D8D8;
    --mut: #9E9E9E;
    --ac: #FF4081;
    --ac2: #00E5FF;
    --line: #2A2A2A;
    --brd: #3D3D3D;
    --shd: #000B33;
    --hd-font: "Montserrat", "Arial Black", "Segoe UI", Tahoma, sans-serif;
    --bd-font: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--tx);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, #1E1E1E 0, #1E1E1E 1px, transparent 1px, transparent 10px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%2300E5FF' stroke-width='2' opacity='0.03'%3E%3Ccircle cx='280' cy='280' r='268'/%3E%3Ccircle cx='280' cy='280' r='185'/%3E%3Ccircle cx='280' cy='280' r='100'/%3E%3Cpath d='M12 280h536M280 12v536M90 90l380 380M470 90L90 470'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat, no-repeat;
    background-position: 0 0, right -140px bottom -140px;
    background-attachment: scroll, fixed;
    font-family: var(--bd-font);
    font-size: 17px;
    line-height: 1.75;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hd-font);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--tx);
    margin: 1.8rem 0 0.9rem;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.75rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }

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

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

.site-main { display: block; padding: 1.8rem 0 2.6rem; }

/* ---------- Ссылки в тексте: подчёркивание слева направо ---------- */

.entry-content a,
.card-excerpt a,
.comment-text a {
    position: relative;
    color: var(--ac);
}

.entry-content a::after,
.card-excerpt a::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.25s ease;
}

.entry-content a:hover::after,
.card-excerpt a:hover::after,
.comment-text a:hover::after { width: 100%; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--hd-font);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.7rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn-fill { background: var(--ac); color: #121212; }
.btn-fill:hover { background: var(--ac2); color: #0D0D0D; transform: scale(1.02); }

.btn-ghost { background: transparent; border-color: var(--ac); color: var(--ac); }
.btn-ghost:hover { background: rgba(255, 64, 129, 0.28); color: #FFFFFF; }

/* ---------- Заголовки секций ---------- */

.sec-title {
    font-size: clamp(1.4rem, 3.6vw, 2rem);
    margin: 0 0 1.5rem;
}

.sec-title::before { content: "◆ "; color: var(--ac); }

.sec-title span {
    display: inline-block;
    position: relative;
    padding-bottom: 0.45rem;
}

.sec-title span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--ac2);
}

/* ---------- Шапка ---------- */

.site-head {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
}

.head-in {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 240px;
    color: var(--tx);
}

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

.brand-txt { min-width: 0; display: block; }

.brand-name {
    display: block;
    font-family: var(--hd-font);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--tx);
}

.brand-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--mut);
    margin-top: 0.2rem;
}

.nav-toggle {
    margin-left: auto;
    background: transparent;
    border: 2px solid var(--ac);
    color: var(--ac);
    font-family: var(--hd-font);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}

.main-nav { flex: 1 1 100%; display: none; }
.main-nav.is-open { display: block; }

.main-nav ul {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.main-nav a {
    display: block;
    padding: 0.55rem 0.2rem;
    font-family: var(--hd-font);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--tx);
    border-bottom: 1px solid var(--line);
}

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

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

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--mut);
    margin: 0 0 1.4rem;
    word-wrap: break-word;
}

.breadcrumbs a { color: var(--ac2); }
.breadcrumbs a:hover { color: var(--ac); }
.breadcrumbs .sep { color: var(--brd); margin: 0 0.25rem; }

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

.layout-single { display: block; }

.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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

.layout-with-sidebar > .content-area,
.layout-with-sidebar > .sidebar { min-width: 0; }

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

.card-list { display: grid; gap: 1.6rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--brd);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 4px 4px 0 0 var(--shd);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--ac);
    box-shadow: 10px 10px 0 0 var(--shd);
}

.card-thumb-wrap {
    position: static;
    width: 100%;
    overflow: hidden;
}

.card-thumb-wrap a { display: block; position: static; }

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--ac2);
}

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

.card-title { font-size: 1.2rem; margin: 0; }
.card-title a { color: var(--tx); }
.card-title a:hover { color: var(--ac); }

.card-meta { font-size: 0.82rem; color: var(--mut); }

.card-excerpt { color: var(--tx-soft); font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.2rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    border: 1px solid var(--brd);
    border-radius: 0 30px 30px 0;
    font-family: var(--hd-font);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--tx);
}

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

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

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

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

.sidebar {
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.4rem;
    margin-top: 2rem;
    color: #E4E4E4;
}

.sidebar .widget + .widget { margin-top: 1.8rem; }

.sidebar .widget-title,
.foot-col .widget-title {
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
}

.sidebar .widget-title span,
.foot-col .widget-title span {
    display: inline-block;
    position: relative;
    padding-bottom: 0.3rem;
    color: var(--ac2);
}

.sidebar .widget-title span::after,
.foot-col .widget-title span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--ac);
}

.sidebar ul,
.foot-col ul { list-style: none; margin: 0; padding: 0; }

.sidebar li,
.foot-col li { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }

.sidebar li:last-child,
.foot-col li:last-child { border-bottom: none; }

.sidebar p, .sidebar li { color: #E4E4E4; }
.sidebar a { color: #F5F5F5; }
.sidebar a:hover { color: var(--ac); }
.sidebar .post-date { display: block; color: var(--mut); font-size: 0.8rem; }

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

.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.9rem;
    padding: 2.5rem 0 1.6rem;
}

.foot-col { min-width: 0; }

.foot-1, .foot-1 p, .foot-1 li { color: #D5D5D5; }
.foot-2, .foot-2 p, .foot-2 li { color: #D5D5D5; }
.foot-3, .foot-3 p, .foot-3 li { color: #D5D5D5; }

.foot-1 a, .foot-2 a, .foot-3 a { color: #F5F5F5; }
.foot-1 a:hover, .foot-2 a:hover, .foot-3 a:hover { color: var(--ac); }

.foot-1 .post-date, .foot-2 .post-date, .foot-3 .post-date { color: var(--mut); font-size: 0.8rem; }

.copyright {
    margin: 0;
    padding: 1.2rem 0 1.8rem;
    border-top: 1px solid var(--line);
    color: var(--mut);
    font-size: 0.85rem;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem 1.4rem;
    padding: 1.1rem 1.3rem;
    background: #0D0D0D;
    border-top: 2px solid var(--ac);
    color: #F5F5F5;
}

.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 70ch; }

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

.front-main {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.fs { padding: 2.6rem 0; }

.fs-alt {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2.3rem 1.5rem;
    margin: 2.6rem 0;
}

/* Разделитель-кардиограмма */
.zig {
    display: block;
    width: 100%;
    height: 26px;
    color: var(--ac2);
    opacity: 0.3;
}

.sec-rule {
    border: none;
    border-top: 1px solid var(--line);
    width: 55%;
    margin: 0;
    position: relative;
}

.sec-rule::after {
    content: "";
    position: absolute;
    right: -5px;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ac);
}

/* Блок 1 — hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(155deg, #1B1B1B 0%, #121212 70%);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 3rem 1.5rem;
    margin-top: 1.6rem;
}

.hero-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--hd-font);
    font-weight: 800;
    font-size: clamp(2.4rem, 11vw, 6.5rem);
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: linear-gradient(90deg, #FF4081, #00E5FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.14;
    pointer-events: none;
    user-select: none;
}

.hero-in { position: relative; z-index: 1; }

.hero-in h1 { margin-bottom: 0.6rem; }

.hero-line {
    display: block;
    width: 120px;
    height: 6px;
    background: var(--ac2);
    margin: 0 auto 1.2rem;
}

.hero-sub {
    color: var(--tx-soft);
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; }

/* Блок 2 — чек-лист */
.chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }

.chk li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: #161616;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.chk li:hover { border-color: var(--ac); transform: translateX(4px); }

.chk-box {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-top: 0.2rem;
    border: 2px solid var(--ac2);
    border-radius: 6px;
    position: relative;
}

.chk-box::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 8px;
    height: 15px;
    border: solid var(--ac);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.chk li:hover .chk-box::after { transform: rotate(45deg) scale(1); }
.chk li:hover .chk-box { border-color: var(--ac); }

.chk-txt { min-width: 0; }

.chk-txt strong {
    display: block;
    font-family: var(--hd-font);
    font-size: 1.05rem;
    color: var(--tx);
}

.chk-txt span { display: block; color: var(--mut); font-size: 0.92rem; }

/* Блок 3 — статистика */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

.stat { text-align: center; padding: 0.6rem 0.4rem; min-width: 0; }

.stat b {
    display: block;
    font-family: var(--hd-font);
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    line-height: 1;
    color: var(--ac2);
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}

.stat span { display: block; color: var(--tx); margin-top: 0.5rem; font-size: 0.95rem; }

/* Блок 4 — карта тем */
.rubs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.rub {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.4rem 1.3rem;
    background: #161616;
    border: 3px solid var(--brd);
    border-radius: 12px;
    color: var(--tx);
    min-width: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rub svg { width: 40px; height: 40px; display: block; }

.rub b { font-family: var(--hd-font); font-size: 1.2rem; }
.rub span { font-size: 0.9rem; color: var(--mut); }

.rub:hover {
    background: var(--ac);
    border-color: var(--ac);
    color: #121212;
    transform: translateY(-4px);
}

.rub:hover span { color: #1A0410; }

.more-line { margin: 1.7rem 0 0; }

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

.entry-head { margin-bottom: 1.2rem; }
.entry-meta { color: var(--mut); font-size: 0.86rem; }

.entry-thumb { margin: 0 0 1.5rem; }

.entry-thumb img {
    display: block;
    width: 100%;
    border: 1px dashed var(--brd);
    border-radius: 12px;
}

.entry-content { color: var(--tx-soft); }

.entry-content h2, .entry-content h3 { color: var(--tx); }

.entry-content strong { color: var(--tx); text-shadow: 0 0 10px rgba(255, 64, 129, 0.45); }

.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.4rem;
    background: #171717;
    border: 2px dashed var(--ac2);
    border-radius: 12px;
    color: var(--tx);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content img { display: block; border-radius: 10px; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--brd);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--brd);
    padding: 0.6rem 0.7rem;
    text-align: left;
}

.entry-content th { background: #1B1B1B; color: var(--ac2); font-family: var(--hd-font); }

.entry-content code, .entry-content pre {
    background: #0F0F0F;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.entry-content pre { padding: 1rem; overflow-x: auto; }

.tags-line { margin: 1.6rem 0 0; font-size: 0.88rem; color: var(--mut); }
.tags-line a { color: var(--ac2); }

/* ---------- Форма поиска ---------- */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    background: #101010;
    border: 1px solid var(--brd);
    border-radius: 8px;
    color: var(--tx);
    font-family: var(--bd-font);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus { outline: 2px solid var(--ac2); }

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

.comments-area {
    margin-top: 2.6rem;
    padding: 1.6rem 1.5rem;
    background: #161616;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0.9rem 0 0; padding-left: 1.1rem; border-left: 2px solid var(--line); }

.comment-item {
    padding: 1rem 1.1rem;
    background: #1B1B1B;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comment-head { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: baseline; }
.comment-author { font-family: var(--hd-font); font-weight: 700; color: var(--ac2); }
.comment-date { color: var(--mut); font-size: 0.82rem; }
.comment-text { color: var(--tx-soft); font-size: 0.96rem; }
.comment-reply a { font-size: 0.85rem; }
.comment-wait { color: var(--ac); font-size: 0.85rem; }

.comment-form label { display: block; font-size: 0.88rem; color: var(--mut); margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: #101010;
    border: 1px solid var(--brd);
    border-radius: 8px;
    color: var(--tx);
    font-family: var(--bd-font);
    font-size: 0.95rem;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--hd-font);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0 30px 30px 0;
    background: var(--ac);
    color: #121212;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.comment-form .submit:hover { background: var(--ac2); transform: scale(1.02); }

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

.nf-box {
    text-align: center;
    padding: 2.4rem 1.6rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.nf-code {
    font-family: var(--hd-font);
    font-size: clamp(3.5rem, 14vw, 7rem);
    line-height: 1;
    color: var(--ac);
    text-shadow: 0 0 22px rgba(255, 64, 129, 0.5);
}

.nf-box .search-form { max-width: 460px; margin: 1.4rem auto 1.2rem; }

/* ---------- Прочее ---------- */

.page-head { margin-bottom: 1.4rem; }

.no-posts {
    padding: 1.5rem 1.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
}

/* =============================================================
 * ≥ 601px
 * ========================================================== */

@media (min-width: 601px) {
    .card { flex-direction: row; }

    .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
        width: auto;
    }

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

    .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        display: block;
        border-bottom: none;
        border-right: 4px solid var(--ac2);
    }

    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat + .stat { border-left: 1px solid var(--line); }

    .rubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .fs-alt { padding: 2.6rem 2.2rem; }
    .fs-hero { padding: 3.6rem 2.4rem; }
    .cookie-banner { padding: 1.1rem 2rem; }
}

/* =============================================================
 * ≤ 600px — сброс абсолютного позиционирования миниатюр
 * ========================================================== */

@media (max-width: 600px) {
    .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;
        border-right: none;
        border-bottom: 4px solid var(--ac2);
    }

    .fs { padding: 2rem 0; }
    .fs-alt { padding: 1.9rem 1.3rem; }
    .fs-hero { padding: 2.4rem 1.2rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comments-area { padding: 1.3rem 1.2rem; }
    .nf-box { padding: 1.9rem 1.2rem; }
}

/* =============================================================
 * ≥ 960px
 * ========================================================== */

@media (min-width: 960px) {
    .nav-toggle { display: none; }

    .main-nav { display: block; flex: 0 0 auto; margin-left: auto; }

    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        margin: 0;
    }

    .main-nav a { border-bottom: none; padding: 0.25rem 0; position: relative; }

    .main-nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: var(--ac);
        transition: width 0.25s ease;
    }

    .main-nav a:hover::after { width: 100%; }

    .brand-name { font-size: 1.05rem; }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: 67% 27%;
        justify-content: space-between;
        align-items: start;
        column-gap: 0;
    }

    .sidebar { margin-top: 0; }

    .rubs { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
}
