/*
Theme Name: dds_fwdgroup.ru
Author: Анна Северова
Description: Тема для образовательной онлайн-платформы FWD Group. Lavender Tech с элементами японского минимализма.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fwdg
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg: #F7F5FC;
    --bg-alt: #EEEAFA;
    --plate: #FFFFFF;
    --ink: #1E1836;
    --deep: #2A2342;
    --deep-2: #4A3B6B;
    --accent: #7C4DFF;
    --accent-strong: #5B2EE0;
    --accent-soft: #B388FF;
    --muted: #9A94B0;
    --quote-bg: #F0EDFA;
    --line: rgba(124, 77, 255, 0.16);
    --shadow: 0 10px 30px rgba(124, 77, 255, 0.08);
    --shadow-up: 0 18px 42px rgba(124, 77, 255, 0.16);
    --sans: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Lora", "Playfair Display", "Times New Roman", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420'%3E%3Cpath d='M40 400C-20 330 0 250 60 200s120-70 150-140 130-90 190-40 90 160 40 230-190 190-280 170S70 430 40 400z' fill='%23D1C4E9' fill-opacity='0.42'/%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, rgba(30, 24, 54, 0.03) 0 1px, rgba(30, 24, 54, 0) 1px 4px);
    background-repeat: no-repeat, repeat;
    background-position: left -140px bottom -120px, top left;
    background-attachment: fixed, fixed;
}

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

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

.entry-content a,
.crumbs a,
.widget a,
.card-title a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size 0.22s ease, color 0.22s ease;
}

.entry-content a:hover,
.crumbs a:hover,
.widget a:hover,
.card-title a:hover {
    background-size: 100% 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: 0.01em;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 1.2em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.8rem;
    background: var(--quote-bg);
    border-left: 6px solid var(--accent);
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6em;
    background: var(--plate);
    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(--sans);
    font-weight: 700;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--bg-alt);
    border-radius: 6px;
}

code {
    padding: 0.1em 0.35em;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

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

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

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

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.72rem 1.5rem;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    box-shadow: 0 6px 16px rgba(124, 77, 255, 0.22);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 12px 26px rgba(124, 77, 255, 0.32);
    background: linear-gradient(120deg, var(--accent-strong), var(--accent));
    color: #fff;
}

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

.btn-ghost:hover {
    background: rgba(124, 77, 255, 0.08);
    color: var(--accent-strong);
    box-shadow: 0 8px 18px rgba(124, 77, 255, 0.16);
}

/* =========================================================
   3. Верхняя полоса, шапка
   ========================================================= */

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

.site-top {
    background: rgba(247, 245, 252, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
    max-width: 620px;
}

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

.brand-mark img {
    max-height: 56px;
    width: auto;
}

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

.brand-name {
    display: block;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.brand-desc {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

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

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    padding-bottom: 4px;
    display: inline-block;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transition: height 0.22s ease;
}

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

.main-nav a:hover::after {
    height: 2px;
}

.main-nav .current-menu-item > a {
    color: var(--accent);
}

/* =========================================================
   4. Общая раскладка страниц
   ========================================================= */

.site-main {
    padding: 3rem 0 5rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

.layout-with-sidebar > * {
    min-width: 0;
}

.layout-single {
    display: block;
}

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.crumbs {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

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

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

.page-title {
    font-size: 2.4rem;
    margin-bottom: 1.4rem;
    position: relative;
}

.sec-title,
.page-title,
.entry-content h2,
.widget-title,
.comments-title,
.entry-title {
    position: relative;
}

.sec-title::before,
.entry-content h2::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.6rem;
    transform: translateY(-0.2em);
}

.sec-title {
    font-size: 2rem;
    margin-bottom: 1.8rem;
}

.sec-lead {
    max-width: 720px;
    color: #453D62;
    margin-bottom: 2.2rem;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.cards-grid > * {
    min-width: 0;
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--plate);
    border-radius: 12px;
    border-top: 3px solid var(--accent-soft);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-thumb {
    display: block;
    line-height: 0;
    background: var(--bg-alt);
}

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

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

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

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

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

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

.card-excerpt {
    color: #4A4362;
    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(--sans);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
}

.card-more:hover {
    color: var(--accent-strong);
}

/* =========================================================
   6. Главная страница
   ========================================================= */

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

.front-section {
    position: relative;
}

.front-section + .front-section {
    margin-top: 120px;
}

.front-section > * {
    position: relative;
    z-index: 1;
}

.front-section::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 22px solid var(--bg-alt);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
}

.front-section.no-deco::after {
    display: none;
}

/* --- Hero --- */

.fs-hero {
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 16px),
        linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%);
    border-radius: 16px;
    padding: 5.5rem 3.2rem 7.5rem;
    overflow: hidden;
    color: #fff;
}

.fs-hero h1 {
    color: #fff;
    max-width: 16ch;
    margin-bottom: 1.4rem;
}

.fs-hero h1 em {
    font-style: normal;
    color: var(--accent-soft);
}

.hero-sub {
    font-size: 1.1rem;
    color: #E4DDF5;
    max-width: 58ch;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
    pointer-events: none;
}

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

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: var(--plate);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feat-item {
    min-width: 0;
    padding: 2.2rem 1.6rem;
    transition: padding 0.24s ease, background 0.24s ease;
}

.feat-item + .feat-item {
    border-left: 1px solid var(--bg-alt);
}

.feat-item:hover {
    padding-left: 2.1rem;
    padding-right: 2.1rem;
    background: #FCFBFF;
}

.feat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.1rem;
    color: var(--accent);
}

.feat-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feat-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #4A4362;
}

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

.tl {
    display: grid;
    gap: 0;
}

.tl-item {
    display: grid;
    grid-template-columns: minmax(0, 190px) 46px minmax(0, 1fr);
    align-items: start;
}

.tl-item > * {
    min-width: 0;
}

.tl-date {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--muted);
    text-align: right;
    padding: 0 0 2.6rem;
}

.tl-axis {
    position: relative;
}

.tl-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed var(--accent);
    transform: translateX(-50%);
}

.tl-item:last-child .tl-axis::before {
    bottom: auto;
    height: 14px;
}

.tl-dot {
    position: absolute;
    left: 50%;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 0 5px var(--bg);
    transform: translateX(-50%);
}

.tl-body {
    padding: 0 0 2.6rem 0.4rem;
}

.tl-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

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

/* --- Цитата --- */

.fs-quote-wrap {
    display: block;
}

.fs-quote {
    width: 80%;
    margin-left: auto;
    margin-right: 0;
    background-color: var(--bg-alt);
    background-image: radial-gradient(rgba(124, 77, 255, 0.16) 1px, rgba(0, 0, 0, 0) 1px);
    background-size: 14px 14px;
    border-left: 8px solid var(--accent);
    border-radius: 0 14px 14px 0;
    padding: 3rem 2.8rem;
}

.fs-quote p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 2.2rem;
    line-height: 1.4;
    margin: 0 0 1.4rem;
    color: var(--ink);
}

.fs-quote footer {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--muted);
}

.fs-quote footer strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

/* --- Блок последних записей --- */

.fs-latest .sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

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

.fs-latest .sec-head .all-link {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.9rem;
}

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

.sidebar {
    background: var(--plate);
    border: 1px solid rgba(124, 77, 255, 0.14);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar .widget + .widget {
    margin-top: 2rem;
}

.sidebar .widget-title {
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

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

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

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

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

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

/* =========================================================
   8. Формы поиска и комментариев
   ========================================================= */

.search-form {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--plate);
    color: var(--ink);
}

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

.comments-area {
    margin-top: 3.5rem;
    background: var(--plate);
    border-radius: 14px;
    border-top: 3px solid var(--accent-soft);
    box-shadow: var(--shadow);
    padding: 2rem 2rem 2.2rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.4rem;
}

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

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

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

.comment-body {
    background: var(--bg);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
}

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

.comment-author {
    font-family: var(--sans);
    font-weight: 700;
}

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

.comment-actions {
    font-family: var(--sans);
    font-size: 0.85rem;
}

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

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

.comment-form .submit {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.72rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    box-shadow: 0 6px 16px rgba(124, 77, 255, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(2px);
    box-shadow: 0 12px 26px rgba(124, 77, 255, 0.32);
}

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

.entry {
    background: var(--plate);
    border-radius: 14px;
    border-top: 3px solid var(--accent-soft);
    box-shadow: var(--shadow);
    padding: 2.4rem 2.4rem 2.6rem;
}

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

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

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

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: 12px;
    overflow: hidden;
}

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

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

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

.entry-content img {
    border-radius: 10px;
}

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

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

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

.nothing {
    background: var(--plate);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 2rem 2.2rem;
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--plate);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pager .page-numbers:hover {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    border-color: transparent;
    transform: translateY(2px);
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.24);
}

.pager .page-numbers.current {
    color: #fff;
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(124, 77, 255, 0.24);
}

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

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

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

.site-foot {
    background: var(--deep);
    color: #E4DDF5;
    padding: 3.6rem 0 1.8rem;
    margin-top: 4rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 2.4rem;
}

.foot-cols > * {
    min-width: 0;
}

.site-foot .widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #CFC6E6;
    font-size: 0.95rem;
}

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

.site-foot .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.site-foot .widget a {
    color: #D7C9FF;
}

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

.site-foot .widget .post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: #A79CC4;
}

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: #A79CC4;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: rgba(42, 35, 66, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 2px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    color: #E4DDF5;
    font-size: 0.92rem;
    max-width: 70ch;
}

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

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

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

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

    .layout-single .content-area {
        width: 100%;
    }

    .front-wrap {
        width: 100%;
    }

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

    .feat-item:nth-child(3) {
        border-left: none;
    }

    .feat-item:nth-child(n + 3) {
        border-top: 1px solid var(--bg-alt);
    }

    .fs-quote {
        width: 100%;
    }

    .fs-quote p {
        font-size: 1.7rem;
    }

    .front-section + .front-section {
        margin-top: 84px;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .site-top-inner {
        align-items: center;
    }

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

    .main-nav {
        flex-basis: 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.6rem 0 0;
    }

    .main-nav a {
        display: block;
        padding: 0.5rem 0;
    }

    .fs-hero {
        padding: 3rem 1.4rem 4.5rem;
    }

    .fs-quote {
        padding: 1.8rem 1.4rem;
        border-radius: 0 10px 10px 0;
    }

    .fs-quote p {
        font-size: 1.35rem;
    }

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

    .feat-item + .feat-item {
        border-left: none;
        border-top: 1px solid var(--bg-alt);
    }

    .feat-item:hover {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .tl-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .tl-date {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding-bottom: 0.3rem;
    }

    .tl-axis {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .tl-body {
        grid-column: 2;
        grid-row: 2;
        padding-left: 0.2rem;
    }

    .entry,
    .comments-area,
    .nothing {
        padding: 1.5rem 1.3rem 1.7rem;
    }

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

    .front-section::after {
        width: 120px;
        height: 120px;
        border-width: 16px;
        right: -50px;
        bottom: -50px;
    }

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