/*
Theme Name: dds_mmaron.ru
Theme URI: https://mmaron.ru/
Author: Вероника Рябова
Description: Тема для информационного сайта о наращивании волос и уходе за ними. Холодная стальная палитра, японский минимализм, асимметрия и много воздуха.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mmaron
*/

/* ===============================================================
   Переменные
=============================================================== */

:root {
    --bg: #F4F7F9;
    --bg-alt: #EBF0F5;
    --bg-deep: #E1E9F0;
    --surface: #FFFFFF;
    --ink: #1A262F;
    --muted: #7A8A96;
    --line: #DCE4EA;
    --accent: #008088;
    --accent-dark: #00666E;
    --sand: #C0A080;
    --dark: #1A262F;
    --font-head: "Jost", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Noto Sans", "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-num: "Georgia", "Times New Roman", serif;
    --shell: min(92%, 1180px);
    --wide: min(85%, 1120px);
}

/* ===============================================================
   Скрытие через атрибут hidden (должно идти до стилей элементов)
=============================================================== */

[hidden] {
    display: none !important;
}

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

.top-nav[hidden] {
    display: none !important;
}

/* ===============================================================
   База
=============================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.75;
}

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

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

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.3rem;
}

h4 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1.1rem;
}

ul, ol {
    margin: 0 0 1.2rem;
    padding-left: 1.3rem;
}

li {
    margin-bottom: 0.4rem;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    color: var(--ink);
}

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

code, pre {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
}

table {
    width: 100%;
    margin: 1.6rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 0.96rem;
}

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

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 600;
}

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

/* ===============================================================
   Ссылки и кнопки
=============================================================== */

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

.entry-body a,
.widget-inner a,
.crumbs a,
.card-title a {
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

.entry-body a:hover,
.widget-inner a:hover,
.crumbs a:hover,
.card-title a:hover {
    background-size: 100% 1px;
}

.btn {
    display: inline-block;
    padding: 0.72rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(2px);
}

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

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

.btn--light {
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #fff;
}

.btn--light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ===============================================================
   Контейнеры и раскладка
=============================================================== */

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.layout {
    margin-inline: auto;
    padding: 2.6rem 0 4rem;
}

.layout--sidebar {
    width: var(--shell);
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3.4rem;
    align-items: start;
}

.layout--single {
    width: var(--wide);
    display: block;
}

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

/* ===============================================================
   Игла и шапка
=============================================================== */

.needle {
    height: 3px;
    background: var(--accent);
}

.site-top {
    background: var(--surface);
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(26, 38, 47, 0.04);
}

.site-top-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    margin-right: auto;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-mark img,
.brand-mark svg {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    max-width: 42ch;
}

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

.brand-desc {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 56ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-toggle-bars {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
}

.nav-toggle-bars::before {
    top: -5px;
}

.nav-toggle-bars::after {
    top: 5px;
}

.top-nav ul {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-nav li {
    margin: 0;
}

.top-nav a {
    display: inline-block;
    padding: 0.25rem 0;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ===============================================================
   Заголовки секций и страниц
=============================================================== */

.section-title,
.entry-title,
.page-title {
    position: relative;
    padding-left: 1.1rem;
}

.section-title::before,
.entry-title::before,
.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    background: var(--accent);
}

.section-lead {
    max-width: 62ch;
    margin: -0.3rem 0 2.2rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

/* ===============================================================
   Крошки
=============================================================== */

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

.crumbs a {
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs-sep {
    margin: 0 0.35rem;
    color: var(--line);
}

.crumbs-shell {
    width: var(--shell);
    margin-inline: auto;
}

/* ===============================================================
   Главная: общие секции
=============================================================== */

.band {
    padding: 4.2rem 0;
}

.band--alt {
    background: var(--bg-alt);
}

.band--deep {
    background: var(--bg-deep);
}

.band-inner {
    width: var(--wide);
    margin-inline: auto;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.4rem;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(122, 138, 150, 0.3) 2px, transparent 2px);
    background-size: 20px 20px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: var(--wide);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

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

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--accent);
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1 {
    max-width: 18ch;
    margin: 0 0 1.4rem;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-text {
    max-width: 46ch;
    margin: 0 0 2rem;
    color: var(--ink);
    opacity: 0.82;
}

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

.hero-art {
    min-width: 0;
    line-height: 0;
}

.hero-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.hero-blob {
    position: absolute;
    right: -60px;
    bottom: -90px;
    z-index: 1;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.05;
    filter: blur(18px);
    pointer-events: none;
}

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

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    padding: 1.8rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    min-width: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.topic-tile:hover {
    background: var(--surface);
    border-color: var(--accent);
}

.topic-tile svg {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 1.1rem;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.2;
}

.topic-tile h3 {
    margin: 0 0 0.4rem;
    font-size: 1.06rem;
    font-weight: 500;
}

.topic-tile p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Цитата */

.quote-block {
    padding: 2.4rem 2.6rem;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: 0 4px 4px 0;
}

.quote-block p {
    margin: 0 0 1.2rem;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.quote-author {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Шаги */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem;
    margin-top: 1rem;
}

.step {
    min-width: 0;
}

.step-num {
    display: block;
    margin-bottom: 0.8rem;
    font-family: var(--font-num);
    font-size: 4rem;
    line-height: 1;
    color: var(--line);
}

.step h3 {
    margin: 0 0 0.6rem;
    font-size: 1.14rem;
    font-weight: 500;
}

.step p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--muted);
}

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

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.latest-head .section-title {
    margin-bottom: 0;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
}

.card-thumb {
    display: block;
    border-bottom: 1px solid var(--line);
    line-height: 0;
}

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

.card-thumb--empty {
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image: radial-gradient(rgba(122, 138, 150, 0.3) 2px, transparent 2px);
    background-size: 20px 20px;
}

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

.card-title {
    margin: 0 0 0.6rem;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.35;
}

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

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

.card-excerpt {
    margin-bottom: 1.1rem;
    font-size: 0.93rem;
    color: var(--muted);
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-more {
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.card-more:hover {
    color: var(--accent-dark);
}

.post-meta,
.card-date {
    font-size: 0.78rem;
    color: var(--muted);
}

.post-meta a {
    color: var(--muted);
}

.post-meta a:hover {
    color: var(--accent);
}

.meta-sep {
    color: var(--line);
}

/* Список карточек в ленте (архивы, блог) */

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

/* ===============================================================
   Записи и страницы
=============================================================== */

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

.entry-head h1 {
    margin-bottom: 0.7rem;
    font-size: 2.4rem;
    font-weight: 500;
}

.entry-thumb {
    margin: 0 0 2rem;
    line-height: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

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

.entry-body {
    min-width: 0;
}

.entry-body h2 {
    margin-top: 2.4rem;
    font-size: 1.55rem;
    font-weight: 500;
}

.entry-body h3 {
    margin-top: 1.9rem;
    font-size: 1.24rem;
    font-weight: 500;
}

.entry-body img {
    display: block;
    height: auto;
    border-radius: 4px;
}

.entry-body ul li::marker,
.entry-body ol li::marker {
    color: var(--accent);
}

.entry-tags {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
}

.entry-tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.post-nav a {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink);
    min-width: 0;
}

.post-nav a:hover {
    border-color: var(--accent);
    background: var(--bg-alt);
}

.post-nav span {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

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

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

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.5rem 1.5rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink);
}

.sidebar .widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 1rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--accent);
}

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

.sidebar .widget li {
    margin: 0;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.93rem;
    color: var(--ink);
}

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

.sidebar .widget a {
    color: var(--ink);
}

.sidebar .widget a:hover {
    color: var(--accent);
}

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

.sidebar .widget p {
    color: var(--ink);
    font-size: 0.93rem;
}

.sidebar .widget p:last-child {
    margin-bottom: 0;
}

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

.site-foot {
    margin-top: 0;
    background: var(--dark);
    color: #C9D6DE;
}

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

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

.site-foot .widget {
    margin-bottom: 1.4rem;
}

.site-foot .widget:last-child {
    margin-bottom: 0;
}

.site-foot .widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--sand);
}

.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget {
    color: #C9D6DE;
    font-size: 0.9rem;
}

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

.site-foot .widget li {
    margin: 0;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(201, 214, 222, 0.14);
}

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

.site-foot .widget a {
    color: #E4ECF1;
}

.site-foot .widget a:hover {
    color: var(--sand);
}

.site-foot .widget .post-date {
    display: block;
    font-size: 0.76rem;
    color: #94A6B2;
}

.foot-bottom {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid rgba(201, 214, 222, 0.16);
    font-size: 0.82rem;
    color: #94A6B2;
}

/* ===============================================================
   Формы поиска и комментариев
=============================================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
}

.search-form label {
    flex: 1;
    min-width: 0;
}

.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

.search-form button,
.comment-form input[type="submit"] {
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.12s ease;
}

.search-form button:hover,
.comment-form input[type="submit"]:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(2px);
}

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

.comments-title,
.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 500;
}

.comment-list {
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

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

.comment-item {
    margin-bottom: 1rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
}

.comment-head {
    margin-bottom: 0.5rem;
    font-size: 0.86rem;
}

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

.comment-date {
    color: var(--muted);
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

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

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

/* ===============================================================
   404 и служебные блоки
=============================================================== */

.notice-box {
    padding: 2.2rem 2.2rem 2.4rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface);
}

.notice-box p {
    color: var(--muted);
}

.error-num {
    display: block;
    margin-bottom: 0.6rem;
    font-family: var(--font-num);
    font-size: 4.6rem;
    line-height: 1;
    color: var(--line);
}

.error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: var(--dark);
    color: #D6E1E8;
    font-size: 0.88rem;
    border-top: 3px solid var(--accent);
}

.cookie-note p {
    margin: 0;
    max-width: 70ch;
}

.cookie-note a {
    color: #fff;
    text-decoration: underline;
}

.cookie-accept {
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.12s ease;
}

.cookie-accept:hover {
    background: var(--accent-dark);
    transform: translateY(2px);
}

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

@media (max-width: 960px) {
    :root {
        --shell: min(94%, 900px);
        --wide: min(94%, 900px);
    }

    .layout--sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

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

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-art {
        max-width: 420px;
    }

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

    .steps {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        gap: 2.4rem;
    }

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

    .quote-block p {
        font-size: 2rem;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .top-nav {
        display: none;
        flex: 1 0 100%;
        margin-top: 0.9rem;
        padding-top: 0.9rem;
        border-top: 1px solid var(--line);
    }

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

    .top-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .top-nav li {
        width: 100%;
    }

    .top-nav a {
        display: block;
        width: 100%;
        padding: 0.55rem 0;
    }
}

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

    h1 {
        font-size: 1.85rem;
    }

    .hero {
        padding: 3.2rem 0 3.6rem;
    }

    .hero h1 {
        font-size: 2.1rem;
        max-width: none;
    }

    .hero-blob {
        width: 220px;
        height: 220px;
        right: -70px;
        bottom: -70px;
    }

    .band {
        padding: 2.8rem 0;
    }

    .layout {
        padding: 1.8rem 0 3rem;
    }

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

    .topic-tile {
        padding: 1.4rem 1.2rem;
    }

    .quote-block {
        padding: 1.8rem 1.4rem;
    }

    .quote-block p {
        font-size: 1.5rem;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

    .step-num {
        font-size: 3rem;
    }

    .entry-head h1 {
        font-size: 1.9rem;
    }

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

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

    .cookie-note {
        padding: 0.9rem 1.1rem;
        gap: 0.8rem;
        font-size: 0.84rem;
    }

    .notice-box {
        padding: 1.6rem 1.4rem 1.8rem;
    }

    .search-form {
        max-width: none;
    }
}
