/*
Theme Name: dds_6lumens.com
Author: Оксана Самойлова
Description: Тема для информационного сайта о домашней кухне и гастрономических заметках.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: neonchef
*/

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

:root {
    --bg: #F4F7F6;
    --bg-alt: #E8F0ED;
    --dark: #0B1A17;
    --side: #DCE9E4;
    --ink: #1A2623;
    --neon: #00F0B5;
    --hot: #FF00A0;
    --mute: #7A8C86;
    --line: #C0D4CC;
    --display: Impact, "Haettenschweiler", "Franklin Gothic Bold", "Arial Narrow Bold", "Arial Black", sans-serif;
    --text: "Inter", "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(circle, rgba(192, 212, 204, 0.4) 1px, transparent 1px);
    background-size: 26px 26px;
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.65;
}

.page-glow {
    position: fixed;
    right: -140px;
    bottom: -180px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, var(--neon) 0%, rgba(0, 240, 181, 0) 68%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.top,
.body-area,
.bottom,
.cookie-note {
    position: relative;
    z-index: 1;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.06;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 0.6em;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 1.7rem;
}

h4 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.1em;
}

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

a:hover,
a:focus {
    text-decoration: line-through;
}

:focus-visible {
    outline: 3px solid var(--hot);
    outline-offset: 2px;
}

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--dark);
    color: var(--bg);
    border-left: 8px solid var(--hot);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

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

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    background: var(--bg-alt);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 2px solid var(--ink);
}

th, td {
    border: 2px solid var(--ink);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Заголовки секций: жирный текст поверх тонкой розовой линии */
.fs-title,
.page-head,
.entry-text h2,
.widget-title {
    background-image: linear-gradient(to right, var(--hot), var(--hot));
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 54%;
}

.entry-text h2::first-letter,
.fs-title::first-letter {
    color: var(--hot);
    background: var(--dark);
    padding: 0 0.08em;
    vertical-align: 0.05em;
}

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

.btn,
.talk input[type="submit"],
.wp-block-button__link {
    display: inline-block;
    border-radius: 0;
    border: 3px solid var(--neon);
    background: var(--neon);
    color: var(--dark);
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}

.btn:hover,
.btn:focus,
.talk input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--neon);
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 3px solid var(--neon);
}

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

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

.top {
    background: var(--dark);
    color: var(--bg);
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.brand-name a {
    color: var(--bg);
}

.brand-name a:hover {
    color: var(--neon);
    text-decoration: line-through;
}

.brand-tag {
    display: block;
    margin-top: 0.4rem;
    color: #A9BCB5;
    font-size: 0.83rem;
    line-height: 1.4;
}

.main-nav {
    flex: 0 1 auto;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-block;
    color: var(--bg);
    font-family: var(--display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--neon);
    border-bottom-color: var(--hot);
    text-decoration: none;
}

.nav-list .sub-menu {
    display: block;
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0 0 0 0.9rem;
    border-left: 2px solid var(--hot);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 3px solid var(--neon);
    color: var(--neon);
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--neon);
    box-shadow: 0 6px 0 var(--neon), 0 -6px 0 var(--neon);
}

.nav-toggle.is-active .nav-toggle-bar {
    background: var(--hot);
    box-shadow: 0 6px 0 var(--hot), 0 -6px 0 var(--hot);
}

.top-stripe,
.bottom-stripe {
    height: 20px;
    background-image: repeating-linear-gradient(45deg, var(--neon) 0 10px, var(--dark) 10px 20px, var(--hot) 20px 30px, var(--dark) 30px 40px);
}

/* =========================================================
   5. Раскладки
   ========================================================= */

.body-area {
    display: block;
    padding: 2.4rem 0 3.4rem;
}

.layout-single {
    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;
}

.trail {
    margin-bottom: 1.6rem;
    font-size: 0.88rem;
    color: var(--mute);
}

.trail a {
    color: var(--ink);
    border-bottom: 2px solid var(--neon);
}

.trail a:hover {
    color: var(--hot);
    text-decoration: line-through;
}

.trail-sep {
    color: var(--hot);
    padding: 0 0.25rem;
}

.page-head {
    font-size: 2.9rem;
    margin-bottom: 0.9rem;
}

.split {
    height: 20px;
    margin: 2.6rem 0;
    background-image: repeating-linear-gradient(45deg, var(--hot) 0 8px, transparent 8px 16px, var(--neon) 16px 24px, transparent 24px 32px);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.empty-note {
    padding: 1.4rem 1.6rem;
    border: 3px solid var(--ink);
    background: var(--bg-alt);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem 1.8rem;
    margin-bottom: 2.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 3px solid var(--dark);
    border-radius: 0;
    background: #FFFFFF;
    isolation: isolate;
    transition: border-color 0.15s linear;
}

.card::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    background: var(--dark);
    z-index: -1;
}

.card:hover {
    border-color: var(--hot);
}

.card:hover .card-body {
    transform: translateX(-2px);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
}

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

.card-cat {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.4rem 0.9rem;
    background: rgba(11, 26, 23, 0.78);
    color: var(--neon);
    font-family: var(--display);
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem 1.3rem 1.4rem;
    background: #FFFFFF;
    transition: transform 0.12s linear;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

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

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

.card-meta {
    margin: 0 0 0.7rem;
    color: var(--mute);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-excerpt {
    flex: 1;
    font-size: 0.96rem;
}

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

.card-excerpt a {
    color: var(--ink);
    border-bottom: 2px solid var(--neon);
}

.card-more {
    margin: 1rem 0 0;
}

.card-more .btn {
    font-size: 0.92rem;
    padding: 0.5rem 1.1rem;
}

/* =========================================================
   7. Главная
   ========================================================= */

.fs {
    margin-bottom: 2.6rem;
}

.fs-title {
    font-size: 2.4rem;
    margin-bottom: 1.4rem;
}

.fs-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--neon);
    font-family: var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Блок 1 — hero */
.fs-hero {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap-reverse;
    background: var(--dark);
    color: var(--bg);
    padding: 3rem 2.4rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.fs-hero-text {
    flex: 1 1 380px;
    min-width: 0;
}

.fs-hero h1 {
    color: var(--bg);
    font-size: 4.2rem;
    margin-bottom: 1rem;
}

.fs-hero h1 .hi {
    color: var(--neon);
}

.fs-lead {
    font-size: 1.08rem;
    color: #C7D6D1;
    max-width: 46ch;
}

.fs-hero-cta {
    margin: 1.6rem 0 0;
}

.fs-hero-art {
    flex: 0 1 260px;
    min-width: 0;
}

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

.fs-hero-art .shape-a,
.fs-hero-art .shape-b,
.fs-hero-art .shape-c,
.fs-hero-art .shape-d {
    transform-origin: 130px 130px;
}

.fs-hero-art .shape-b {
    animation: spin-cw 26s linear infinite;
}

.fs-hero-art .shape-c {
    animation: spin-ccw 34s linear infinite;
}

.fs-hero-art .shape-d {
    animation: spin-cw 12s linear infinite;
}

@keyframes spin-cw {
    to { transform: rotate(360deg); }
}

@keyframes spin-ccw {
    to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fs-hero-art .shape-b,
    .fs-hero-art .shape-c,
    .fs-hero-art .shape-d { animation: none; }
}

/* Блок 2 — чек-лист */
.fs-check {
    background: var(--bg-alt);
    padding: 2.6rem 2.2rem;
    border: 3px solid var(--ink);
}

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

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1rem 0;
    border-bottom: 2px dashed var(--line);
}

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

.check-mark {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: var(--dark);
    position: relative;
}

.check-mark::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 7px;
    width: 12px;
    height: 21px;
    border-right: 5px solid var(--neon);
    border-bottom: 5px solid var(--neon);
    transform: rotate(42deg);
}

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

.check-body strong {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: block;
}

/* Блок 3 — статистика */
.fs-stats {
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(11, 26, 23, 0.06) 0 2px, transparent 2px 12px);
    padding: 2.6rem 2.2rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.8rem;
}

.stat {
    min-width: 0;
    border-left: 4px solid var(--hot);
    padding-left: 1rem;
}

.stat-num {
    display: block;
    font-family: var(--display);
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
}

.stat-num span {
    display: inline-block;
}

.stat-num .d1 { color: var(--dark); transform: translateY(-5px); }
.stat-num .d2 { color: var(--hot); transform: translateY(4px); }
.stat-num .d3 { color: #00A67D; transform: translateY(-2px); }

.stat-cap {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
}

.stat-note {
    margin: 1.6rem 0 0;
    font-size: 0.86rem;
    color: var(--mute);
}

/* Блок 4 — текст + схема */
.fs-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

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

.duo-art {
    min-width: 0;
    border: 3px solid var(--ink);
    background: #FFFFFF;
    padding: 1.4rem;
}

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

.mark-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

.mark-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.7rem;
}

.mark-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78rem;
    width: 10px;
    height: 10px;
    background: var(--hot);
}

/* =========================================================
   8. Запись и страница
   ========================================================= */

.entry-meta {
    color: var(--mute);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.4rem;
}

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

.entry-cover {
    margin: 0 0 1.6rem;
    border: 3px solid var(--dark);
}

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-text h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

.entry-text h3 {
    margin-top: 1.6rem;
}

.entry-text a {
    color: var(--neon);
    background: var(--dark);
    padding: 0 0.2em;
}

.entry-text a:hover {
    color: var(--hot);
    text-decoration: line-through;
}

.entry-text ul li,
.entry-text ol li {
    margin-bottom: 0.4rem;
}

.entry-text img {
    height: auto;
}

.entry-tags {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.entry-tags a {
    display: inline-block;
    border: 2px solid var(--ink);
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    color: var(--ink);
}

.entry-tags a:hover {
    background: var(--hot);
    color: #FFFFFF;
    border-color: var(--hot);
    text-decoration: none;
}

.near-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.4rem 0;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--neon);
}

.near-links a {
    color: var(--ink);
    border-bottom: 2px solid var(--hot);
}

.near-prev,
.near-next {
    min-width: 0;
    flex: 1 1 220px;
}

.near-next {
    text-align: right;
}

.arch-desc {
    margin-bottom: 1.6rem;
    color: var(--mute);
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 46px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 3px solid var(--ink);
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pager a.page-numbers:hover {
    background: var(--dark);
    color: var(--neon);
    border-color: var(--dark);
    text-decoration: none;
}

.pager .page-numbers.current {
    background: var(--neon);
    border-color: var(--neon);
    color: var(--dark);
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

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

.sidebar {
    min-width: 0;
    background: var(--side);
    border: 3px solid var(--ink);
    padding: 1.6rem 1.5rem;
}

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

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

.sidebar .widget-title {
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 2px dashed rgba(26, 38, 35, 0.25);
}

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

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

.sidebar .widget a:hover {
    color: #007A5C;
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    color: #556660;
    font-size: 0.8rem;
}

.sidebar .find-input {
    background: #FFFFFF;
}

.bottom-cols .widget {
    color: #C7D6D1;
}

.bottom-cols .widget-title {
    color: var(--bg);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.bottom-cols .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(244, 247, 246, 0.18);
}

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

.bottom-cols .widget a {
    color: var(--neon);
}

.bottom-cols .widget a:hover {
    color: var(--hot);
}

.bottom-cols .widget .post-date {
    display: block;
    color: #93A8A2;
    font-size: 0.8rem;
}

/* =========================================================
   11. Поиск, комментарии, формы
   ========================================================= */

.find {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.find-label {
    flex: 1 1 220px;
    min-width: 0;
}

.find-label-text {
    display: block;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.find-input,
.talk input[type="text"],
.talk input[type="email"],
.talk input[type="url"],
.talk textarea {
    width: 100%;
    border: 3px solid var(--ink);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--text);
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
}

.find-input:focus,
.talk textarea:focus,
.talk input:focus {
    outline: 3px solid var(--hot);
    outline-offset: 1px;
}

.talk {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 3px solid var(--ink);
}

.talk-head-title,
.talk .comment-reply-title {
    font-family: var(--display);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.talk-list,
.talk .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.talk .children {
    margin-left: 1.4rem;
    border-left: 3px solid var(--neon);
    padding-left: 1.2rem;
}

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

.talk-body {
    border: 3px solid var(--ink);
    background: #FFFFFF;
    padding: 1.1rem 1.3rem;
}

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

.talk-author {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.talk-date {
    color: var(--mute);
    font-size: 0.82rem;
}

.talk-hold {
    color: var(--hot);
    font-size: 0.9rem;
}

.talk-tools a {
    color: var(--ink);
    border-bottom: 2px solid var(--neon);
    font-size: 0.9rem;
}

.talk-field label,
.talk .comment-form-author label,
.talk .comment-form-email label,
.talk .comment-form-url label {
    display: block;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.talk .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.talk .form-submit {
    margin-top: 1rem;
}

/* =========================================================
   12. 404
   ========================================================= */

.err {
    background: var(--bg-alt);
    border: 3px solid var(--ink);
    padding: 2.6rem 2.2rem;
}

.err-num {
    font-family: var(--display);
    font-size: 6rem;
    line-height: 1;
    color: var(--hot);
    margin: 0 0 0.4rem;
}

.err-back {
    margin-top: 1.4rem;
}

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

.bottom {
    background: var(--dark);
    color: #C7D6D1;
    margin-top: 2rem;
}

.bottom .shell {
    padding: 2.6rem 0 2rem;
}

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

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

.bottom-note {
    margin: 2.2rem 0 0;
    padding-top: 1.2rem;
    border-top: 2px solid rgba(244, 247, 246, 0.2);
    color: #93A8A2;
    font-size: 0.86rem;
}

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

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--dark);
    color: var(--bg);
    border-top: 3px solid var(--neon);
    padding: 1.1rem 1.6rem;
}

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.92rem;
}

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

@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    .page-head { font-size: 2.3rem; }
    .fs-hero h1 { font-size: 3rem; }
    .fs-title { font-size: 2rem; }

    .layout-single {
        width: 100%;
    }

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

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

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

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

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 2px solid rgba(244, 247, 246, 0.15);
    }

    .nav-list a {
        display: block;
        padding: 0.7rem 0;
    }

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

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

    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.8rem; }
    .page-head { font-size: 1.9rem; }
    .fs-hero h1 { font-size: 2.4rem; }
    .fs-title { font-size: 1.7rem; }

    .fs-hero {
        padding: 2rem 1.3rem;
        gap: 1.6rem;
    }

    .fs-check,
    .fs-stats,
    .err {
        padding: 1.8rem 1.3rem;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

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

    .check-list li {
        gap: 0.8rem;
    }

    .check-mark {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }

    .check-mark::before {
        left: 9px;
        top: 5px;
        width: 10px;
        height: 17px;
        border-right-width: 4px;
        border-bottom-width: 4px;
    }

    .near-next {
        text-align: left;
    }

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

    .card-body {
        padding: 1rem 1.1rem 1.2rem;
    }
}
