/*
Theme Name: dds_lynnkdesignstudio.com
Description: Тема для информационного сайта о текстильном дизайне, коллажах и вышивке.
Author: Марина Фёдорова
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lynnk
*/

/* ================= ПЕРЕМЕННЫЕ ================= */

:root {
    --bg: #F8F6FC;
    --bg-alt: #F0ECF7;
    --bg-alt2: #E8DFF2;
    --white: #FFFFFF;
    --line: #D9D0E5;
    --ink: #1F1A26;
    --accent: #9B7BB8;
    --accent-2: #C4A7E7;
    --accent-hover: #B197D4;
    --muted: #8A7A99;
    --dark: #2A2333;
    --radius: 8px;
    --radius-card: 12px;
    --shadow-card: 0 4px 12px rgba(90, 70, 110, 0.08);
    --shadow-card-hover: 0 10px 24px rgba(90, 70, 110, 0.14);
    --font-head: "Inter", "Work Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "DM Sans", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ================= СБРОС И БАЗА ================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

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

p {
    margin: 0 0 1.1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.6em;
    text-align: left;
    font-weight: 650;
    letter-spacing: -0.01em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.22rem; }

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

li {
    margin-bottom: 0.45em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-alt2));
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-card);
    color: var(--ink);
}

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

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

pre {
    background: var(--bg-alt);
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

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

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

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.2rem 0;
}

/* ================= КОНТЕЙНЕР ================= */

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

.home .shell {
    width: min(85%, 1180px);
}

.site-main {
    display: block;
}

/* ================= КНОПКИ ================= */

.btn,
button.comment-submit,
input[type="submit"] {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--white);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.85rem 1.9rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:hover,
.btn:focus,
button.comment-submit:hover,
input[type="submit"]:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(90, 70, 110, 0.18);
    transform: translateY(1px);
    border-bottom-color: var(--accent-hover);
}

/* ================= ШАПКА ================= */

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

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

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

.brand-link {
    border-bottom: 0;
    display: block;
    flex: 0 0 auto;
}

.brand-link:hover {
    border-bottom: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: block;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-weight: 650;
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.3;
    max-width: 42ch;
}

.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 52ch;
}

.primary-nav {
    min-width: 0;
}

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

.nav-list li {
    margin: 0;
    position: relative;
}

.nav-list a {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: none;
    z-index: 30;
}

.nav-list li:hover > .sub-menu {
    display: block;
}

.nav-list .sub-menu a {
    display: block;
    padding: 0.4rem 1rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem 0.95rem;
    cursor: pointer;
    font-family: var(--font-head);
    color: var(--ink);
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    margin: 3px 0;
}

.nav-toggle-label {
    font-size: 0.92rem;
    margin-left: 0.35rem;
}

.top-strip {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ================= ХЛЕБНЫЕ КРОШКИ ================= */

.crumbs {
    font-size: 0.9rem;
    color: var(--muted);
    padding: 1.4rem 0 0.4rem;
}

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

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

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

/* ================= РАСКЛАДКИ ================= */

.page-wrap {
    padding-bottom: 4rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 3%;
    align-items: start;
    padding-top: 1.4rem;
}

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

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

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
}

.archive-note {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.empty-note {
    color: var(--muted);
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.6rem 1.8rem;
}

/* ================= ЗАГОЛОВКИ СЕКЦИЙ ================= */

.section-title {
    position: relative;
    font-size: 2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.4rem;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.6rem;
    vertical-align: middle;
    position: relative;
    top: -0.16em;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 33%;
    height: 1px;
    background: var(--line);
}

.section-lead {
    color: var(--muted);
    max-width: 68ch;
    margin-bottom: 1.8rem;
}

.entry-content h2,
.entry-content h3 {
    position: relative;
    padding-left: 1.1rem;
    margin-top: 1.9em;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ================= HERO ================= */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 4.6rem 0 4.2rem;
}

.hero-blob {
    position: absolute;
    top: -140px;
    right: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: 0.15;
    filter: blur(60px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

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

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 0.5em;
}

.hero-lead {
    font-family: var(--font-head);
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

.accent-word {
    color: var(--accent);
}

.hero-desc {
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 1.8rem;
}

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

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

/* ================= СЕКЦИИ ГЛАВНОЙ ================= */

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

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

.rhombus-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: min(85%, 1180px);
    margin: 0 auto;
}

.rhombus-line {
    flex: 1;
    height: 0;
    border-top: 1px dashed var(--line);
}

.rhombus-mark {
    width: 14px;
    height: 14px;
    display: block;
}

/* --- статистика --- */

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

.fact {
    min-width: 0;
    padding: 0.6rem 1.6rem;
    border-left: 1px solid var(--line);
}

.fact:first-child {
    border-left: 0;
    padding-left: 0;
}

.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.fact-label {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* --- чек-лист --- */

.checklist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.6rem;
    max-width: 78ch;
}

.check-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}

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

.check-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

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

.check-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 650;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.check-text {
    display: block;
    color: var(--muted);
    font-size: 0.98rem;
}

/* --- карта тем --- */

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

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 2rem 1.9rem;
    color: var(--ink);
    border-bottom: 0;
    transition: transform .22s ease, box-shadow .22s ease;
}

.topic-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    color: var(--ink);
    border-bottom: 0;
}

.topic-icon {
    display: block;
    width: 44px;
    height: 44px;
    color: var(--muted);
    margin-bottom: 1.1rem;
    transition: color .22s ease;
}

.topic-tile:hover .topic-icon {
    color: var(--accent);
}

.topic-icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.topic-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
}

/* ================= КАРТОЧКИ ЗАПИСЕЙ ================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

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

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

.card-thumb {
    position: relative;
    display: block;
}

.card-thumb a {
    display: block;
    border-bottom: 0;
}

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

.card-thumb-veil {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(31, 26, 38, 0), rgba(31, 26, 38, 0.28));
    pointer-events: none;
}

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

.card-title {
    font-size: 1.22rem;
    margin-bottom: 0.45rem;
}

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid transparent;
}

.card-more:hover {
    border-bottom-color: var(--accent-2);
}

.post-meta {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

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

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

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-2);
    vertical-align: middle;
    margin: 0 0.3rem;
}

/* ================= ЗАПИСЬ И СТРАНИЦА ================= */

.single-thumb {
    margin: 1.4rem 0 1.8rem;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

.entry-content {
    font-size: 1.04rem;
}

.entry-content img {
    border-radius: var(--radius-card);
}

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

.entry-tags a {
    display: inline-block;
    margin-right: 0.5rem;
}

.page-links {
    margin-top: 1.4rem;
    font-family: var(--font-head);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 2.6rem 0;
}

.post-nav-link {
    display: block;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.2rem 1.4rem;
    border-bottom: 0;
    transition: transform .22s ease, box-shadow .22s ease;
}

.post-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-bottom: 0;
}

.post-nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.post-nav-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

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

/* ================= ПАГИНАЦИЯ ================= */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2.2rem 0 0;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 0.97rem;
    color: var(--ink);
    box-shadow: var(--shadow-card);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

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

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

.pager .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--muted);
}

.comments-pagination {
    margin: 1.6rem 0;
}

.comments-pagination .page-numbers {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-right: 0.35rem;
    background: var(--white);
}

/* ================= САЙДБАР ================= */

.sidebar {
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.6rem 1.7rem;
    color: var(--ink);
}

.sidebar .widget {
    margin-bottom: 2rem;
}

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

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

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

.sidebar li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
}

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

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

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

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ================= ПОИСК ================= */

.search-form {
    margin: 1.2rem 0;
}

.search-label {
    display: block;
}

.search-label-text {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.search-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ================= КОММЕНТАРИИ ================= */

.comments-area {
    margin-top: 3rem;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2rem 2.1rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
}

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

.comment-list .children {
    margin-left: 1.6rem;
    padding-left: 1.2rem;
    border-left: 2px solid var(--bg-alt);
}

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

.comment-body {
    background: var(--bg-alt);
    border-radius: var(--radius-card);
    padding: 1.2rem 1.4rem;
}

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

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

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

.comment-hold {
    color: var(--muted);
    font-style: italic;
}

.comment-actions {
    font-size: 0.9rem;
}

.comment-respond {
    margin-top: 2rem;
}

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

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

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-closed {
    color: var(--muted);
}

/* ================= 404 ================= */

.error-page {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 3rem 2.4rem;
    margin-top: 1rem;
}

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

.error-text {
    color: var(--muted);
    max-width: 60ch;
}

.error-btn {
    margin-top: 1.2rem;
}

/* ================= ПОДВАЛ ================= */

.site-foot {
    background: var(--dark);
    color: #E7E0F0;
    margin-top: 4rem;
    padding: 3.4rem 0 1.6rem;
}

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

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

.site-foot .widget {
    margin-bottom: 1.6rem;
    color: #E7E0F0;
}

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

.site-foot .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(196, 167, 231, 0.35);
}

.site-foot p,
.site-foot li,
.site-foot .textwidget {
    color: #D8CFE6;
    font-size: 0.96rem;
}

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

.site-foot li {
    margin-bottom: 0.55rem;
}

.site-foot a {
    color: #C4A7E7;
}

.site-foot a:hover {
    color: #FFFFFF;
    border-bottom-color: #C4A7E7;
}

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(196, 167, 231, 0.22);
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: #B7ACC6;
}

/* ================= COOKIE ================= */

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(90, 70, 110, 0.12);
    padding: 1.1rem 1.6rem;
}

.cookie-text {
    margin: 0;
    font-size: 0.94rem;
    color: var(--ink);
    max-width: 78ch;
    min-width: 0;
}

.cookie-accept {
    flex: 0 0 auto;
}

/* ================= АДАПТИВ ================= */

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

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

    .layout-single {
        width: 100%;
    }

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

    .hero-art {
        max-width: 420px;
    }

    .facts-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.6rem 0;
    }

    .fact:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

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

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

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

    .primary-nav {
        flex-basis: 100%;
        display: none;
    }

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

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

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

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

    .nav-list .sub-menu {
        position: static;
        display: block;
        border: 0;
        box-shadow: none;
        padding-left: 1rem;
    }
}

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

    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    .page-title { font-size: 1.7rem; }
    h2, .section-title { font-size: 1.55rem; }

    .home .shell,
    .shell {
        width: 92%;
    }

    .hero {
        padding: 2.8rem 0 2.6rem;
    }

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

    .facts-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .fact {
        border-left: 0;
        padding: 0;
    }

    .fact-num {
        font-size: 2.4rem;
    }

    .checklist {
        padding-left: 0;
    }

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

    .topic-tile {
        padding: 1.6rem 1.4rem;
    }

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

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

    .comments-area {
        padding: 1.5rem 1.3rem;
    }

    .error-page {
        padding: 2rem 1.4rem;
    }

    .sidebar {
        padding: 1.4rem 1.3rem;
    }

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

    .post-nav-next {
        text-align: left;
    }
}
