/*
Theme Name: dds_thecookingcoach101.com
Author: Воронкова Вера
Description: Gourmet Coach — тема для онлайн-обучения кулинарии. Чистая кухня: воздух, свет, аппетитная простота.
Version: 1.1
Text Domain: dds_thecookingcoach101
*/

/* ===== Шрифты ===== */
@import url("/assets/a85f4048ee05a65eb5f8.css");

/* ===== CSS-переменные ===== */
:root {
    --bg-cream: #FEF9F0;
    --bg-milk:  #F2E3CF;
    --ink:      #2C2C2C;
    --ink-soft: #5A5654;
    --terra:    #C85C3A;
    --terra-dk: #A94A2D;
    --olive:    #A3B85C;
    --olive-dk: #8AA046;
    --cherry:   #B23C3C;
    --line:     #E8DCC4;
    --shade:    rgba(44, 44, 44, 0.06);
    --shade-2:  rgba(44, 44, 44, 0.10);
    --night:    #1A1A1A;

    --serif: 'Fraunces', 'Times New Roman', serif;
    --sans:  'Manrope', 'Helvetica Neue', sans-serif;

    --radius-card: 14px;
    --radius-btn:  40px;
    --radius-sm:   8px;

    --pad-section: 64px;
    --pad-card:    24px;
}

/* ===== Сброс ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background-color: var(--bg-cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; }

a {
    color: var(--terra);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--terra-dk); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.05em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

blockquote {
    border-left: 4px solid var(--terra);
    background: var(--bg-milk);
    margin: 1.4em 0;
    padding: 1em 1.4em;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

code, pre {
    font-family: 'JetBrains Mono', Consolas, monospace;
    background: var(--bg-milk);
    border-radius: 4px;
}
code { padding: .15em .4em; font-size: .92em; }
pre  { padding: 1em 1.2em; overflow-x: auto; line-height: 1.5; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid var(--line);
    background: #fff;
}
th, td {
    border: 1px solid var(--line);
    padding: .65em .85em;
    text-align: left;
}
th {
    background: var(--bg-milk);
    font-family: var(--serif);
    font-weight: 600;
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.5em 0;
}

/* ===== Контейнеры ===== */
.gc-wrap {
    width: min(1180px, 92%);
    margin: 0 auto;
}
.gc-flow > * + * { margin-top: 1.05em; }

/* ===== Шапка ===== */
.site-header {
    background: var(--bg-cream);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    position: relative;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
}
.brand-logo,
.brand-svg {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: block;
    border-radius: 50%;
    background: var(--bg-milk);
    padding: 6px;
    object-fit: cover;
}
.brand-svg { padding: 8px; }
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.brand-tagline {
    font-size: .82rem;
    color: var(--ink-soft);
    margin-top: 3px;
    max-width: 38ch;
}

.primary-nav {
    margin-left: auto;
}
.primary-nav .nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 600;
    color: var(--ink);
}
.primary-nav ul.menu,
.primary-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.primary-nav .menu li a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--ink);
    font-weight: 500;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}
.primary-nav .menu li a:hover,
.primary-nav .menu .current-menu-item a {
    background: var(--terra);
    color: #fff;
    text-decoration: none;
}

/* ===== Hero / featured strip ===== */
.featured-strip {
    background: linear-gradient(135deg, var(--bg-milk) 0%, var(--bg-cream) 100%);
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.featured-strip::before {
    content: "";
    position: absolute;
    top: -120px; right: -100px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(200, 92, 58, 0.08), transparent 70%);
    pointer-events: none;
}
.featured-eyebrow {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .78rem;
    color: var(--olive-dk);
    font-weight: 700;
    margin-bottom: 12px;
}
.featured-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 14px;
    max-width: 22ch;
    line-height: 1.05;
}
.featured-title em {
    color: var(--terra);
    font-style: italic;
    font-weight: 400;
}
.featured-sub {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 24px;
}

/* ===== Слайдер последних рецептов в шапке-hero ===== */
.gc-slider {
    position: relative;
    margin-top: 36px;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 24px 48px -28px rgba(44,44,44,.35);
    background: var(--bg-milk);
    aspect-ratio: 16 / 6;
}
.gc-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}
.gc-slider .slide.active { opacity: 1; }
.gc-slider .slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gc-slider .slide-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(26,26,26,.78));
}
.gc-slider .slide-meta {
    position: absolute;
    left: 32px; right: 32px; bottom: 26px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    font-weight: 600;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.gc-slider .slide-meta a { color: #fff; text-decoration: none; }
.gc-slider .slide-meta a:hover { color: var(--bg-milk); }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
    height: 52px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-btn);
    border: 0;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
    line-height: 1;
}
.btn-primary {
    background: var(--terra);
    color: #fff;
}
.btn-primary:hover {
    background: var(--terra-dk);
    color: #fff;
    box-shadow: inset 0 4px 12px rgba(0,0,0,.18);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
    background: transparent;
    color: var(--olive-dk);
    border: 1.5px solid var(--olive);
    border-radius: 30px;
    height: 46px;
    padding: 0 26px;
}
.btn-ghost:hover {
    background: var(--olive);
    color: #fff;
}
.btn-step {
    background: var(--terra);
    color: #fff;
    border-radius: 8px;
    height: 48px;
    padding: 0 28px;
    clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
}

/* ===== Layout: контент + сайдбар ===== */
.site-main {
    padding: var(--pad-section) 0;
}
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
}
.layout-wide .layout-main { width: 85%; max-width: 85%; margin: 0 auto; }

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    font-size: .9rem;
    color: var(--ink-soft);
    margin-bottom: 28px;
    padding: 12px 18px;
    background: var(--bg-milk);
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs a { color: var(--terra); }
.breadcrumbs .sep {
    color: var(--olive-dk);
    margin: 0 4px;
}

/* ===== Карточки записей ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 18px 36px -22px rgba(44,44,44,.28), 0 2px 6px -2px rgba(44,44,44,.05);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 48px -22px rgba(44,44,44,.35), 0 4px 10px -2px rgba(44,44,44,.08);
}
.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--bg-milk);
}
.card-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--pad-card);
}
.card-meta {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--olive-dk);
    font-weight: 700;
    margin-bottom: 10px;
}
.card-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin: 0 0 12px;
    line-height: 1.25;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--terra); text-decoration: none; }

.card-excerpt {
    color: var(--ink-soft);
    font-size: .96rem;
    line-height: 1.55;
    margin-bottom: 18px;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    margin-top: auto;
    padding-top: 6px;
}
.card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--terra);
    font-size: .95rem;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s ease;
}
.card-readmore:hover {
    text-decoration: none;
    border-bottom-color: var(--terra);
}

/* ===== Горизонтальные карточки (используются на главной) ===== */
.posts-row .card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 18px 36px -22px rgba(44,44,44,.25);
}
.posts-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-milk);
}
.posts-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.posts-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Тематические блоки на главной ===== */
.gc-feature-block {
    margin: 56px 0;
    padding: 48px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}
.gc-feature-block.is-board {
    background: var(--bg-milk);
}
.gc-feature-block.is-night {
    background: var(--ink);
    color: var(--bg-cream);
}
.gc-feature-block.is-night h2,
.gc-feature-block.is-night h3 { color: var(--bg-cream); }
.gc-feature-block.is-night a { color: var(--olive); }

.gc-feature-eyebrow {
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .78rem;
    color: var(--terra);
    font-weight: 700;
    margin-bottom: 14px;
}
.gc-feature-block.is-night .gc-feature-eyebrow { color: var(--olive); }

.gc-feature-block h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 0 0 18px;
    max-width: 24ch;
}

.gc-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.gc-board-tile {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 28px;
    border: 1px solid var(--line);
}
.gc-feature-block.is-night .gc-board-tile {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
}
.gc-board-tile h3 {
    font-size: 1.18rem;
    margin: 0 0 10px;
}
.gc-board-tile p {
    color: var(--ink-soft);
    margin: 0 0 14px;
    font-size: .96rem;
}
.gc-feature-block.is-night .gc-board-tile p { color: rgba(254,249,240,.78); }

.gc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--terra);
    color: #fff;
    margin-bottom: 16px;
}
.gc-icon svg { width: 24px; height: 24px; }
.gc-board-tile:nth-child(2) .gc-icon { background: var(--olive); }
.gc-board-tile:nth-child(3) .gc-icon { background: var(--ink); color: var(--bg-cream); }
.gc-feature-block.is-night .gc-board-tile:nth-child(3) .gc-icon { background: var(--terra); }

/* ===== Steps ===== */
.gc-steps {
    counter-reset: gc-step;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 28px 0 0;
}
.gc-steps li {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 28px 24px;
    border: 1px solid var(--line);
    counter-increment: gc-step;
    position: relative;
}
.gc-steps li::before {
    content: counter(gc-step, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--terra);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}
.gc-steps h4 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}
.gc-steps p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .94rem;
}

/* ===== Sidebar ===== */
.sidebar .widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar .widget-title,
.sidebar h2.widget-title,
.sidebar h2 {
    font-family: var(--serif);
    font-size: 1.1rem;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--terra);
    display: inline-block;
}
.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: .95rem;
}
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul li a { color: var(--ink); }
.sidebar ul li a:hover { color: var(--terra); }

/* ===== Search form ===== */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form input[type="search"],
.search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s ease;
}
.search-form input:focus {
    outline: none;
    border-color: var(--olive);
}
.search-form button {
    background: var(--terra);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0 22px;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.search-form button:hover { background: var(--terra-dk); }

/* ===== Single / page content ===== */
.entry-meta {
    color: var(--ink-soft);
    font-size: .9rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
}
.entry-meta .dot { margin: 0 8px; color: var(--olive); }

.entry-thumb {
    border-radius: var(--radius-card);
    overflow: hidden;
    margin: 0 0 32px;
    background: var(--bg-milk);
}
.entry-thumb img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.entry-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 18px;
}
.entry-content {
    font-size: 1.06rem;
    line-height: 1.75;
}
.entry-content img {
    border-radius: var(--radius-sm);
    margin: 1.4em 0;
}
.entry-content figure { margin: 1.4em 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }

.entry-tags {
    margin: 36px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: .92rem;
}
.entry-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-milk);
    border-radius: 999px;
    margin: 0 6px 6px 0;
    color: var(--ink);
    font-size: .85rem;
}
.entry-tags a:hover { background: var(--terra); color: #fff; text-decoration: none; }

/* ===== Pagination ===== */
.gc-pagination {
    margin: 48px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.gc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gc-pagination .page-numbers:hover {
    background: var(--bg-milk);
    border-color: var(--terra);
    color: var(--terra);
    text-decoration: none;
}
.gc-pagination .page-numbers.current {
    background: var(--terra);
    color: #fff;
    border-color: var(--terra);
}
.gc-pagination .dots {
    border: 0;
    background: transparent;
}

/* ===== Comments ===== */
.comments-area {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--line);
}
.comments-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.comment-list .comment {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 22px;
}
.comment-list .comment .children {
    list-style: none;
    margin-top: 18px;
    padding-left: 24px;
    border-left: 2px solid var(--bg-milk);
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.comment-author .avatar {
    border-radius: 50%;
    width: 44px; height: 44px;
}
.comment-author .fn {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--ink);
    font-style: normal;
}
.comment-meta {
    font-size: .82rem;
    color: var(--ink-soft);
}
.comment-body p { margin: .4em 0; }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--olive-dk);
}

.comment-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 28px;
    background-image: linear-gradient(transparent 0px, transparent 31px, var(--line) 32px);
    background-size: 100% 32px;
    background-position: 28px 70px;
    background-repeat: repeat-y;
    background-clip: padding-box;
}
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .92rem;
    color: var(--ink);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 1rem;
    background: rgba(255,255,255,.85);
    color: var(--ink);
    margin-bottom: 14px;
    transition: border-color .2s ease;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--olive);
}
.comment-form .form-submit input[type="submit"] {
    background: var(--terra);
    color: #fff;
    border: 0;
    border-radius: var(--radius-btn);
    padding: 0 30px;
    height: 50px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s ease;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--terra-dk); }

/* ===== Footer ===== */
.site-footer {
    background: var(--ink);
    color: var(--bg-cream);
    padding: 56px 0 24px;
    margin-top: 80px;
}
.site-footer a { color: var(--olive); }
.site-footer a:hover { color: #fff; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
.footer-col .widget-title,
.footer-col h2 {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--terra);
    display: inline-block;
}
.footer-col p,
.footer-col li {
    font-size: .94rem;
    color: rgba(254,249,240,.82);
    line-height: 1.65;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(254,249,240,.12);
}
.footer-col ul li:last-child { border-bottom: 0; }

.copyright {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(254,249,240,.12);
    font-size: .88rem;
    color: rgba(254,249,240,.7);
}

/* ===== Cookie banner ===== */
/* ВАЖНО: правило для [hidden] идёт ДО основного блока стилей (см. A11) */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 18px; right: 18px; bottom: 18px;
    background: var(--ink);
    color: var(--bg-cream);
    padding: 18px 22px;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    z-index: 9999;
    font-size: .94rem;
    line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--olive); }
.cookie-banner button {
    background: var(--terra);
    color: #fff;
    border: 0;
    border-radius: var(--radius-btn);
    padding: 0 26px;
    height: 44px;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.cookie-banner button:hover { background: var(--terra-dk); }

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 60px 0;
}
.error-404 .err-code {
    font-family: var(--serif);
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    font-weight: 700;
    color: var(--terra);
    margin: 0 0 8px;
}
.error-404 p { max-width: 50ch; margin: 0 auto 22px; color: var(--ink-soft); }
.error-404 .search-form { max-width: 480px; margin: 28px auto 0; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .layout.has-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .layout-wide .layout-main { width: 100%; max-width: 100%; }
    .gc-board { grid-template-columns: 1fr 1fr; }
    .gc-steps { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .gc-feature-block { padding: 32px 24px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-main { padding: 40px 0; }
    .header-inner { gap: 14px; }
    .brand-tagline { display: none; }

    .primary-nav { width: 100%; order: 3; }
    .primary-nav .nav-toggle { display: inline-block; margin-left: auto; }
    .primary-nav .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 14px;
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 8px;
    }
    .primary-nav.is-open .menu { display: flex; }
    .primary-nav .menu li { width: 100%; }
    .primary-nav .menu li a {
        display: block;
        border-radius: var(--radius-sm);
        padding: 12px 14px;
    }

    .featured-strip { padding: 40px 0; }
    .gc-slider { aspect-ratio: 4 / 5; }

    .posts-row .card-row { flex-direction: column; }
    .posts-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .posts-row .card-thumb-wrap a {
        position: static;
    }
    .posts-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .gc-board { grid-template-columns: 1fr; }
    .gc-steps { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .gc-feature-block { padding: 28px 20px; margin: 36px 0; }

    .cookie-banner {
        left: 12px; right: 12px; bottom: 12px;
        padding: 14px 16px;
    }
}

/* ===== «Не отвлекаться при готовке» — тёмная тема для single ===== */
body.gc-focus {
    background: var(--night);
    color: var(--bg-cream);
}
body.gc-focus .site-header,
body.gc-focus .site-footer,
body.gc-focus .sidebar,
body.gc-focus .breadcrumbs,
body.gc-focus .comments-area,
body.gc-focus .featured-strip { display: none; }
body.gc-focus .layout.has-sidebar { grid-template-columns: 1fr; }
body.gc-focus .entry-title,
body.gc-focus h2, body.gc-focus h3, body.gc-focus h4 { color: var(--bg-cream); }
body.gc-focus .entry-content { font-size: 1.18rem; line-height: 1.85; }
body.gc-focus a { color: var(--olive); }

.gc-focus-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--olive);
    color: var(--olive-dk);
    border-radius: var(--radius-btn);
    padding: 0 22px;
    height: 42px;
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 24px;
    transition: background .2s ease, color .2s ease;
}
.gc-focus-toggle:hover { background: var(--olive); color: #fff; }
body.gc-focus .gc-focus-toggle {
    border-color: var(--bg-cream);
    color: var(--bg-cream);
}
.gc-focus-toggle svg { width: 16px; height: 16px; }

/* ===== Алайнменты Гутенберг ===== */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { margin: 1em 0; }
.wp-caption-text { color: var(--ink-soft); font-size: .88rem; text-align: center; padding: 6px 0; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}
