/*
Theme Name: dds_tinatii.com
Theme URI: https://tinatii.com/
Author: Тина Тии
Description: Тема для информационного проекта о торговых пространствах и офлайн-рознице в fashion-сегменте.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tnti
*/

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
    --bg: #121212;
    --bg-alt: #1A1A1A;
    --bg-deep: #0D0D0D;
    --bg-side: #181818;
    --ink: #EDEDED;
    --copper: #C87941;
    --brass: #E8C9A0;
    --mute: #8A8A8A;
    --line: #2A2A2A;
    --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============ СЛУЖЕБНЫЕ ПРАВИЛА ВИДИМОСТИ ============ */
.cookie-note[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }

/* ============ БАЗА ============ */
.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;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, #1A1A1A 0, #1A1A1A 1px, transparent 1px, transparent 24px);
}

body::after {
    content: "";
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 240px;
    height: 240px;
    opacity: .3;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%232A2A2A' stroke-width='1.6'%3E%3Cpath d='M20 46h160'/%3E%3Ccircle cx='100' cy='30' r='7'/%3E%3Cpath d='M100 37v6l-22 3h44l-22-3'/%3E%3Cpath d='M78 46l-14 30 6 92h60l6-92-14-30'/%3E%3Cpath d='M70 168h60'/%3E%3Cpath d='M64 76l-12 10 8 16'/%3E%3Cpath d='M136 76l12 10-8 16'/%3E%3Cpath d='M100 46v122'/%3E%3C/svg%3E");
}

.page-wrap { position: relative; z-index: 1; }

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

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

.entry-content a,
.widget a,
.crumbs a,
.site-desc a {
    position: relative;
}

.entry-content a::after,
.widget a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.entry-content a:hover::after,
.widget a:hover::after { transform: scaleX(1); }

.entry-content a:hover,
.widget a:hover { color: var(--brass); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .7em;
    letter-spacing: .01em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--copper);
    border-radius: 2px;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--brass);
}

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

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

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

th { background: var(--bg-alt); font-family: var(--serif); }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--bg-alt);
    color: var(--brass);
}

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

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

/* ============ КОНТЕЙНЕРЫ ============ */
.shell { width: min(92%, 1240px); margin-inline: auto; }
.shell-front { width: min(85%, 1280px); margin-inline: auto; }

.site-main { padding: 2.6rem 0 3.4rem; }
.site-main.is-front { padding: 0 0 3.4rem; }

/* ============ КНОПКИ ============ */
.btn {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 2px;
    border: 1px solid var(--copper);
    background: var(--copper);
    color: #17110B;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: #17110B;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 121, 65, .35);
}

.btn-ghost {
    background: transparent;
    color: var(--copper);
    border: 1px solid var(--copper);
}

.btn-ghost:hover {
    background: var(--brass);
    border-color: var(--brass);
    color: #17110B;
}

/* ============ МЕДНАЯ ПОЛОСА И ШАПКА ============ */
.brand-rule {
    height: 2px;
    background: var(--copper);
}

.site-header {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--copper);
    padding: 1.4rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

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

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

.brand-mark { display: block; width: 46px; height: 46px; flex: 0 0 46px; }

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

.site-title {
    font-family: var(--serif);
    font-size: 1.28rem;
    line-height: 1.3;
    margin: 0;
}

.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--brass); }

.site-desc {
    margin: .35rem 0 0;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--mute);
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    padding: .55rem .9rem;
    background: transparent;
    border: 1px solid var(--copper);
    border-radius: 2px;
    color: var(--copper);
    font-size: .9rem;
    letter-spacing: .05em;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    position: relative;
    display: inline-block;
    color: var(--ink);
    font-size: .93rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.main-nav a:hover { color: var(--brass); }
.main-nav a:hover::after { transform: scaleX(1); }

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

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.crumbs {
    font-size: .84rem;
    color: var(--mute);
    padding: 1.1rem 0 0;
    letter-spacing: .02em;
}

.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--copper); }
.crumbs .sep { margin: 0 .45rem; color: var(--line); }
.crumbs span:last-child { color: var(--ink); }

/* ============ ЗАГОЛОВКИ СЕКЦИЙ ============ */
.sec-title {
    position: relative;
    padding-left: 1.4rem;
    margin: 0 0 1.6rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
}

.sec-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--copper);
    margin: 0 0 1rem;
}

.sec-rule.is-center { margin-inline: auto; }

/* ============ РАСКЛАДКА ============ */
.layout-single { display: block; }

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

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

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.5rem;
}

/* ============ КАРТОЧКИ ЗАПИСЕЙ ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--copper);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}

.card-thumb { display: block; }

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

.card-thumb-stub {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #171717 0%, #212121 100%);
    border-bottom: 1px solid var(--line);
}

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

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .6rem;
}

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

.card-meta {
    font-size: .78rem;
    color: var(--mute);
    letter-spacing: .04em;
    margin-bottom: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
}

.card-excerpt { color: #C9C9C9; font-size: .94rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: 1rem;
    font-size: .82rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--copper);
}

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

/* Цветные теги рубрик */
.chip {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 2px;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.chip-0 { background: rgba(200, 121, 65, .16); color: var(--copper); border-color: rgba(200, 121, 65, .45); }
.chip-1 { background: rgba(232, 201, 160, .14); color: var(--brass); border-color: rgba(232, 201, 160, .4); }
.chip-2 { background: rgba(58, 122, 104, .18); color: #7FBFA8; border-color: rgba(58, 122, 104, .5); }
.chip-3 { background: rgba(122, 78, 110, .2); color: #C79AC0; border-color: rgba(122, 78, 110, .55); }

.chip:hover { border-color: var(--brass); color: var(--brass); }

/* ============ ГЛАВНАЯ ============ */
.fs { padding: 4.2rem 0; border-bottom: 1px solid var(--line); }

.fs--alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, #222222 0, #222222 1px, transparent 1px, transparent 24px);
}

/* Hero */
.fs-hero {
    position: relative;
    padding: 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-media { position: relative; }

.hero-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    filter: brightness(.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(13, 13, 13, .82) 0%, rgba(13, 13, 13, .45) 65%, rgba(13, 13, 13, .2) 100%);
}

.hero-box { position: relative; padding: 2.4rem 0 2.4rem 1.8rem; max-width: 46rem; }

.hero-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 84px;
    background: var(--copper);
}

.hero-box h1 { color: #FFFFFF; margin-bottom: .6rem; }

.hero-sub {
    color: #B8B8B8;
    font-size: 1.02rem;
    max-width: 44rem;
    margin-bottom: 1.7rem;
}

/* Статистика */
.stats-head { text-align: center; margin-bottom: 2.4rem; }
.stats-head h2 { margin-bottom: .4rem; }
.stats-head p { color: var(--mute); margin: 0; }

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

.stat {
    min-width: 0;
    padding: .6rem 1.2rem;
    text-align: center;
    border-left: 1px solid var(--line);
}

.stat:first-child { border-left: 0; }

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--copper);
}

.stat-cap {
    display: block;
    margin-top: .5rem;
    font-size: .86rem;
    color: var(--mute);
}

/* Последние записи */
.fs-latest .fs-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.fs-head .sec-title { margin-bottom: 0; }

/* Рубрикатор */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.rubric {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.4rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(18, 18, 18, .55);
    transition: border-color .22s ease, transform .22s ease;
}

.rubric:hover { border-color: var(--copper); transform: translateY(-2px); }

.rubric svg { flex: 0 0 38px; width: 38px; height: 38px; stroke: var(--mute); fill: none; stroke-width: 1.3; transition: stroke .22s ease; }

.rubric:hover svg { stroke: var(--copper); }

.rubric-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
}

.rubric-note { display: block; font-size: .82rem; color: var(--mute); }

.rubric:hover .rubric-name { color: var(--brass); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 1.15rem 0;
}

.faq summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding-left: 1.5rem;
    font-family: var(--serif);
    font-size: 1.22rem;
    color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
    transition: height .2s ease, border-radius .2s ease, top .2s ease;
}

.faq details[open] summary::before {
    top: .35em;
    height: 26px;
    border-radius: 0;
    width: 2px;
}

.faq details[open] summary { color: var(--brass); }

.faq-answer {
    margin: .9rem 0 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--copper);
    color: var(--mute);
    font-size: .97rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* CTA-плашка */
.cta-plate {
    padding: 2.4rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-align: center;
}

/* ============ ЗАПИСЬ И СТРАНИЦА ============ */
.entry-header { margin-bottom: 1.6rem; }
.entry-header h1 { margin-bottom: .5rem; }

.entry-meta {
    font-size: .84rem;
    color: var(--mute);
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content img { border-radius: 4px; display: block; }

.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }

.page-title {
    margin-bottom: 1.8rem;
}

.archive-lead { color: var(--mute); margin-bottom: 2rem; }

/* ============ ПАГИНАЦИЯ ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: .5rem .8rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-size: .92rem;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

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

.pager .page-numbers.current {
    background: var(--copper);
    border-color: var(--copper);
    color: #17110B;
}

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

/* ============ ФОРМА ПОИСКА ============ */
.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: .7rem .9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: .95rem;
}

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

/* ============ ВИДЖЕТЫ ============ */
.widget { margin-bottom: 1.9rem; }
.widget:last-child { margin-bottom: 0; }

.widget-title {
    position: relative;
    font-size: 1.05rem;
    padding-left: 1.2rem;
    margin-bottom: .9rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--copper);
}

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

.widget li {
    margin: 0;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .93rem;
}

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

.widget .post-date { display: block; font-size: .78rem; color: var(--mute); }

/* Сайдбар (фон #181818) */
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget p { color: #C7C7C7; }
.sidebar .widget a { color: #DCDCDC; }
.sidebar .widget a:hover { color: var(--copper); }
.sidebar .widget li { border-bottom-color: #232323; }

/* ============ ПОДВАЛ ============ */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

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

.site-footer .widget-title { color: var(--ink); font-size: 1rem; }
.site-footer .widget,
.site-footer .widget p { color: #B4B4B4; font-size: .92rem; }
.site-footer .widget a { color: #D6D6D6; }
.site-footer .widget a:hover { color: var(--brass); }
.site-footer .widget li { border-bottom-color: #1C1C1C; }
.site-footer .widget .post-date { color: var(--mute); }

.footer-contacts { margin-top: .9rem; font-size: .9rem; }
.footer-contacts a { color: var(--copper); }
.footer-contacts a:hover { color: var(--brass); }

.copyright {
    padding-top: 1.4rem;
    font-size: .84rem;
    color: var(--mute);
    text-align: center;
}

/* ============ COOKIE ============ */
.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: #0B0B0B;
    border-top: 1px solid var(--copper);
    color: #C7C7C7;
    font-size: .88rem;
}

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

/* ============ КОММЕНТАРИИ ============ */
.comments-area { margin-top: 3rem; }

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

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

.comment-list li { margin: 0 0 1.2rem; }

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

.comment-body {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
}

.comment-author { font-family: var(--serif); font-size: 1.05rem; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .78rem; color: var(--mute); margin-bottom: .6rem; }
.comment-metadata a { color: var(--mute); }
.reply { font-size: .82rem; }

.comment-form label { display: block; font-size: .86rem; color: var(--mute); margin-bottom: .3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: .95rem;
    margin-bottom: 1rem;
}

.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--copper); }

.comment-form .submit {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 2px;
    border: 1px solid var(--copper);
    background: var(--copper);
    color: #17110B;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form .submit:hover { background: var(--brass); border-color: var(--brass); }

.comment-notes, .comment-form-cookies-consent label { font-size: .82rem; color: var(--mute); }

/* ============ 404 ============ */
.err-box { text-align: center; padding: 2.6rem 1.6rem; }
.err-code { font-family: var(--serif); font-size: 5.4rem; color: var(--copper); line-height: 1; }
.err-box .search-form { max-width: 420px; margin: 1.6rem auto 1.4rem; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single > .content-area { width: 100%; }

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

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

    .header-inner { align-items: flex-start; }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        margin-top: 1rem;
    }

    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: .75rem 0; }

    .hero-media img { aspect-ratio: 4 / 3; }
    .hero-overlay { background: linear-gradient(180deg, rgba(13, 13, 13, .55) 0%, rgba(13, 13, 13, .88) 100%); }
}

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

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.2rem; }

    .shell, .shell-front { width: 92%; }

    .fs { padding: 2.8rem 0; }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat { border-left: 0; }
    .stat:nth-child(even) { border-left: 1px solid var(--line); }
    .stat-num { font-size: 2.3rem; }

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

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

    .cta-plate { padding: 1.8rem 1.4rem; }
    .hero-box { padding: 1.8rem 0 1.8rem 1.2rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .err-code { font-size: 4rem; }
}
