/*
Theme Name: dds_landoflaces.com
Theme URI: https://landoflaces.com/
Author: Надежда Егорова
Description: Тема для информационного сайта о кружевоплетении и технике фриволите. Лавандовый техно-минимализм: холодная палитра, миллиметровая сетка фона, аккуратная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lacegrid
*/

/* ---------------------------------------------------------------
   1. Переменные
--------------------------------------------------------------- */
:root {
    --bg: #F8F7FC;
    --bg-alt: #F0EEF7;
    --panel: #FFFFFF;
    --footer-bg: #2B2A3A;
    --text: #1A1A24;
    --accent: #7C6BAA;
    --accent-2: #B8A9D4;
    --muted: #8E8A9A;
    --line: #E6E4ED;
    --shadow: 0 4px 20px rgba(44, 40, 60, 0.08);
    --shadow-up: 0 8px 30px rgba(44, 40, 60, 0.15);
    --font-head: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --font-body: "Source Sans Pro", "Work Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --font-quote: Georgia, "Times New Roman", serif;
}

/* ---------------------------------------------------------------
   2. База
--------------------------------------------------------------- */
*,
*::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.72;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--line) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, var(--line) 0.5px, transparent 0.5px);
    background-size: 26px 26px;
    background-attachment: fixed;
}

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

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

a:hover,
a:focus {
    color: #6a5a96;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.22;
    letter-spacing: -0.015em;
    margin: 0 0 0.7em;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    margin: 0 0 1.15em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--accent-2);
    background: var(--bg-alt);
    border-radius: 4px;
    font-family: var(--font-quote);
    font-size: 1.08rem;
}

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

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

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

/* Контейнер ширины — единственное место ограничения */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

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

/* ---------------------------------------------------------------
   3. Кнопки и текстовые ссылки
--------------------------------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.78rem 1.7rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: #64548F;
    border-color: #64548F;
    color: #FFFFFF;
    transform: scale(1.02);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: none;
}

/* Подчёркивание «челнока»: растёт из центра к краям */
.entry-content a,
.widget-text a,
.crumbs a {
    position: relative;
    color: var(--accent-2);
}

.entry-content a::after,
.widget-text a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 1px;
    background: var(--accent-2);
    transition: left 0.25s ease, right 0.25s ease;
}

.entry-content a:hover::after,
.entry-content a:focus::after,
.widget-text a:hover::after,
.widget-text a:focus::after {
    left: 0;
    right: 0;
}

/* ---------------------------------------------------------------
   4. Шапка
--------------------------------------------------------------- */
.site-header {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--text);
    max-width: 460px;
}

.brand-desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
    max-width: 460px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.5rem 0.9rem;
    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 {
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ---------------------------------------------------------------
   5. Хлебные крошки
--------------------------------------------------------------- */
.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1.4rem 0 0.2rem;
}

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

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

.crumbs-sep {
    color: var(--accent-2);
    margin: 0 0.25rem;
}

/* ---------------------------------------------------------------
   6. Раскладки
--------------------------------------------------------------- */
.site-main {
    padding: 1.6rem 0 4rem;
}

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

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

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

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

.page-head h1 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
}

.page-head .page-sub {
    color: var(--muted);
    font-size: 0.98rem;
    margin: 0;
}

/* Декоративное тире у заголовков секций */
.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.85rem;
    margin-bottom: 1.6rem;
}

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

/* ---------------------------------------------------------------
   7. Карточки записей
--------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-up);
    transform: translateY(-3px);
}

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

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

.card-cat {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.card-title {
    position: relative;
    font-size: 1.16rem;
    line-height: 1.32;
    margin: 0 0 0.6rem;
    padding-left: 0.85rem;
}

.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 3px;
    border-radius: 2px;
    background: var(--card-accent, var(--accent-2));
}

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

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.card-excerpt {
    color: #46424F;
    font-size: 0.96rem;
    min-width: 0;
}

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

.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.card-more:hover {
    color: #5f5083;
}

/* Горизонтальная карточка (миниатюра сбоку) */
.card-row {
    flex-direction: row;
    align-items: stretch;
}

.card-row .card-thumb-wrap {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-row .card-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------------
   8. Главная страница
--------------------------------------------------------------- */
.fs {
    position: relative;
    padding: 4.2rem 0;
}

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

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

/* «Стежки» на стыке фонов */
.fs-alt::before,
.fs-alt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 7px;
    opacity: 0.5;
    background-image: repeating-linear-gradient(90deg, var(--accent-2) 0 6px, transparent 6px 14px);
    background-size: 14px 1px;
    background-repeat: repeat-x;
    background-position: center;
}

.fs-alt::before {
    top: 0;
}

.fs-alt::after {
    bottom: 0;
}

.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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

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

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: rgba(248, 247, 252, 0.85);
    z-index: 1;
}

.hero-blob {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 320px;
    height: 320px;
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    padding: 5.4rem 0 5rem;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.hero-title {
    max-width: 15ch;
    margin-bottom: 1rem;
}

.hero-title em {
    font-style: normal;
    color: var(--accent-2);
}

.hero-text {
    max-width: 60ch;
    font-size: 1.08rem;
    color: #3C3849;
    margin-bottom: 1.9rem;
}

/* Сетка карточек с иконками (неоморфизм) */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.icon-card {
    min-width: 0;
    padding: 1.7rem 1.5rem;
    border-radius: 8px;
    background: var(--bg);
    box-shadow: inset 5px 5px 12px rgba(44, 40, 60, 0.09), inset -5px -5px 12px rgba(255, 255, 255, 0.92);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.icon-card:hover {
    box-shadow: var(--shadow-up);
    transform: translateY(-4px);
    background: var(--panel);
}

.icon-card svg {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
}

.icon-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
}

.icon-card p {
    margin: 0;
    font-size: 0.94rem;
    color: #4A4655;
}

/* Последние записи */
.latest-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.latest-foot {
    text-align: center;
}

/* Цитата */
.quote-plate {
    position: relative;
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 2.8rem 2.6rem;
    border-radius: 8px;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    background-size: 10px 10px, auto;
    box-shadow: var(--shadow);
}

.quote-bar {
    flex: 0 0 6px;
    align-self: stretch;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.75);
}

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

.quote-body p {
    font-family: var(--font-quote);
    font-size: 1.55rem;
    line-height: 1.45;
    color: #FFFFFF;
    margin: 0 0 0.9rem;
}

.quote-author {
    font-family: var(--font-head);
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

/* CTA */
.cta-plate {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
    padding: 2.6rem 2.4rem;
    border: 2px solid #FFFFFF;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
}

.cta-plate h2 {
    margin-bottom: 0.6rem;
}

.cta-plate p {
    color: #46424F;
    margin-bottom: 1.4rem;
}

.cta-art {
    min-width: 0;
}

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

/* ---------------------------------------------------------------
   9. Сайдбар и виджеты
--------------------------------------------------------------- */
.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 0.95rem;
}

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--text);
    padding-bottom: 0.6rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .widget li {
    padding: 0.45rem 0 0.45rem 0.95rem;
    position: relative;
    border-bottom: 1px dashed var(--line);
    color: var(--text);
}

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

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 1px;
    background: var(--accent-2);
}

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

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

.sidebar .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------------------------------------------------------------
   10. Запись и страница
--------------------------------------------------------------- */
.entry {
    background: var(--panel);
    border-radius: 8px;
    padding: 2.2rem 2.3rem 2.4rem;
    box-shadow: var(--shadow);
}

.entry-title {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 6px;
}

.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 1.8em;
}

.entry-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5em;
}

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

.entry-tags {
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--accent);
}

/* «Узел» — фирменный знак конца материала */
.knot {
    display: block;
    width: 26px;
    height: 26px;
    margin: 2.2rem auto 0.6rem;
    color: var(--accent-2);
}

/* ---------------------------------------------------------------
   11. Комментарии
--------------------------------------------------------------- */
.comments-area {
    margin-top: 2.2rem;
    background: var(--panel);
    border-radius: 8px;
    padding: 1.9rem 2rem;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
}

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

.comment-list .children {
    list-style: none;
    margin: 0.9rem 0 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--line);
}

.comment-item {
    margin-bottom: 1.1rem;
}

.comment-inner {
    background: var(--bg);
    border-radius: 6px;
    padding: 1rem 1.2rem;
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
}

.comment-date,
.comment-actions {
    font-size: 0.82rem;
    color: var(--muted);
}

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

.comment-respond {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

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

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

.comment-form .submit {
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: #64548F;
    border-color: #64548F;
}

/* ---------------------------------------------------------------
   12. Пагинация
--------------------------------------------------------------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.4rem 0 0.5rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

/* ---------------------------------------------------------------
   13. Форма поиска
--------------------------------------------------------------- */
.search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 460px;
}

.search-form .search-field {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--text);
}

.search-form .search-submit {
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.65rem 1.3rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background: #64548F;
    border-color: #64548F;
}

/* ---------------------------------------------------------------
   14. 404 и пустой результат
--------------------------------------------------------------- */
.notice-box {
    background: var(--panel);
    border-radius: 8px;
    padding: 2.2rem 2.3rem;
    box-shadow: var(--shadow);
}

.notice-box .btn {
    margin-top: 0.6rem;
}

.error-code {
    font-family: var(--font-head);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 0.6rem;
}

/* ---------------------------------------------------------------
   15. Подвал
--------------------------------------------------------------- */
.site-footer {
    background: var(--footer-bg);
    color: #D8D4E4;
    padding: 3.2rem 0 1.6rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(216, 212, 228, 0.18);
}

.footer-widgets .widget {
    min-width: 0;
    font-size: 0.94rem;
    color: #D8D4E4;
}

.footer-widgets .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
}

.footer-widgets .widget p,
.footer-widgets .widget li,
.footer-widgets .widget .post-date {
    color: #D8D4E4;
}

.footer-widgets .widget a {
    color: #CFC5E6;
}

.footer-widgets .widget a:hover {
    color: #FFFFFF;
}

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

.footer-widgets .widget li {
    padding: 0.32rem 0 0.32rem 0.95rem;
    position: relative;
}

.footer-widgets .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 1px;
    background: var(--accent-2);
}

.footer-bottom {
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: #9A94AC;
}

/* ---------------------------------------------------------------
   16. 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: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(43, 42, 58, 0.97);
    color: #E4E0EE;
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(44, 40, 60, 0.18);
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

.cookie-banner a {
    color: var(--accent-2);
}

.cookie-accept {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cookie-accept:hover {
    background: #64548F;
    border-color: #64548F;
    transform: scale(1.02);
}

/* ---------------------------------------------------------------
   17. Адаптив
--------------------------------------------------------------- */
@media (max-width: 960px) {
    h1 {
        font-size: 2.4rem;
    }

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

    .layout-single,
    .front-wrap {
        width: 100%;
    }

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

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

    .cta-art {
        max-width: 320px;
    }

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

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

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

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

    .main-nav a {
        display: block;
        padding: 0.65rem 0;
        border-bottom: 0;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .section-title {
        font-size: 1.45rem;
    }

    .section-title::before {
        flex-basis: 26px;
    }

    .fs {
        padding: 2.9rem 0;
    }

    .hero-inner {
        padding: 3.4rem 0 3.2rem;
    }

    .hero-title {
        max-width: none;
    }

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

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

    .quote-bar {
        flex: 0 0 6px;
        width: 60px;
        align-self: flex-start;
        height: 6px;
    }

    .quote-body p {
        font-size: 1.22rem;
    }

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

    .entry,
    .comments-area,
    .notice-box {
        padding: 1.5rem 1.3rem;
    }

    .entry-title {
        font-size: 1.85rem;
    }

    .card-row {
        flex-direction: column;
    }

    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-row .card-thumb-wrap a {
        position: static;
    }

    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

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