/*
Theme Name: dds_class-cloud.ru
Author: Ирина Зорина
Description: Тема для информационного проекта о временных рядах и пространственных данных.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: clcloud
*/

:root {
    --bg: #F6F3FC;
    --bg-alt: #EBE4F5;
    --head-bg: #2C2433;
    --foot-bg: #1A1620;
    --side-bg: #FFFFFF;
    --ink: #221F2A;
    --accent: #A78BFA;
    --accent-dark: #8B5CF6;
    --accent2: #4ADE80;
    --muted: #7C6F8C;
    --line: #EBE4F5;
    --shadow: 0 6px 22px rgba(167, 139, 250, 0.15);
    --shadow-hi: 0 14px 32px rgba(167, 139, 250, 0.32);
    --head-font: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --body-font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
    --bevel: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

/* скрытие элементов, управляемых JS через атрибут hidden */
.cookie-note[hidden] { display: none !important; }
.mobile-toggle[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
    color: var(--ink);
    background-color: var(--bg);
    background-image: radial-gradient(circle, rgba(124, 111, 140, 0.16) 1px, transparent 1.2px);
    background-size: 24px 24px;
}

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

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

.entry-text a,
.side-block a,
.track a,
.site-nav a,
.card-title a {
    display: inline-block;
}

.entry-text a::after,
.track a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.22s ease;
}

.entry-text a:hover::after,
.track a:hover::after,
.card-title a:hover::after { transform: scaleY(1); }

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.13rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.6rem 0;
    padding: 0.4rem 1.4rem;
    border-left: 4px solid var(--accent);
    font-style: italic;
    font-size: 1.1rem;
    color: #3A3345;
}

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

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

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

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

pre { padding: 1rem; overflow-x: auto; border-radius: 8px; }

/* ---------- контейнер ---------- */

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

/* ---------- кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #1A1620;
    border: 0;
    cursor: pointer;
    clip-path: var(--bevel);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.55);
}

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

.btn-ghost:hover {
    background: var(--accent);
    color: #1A1620;
}

.btn-light {
    background: transparent;
    color: #F6F3FC;
    border: 1px solid rgba(246, 243, 252, 0.55);
}

.btn-light:hover {
    background: var(--accent);
    color: #1A1620;
}

/* ---------- заголовки секций ---------- */

.sec-title {
    position: relative;
    display: inline-block;
    padding-left: 1.15rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 1.15rem;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
}

/* ---------- шапка ---------- */

.site-head {
    background: var(--head-bg);
    background-image: radial-gradient(circle, rgba(167, 139, 250, 0.16) 1px, transparent 1.2px);
    background-size: 26px 26px;
    color: #F1ECF8;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(167, 139, 250, 0.25);
}

.head-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.16rem;
    line-height: 1.3;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

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

.brand-desc {
    display: block;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #BCAFCC;
    margin-top: 0.25rem;
}

.head-search { flex: 0 0 auto; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(246, 243, 252, 0.5);
    color: #F1ECF8;
    font-family: var(--head-font);
    font-size: 0.92rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    clip-path: var(--bevel);
}

.site-nav { margin-top: 1.1rem; }

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

.site-nav li { margin: 0; }

.site-nav a {
    color: #E4DCF0;
    font-family: var(--head-font);
    font-size: 0.99rem;
    letter-spacing: 0.02em;
    padding: 0.3rem 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.22s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleY(1); }

.site-nav .current-menu-item > a { color: #FFFFFF; }

/* ---------- форма поиска ---------- */

.find {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}

.find label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 260px;
}

.find-field {
    font-family: var(--body-font);
    font-size: 0.94rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    min-width: 0;
    width: 100%;
    max-width: 260px;
}

.find-field:focus { outline: 2px solid var(--accent); outline-offset: 0; }

.find-send {
    font-family: var(--head-font);
    font-size: 0.92rem;
    padding: 0.55rem 1rem;
    border: 0;
    background: var(--accent);
    color: #1A1620;
    cursor: pointer;
    clip-path: var(--bevel);
    transition: background 0.2s ease;
}

.find-send:hover { background: var(--accent-dark); color: #FFFFFF; }

/* ---------- общая раскладка ---------- */

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

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

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

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

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.4rem 1.3rem;
    box-shadow: var(--shadow);
}

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

.side-block-title {
    font-size: 1.1rem;
    color: var(--ink);
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 0.9rem;
}

.side-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.sidebar,
.sidebar p,
.sidebar li { color: var(--ink); }

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

.sidebar li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--line);
}

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

.sidebar a { color: #4C3E63; }
.sidebar a:hover { color: var(--accent-dark); }

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

/* ---------- хлебные крошки ---------- */

.track {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.track a { color: var(--muted); }
.track a:hover { color: var(--accent-dark); }
.track-sep { color: var(--accent); margin: 0 0.35rem; }

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

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 16px solid var(--accent);
    border-right: 16px solid transparent;
    z-index: 2;
}

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

.card-thumb { display: block; }

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2C2433 0%, #4A3B52 100%);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1.2px),
        linear-gradient(135deg, #2C2433 0%, #4A3B52 100%);
    background-size: 18px 18px, 100% 100%;
}

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

.card-title {
    font-size: 1.16rem;
    margin-bottom: 0.55rem;
}

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

.card-meta {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
    letter-spacing: 0.02em;
}

.card-excerpt { color: #3A3345; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot { margin-top: auto; padding-top: 0.9rem; }

/* ---------- пагинация ---------- */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    font-family: var(--head-font);
    font-size: 0.95rem;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    clip-path: var(--bevel);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pager .page-numbers:hover {
    background: var(--accent);
    color: #1A1620;
    transform: translateY(-2px);
}

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

.pager .page-numbers.dots {
    background: transparent;
    border: 0;
    clip-path: none;
}

.pager .page-numbers.dots:hover { transform: none; background: transparent; color: var(--ink); }

/* ---------- запись и страница ---------- */

.entry {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem 2rem 2.2rem;
    box-shadow: var(--shadow);
}

.entry-title { margin-bottom: 0.6rem; font-size: 2.3rem; }

.entry-meta {
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.entry-cover { margin-bottom: 1.5rem; }

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

.entry-text h2, .entry-text h3 { margin-top: 1.7rem; }

.entry-text img { border-radius: 10px; display: block; }

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

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

/* ---------- комментарии ---------- */

.notes {
    margin-top: 2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.8rem 1.9rem 2rem;
    box-shadow: var(--shadow);
}

.notes-title { font-size: 1.4rem; margin-bottom: 1.2rem; }

.notes-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.notes-list .children { list-style: none; padding-left: 1.4rem; margin-top: 0.8rem; }

.note-inner {
    border-left: 3px solid var(--accent);
    padding: 0.6rem 0 0.6rem 1rem;
    margin-bottom: 1rem;
}

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

.note-author { font-family: var(--head-font); font-size: 1.02rem; }
.note-date { font-size: 0.82rem; color: var(--muted); }
.note-hold { color: var(--muted); font-style: italic; }
.note-tools { font-size: 0.88rem; }
.note-tools a { color: var(--accent-dark); }

.notes input[type="text"],
.notes input[type="email"],
.notes input[type="url"],
.notes textarea {
    width: 100%;
    font-family: var(--body-font);
    font-size: 0.96rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
}

.notes textarea { min-height: 150px; }

.notes .submit {
    font-family: var(--head-font);
    padding: 0.75rem 1.6rem;
    background: var(--accent);
    color: #1A1620;
    border: 0;
    cursor: pointer;
    clip-path: var(--bevel);
    transition: background 0.2s ease, color 0.2s ease;
}

.notes .submit:hover { background: var(--accent-dark); color: #FFFFFF; }

.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent input { width: auto; }

/* ---------- главная ---------- */

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

.front-section.alt {
    background: var(--bg-alt);
    background-image: radial-gradient(circle, rgba(124, 111, 140, 0.2) 1px, transparent 1.2px);
    background-size: 24px 24px;
}

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

.front-lead { color: #3A3345; max-width: 62ch; }

/* hero */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2C2433 0%, #4A3B52 100%);
    color: #F3EFFA;
    padding: 4.2rem 0 4.6rem;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.hero-blob {
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    z-index: 1;
    border-radius: 46% 54% 38% 62% / 55% 42% 58% 45%;
    background: radial-gradient(circle at 35% 35%, rgba(167, 139, 250, 0.55), rgba(167, 139, 250, 0.05) 70%);
    filter: blur(6px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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

.hero-sub {
    font-size: 1.12rem;
    color: #D9CFE9;
    max-width: 56ch;
    margin-bottom: 1.9rem;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.6rem;
}

.stat-cell {
    position: relative;
    min-width: 0;
    padding: 1.4rem 1.5rem;
    border-left: 1px solid rgba(124, 111, 140, 0.35);
}

.stat-cell:first-child { border-left: 0; }

.stat-num {
    font-family: var(--head-font);
    font-size: 2.9rem;
    line-height: 1;
    color: var(--accent-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.5;
}

/* текст + иллюстрация */

.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}

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

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

.duo-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    box-shadow: var(--shadow);
}

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

.factor-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.6rem;
    color: #3A3345;
}

.factor-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 10px;
    background: var(--accent2);
    transform: rotate(45deg);
}

/* пошаговый блок */

.steps { display: grid; gap: 1.4rem; margin-top: 0.6rem; }

.step {
    position: relative;
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    min-width: 0;
    padding: 1.4rem 1.6rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 16px solid var(--accent);
    border-right: 16px solid transparent;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3.4rem;
    bottom: -1.45rem;
    width: 0;
    height: 1.5rem;
    border-left: 2px dashed var(--accent);
}

.step-num {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--head-font);
    font-size: 1.5rem;
    color: var(--muted);
    background: var(--bg);
}

.step-body { min-width: 0; }
.step-body h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }
.step-body p { margin: 0; color: #3A3345; }

/* последние записи */

.latest-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.4rem;
}

.latest-head .sec-title { margin-bottom: 0.4rem; }

/* разделитель-фигура */

.sec-divider {
    display: block;
    width: 100%;
    height: 90px;
    overflow: hidden;
    line-height: 0;
    opacity: 0.5;
}

.sec-divider svg { display: block; width: 100%; height: 100%; }

/* ---------- подвал ---------- */

.site-foot {
    background: var(--foot-bg);
    background-image: radial-gradient(circle, rgba(167, 139, 250, 0.14) 1px, transparent 1.2px);
    background-size: 26px 26px;
    color: #CFC5DC;
    padding: 2.8rem 0 1.6rem;
}

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

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

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

.foot-block-title {
    font-size: 1.06rem;
    color: #FFFFFF;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0.9rem;
}

.foot-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.site-foot p,
.site-foot li,
.site-foot .foot-block { color: #CFC5DC; }

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

.site-foot li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(207, 197, 220, 0.18);
}

.site-foot li:last-child { border-bottom: 0; }

.site-foot a { color: #E6DEF2; }
.site-foot a:hover { color: var(--accent); }

.site-foot .post-date { color: #9E92AE; font-size: 0.85rem; }

.foot-mail { display: inline-block; margin-top: 0.4rem; }

.foot-bottom {
    border-top: 1px solid rgba(207, 197, 220, 0.18);
    padding-top: 1.2rem;
    font-size: 0.88rem;
    color: #9E92AE;
}

/* ---------- cookie ---------- */

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    background: #2C2433;
    border-top: 2px solid var(--accent);
    color: #E6DEF2;
    font-size: 0.92rem;
    box-shadow: 0 -8px 24px rgba(26, 22, 32, 0.35);
}

.cookie-note p { margin: 0; min-width: 0; }
.cookie-note a { color: var(--accent); }

/* ---------- 404 ---------- */

.miss {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.4rem 2.2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.miss .find { justify-content: center; margin: 1.4rem 0; }
.miss .find-field { max-width: 320px; }

.list-head { margin-bottom: 1.8rem; }
.list-title { font-size: 2.2rem; margin-bottom: 0.4rem; }
.list-empty {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.8rem 1.9rem;
    box-shadow: var(--shadow);
}

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

/* ---------- адаптив ---------- */

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

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

    .layout-single { width: 100%; }
    .front-inner, .hero-inner { width: 92%; }

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

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

    .stat-cell:nth-child(3) { border-left: 0; }

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

    .entry { padding: 1.6rem 1.5rem 1.8rem; }
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }

    .site-main { padding: 1.8rem 0 2.6rem; }

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

    .hero { padding: 2.8rem 0 3rem; }
    .hero-blob { width: 280px; height: 280px; right: -70px; bottom: -90px; }

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

    .site-nav { display: none; }
    .site-nav.is-open { display: block; }

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

    .site-nav li { border-bottom: 1px dashed rgba(228, 220, 240, 0.2); }

    .site-nav a { display: block; padding: 0.6rem 0; }

    .head-search { width: 100%; }
    .find-field { max-width: none; }

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

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

    .stat-cell {
        border-left: 0;
        border-top: 1px solid rgba(124, 111, 140, 0.35);
        padding: 1.1rem 0;
    }

    .stat-cell:first-child { border-top: 0; }

    .step { flex-direction: column; gap: 0.9rem; padding: 1.2rem 1.2rem; }
    .step:not(:last-child)::after { left: 1.9rem; }
    .step-num { width: 54px; height: 54px; flex: 0 0 54px; font-size: 1.3rem; }

    .entry { padding: 1.3rem 1.1rem 1.5rem; }
    .entry-title { font-size: 1.7rem; }

    .notes { padding: 1.3rem 1.1rem 1.5rem; }

    .sidebar { padding: 1.2rem 1.1rem; }

    .cookie-note { padding: 0.9rem 1.1rem; font-size: 0.88rem; }

    .miss { padding: 1.6rem 1.2rem; }
    .miss-code { font-size: 3.6rem; }

    .sec-divider { height: 56px; }
}
