/*
Theme Name: dds_takatuki.ru
Theme URI: https://takatuki.ru/
Author: Арина Шарова
Description: Информационная тема для гида по пицце, роллам, блюдам вок и доставке еды. Яркий поп-арт, квадратные формы, комиксные рамки и «вкусная» палитра.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: takatuki
*/

/* ============================================================
   1. Переменные и база
   ============================================================ */

:root {
    --bg: #FAF7F2;
    --bg-alt: #FFFFFF;
    --dark: #222222;
    --ink: #1A1A1A;
    --ink-light: #F0F0F0;
    --accent: #FF4500;
    --accent-2: #FFD700;
    --muted: #9CA3AF;
    --line: #222222;
    --font-head: "Montserrat", "Arial Black", "Segoe UI", Arial, sans-serif;
    --font-body: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::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;
    line-height: 1.75;
}

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

figure {
    margin: 1.5rem 0;
}

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

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

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

a:hover,
a:focus {
    color: var(--accent);
}

.entry-content a,
.card-excerpt a,
.side-widget a,
.crumbs a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
    transition: background-size 0.22s ease;
    padding-bottom: 2px;
}

.entry-content a:hover,
.card-excerpt a:hover,
.side-widget a:hover,
.crumbs a:hover {
    background-size: 100% 3px;
}

::selection {
    background: var(--accent-2);
    color: var(--dark);
}

/* Тонкий «гороховый» паттерн фона — только на широких экранах */
@media (min-width: 1280px) {
    body {
        background-image: radial-gradient(rgba(26, 26, 26, 0.07) 1.6px, transparent 1.7px);
        background-size: 24px 24px;
        background-attachment: fixed;
    }
}

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

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

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

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

.page-body {
    padding: 2.4rem 0 0;
}

.layout-single {
    display: block;
    width: min(85%, 1180px);
    margin-inline: auto;
}

.layout-with-sidebar {
    display: grid;
    width: min(92%, 1180px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    row-gap: 2.5rem;
    align-items: start;
}

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

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

.btn {
    display: inline-block;
    border: 3px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--accent-2);
    border-color: var(--dark);
    color: var(--dark);
}

.btn-light {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

/* ============================================================
   4. Заголовки секций
   ============================================================ */

.sec-title {
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    text-transform: uppercase;
    margin: 0 0 1.8rem;
    padding-bottom: 14px;
}

.sec-title .mark {
    position: relative;
    display: inline-block;
}

.sec-title .mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 10px;
    background: var(--accent);
}

.sec-lead {
    max-width: 62ch;
    margin: 0 0 2rem;
    color: #3a3a3a;
}

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

.site-top {
    background: var(--dark);
    color: var(--ink-light);
    border-bottom: 6px solid var(--accent);
}

.site-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-transform: uppercase;
}

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

.brand-tagline {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 3px solid var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 0;
    cursor: pointer;
}

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

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

.main-nav a {
    display: inline-block;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.25rem 0;
    border-bottom: 3px solid transparent;
}

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

.main-nav ul ul {
    display: block;
    padding-left: 1rem;
}

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

.crumbs {
    font-size: 0.82rem;
    color: #4a4a4a;
    padding: 1.1rem 0 0.2rem;
    word-wrap: break-word;
}

.crumbs a {
    color: var(--dark);
    font-weight: 700;
}

.crumbs .sep {
    color: var(--accent);
    font-weight: 800;
    margin: 0 0.15rem;
}

.crumbs span:not(.sep) {
    color: #5c5c5c;
    font-weight: 600;
}

/* ============================================================
   7. Секции главной
   ============================================================ */

.fs {
    position: relative;
    padding: 4.2rem 0;
    background: var(--bg-alt);
}

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

.fs + .fs,
.hero + .fs {
    border-top: 6px dashed var(--accent-2);
}

.fs-inner {
    position: relative;
    z-index: 2;
}

/* коллажные фигуры на стыках секций */
.fs-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.16;
}

.fs-shape-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: var(--accent);
    top: -95px;
    right: 7%;
}

.fs-shape-square {
    width: 150px;
    height: 150px;
    background: var(--accent-2);
    bottom: -75px;
    left: 5%;
    transform: rotate(12deg);
}

/* --- Блок 1: Hero --- */

.hero {
    position: relative;
    background-color: var(--dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cpath fill='%23FF4500' fill-opacity='0.15' d='M470 60c60 40 100 120 78 196-22 76-106 148-190 176-84 28-168 12-214-44-46-56-54-152-14-216 40-64 128-96 204-116 76-20 76-36 136 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -60px center;
    background-size: auto 130%;
    color: var(--ink-light);
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0 0 1.4rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--accent-2);
}

.hero-kicker span {
    display: inline-block;
}

.hero-kicker span:nth-child(1) { transform: translateY(-10px); }
.hero-kicker span:nth-child(2) { transform: translateY(10px); color: #FFFFFF; }
.hero-kicker span:nth-child(3) { transform: translateY(-6px); }

.hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.5rem);
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}

.hero-desc {
    max-width: 56ch;
    color: #D8D8D8;
    font-size: 1.02rem;
    margin-bottom: 1.9rem;
}

.hero-art {
    min-width: 0;
    justify-self: center;
}

.hero-art img {
    display: block;
    width: 100%;
    max-width: 340px;
}

/* --- Блок 2: рубрикатор --- */

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

.tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem 1.8rem;
    border: 4px solid var(--dark);
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
    transition: transform 0.18s ease;
}

.tile:hover {
    transform: translateY(-6px);
}

.tile img {
    display: block;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
}

.tile-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.tile-note {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.5;
}

.tile-red { background: var(--accent); color: #FFFFFF; }
.tile-red .tile-note { color: #FFEDE6; }
.tile-yellow { background: var(--accent-2); color: var(--dark); }
.tile-yellow .tile-note { color: #4a3d00; }
.tile-white { background: #FFFFFF; color: var(--dark); }
.tile-white .tile-note { color: #4a4a4a; }
.tile-black { background: var(--dark); color: #FFFFFF; }
.tile-black .tile-note { color: #C9C9C9; }

/* --- Блок «Последние записи» --- */

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

/* --- Блок 3: таймлайн --- */

.tline {
    position: relative;
    margin: 0;
    padding: 0.5rem 0 0.5rem 0;
}

.tline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    border-left: 6px dashed var(--accent-2);
    transform: translateX(-3px);
}

.tstep {
    position: relative;
    width: 45%;
    margin: 0 0 2.2rem;
    padding: 1.4rem 1.5rem;
    background: #FFFFFF;
    border: 4px solid var(--dark);
    min-width: 0;
}

.tstep:nth-child(odd) {
    margin-right: auto;
}

.tstep:nth-child(even) {
    margin-left: auto;
}

.tstep h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.tstep p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
}

.tdot {
    position: absolute;
    top: 1.3rem;
    width: 44px;
    height: 44px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent);
}

.tstep:nth-child(odd) .tdot { right: -12%; }
.tstep:nth-child(even) .tdot { left: -12%; }

.tdot svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* --- Блок 4: плюсы и минусы --- */

.prcn {
    position: relative;
    padding: 2.8rem 2.4rem;
    color: #FFFFFF;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 14px, rgba(255, 255, 255, 0) 14px 28px),
        linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), calc(100% - 42px) 100%, 0 100%);
}

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

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

.prcn h3 {
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 rgba(34, 34, 34, 0.35);
}

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

.prcn li {
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
    text-shadow: 2px 2px 0 rgba(34, 34, 34, 0.28);
}

.prcn li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.prcn-yes li::before { content: "✅"; }
.prcn-ask li::before { content: "❓"; }

/* --- CTA внутри страниц --- */

.cta {
    margin: 2.6rem 0 0;
    padding: 2.2rem 2rem;
    background: var(--dark);
    color: var(--ink-light);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.cta h2 {
    color: #FFFFFF;
    margin-bottom: 0.6rem;
}

.cta p {
    color: #CFCFCF;
    margin-bottom: 1.4rem;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 2rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: #FFFFFF;
    border: 4px solid var(--dark);
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 12px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.card:hover {
    transform: translateX(-8px);
    border-color: var(--accent);
}

.card:hover::after {
    opacity: 1;
}

.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--bg);
}

.card-thumb a {
    display: block;
}

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

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

.card-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 0.55rem;
}

.card-title {
    font-size: 1.16rem;
    margin: 0 0 0.7rem;
    line-height: 1.25;
}

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

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

.card-excerpt {
    font-size: 0.94rem;
    color: #3d3d3d;
    margin-bottom: 1.2rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    font-size: 0.82rem;
    padding: 0.55rem 1.1rem;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 46px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 3px solid var(--dark);
    background: #FFFFFF;
    color: var(--dark);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 0;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

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

.pager .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0.55rem 0.3rem;
}

/* ============================================================
   10. Контент записей и страниц
   ============================================================ */

.entry {
    background: #FFFFFF;
    border: 4px solid var(--dark);
    padding: 2rem 2.1rem 2.3rem;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.entry-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

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

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content h2 {
    font-size: 1.55rem;
    text-transform: uppercase;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.3rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.7rem;
}

.entry-content ul li::before {
    content: "🍕";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.5;
}

.entry-content ul li:nth-child(3n+2)::before { content: "🍣"; }
.entry-content ul li:nth-child(3n+3)::before { content: "🍜"; }

.entry-content ol {
    padding-left: 1.4rem;
    margin: 0 0 1.3rem;
}

.entry-content ol li {
    margin-bottom: 0.7rem;
}

.entry-content ol li::marker {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--accent);
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.5rem 1.7rem;
    background: var(--dark);
    color: var(--ink-light);
    border-left: 10px solid var(--accent);
    font-weight: 600;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

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

.entry-content img {
    display: block;
    height: auto;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 3px solid var(--dark);
    font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
    border: 2px solid var(--dark);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th {
    background: var(--accent-2);
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.entry-content pre {
    overflow-x: auto;
    background: var(--dark);
    color: var(--ink-light);
    padding: 1rem;
}

.entry-tags {
    margin-top: 1.8rem;
    font-size: 0.85rem;
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    border: 3px solid var(--dark);
    color: var(--dark);
}

.entry-tags a:hover {
    background: var(--accent-2);
}

.page-title {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    text-transform: uppercase;
    margin: 1.2rem 0 1.8rem;
    padding-bottom: 14px;
    position: relative;
}

.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 10px;
    background: var(--accent);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin: 2rem 0;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--dark);
    border-bottom: 3px solid var(--accent);
}

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

.nothing {
    background: #FFFFFF;
    border: 4px solid var(--dark);
    padding: 2rem 2.1rem;
}

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

.sidebar {
    min-width: 0;
}

.side-widget {
    background: #FFFFFF;
    color: var(--ink);
    border: 4px solid var(--dark);
    box-shadow: 8px 8px 0 rgba(34, 34, 34, 0.09);
    padding: 1.4rem 1.5rem 1.6rem;
    margin-bottom: 1.8rem;
}

.side-widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 1.4rem;
    padding-bottom: 12px;
}

.side-widget-title .mark {
    position: relative;
    display: inline-block;
}

.side-widget-title .mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 8px;
    background: var(--accent);
}

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

.side-widget li {
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px dashed rgba(34, 34, 34, 0.18);
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.5;
}

.side-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.side-widget a {
    color: var(--ink);
    font-weight: 700;
}

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

.side-widget .post-date {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #6B7280;
}

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

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

.site-bottom {
    background: var(--dark);
    color: var(--ink-light);
    border-top: 6px solid var(--accent);
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

.foot-widget {
    margin-bottom: 1.6rem;
    color: var(--ink-light);
}

.foot-widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 1.3rem;
    padding-bottom: 12px;
}

.foot-widget-title .mark {
    position: relative;
    display: inline-block;
}

.foot-widget-title .mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 8px;
    background: var(--accent-2);
}

.foot-widget p,
.foot-widget li {
    color: #D5D5D5;
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.foot-widget li {
    margin-bottom: 0.65rem;
}

.foot-widget a {
    color: #FFFFFF;
    font-weight: 700;
}

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

.foot-contact {
    margin-top: 0.4rem;
    font-size: 0.92rem;
    color: #D5D5D5;
}

.copy {
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 3px dashed rgba(240, 240, 240, 0.22);
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

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

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

.search-form {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 3px solid var(--dark);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form input:focus {
    outline: 3px solid var(--accent-2);
}

.comments-area {
    background: #FFFFFF;
    border: 4px solid var(--dark);
    padding: 1.9rem 2rem 2.1rem;
    margin-top: 2rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.3rem;
    text-transform: uppercase;
}

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

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

.comment-item {
    margin-bottom: 1.4rem;
    padding: 1.1rem 1.2rem;
    border: 3px solid var(--dark);
    background: var(--bg);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 700;
}

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

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
}

.comment-hold {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 3px solid var(--dark);
    border-radius: 0;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: 3px solid var(--accent-2);
}

.comment-form .submit {
    display: inline-block;
    border: 3px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
}

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

.comment-navigation {
    margin-bottom: 1.4rem;
    font-weight: 700;
}

/* ============================================================
   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: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
    background: var(--dark);
    color: var(--ink-light);
    border-top: 6px solid var(--accent-2);
}

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

.cookie-banner .btn {
    padding: 0.6rem 1.3rem;
    font-size: 0.85rem;
}

/* ============================================================
   15. 404
   ============================================================ */

.err {
    background: #FFFFFF;
    border: 4px solid var(--dark);
    padding: 2.4rem 2.2rem;
    margin: 1.5rem 0 2rem;
}

.err-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }

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

    .hero-art {
        order: -1;
    }

    .hero-art img {
        max-width: 240px;
    }

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

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

    .layout-single,
    .wrap {
        width: min(92%, 1180px);
    }
}

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

    .site-top-inner {
        align-items: flex-start;
    }

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

    .main-nav {
        flex: 1 1 100%;
        display: none;
        padding-top: 0.8rem;
    }

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

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

    .fs {
        padding: 2.8rem 0;
    }

    .hero {
        padding: 3rem 0 2.6rem;
        background-size: auto 90%;
    }

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

    .tline::before {
        left: 22px;
        transform: none;
    }

    .tstep {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 4rem;
    }

    .tstep:nth-child(odd) .tdot,
    .tstep:nth-child(even) .tdot {
        left: 0;
        right: auto;
        top: 1.1rem;
    }

    .prcn {
        padding: 1.9rem 1.4rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
    }

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

    .cta {
        padding: 1.7rem 1.4rem;
    }

    .entry,
    .comments-area,
    .nothing,
    .err {
        padding: 1.4rem 1.3rem 1.6rem;
    }

    .side-widget {
        padding: 1.2rem 1.2rem 1.3rem;
        box-shadow: 6px 6px 0 rgba(34, 34, 34, 0.09);
    }

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

    .card:hover {
        transform: none;
    }

    .card:hover::after {
        opacity: 0;
    }

    .cookie-banner {
        justify-content: flex-start;
        padding: 0.9rem 1rem;
    }
}
