/*
Theme Name: dds_sapseastrategyday.com
Theme URI: https://sapseastrategyday.com/
Author: Сергей Рогов
Description: Информационная тема для сайта об IT-мероприятиях и B2B-коммуникациях. Лавандово-сиреневая гамма, японский минимализм, асимметричная композиция.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sapsea
*/

/* ==========================================================================
   1. Базовый слой
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #F8F6FC;
    color: #1E1828;
    font-family: "IBM Plex Sans", "Source Sans Pro", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -180px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: #8B5CF6;
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

body.page-template-page-blog::after {
    right: auto;
    bottom: auto;
    left: -200px;
    top: -240px;
}

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

.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

/* ==========================================================================
   2. Типографика
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    color: #1E1828;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
}

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

h2 {
    font-size: 2.1rem;
    font-weight: 400;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

/* Приём «точка в конце» */
.entry-content h1::after,
.entry-content h2::after,
.entry-title::after,
.page-title::after,
.section-title::after,
.hero-title::after {
    content: ".";
    color: #8B5CF6;
    font-size: 1.15em;
    line-height: 0;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: #8B5CF6;
    text-decoration: none;
}

.entry-content a,
.card-excerpt a,
.widget a,
.page-lead a {
    position: relative;
    background-image: linear-gradient(#8B5CF6, #8B5CF6);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.28s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget a:hover,
.page-lead a:hover {
    background-size: 100% 1px;
}

ul, ol {
    padding-left: 1.35rem;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid #C4B5FD;
    background: #EDE8F5;
}

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

code, pre {
    font-family: "IBM Plex Mono", Consolas, monospace;
    background: #EDE8F5;
    font-size: 0.94em;
}

pre {
    padding: 1rem 1.2rem;
    overflow: auto;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid #C4B5FD;
}

th, td {
    border: 1px solid #C4B5FD;
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: #EDE8F5;
    font-weight: 600;
}

/* ==========================================================================
   3. Кнопки
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 4px;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-filled {
    background: #8B5CF6;
    color: #FFFFFF;
    border: 1px solid #8B5CF6;
}

.btn-filled:hover,
.btn-filled:focus {
    background: #6D3EE0;
    border-color: #6D3EE0;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #6D3EE0;
    border: 1px solid #C4B5FD;
}

.btn-outline:hover,
.btn-outline:focus {
    background: #C4B5FD;
    color: #1E1828;
    border-color: #C4B5FD;
}

/* ==========================================================================
   4. Шапка
   ========================================================================== */

.site-head {
    background: #2D243D;
    color: #F5F2FB;
    border-bottom: 1px solid rgba(196, 181, 253, 0.25);
}

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

.brand {
    min-width: 0;
    flex: 1 1 300px;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
    color: #FFFFFF;
}

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

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid rgba(196, 181, 253, 0.5);
    border-radius: 4px;
    color: #F5F2FB;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #C4B5FD;
    margin: 3px 0;
}

.nav-toggle-label {
    margin-left: 0.4rem;
}

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

.nav-list a {
    display: inline-block;
    color: #E7E0F7;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 0.98rem;
    padding: 0.25rem 0;
    position: relative;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: #8B5CF6;
    transition: width 0.28s ease;
}

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

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
}

/* ==========================================================================
   5. Хлебные крошки
   ========================================================================== */

.crumbs {
    font-size: 0.88rem;
    color: #9A8BB3;
    margin-bottom: 1.8rem;
}

.crumbs a {
    color: #6D3EE0;
}

.crumbs a:hover {
    text-decoration: underline;
}

.crumbs-sep {
    margin: 0 0.4rem;
    color: #C4B5FD;
}

/* ==========================================================================
   6. Раскладки
   ========================================================================== */

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

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

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

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

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

.page-title {
    margin-bottom: 0.4rem;
}

.page-lead {
    color: #6E6182;
    font-size: 1.05rem;
    max-width: 46rem;
}

.empty-note {
    color: #9A8BB3;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid rgba(196, 181, 253, 0.4);
    border-radius: 6px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    border-color: #8B5CF6;
    transform: translateY(-4px);
}

.card-thumb-wrap {
    width: calc(100% + 8px);
    margin-left: -8px;
    margin-top: -1px;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img,
.card-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

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

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

.card-title a {
    color: #1E1828;
}

.card-title a:hover {
    color: #6D3EE0;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #9A8BB3;
    margin-bottom: 0.8rem;
}

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C4B5FD;
}

.card-excerpt {
    color: #4A4059;
    font-size: 0.96rem;
    margin-bottom: 1.1rem;
}

.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.9rem;
}

/* ==========================================================================
   8. Секции главной
   ========================================================================== */

.fs {
    position: relative;
    padding: 5rem 0;
}

.fs-alt {
    background: radial-gradient(ellipse at 50% 50%, #F3EFFA 0%, #EDE8F5 62%);
    padding: 5rem 3rem;
}

.fs-quote::before,
.fs-latest::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(196, 181, 253, 0.3);
}

.fs-rubrics::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22%;
    right: 22%;
    border-top: 2px dashed rgba(196, 181, 253, 0.2);
}

.fs-head {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.section-title {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 1rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.28em;
    width: 2px;
    background: #C4B5FD;
}

.section-sub {
    color: #6E6182;
    padding-left: 1.15rem;
    margin: 0;
}

/* Блок 1 — Hero */
.fs-hero {
    background-color: #2D243D;
    background-image: repeating-linear-gradient(135deg, rgba(196, 181, 253, 0.09) 0px, rgba(196, 181, 253, 0.09) 1px, transparent 1px, transparent 16px);
    padding: 4.6rem 3rem;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hero-text {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 42rem;
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.2rem;
    margin-bottom: 1.1rem;
}

.hero-sub {
    color: #C4B5FD;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-art {
    flex: 0 0 300px;
    min-width: 0;
    opacity: 0.15;
}

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

/* Блок 2 — Таймлайн */
.tl {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: #C4B5FD;
}

.tl-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    width: 50%;
    min-width: 0;
    padding: 1.2rem 2.4rem;
    margin-bottom: 1.6rem;
}

.tl-left {
    margin-right: auto;
    justify-content: flex-end;
    text-align: right;
    flex-direction: row-reverse;
}

.tl-right {
    margin-left: auto;
}

.tl-num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #8B5CF6;
    background: transparent;
    transition: background-color 0.22s ease;
}

.tl-item:hover .tl-num {
    background: rgba(139, 92, 246, 0.15);
}

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

.tl-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.tl-body p {
    margin: 0;
    color: #4A4059;
    font-size: 0.97rem;
}

/* Блок 3 — Цитата */
.fs-quote {
    padding-top: 5rem;
}

.quote-box {
    position: relative;
    margin: 0;
    padding: 3rem 3rem 2.4rem 3.4rem;
    background: #EDE8F5;
    border: 0;
    clip-path: polygon(38px 0, 100% 0, 100% 100%, 0 100%, 0 38px);
}

.quote-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 38px;
    bottom: 0;
    width: 8px;
    background: linear-gradient(180deg, #C4B5FD 0%, #8B5CF6 100%);
}

.quote-text {
    font-size: 2rem;
    line-height: 1.42;
    font-weight: 300;
    color: #1E1828;
    margin: 0 0 1.6rem;
    font-family: "Manrope", "Inter", Arial, sans-serif;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.15rem;
}

.quote-name {
    font-weight: 600;
    color: #4A4059;
    font-size: 0.98rem;
}

.quote-mail {
    color: #9A8BB3;
    font-size: 0.9rem;
}

.quote-mail:hover {
    color: #8B5CF6;
}

/* Блок 4 — Карта тем */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.rubric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
    padding: 1.7rem 1.6rem;
    background: #F8F6FC;
    border: 1px solid rgba(196, 181, 253, 0.4);
    border-radius: 0;
    color: #1E1828;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.rubric:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #C4B5FD;
    transform: translateY(-4px);
}

.rubric-icon {
    color: #8B5CF6;
    display: block;
}

.rubric-name {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
}

.rubric-note {
    font-size: 0.88rem;
    color: #6E6182;
}

/* ==========================================================================
   9. Запись и страница
   ========================================================================== */

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

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

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.entry-content h2 {
    margin-top: 2.2rem;
}

.entry-content h3 {
    margin-top: 1.8rem;
}

.entry-content img {
    display: block;
    height: auto;
    border-radius: 4px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.2rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-tags {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6E6182;
}

.tags-label {
    color: #9A8BB3;
}

.notfound-actions {
    margin-top: 1.8rem;
}

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

.sidebar {
    min-width: 0;
    background: #F3EFF9;
    border: 1px solid rgba(196, 181, 253, 0.4);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    color: #1E1828;
}

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

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

.sidebar .widget-title {
    font-size: 1.1rem;
    color: #1E1828;
    margin-bottom: 0.9rem;
    padding-left: 0.8rem;
    position: relative;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 2px;
    background: #8B5CF6;
}

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

.sidebar li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(196, 181, 253, 0.35);
    font-size: 0.95rem;
}

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

.sidebar a {
    color: #3B3149;
}

.sidebar a:hover {
    color: #6D3EE0;
}

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    color: #6E6182;
    font-size: 0.82rem;
}

/* ==========================================================================
   11. Пагинация
   ========================================================================== */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(196, 181, 253, 0.6);
    border-radius: 4px;
    color: #4A4059;
    font-size: 0.95rem;
    background: #FFFFFF;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: #8B5CF6;
    color: #6D3EE0;
}

.pager .page-numbers.current {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #FFFFFF;
}

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

.comments-area .pagination,
.comments-area .nav-links {
    margin-top: 1.5rem;
}

/* ==========================================================================
   12. Формы и комментарии
   ========================================================================== */

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

.search-label {
    display: block;
    font-size: 0.88rem;
    color: #6E6182;
    margin-bottom: 0.4rem;
}

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

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid #C4B5FD;
    border-radius: 4px;
    background: #FFFFFF;
    color: #1E1828;
    font-family: inherit;
    font-size: 0.97rem;
}

.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: 2px solid rgba(139, 92, 246, 0.35);
    border-color: #8B5CF6;
}

.comments-area {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(196, 181, 253, 0.4);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

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

.comment-list li {
    margin-bottom: 1.2rem;
}

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

.comment-body {
    background: #F3EFF9;
    border: 1px solid rgba(196, 181, 253, 0.4);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6E6182;
    margin-bottom: 0.5rem;
}

.comment-form {
    display: block;
}

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

.comment-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #4A4059;
}

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

.comment-form .submit {
    background: #8B5CF6;
    color: #FFFFFF;
    border: 1px solid #8B5CF6;
    border-radius: 4px;
    padding: 0.72rem 1.5rem;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover {
    background: #6D3EE0;
    transform: translateY(-2px);
}

.comments-closed {
    color: #6E6182;
}

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

.site-foot {
    background: #1A1425;
    color: #D8CFEC;
    padding: 3.4rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

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

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 2px;
    background: #8B5CF6;
}

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

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

.site-foot li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(196, 181, 253, 0.14);
}

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

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

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

.site-foot .widget a {
    background-image: linear-gradient(#C4B5FD, #C4B5FD);
}

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(196, 181, 253, 0.16);
}

.copyright {
    margin: 0;
    font-size: 0.87rem;
    color: #9A8BB3;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: #2D243D;
    color: #E7E0F7;
    border-top: 1px solid rgba(196, 181, 253, 0.3);
}

.cookie-text {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
    font-size: 0.9rem;
    color: #D8CFEC;
}

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

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

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

    .hero-title {
        font-size: 2.4rem;
    }

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

    .layout-with-sidebar {
        display: block;
    }

    .layout-with-sidebar .sidebar {
        margin-top: 2.6rem;
    }

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

    .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.35rem;
        padding: 0.8rem 0 0.2rem;
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-art {
        flex: 0 0 auto;
        width: 210px;
    }

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

    .tl::before {
        left: 26px;
        margin-left: 0;
    }

    .tl-item,
    .tl-left,
    .tl-right {
        width: 100%;
        margin: 0 0 1.4rem;
        padding: 0.4rem 0 0.4rem 0;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }

    .tl-num {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }

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

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

    h1 {
        font-size: 1.95rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.95rem;
    }

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

    .quote-text {
        font-size: 1.35rem;
    }

    .fs {
        padding: 3.2rem 0;
    }

    .fs-alt {
        padding: 3.2rem 1.4rem;
    }

    .fs-hero {
        padding: 2.6rem 1.4rem;
    }

    .quote-box {
        padding: 2rem 1.5rem 1.8rem 1.7rem;
        clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
    }

    .quote-box::before {
        top: 24px;
        width: 6px;
    }

    .quote-author {
        align-items: flex-start;
        text-align: left;
    }

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

    .rubric {
        padding: 1.3rem 1.2rem;
    }

    .card-grid {
        gap: 1.6rem;
    }

    .card-body {
        padding: 1.1rem 1.15rem 1.3rem;
    }

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

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

    body::after {
        width: 380px;
        height: 380px;
        right: -140px;
        bottom: -160px;
    }
}
