/*
Theme Name: dds_datarestless.com
Theme URI: https://datarestless.com/
Author: Тамара Быкова
Description: Информационная тема для сайта о корпоративных данных и планировании. Стиль Lavender Tech: глубокие сливовые тона, бирюзовый акцент, аккуратная сетка и карточки материалов.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: datarestless
*/

:root {
    --bg: #F8F7FC;
    --bg-alt: #F0EEF9;
    --plum: #2A234A;
    --plum-deep: #1A1533;
    --ink: #1E1A2E;
    --accent: #00C2BA;
    --accent-dark: #009B95;
    --lav: #B8A9E8;
    --muted: #7A7295;
    --grid-line: #E0D9F0;
    --card-shadow: 0 10px 30px rgba(42, 35, 74, 0.10);
    --card-shadow-hi: 0 18px 40px rgba(42, 35, 74, 0.18);
    --radius: 12px 12px 12px 0;
    --radius-btn: 8px;
}

/* ---------- сброс и база ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(224, 217, 240, 0.6) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, rgba(224, 217, 240, 0.6) 0.5px, transparent 0.5px);
    background-size: 26px 26px;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", "Eurostile", "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--plum);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1.1em;
}

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

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

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

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

pre {
    overflow-x: auto;
    padding: 1.1rem 1.2rem;
    background: var(--plum-deep);
    color: #E8E4F6;
    border-radius: var(--radius);
}

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

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

th {
    background: var(--bg-alt);
    color: var(--plum);
    font-weight: 700;
}

/* ---------- контейнер ширины (единственное место) ---------- */

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

.site-main {
    display: block;
    padding: 2.6rem 0 3.4rem;
}

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

/* ---------- ссылки в тексте с анимированным подчёркиванием ---------- */

.entry-content a,
.page-body a,
.card-excerpt a {
    color: var(--accent-dark);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.28s ease;
}

.entry-content a:hover,
.page-body a:hover,
.card-excerpt a:hover {
    background-size: 100% 2px;
}

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

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: var(--radius-btn);
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #08201F;
    font-weight: 700;
    font-family: "Space Grotesk", "Inter", Arial, sans-serif;
    line-height: 1.25;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.18);
}

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

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.14);
}

/* ---------- заголовки секций и «бирюзовый селектор» ---------- */

.section-title {
    position: relative;
    margin: 0 0 1.4rem;
    padding-left: 1.1rem;
    border-left: 4px solid var(--accent);
    font-size: 1.9rem;
}

.entry-content h2::before,
.entry-content h3::before,
.page-body h2::before,
.page-body h3::before,
.section-title::before,
.widget-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.6rem;
    vertical-align: 0.18em;
    background: var(--accent);
}

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

.site-top {
    position: static;
    background: var(--plum);
    color: #EDE9F8;
    border-bottom: 1px solid rgba(184, 169, 232, 0.22);
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 0;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: "Space Grotesk", "Inter", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--lav);
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(184, 169, 232, 0.5);
    border-radius: var(--radius-btn);
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    color: #EDE9F8;
    font-size: 0.97rem;
    font-weight: 600;
    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);
}

/* ---------- раскладки ---------- */

.layout-single {
    display: block;
}

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

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

.sidebar {
    min-width: 0;
}

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

.crumbs {
    margin: 0 0 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

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

.crumbs-sep {
    margin: 0 0.35rem;
    color: var(--lav);
}

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

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

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

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

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

.card-thumb a {
    display: block;
}

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

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

.card-meta {
    margin-bottom: 0.5rem;
    font-size: 0.79rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title {
    margin: 0 0 0.6rem;
    font-size: 1.22rem;
    line-height: 1.32;
}

.card-title a {
    color: var(--plum);
    transition: color 0.2s ease;
}

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

.card-excerpt {
    color: #46405F;
    font-size: 0.95rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
}

/* ---------- главная: общие секции ---------- */

.band {
    position: relative;
    padding: 3.4rem 0;
}

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

.band--alt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 18 C 150 2 300 26 450 14 C 600 2 750 24 900 12 C 1020 3 1120 16 1200 10' fill='none' stroke='%23B8A9E8' stroke-opacity='0.45' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
}

.band-head {
    max-width: 720px;
    margin-bottom: 2rem;
}

.band-head p {
    margin: 0;
    color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
    padding: 3.8rem 0 3.6rem;
    background: linear-gradient(135deg, #2A234A 0%, #1A1533 100%);
    color: #EDE9F8;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300'%3E%3Cpolyline points='0,240 90,180 170,215 260,120 350,160 440,70 530,110 600,40' fill='none' stroke='%23FFFFFF' stroke-width='6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -40px bottom -30px;
    background-size: 70% auto;
    opacity: 0.05;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.6rem;
    align-items: center;
}

.hero-title {
    margin: 0 0 1rem;
    color: #FFFFFF;
    font-size: clamp(1.9rem, 2.4vw + 1rem, 3.2rem);
}

.hero-lead {
    margin: 0 0 1.8rem;
    color: #D6CEF0;
    font-size: 1.02rem;
    max-width: 46ch;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ---------- сетка направлений ---------- */

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

.tile {
    min-width: 0;
    padding: 1.7rem 1.6rem 1.8rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: var(--radius-btn);
    background: rgba(184, 169, 232, 0.28);
}

.tile-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.tile h3 {
    margin-bottom: 0.5rem;
    font-size: 1.16rem;
}

.tile p {
    margin: 0;
    color: #46405F;
    font-size: 0.95rem;
}

/* ---------- таймлайн ---------- */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.2rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 7px;
    width: 2px;
    background: var(--lav);
}

.timeline li {
    position: relative;
    min-width: 0;
    margin-bottom: 1.8rem;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: -2.2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
}

.timeline h3 {
    margin-bottom: 0.35rem;
    font-size: 1.14rem;
}

.timeline p {
    margin: 0;
    color: #46405F;
    font-size: 0.96rem;
}

.timeline-step {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.checklist-block {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.4rem;
    align-items: center;
    padding: 2.4rem 2.2rem;
    background: linear-gradient(140deg, #2A234A 0%, #1A1533 100%);
    border-radius: var(--radius);
    color: #EDE9F8;
}

.checklist-block h2 {
    color: #FFFFFF;
    margin-bottom: 0.7rem;
}

.checklist-block h2::before {
    background: var(--accent);
}

.checklist-block p {
    color: #C9C0E6;
    margin: 0;
    font-size: 0.98rem;
}

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

.checklist li {
    position: relative;
    min-width: 0;
    margin-bottom: 0.95rem;
    padding-left: 2.2rem;
    font-size: 0.98rem;
    line-height: 1.6;
}

.checklist li:last-child {
    margin-bottom: 0;
}

.checklist li::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

/* ---------- последние записи на главной ---------- */

.latest-foot {
    margin-top: 0.6rem;
}

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

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

.entry-title {
    margin: 0 0 0.6rem;
    font-size: 2.35rem;
}

.entry-meta {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.entry-content,
.page-body {
    min-width: 0;
}

.entry-content img,
.page-body img {
    display: block;
    border-radius: var(--radius);
}

.entry-content h2,
.page-body h2 {
    margin-top: 1.8em;
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    background: var(--bg-alt);
    border-radius: var(--radius-btn);
    color: var(--plum);
}

.entry-tags a:hover {
    background: var(--lav);
}

.page-title {
    margin-bottom: 1.6rem;
    font-size: 2.2rem;
}

.archive-head {
    margin-bottom: 1.8rem;
}

/* ---------- сайдбар и виджеты ---------- */

.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.4rem 1.4rem 1.5rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    color: var(--ink);
}

.sidebar .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.08rem;
    color: var(--plum);
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--grid-line);
    font-size: 0.95rem;
    color: var(--ink);
}

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

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

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

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

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

.site-bottom {
    background: var(--plum-deep);
    color: #D6CEF0;
}

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

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

.site-bottom .widget {
    margin-bottom: 1.4rem;
    color: #D6CEF0;
    font-size: 0.95rem;
}

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

.site-bottom .widget-title {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    color: #FFFFFF;
}

.site-bottom .widget a {
    color: #C9C0E6;
    transition: color 0.2s ease;
}

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

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

.site-bottom .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(184, 169, 232, 0.16);
    color: #D6CEF0;
}

.site-bottom .widget li:last-child {
    border-bottom: none;
}

.site-bottom .widget .post-date {
    display: block;
    font-size: 0.79rem;
    color: var(--lav);
}

.bottom-note {
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid rgba(184, 169, 232, 0.18);
    font-size: 0.85rem;
    color: var(--lav);
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--grid-line);
    border-radius: var(--radius-btn);
    background: #FFFFFF;
    color: var(--plum);
    text-align: center;
    font-size: 0.94rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.search-line {
    display: flex;
    gap: 0.6rem;
    max-width: 460px;
}

.search-line input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--grid-line);
    border-radius: var(--radius-btn);
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.search-line input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-line button {
    cursor: pointer;
}

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

.comments-zone {
    margin-top: 2.8rem;
    padding: 1.8rem 1.6rem;
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.comments-zone h2 {
    font-size: 1.4rem;
}

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

.comment-list .children {
    margin: 1rem 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

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

.comment-inner {
    padding: 1.1rem 1.2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

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

.comment-author {
    font-weight: 700;
    color: var(--plum);
}

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

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

.comment-actions {
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.comment-hold {
    color: var(--muted);
    font-size: 0.88rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--grid-line);
    border-radius: var(--radius-btn);
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

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

.comment-form .submit {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: #08201F;
    font-family: "Space Grotesk", "Inter", Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

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

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

.notfound {
    max-width: 640px;
}

.notfound-code {
    display: block;
    font-family: "Space Grotesk", "Inter", Arial, sans-serif;
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--lav);
}

/* ---------- cookie-баннер ---------- */

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

.cookie-note {
    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.4rem;
    background: var(--plum-deep);
    color: #D6CEF0;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
}

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

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

.cookie-note .btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
}

/* ---------- служебное ---------- */

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

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

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

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

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

@media (max-width: 600px) {
    .shell {
        width: min(92%, 1200px);
    }

    h1 {
        font-size: 2.1rem;
    }

    h2,
    .section-title {
        font-size: 1.5rem;
    }

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

    .nav-toggle {
        display: inline-block;
        order: 2;
        margin-left: auto;
    }

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

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

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

    .main-nav li {
        border-bottom: 1px solid rgba(184, 169, 232, 0.16);
    }

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

    .band {
        padding: 2.4rem 0;
    }

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

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

    .checklist-block {
        padding: 1.8rem 1.4rem;
    }

    .bottom-cols {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.2rem 0 1.6rem;
    }

    .comments-zone {
        padding: 1.4rem 1.2rem;
    }

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