/*
Theme Name: dds_cu-cricut.com
Description: Craft Cold Studio — тема для информационно-практического сайта о DIY-декоре, подготовке квартиры к продаже и работе с Cricut.
Author: Анна Круглова
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ccstudio
*/

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

:root {
    --bg: #F7F9FA;
    --bg-alt: #EDF2F4;
    --head-bg: #FFFFFF;
    --foot-bg: #2B3A42;
    --side-bg: #F0F4F5;
    --ink: #1F2A30;
    --accent: #0F8B8D;
    --accent-dark: #0A6B6D;
    --coral: #E4572E;
    --olive: #7C8C4B;
    --steel: #52708A;
    --muted: #7A8B94;
    --line: #D9E2E6;
    --grid: #E3EAED;
    --shadow-soft: 0 1px 2px rgba(31, 42, 48, .04), 0 4px 12px rgba(31, 42, 48, .05);
    --shadow-lift: 0 2px 4px rgba(31, 42, 48, .06), 0 10px 24px rgba(31, 42, 48, .09);
    --font-head: "Trebuchet MS", "Segoe UI", "Jost", "Century Gothic", system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 8px 8px, 8px 8px;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    z-index: 0;
    opacity: .5;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23C9D8DD' stroke-width='2'%3E%3Ccircle cx='58' cy='150' r='17'/%3E%3Ccircle cx='104' cy='162' r='17'/%3E%3Cpath d='M70 138 L168 44'/%3E%3Cpath d='M116 150 L168 96'/%3E%3Cpath d='M150 26 L176 52 L168 60 L142 34 Z'/%3E%3Cpath d='M150 78 L176 104 L168 112 L142 86 Z'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

.entry-content a,
.side-block a,
.trail a,
.talk-text a {
    position: relative;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .25s ease;
}

.entry-content a:hover,
.side-block a:hover,
.trail a:hover,
.talk-text a:hover {
    background-size: 100% 1px;
}

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

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.4rem;
}

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: .4em;
}

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .92em;
}

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

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

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

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

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

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

.site-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 2.4rem 0 3.4rem;
}

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

/* ---------------------------------------------------------------
   2. Кнопки
--------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: .72rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .98rem;
    line-height: 1.3;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 6px 16px rgba(15, 139, 141, .22);
    color: #fff;
}

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

.btn-ghost:hover {
    background: transparent;
    color: var(--accent-dark);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(31, 42, 48, .1);
}

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

.btn-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--accent-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* ---------------------------------------------------------------
   3. Шапка
--------------------------------------------------------------- */

.top-strip {
    height: 3px;
    background: var(--accent);
}

.site-head {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
}

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

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

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

.brand-mark {
    flex: 0 0 auto;
    display: block;
}

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

.brand-name {
    display: block;
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--ink);
    max-width: 34ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-desc {
    display: block;
    margin: .2rem 0 0;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 46ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-toggle {
    display: none;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    position: relative;
    display: inline-block;
    padding: .2rem 0;
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--ink);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .25s ease;
}

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

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

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

/* ---------------------------------------------------------------
   4. Хлебные крошки, заголовки страниц
--------------------------------------------------------------- */

.trail {
    padding: 1.1rem 0 0;
    font-size: .88rem;
    color: var(--muted);
}

.trail a {
    color: var(--muted);
}

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

.trail-sep {
    color: var(--line);
    margin: 0 .25rem;
}

.page-head {
    margin-bottom: 2.2rem;
}

.page-head h1 {
    margin-bottom: .4rem;
}

.page-head-note {
    margin: 0;
    color: var(--muted);
}

/* Заголовок секции: тонкая линейка слева */
.rule-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
}

.rule-title::before {
    content: "";
    flex: 0 0 54px;
    height: 1px;
    background: var(--accent);
}

.rule-title.on-dark {
    color: #fff;
}

.rule-title.on-dark::before {
    background: #fff;
}

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

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

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

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

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

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent);
}

.card-thumb {
    display: block;
    width: 100%;
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(0deg, rgba(15, 139, 141, .08) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(90deg, rgba(15, 139, 141, .08) 0 1px, transparent 1px 12px),
        var(--bg-alt);
}

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

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

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

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

.card-excerpt {
    color: #3C4A52;
    font-size: .96rem;
    margin-bottom: 1rem;
}

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

.card-foot {
    margin-top: auto;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
    font-size: .82rem;
    color: var(--muted);
}

.meta-dot {
    color: var(--line);
}

/* Цветные метки рубрик */
.rubric-mark {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--muted);
}

.rubric-mark::before {
    content: "";
    width: 3px;
    height: 13px;
    background: var(--accent);
}

.rubric-mark.tone-teal::before {
    background: var(--accent);
}

.rubric-mark.tone-coral::before {
    background: var(--coral);
}

.rubric-mark.tone-olive::before {
    background: var(--olive);
}

.rubric-mark.tone-steel::before {
    background: var(--steel);
}

.rubric-mark:hover {
    color: var(--accent);
}

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

.front-section {
    padding: 3.4rem 0;
}

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

.front-inner {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

/* 7.1 Hero */
.fs-hero {
    padding: 0;
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75) brightness(1.06);
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(247, 249, 250, .95) 0%, rgba(247, 249, 250, .86) 45%, rgba(237, 242, 244, .6) 100%);
}

.hero-inner {
    position: relative;
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 5rem 0 4.6rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.hero-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    max-width: 18ch;
    margin-bottom: 1rem;
}

.hero-text {
    max-width: 54ch;
    font-size: 1.08rem;
    color: #35444C;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.8rem;
}

/* 7.2 Шаги */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.step {
    min-width: 0;
}

.step-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: .7rem;
}

.step h3 {
    font-size: 1.22rem;
    margin-bottom: .45rem;
}

.step p {
    margin: 0;
    color: #3C4A52;
    font-size: .98rem;
}

/* 7.3 Последние записи */
.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.latest-head .rule-title {
    margin-bottom: 1.6rem;
}

/* 7.4 Цитата */
.fs-quote {
    padding: 0;
    background: transparent;
}

.quote-plate {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 3rem 3rem 2.6rem;
    background: var(--foot-bg);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    color: #EAF1F3;
}

.quote-plate p {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.62rem;
    line-height: 1.45;
    color: #fff;
}

.quote-sign {
    display: block;
    margin-top: 1.3rem;
    font-family: var(--font-body);
    font-size: .92rem;
    color: #9FB2BC;
}

/* 7.5 Сетка рубрик */
.rubrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.rubric-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.6rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rubric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent);
}

.rubric-icon {
    display: block;
    margin-bottom: 1rem;
    color: var(--accent);
}

.rubric-card h3 {
    font-size: 1.16rem;
    margin-bottom: .4rem;
}

.rubric-card p {
    margin: 0;
    font-size: .94rem;
    color: #3C4A52;
}

/* CTA-плашка внутри секции */
.fs-cta-plate {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 2.4rem;
    border-radius: 6px;
    color: #fff;
    background-color: var(--accent);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 8px),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* ---------------------------------------------------------------
   8. Записи и страницы
--------------------------------------------------------------- */

.entry-header {
    margin-bottom: 1.6rem;
}

.entry-header h1 {
    margin-bottom: .6rem;
}

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

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

.entry-content h2 {
    margin-top: 1.9em;
}

.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content img {
    border-radius: 6px;
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
}

.entry-tags a {
    color: var(--accent);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.2rem;
}

.post-nav a {
    display: block;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-family: var(--font-head);
    transition: border-color .2s ease, transform .2s ease;
}

.post-nav a:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.post-nav span {
    display: block;
    font-family: var(--font-body);
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .2rem;
}

.post-nav .to-next {
    text-align: right;
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: .5rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-soft);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: .5rem .3rem;
    color: var(--muted);
}

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

.side-block {
    margin-bottom: 1.8rem;
    color: var(--ink);
}

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

.side-block-title {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 1.12rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.side-block-title::before {
    content: "";
    flex: 0 0 26px;
    height: 1px;
    background: var(--accent);
}

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

.side-block li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
}

.side-block li:last-child {
    border-bottom: none;
}

.side-block a {
    color: var(--ink);
}

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

.side-block .post-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}

.side-block p {
    font-size: .95rem;
    color: #3C4A52;
}

/* ---------------------------------------------------------------
   11. Формы (поиск, комментарии)
--------------------------------------------------------------- */

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

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

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

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

input[type="submit"] {
    display: inline-block;
    padding: .72rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .98rem;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

input[type="submit"]:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    box-shadow: 0 6px 16px rgba(15, 139, 141, .22);
}

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

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

.talk-list .children {
    margin: 1rem 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

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

.talk-body {
    padding: 1.2rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

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

.talk-author {
    font-family: var(--font-head);
    font-size: 1.02rem;
}

.talk-date {
    font-size: .82rem;
    color: var(--muted);
}

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

.talk-hold {
    color: var(--coral);
    font-size: .9rem;
}

.talk-actions {
    margin-top: .6rem;
    font-size: .9rem;
}

.comment-respond {
    padding: 1.6rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.comment-respond .comment-reply-title {
    margin-top: 0;
    font-size: 1.3rem;
}

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

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

/* ---------------------------------------------------------------
   12. 404 и поиск
--------------------------------------------------------------- */

.notfound {
    padding: 1rem 0 2rem;
}

.notfound-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1rem;
}

.notfound-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    margin-top: 1.6rem;
}

.notfound-tools .search-form {
    flex: 1 1 320px;
    min-width: 0;
}

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

.site-foot {
    background: var(--foot-bg);
    color: #C9D6DC;
    padding: 3rem 0 1.6rem;
}

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

.foot-block {
    min-width: 0;
    margin-bottom: 1.4rem;
    color: #C9D6DC;
    font-size: .95rem;
}

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

.foot-block p {
    color: #C9D6DC;
}

.foot-block-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.08rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.foot-block-title::before {
    content: "";
    flex: 0 0 24px;
    height: 1px;
    background: var(--accent);
}

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

.foot-block li {
    padding: .34rem 0;
}

.foot-block a {
    color: #DCE6EA;
}

.foot-block a:hover {
    color: #FFFFFF;
}

.foot-block .post-date {
    display: block;
    font-size: .8rem;
    color: #9FB2BC;
}

.foot-contact {
    margin-top: .8rem;
    font-size: .92rem;
}

.foot-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .88rem;
    color: #9FB2BC;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: var(--foot-bg);
    color: #DCE6EA;
    border-top: 3px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    font-size: .92rem;
    min-width: 0;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

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

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

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

    .layout-single {
        width: 100%;
    }

    .front-inner,
    .hero-inner,
    .quote-plate,
    .fs-cta-plate {
        width: min(92%, 1180px);
    }

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

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

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

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

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

    body::after {
        width: 190px;
        height: 190px;
        opacity: .35;
    }

    h1 {
        font-size: 1.85rem;
    }

    h2,
    .rule-title {
        font-size: 1.45rem;
    }

    .head-inner {
        flex-wrap: wrap;
        padding: 1rem 0;
    }

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

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

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
        margin-top: .8rem;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: .7rem 0;
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero-inner {
        padding: 3rem 0 2.8rem;
    }

    .hero h1 {
        max-width: none;
    }

    .front-section {
        padding: 2.4rem 0;
    }

    .steps-grid,
    .rubrics-grid,
    .card-grid.cols-3,
    .card-list,
    .post-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .quote-plate {
        padding: 1.9rem 1.5rem;
    }

    .quote-plate p {
        font-size: 1.24rem;
    }

    .fs-cta-plate {
        padding: 1.8rem 1.4rem;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

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

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

    .notfound-code {
        font-size: 3.6rem;
    }
}
