/*
Theme Name: dds_ucozshablony.ru
Author: Артём Верстаков
Description: Тема для образовательного блога о веб-дизайне и вёрстке. Лавандовая палитра с элементами неоморфизма, собственный отрывок записей, хлебные крошки, нумерованная пагинация, cookie-баннер.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ucozsh
*/

:root {
    --bg: #F5F3F7;
    --bg-alt: #E9E4F0;
    --bg-deep: #D6CDE4;
    --plum: #2A1B38;
    --plum-soft: #4A3B5C;
    --ink: #1A1224;
    --accent: #9F7AEA;
    --accent-strong: #6B46C1;
    --teal: #38B2AC;
    --muted: #8A7A99;
    --line: #D6CDE4;
    --shell: min(92%, 1180px);
    --soft-out: 8px 8px 20px rgba(42, 27, 56, .09), -8px -8px 20px rgba(255, 255, 255, .92);
    --soft-in: inset 5px 5px 12px rgba(42, 27, 56, .10), inset -5px -5px 12px rgba(255, 255, 255, .90);
    --float: 0 10px 26px rgba(42, 27, 56, .10);
    --float-up: 0 18px 38px rgba(42, 27, 56, .16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(159, 122, 234, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 122, 234, .05) 1px, transparent 1px);
    background-size: 26px 26px;
    font-family: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -180px;
    right: -220px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(159, 122, 234, .15) 0%, rgba(159, 122, 234, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

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

a {
    color: var(--accent-strong);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .25s ease, color .2s ease;
}

a:hover,
a:focus {
    background-size: 100% 2px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5 {
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--ink);
}

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

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

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

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

pre {
    padding: 1rem 1.2rem;
    background: var(--plum);
    color: #EFE9F7;
    border-radius: 12px;
    overflow-x: auto;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

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

.btn {
    display: inline-block;
    padding: .78rem 1.7rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .97rem;
    line-height: 1.3;
    border: 1px solid transparent;
    cursor: pointer;
    background-image: linear-gradient(120deg, var(--accent), var(--accent-strong));
    background-size: auto;
    color: #fff;
    transition: transform .2s ease, box-shadow .2s ease, background-image .2s ease, color .2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(107, 70, 193, .28);
    background-image: linear-gradient(120deg, #8964d8, #55349f);
    background-size: auto;
    color: #fff;
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background-image: none;
    background-color: var(--bg-alt);
    color: var(--accent-strong);
    box-shadow: 0 10px 20px rgba(42, 27, 56, .10);
}

/* ---------- Шапка ---------- */

.site-top {
    background: var(--plum);
    color: #F1ECF7;
    position: relative;
    z-index: 2;
}

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

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

.brand a {
    background-image: none;
}

.brand-logo,
.brand-mark {
    width: 54px;
    height: 54px;
    flex: none;
    display: block;
    border-radius: 14px;
}

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

.brand-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: #FFFFFF;
    max-width: 640px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    display: block;
    margin-top: .25rem;
    font-size: .8rem;
    line-height: 1.45;
    color: #B7A8C9;
    max-width: 640px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(159, 122, 234, .55);
    background: transparent;
    color: #F1ECF7;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

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

.main-nav a {
    color: #EDE6F6;
    font-weight: 500;
    font-size: .97rem;
    background-image: linear-gradient(var(--accent), var(--accent));
}

.main-nav a:hover,
.main-nav a:focus {
    color: #fff;
}

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

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

.site-main {
    display: block;
    padding: 2.4rem 0 3.4rem;
    position: relative;
    z-index: 1;
}

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

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

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

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

.crumbs {
    font-size: .87rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--line);
}

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

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

/* ---------- Заголовки секций и страниц ---------- */

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

.page-head h1 {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.section-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 1.6rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 68px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.section-title.is-centered {
    text-align: center;
}

.section-title.is-centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.dots-divider {
    text-align: center;
    color: var(--accent);
    letter-spacing: .6em;
    font-size: 1.4rem;
    line-height: 1;
    margin: 0 0 1.6rem;
}

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

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

.cards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

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

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

.card-thumb {
    display: block;
    background-image: none;
}

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

.card-thumb-stub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-deep));
}

.card-thumb-stub svg {
    width: 42%;
    height: auto;
    display: block;
}

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

.card-title {
    font-size: 1.2rem;
    margin: 0 0 .5rem;
}

.card-title a {
    color: var(--ink);
    background-image: linear-gradient(var(--accent), var(--accent));
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .7rem;
}

.card-meta .meta-cat a {
    color: var(--teal);
}

.card-excerpt {
    color: #45394F;
    font-size: .95rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: .55rem 1.3rem;
    font-size: .88rem;
}

.sticky .card-title::before {
    content: "★";
    color: var(--teal);
    margin-right: .4rem;
}

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

.front-section {
    padding: 3.4rem 0;
    position: relative;
}

.front-section + .front-section {
    border-top: 1px solid var(--line);
}

.front-shell {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-lead {
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-title.is-centered + .section-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, var(--plum) 0%, var(--plum-soft) 100%);
    color: #F3EEF9;
    padding: 4.6rem 0 4.8rem;
    border-bottom: 1px solid var(--line);
}

.hero-hex {
    position: absolute;
    top: 50%;
    right: -110px;
    transform: translateY(-50%);
    width: 520px;
    height: 520px;
    opacity: .16;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    padding: .4rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(159, 122, 234, .55);
    color: #C8B4F0;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.hero h1 {
    color: #FFFFFF;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    max-width: 940px;
    margin: 0 auto .9rem;
}

.hero-desc {
    color: #C6B7D8;
    max-width: 760px;
    margin: 0 auto 1.9rem;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    gap: .9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-ghost {
    color: #E4D8F5;
    border-color: rgba(159, 122, 234, .8);
}

.hero-actions .btn-ghost:hover {
    background-color: rgba(159, 122, 234, .18);
    color: #fff;
}

/* Сетка курсов (неоморфизм) */

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

.course-card {
    min-width: 0;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    background: var(--bg);
    box-shadow: var(--soft-out);
    transition: box-shadow .25s ease, transform .25s ease;
}

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

.course-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    box-shadow: var(--soft-in);
    margin-bottom: 1.2rem;
}

.course-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.course-card h3 {
    margin-bottom: .5rem;
}

.course-card p {
    color: #4A3F55;
    font-size: .95rem;
    margin-bottom: 0;
}

.course-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
}

/* Цитата */

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

.quote-plate {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 2.6rem 2.4rem;
    background:
        linear-gradient(135deg, rgba(214, 205, 228, .85), rgba(233, 228, 240, .85)),
        repeating-linear-gradient(0deg, rgba(42, 27, 56, .06) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(42, 27, 56, .06) 0 1px, transparent 1px 22px);
    border-radius: 18px;
    box-shadow: var(--float);
}

.quote-bar {
    flex: none;
    width: 6px;
    align-self: stretch;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

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

.quote-body p {
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-style: italic;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: .9rem;
}

.quote-author {
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 600;
    font-style: normal;
}

/* Шаги */

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

.step-row {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 1.6rem 0;
    border-bottom: 1px dashed var(--line);
    min-width: 0;
}

.step-row:last-child {
    border-bottom: none;
}

.step-num {
    flex: none;
    width: 96px;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.04em;
}

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

.step-text h3 {
    margin-bottom: .35rem;
}

.step-text p {
    margin-bottom: 0;
    color: #4A3F55;
}

.step-note {
    display: block;
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--teal);
    font-weight: 600;
}

/* Технологичные буллиты */

.tech-list {
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
}

.tech-list li {
    position: relative;
    padding-left: 2.6rem;
    margin-bottom: .9rem;
}

.tech-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--soft-in);
}

.tech-list li::after {
    content: "";
    position: absolute;
    left: 8px;
    top: .55rem;
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(-45deg);
}

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

.fs-latest .front-shell {
    position: relative;
}

.latest-more {
    text-align: center;
    margin-top: 2.2rem;
}

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--float);
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.08rem;
    color: var(--ink);
    padding-bottom: 10px;
    margin-bottom: 1rem;
    position: relative;
}

.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

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

.sidebar .widget li {
    padding: .5rem 0 .5rem 1.3rem;
    position: relative;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

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

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

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

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

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

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

.site-bottom {
    background: var(--plum);
    color: #D8CDE6;
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(159, 122, 234, .28);
}

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

.site-bottom .widget {
    margin-bottom: 1.4rem;
    color: #D8CDE6;
}

.site-bottom .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    padding-bottom: 10px;
    margin-bottom: .9rem;
    position: relative;
}

.site-bottom .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
}

.site-bottom .widget p,
.site-bottom .widget li,
.site-bottom .textwidget {
    color: #C7B9D8;
    font-size: .93rem;
}

.site-bottom .widget li {
    padding: .38rem 0 .38rem 1.2rem;
    position: relative;
}

.site-bottom .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .95rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

.site-bottom .widget a {
    color: #E3D8F2;
    background-image: linear-gradient(var(--accent), var(--accent));
}

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

.footer-note {
    padding-top: 1.4rem;
    font-size: .87rem;
    color: #A997BC;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin: 2.4rem 0 .6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .9rem;
    border-radius: 50px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 600;
    background-image: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.pager .page-numbers:hover {
    background-color: var(--bg-alt);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

.pager .page-numbers.current {
    background-image: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
}

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

.entry {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 2.2rem 2.2rem 2.4rem;
    box-shadow: var(--float);
}

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

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .87rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.entry-meta .meta-cat a {
    color: var(--teal);
}

.entry-thumb {
    margin: 0 0 1.6rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.entry-content h2 {
    font-size: 1.7rem;
    margin-top: 1.9rem;
}

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

.entry-content img {
    border-radius: 14px;
    display: block;
}

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

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

.entry-tags a {
    display: inline-block;
    margin: 0 .35rem .35rem 0;
    padding: .25rem .8rem;
    border-radius: 50px;
    border: 1px solid var(--line);
    color: var(--accent-strong);
    background-image: none;
}

.entry-tags a:hover {
    background-color: var(--bg-alt);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.8rem;
    font-size: .93rem;
}

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

.comments-block {
    margin-top: 2rem;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 2rem 2.2rem 2.2rem;
    box-shadow: var(--float);
}

.comments-block h2 {
    font-size: 1.5rem;
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0 0 0 1.2rem;
    border-left: 2px solid var(--line);
}

.comment-item {
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background: var(--bg);
    margin-bottom: 1rem;
}

.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: .4rem;
}

.comment-author {
    font-weight: 700;
}

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

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

.comment-form label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}

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

.comment-form .submit {
    display: inline-block;
    padding: .78rem 1.7rem;
    border-radius: 50px;
    border: none;
    background-image: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(107, 70, 193, .28);
}

/* ---------- Поиск и 404 ---------- */

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: .72rem 1.1rem;
    border-radius: 50px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}

.search-form .search-submit {
    padding: .72rem 1.5rem;
    border-radius: 50px;
    border: none;
    background-image: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.notfound {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 2.4rem 2.2rem;
    box-shadow: var(--float);
    text-align: center;
}

.notfound .big-code {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: .4rem;
}

.notfound .search-form {
    max-width: 460px;
    margin: 1.6rem auto;
    justify-content: center;
}

.no-results {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 2rem 2.2rem;
    box-shadow: var(--float);
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--plum);
    color: #E4D9F2;
    border-top: 2px solid var(--accent);
    font-size: .9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 820px;
}

.cookie-banner a {
    color: #C8B4F0;
}

.cookie-accept {
    flex: none;
    padding: .6rem 1.5rem;
    border-radius: 50px;
    border: none;
    background-image: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

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

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

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.65rem;
    }

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

    .layout-single {
        width: 100%;
    }

    .front-shell,
    .hero-inner {
        width: 92%;
    }

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

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

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

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

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
        padding-top: .8rem;
    }

    .main-nav.is-open ul {
        display: flex;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(159, 122, 234, .22);
        padding: .55rem 0;
    }

    .hero-hex {
        right: -220px;
        opacity: .12;
    }
}

@media (max-width: 600px) {
    .page-head h1,
    .entry-title {
        font-size: 1.9rem;
    }

    .cards-grid,
    .cards-list,
    .courses-grid,
    .footer-cols {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .hero {
        padding: 3rem 0 3.2rem;
    }

    .entry,
    .comments-block,
    .notfound,
    .no-results {
        padding: 1.5rem 1.3rem 1.7rem;
    }

    .quote-plate {
        padding: 1.8rem 1.4rem;
        gap: 1rem;
    }

    .course-card {
        padding: 1.6rem 1.4rem;
    }

    .step-row {
        gap: 1rem;
    }

    .step-num {
        width: 62px;
        font-size: 2.6rem;
    }

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

    .site-top-inner {
        gap: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* ---------- Уточнения ---------- */

.quote-body {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.search-form label {
    flex: 1 1 220px;
    min-width: 0;
    display: block;
    margin: 0;
}

.search-form .search-field {
    width: 100%;
}

.sidebar .widget .search-form {
    gap: .5rem;
}

.wp-caption {
    max-width: 100%;
}

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

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

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

.entry-content figure {
    margin: 1.5rem 0;
}
