/*
Theme Name: dds_arenaitaly.ru
Description: Индивидуальная тема информационного сайта школы дизайна интерьера и предметного дизайна Arena Italy. Дизайн-концепция «Итальянский архитектурный эскиз».
Author: Анна Моретти
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: arenit
*/

/* =========================================================
   0. Переменные и сброс
   ========================================================= */

:root {
    --bg: #F4F6F9;
    --bg-alt: #E8EDF2;
    --head-bg: #1A1F2B;
    --foot-bg: #0F141E;
    --ink: #1E232E;
    --accent: #C68A5B;
    --accent-2: #3A4A5C;
    --muted: #788692;
    --line: #D0D6DF;
    --shadow: #D0D6DF;
    --font-head: "Bahnschrift", "Jost", "Futura PT", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(30deg,
        rgba(176, 188, 203, 0.04) 0,
        rgba(176, 188, 203, 0.04) 1px,
        transparent 1px,
        transparent 9px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

/* =========================================================
   1. Типографика
   ========================================================= */

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

h1 {
    font-size: 2.6rem;
    margin-bottom: 1.4rem;
}

h2 {
    font-size: 1.9rem;
    margin-top: 2.4rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 1.8rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1.15em;
    background: none;
}

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease, color .2s ease;
}

a:hover,
a:focus-visible {
    background-size: 100% 1px;
}

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

blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    font-size: 1.08rem;
}

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

code, pre {
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: .92em;
    background: var(--bg-alt);
}

pre {
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
}

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

th, td {
    border: 1px solid var(--line);
    padding: .7rem .85rem;
    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;
}

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

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

.site-main {
    padding: 3.2rem 0 5rem;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

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

/* «Синяя копирка» — направляющая линия обреза слева от контента */
.content-area,
.layout-single > .content-area {
    border-left: 2px solid var(--accent-2);
    padding-left: 1.7rem;
}

/* =========================================================
   3. Кнопки
   ========================================================= */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .96rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .82rem 1.7rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    background-image: none;
    color: var(--accent);
    cursor: pointer;
    transition: background-color .22s ease, color .22s ease, transform .16s ease;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

.btn-solid {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
}

.btn-solid:hover,
.btn-solid:focus-visible {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-light {
    border-color: #fff;
    color: #fff;
}

.btn-light:hover,
.btn-light:focus-visible {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* =========================================================
   4. Шапка
   ========================================================= */

.site-head {
    background: var(--head-bg);
    color: #E4E9F0;
    position: static;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 320px;
}

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

.brand-mark svg {
    width: 54px;
    height: 54px;
    display: block;
}

.brand-logo {
    width: auto;
    max-height: 60px;
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    color: #F1F4F8;
    background-image: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.brand-desc {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    line-height: 1.5;
    color: #96A2B0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: .55rem .9rem;
    background: transparent;
    border: 2px solid #46505F;
    border-radius: 4px;
    color: #E4E9F0;
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #DCE3EC;
    padding: .3rem 0;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #fff;
    background-size: 100% 2px;
}

/* =========================================================
   5. Хлебные крошки
   ========================================================= */

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 2rem;
    letter-spacing: .02em;
}

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

.crumbs-sep {
    color: var(--muted);
    margin: 0 .2rem;
}

/* =========================================================
   6. Секции главной страницы
   ========================================================= */

.front-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.front-section .shell {
    width: min(85%, 1180px);
}

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

/* Декоративный контурный набросок мебели в правом нижнем углу секций */
.front-section--sketch::after {
    content: "";
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 260px;
    height: 260px;
    opacity: .06;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    pointer-events: none;
}

.sketch-chair::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231E232E' stroke-width='3'%3E%3Cpath d='M52 150 V70 L120 56'/%3E%3Cpath d='M48 104 H140 L150 122 H58 Z'/%3E%3Cpath d='M62 122 V172 M140 122 V166 M148 122 L160 168'/%3E%3Cpath d='M52 70 C70 44 116 40 128 58'/%3E%3C/g%3E%3C/svg%3E");
}

.sketch-lamp::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231E232E' stroke-width='3'%3E%3Cpath d='M66 74 H140 L126 30 H80 Z'/%3E%3Cpath d='M103 74 V168'/%3E%3Cpath d='M74 176 H132'/%3E%3Cpath d='M84 168 L103 176 L122 168'/%3E%3C/g%3E%3C/svg%3E");
}

.sketch-table::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231E232E' stroke-width='3'%3E%3Cpath d='M28 96 H172 L160 112 H40 Z'/%3E%3Cpath d='M50 112 V172 M150 112 V172'/%3E%3Cpath d='M84 96 V64 M84 64 C84 50 116 50 116 64 V96'/%3E%3C/g%3E%3C/svg%3E");
}

.sketch-shelf::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231E232E' stroke-width='3'%3E%3Crect x='44' y='36' width='112' height='140'/%3E%3Cpath d='M44 82 H156 M44 128 H156'/%3E%3Cpath d='M62 52 H84 M62 96 H98 M110 140 H140'/%3E%3C/g%3E%3C/svg%3E");
}

.section-head {
    text-align: left;
    margin-bottom: 3rem;
}

.front-section .section-head {
    border-left: 2px solid var(--accent-2);
    padding-left: 1.5rem;
}

.stats-plate .section-head {
    border-left-color: var(--accent);
}

.section-head h2 {
    margin: 0;
    font-size: 2.3rem;
}

.section-head h2::before,
.first-title::before {
    content: "◇";
    color: var(--accent);
    font-size: .72em;
    margin-right: .55rem;
    vertical-align: .12em;
}

.section-rule {
    display: block;
    width: 120px;
    height: 1px;
    margin-top: 1rem;
    background: var(--accent);
}

.section-lead {
    max-width: 62ch;
    margin: 1.6rem 0 0;
    color: #46505F;
}

/* --- Hero --- */

.hero {
    position: relative;
    padding: 150px 0 140px;
    background-color: #232A36;
    color: #EEF2F7;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(16, 21, 30, .72), rgba(16, 21, 30, .84));
}

.hero .shell {
    position: relative;
    z-index: 2;
    width: min(85%, 1180px);
}

.hero-eyebrow {
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1.4rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: .015em;
    color: #FFFFFF;
    margin: 0;
}

.hero-rule {
    display: block;
    width: 180px;
    height: 2px;
    background: var(--accent);
    margin: 1.8rem 0 2rem;
}

.hero-sub {
    max-width: 58ch;
    font-size: 1.12rem;
    color: #C9D2DC;
    margin: 0 0 2.4rem;
}

.hero-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.55) contrast(1.02);
}

/* --- Чек-лист --- */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 78ch;
}

.check-list li {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(58, 74, 92, .16);
    min-width: 0;
}

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

.check-list svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: .15rem;
}

.check-list p {
    margin: 0;
    min-width: 0;
}

.check-list strong {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.08rem;
    margin-bottom: .25rem;
}

/* --- Статистика --- */

.stats-band {
    padding: 0;
    background: transparent;
}

.stats-plate {
    padding: 4.2rem 3rem;
    background-color: var(--head-bg);
    background-image:
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(135deg, var(--accent-2), var(--head-bg));
    background-size: 4px 4px, auto;
    color: #E4E9F0;
}

.stats-plate .section-head h2 {
    color: #FFFFFF;
}

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

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
}

.stat-cap {
    display: block;
    margin-top: .9rem;
    font-size: .98rem;
    color: #AEB9C6;
    max-width: 24ch;
}

/* --- Сетка направлений --- */

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

.dir-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 0;
    transition: box-shadow .24s ease;
}

.dir-card:hover {
    box-shadow: 4px 8px 0 var(--shadow);
}

.dir-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: grayscale(1) contrast(1.02);
}

.dir-body {
    flex: 1;
    padding: 1.6rem 1.5rem 1.8rem;
    min-width: 0;
}

.dir-body h3 {
    margin: 0;
    font-size: 1.22rem;
}

.dir-rule {
    display: block;
    width: 64px;
    height: 1px;
    background: var(--accent);
    margin: .9rem 0 1rem;
}

.dir-body p {
    margin: 0;
    font-size: .97rem;
    color: #46505F;
}

/* --- Последние записи на главной --- */

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

.front-cta {
    margin-top: 3rem;
}

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

.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.layout-with-sidebar .card-list {
    grid-template-columns: minmax(0, 1fr);
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    box-shadow: 4px 8px 0 var(--shadow);
    transition: box-shadow .24s ease;
}

.card:hover {
    box-shadow: -4px 4px 0 var(--shadow);
}

.card-thumb {
    display: block;
    line-height: 0;
    background: var(--bg-alt);
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(1) contrast(1.03);
}

.thumb-stub {
    display: block;
    line-height: 0;
}

.thumb-stub svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}

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

.card-title {
    margin: 0 0 .5rem;
    font-size: 1.24rem;
    line-height: 1.24;
}

.card-title a {
    color: var(--ink);
    background-image: linear-gradient(var(--accent), var(--accent));
}

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

.card-excerpt {
    font-size: .96rem;
    color: #46505F;
    margin-bottom: 1.2rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-meta {
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .03em;
    margin-bottom: .7rem;
}

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

.meta-sep {
    margin: 0 .25rem;
}

.card.sticky-card {
    box-shadow: 4px 8px 0 var(--accent);
}

/* =========================================================
   8. Одиночная запись и страница
   ========================================================= */

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

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

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    filter: grayscale(1) contrast(1.03);
}

.entry-content img {
    height: auto;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-tags {
    margin-top: 2.4rem;
    font-size: .9rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 .35rem .4rem 0;
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--accent-2);
    font-size: .82rem;
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: .93rem;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg-alt);
    padding: 1.9rem 1.6rem;
}

.sidebar .widget {
    margin-bottom: 2.2rem;
    color: var(--ink);
}

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

.widget-title {
    font-size: 1.06rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 1.1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--accent);
}

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

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

.sidebar .widget li {
    padding: .5rem 0 .5rem 1.1rem;
    position: relative;
    border-bottom: 1px solid rgba(58, 74, 92, .14);
    font-size: .95rem;
    color: var(--ink);
}

.sidebar .widget li::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: .5rem;
    color: var(--accent);
    font-size: .74rem;
}

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

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

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

.sidebar .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: .78rem;
    color: #5C6875;
}

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

.site-foot {
    background: var(--foot-bg);
    color: #B7C1CD;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

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

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

.site-foot .widget {
    color: #B7C1CD;
    font-size: .95rem;
}

.site-foot .widget-title {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
}

.site-foot .widget p {
    color: #B7C1CD;
}

.site-foot .widget a {
    color: #DCE4EE;
    background-image: linear-gradient(var(--accent), var(--accent));
}

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

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

.site-foot .widget li {
    padding: .42rem 0 .42rem 1.05rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #B7C1CD;
}

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

.site-foot .widget li::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: .42rem;
    color: var(--accent);
    font-size: .72rem;
}

.site-foot .post-date {
    display: block;
    font-size: .78rem;
    color: #8C98A6;
}

.foot-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .84rem;
    color: #8C98A6;
    line-height: 1.6;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: .55rem .85rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: transparent;
    background-image: none;
    font-family: var(--font-head);
    font-size: .92rem;
    text-align: center;
    color: var(--accent-2);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    background-color: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

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

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

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

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

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

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: .72rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.search-submit {
    flex: 0 0 auto;
}

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

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
}

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

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

.comment-item {
    margin-bottom: 1.4rem;
}

.comment-body {
    background: var(--bg-alt);
    padding: 1.3rem 1.4rem;
    border-radius: 0;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: baseline;
    margin-bottom: .6rem;
}

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

.comment-head time {
    font-size: .8rem;
    color: var(--muted);
}

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

.comment-actions {
    margin-top: .7rem;
    font-size: .86rem;
}

.comment-hold {
    font-size: .86rem;
    color: var(--muted);
}

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

.comment-form label {
    display: block;
    font-size: .88rem;
    margin-bottom: .35rem;
    color: var(--accent-2);
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .78rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color .22s ease, color .22s ease, transform .16s ease;
}

.comment-form .submit:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

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

.notice-block {
    background: var(--bg-alt);
    padding: 2.2rem 2rem;
    border-left: 3px solid var(--accent);
}

.notice-block p:last-child {
    margin-bottom: 0;
}

.error-search {
    margin: 1.8rem 0;
    max-width: 520px;
}

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

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--head-bg);
    color: #DCE3EC;
    font-size: .9rem;
    border-top: 2px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    max-width: 78ch;
    min-width: 0;
}

.cookie-banner a {
    color: var(--accent);
}

.cookie-accept {
    flex: 0 0 auto;
    padding: .6rem 1.4rem;
    font-family: var(--font-head);
    font-size: .86rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .16s ease;
}

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

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

@media (max-width: 960px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .front-section {
        padding: 80px 0;
    }

    .hero {
        padding: 110px 0 100px;
    }

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

    .layout-single {
        width: 100%;
    }

    .front-section .shell,
    .hero .shell {
        width: min(92%, 1180px);
    }

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

    .card-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-num {
        font-size: 4.4rem;
    }

    .nav-toggle {
        display: inline-block;
    }

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

    .main-nav {
        flex: 1 1 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: .8rem;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    .main-nav a {
        display: block;
        padding: .65rem 0;
    }
}

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

    .front-section {
        padding: 64px 0;
    }

    .hero {
        padding: 84px 0 74px;
    }

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

    .hero-sub {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    .section-head h2 {
        font-size: 1.7rem;
    }

    .dir-grid,
    .latest-grid,
    .stats-grid,
    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-plate {
        padding: 2.4rem 1.4rem;
    }

    .stat-num {
        font-size: 3.6rem;
    }

    .sidebar {
        padding: 1.5rem 1.2rem;
    }

    .content-area,
    .layout-single > .content-area {
        padding-left: 1.1rem;
    }

    .front-section--sketch::after {
        width: 150px;
        height: 150px;
    }

    .cookie-banner {
        padding: 1rem 1.1rem;
    }

    .notice-block {
        padding: 1.6rem 1.3rem;
    }

    blockquote {
        padding: 1.3rem 1.2rem;
    }
}
