/*
Theme Name: dds_2seller.ru
Author: Алексей Романо
Description: Тема для образовательной онлайн-платформы по B2B-маркетингу и лидогенерации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: b2sell
*/

/* ============ 1. Базовые переменные и сброс ============ */

:root {
    --bg-main: #F7F5FC;
    --bg-alt: #EFEAF8;
    --bg-head: #FFFFFF;
    --bg-foot: #1A1625;
    --bg-card: #FFFFFF;
    --line: #D9D0EC;
    --ink: #1F1A2E;
    --accent: #6C4DFF;
    --accent-deep: #4A32B0;
    --accent-two: #FF6B9D;
    --muted: #8C81A3;
    --shell: min(92%, 1180px);
    --font-head: "Manrope", "Montserrat", "Segoe UI Semibold", "Trebuchet MS", sans-serif;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-main);
    background-image:
        radial-gradient(560px 460px at 8% 4%, rgba(108, 77, 255, 0.10), rgba(108, 77, 255, 0) 70%),
        repeating-linear-gradient(45deg, rgba(217, 208, 236, 0.55) 0 1px, rgba(217, 208, 236, 0) 1px 13px);
    background-attachment: fixed, fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.68;
}

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

body.home {
    --shell: min(85%, 1180px);
}

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

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

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

h2 {
    font-size: 2.15rem;
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}

h4 {
    font-size: 1.18rem;
}

p {
    margin: 0 0 1.1em;
}

.grad-word {
    background-image: linear-gradient(95deg, var(--accent) 0%, var(--accent-two) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.entry-body a,
.widget-zone a,
.crumbs a {
    display: inline;
}

.entry-body a::after,
.site-tagline a::after,
.foot-note a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 2px;
    background-image: linear-gradient(90deg, var(--accent), var(--accent-two));
    transition: left 0.25s ease, right 0.25s ease;
}

.entry-body a:hover::after,
.site-tagline a:hover::after,
.foot-note a:hover::after {
    left: 0;
    right: 0;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 5px solid var(--accent-two);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.18rem;
}

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

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

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

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

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

pre {
    padding: 1rem;
    overflow-x: auto;
    border-left: 3px solid var(--accent);
}

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

.btn,
.entry-body .btn {
    display: inline-block;
    padding: 0.78rem 1.7rem;
    border-radius: 2px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.96rem;
    letter-spacing: 0.04em;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 0 0 1px rgba(108, 77, 255, 0.35), 0 10px 26px rgba(108, 77, 255, 0.45);
}

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

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

.btn-light {
    background: #FFFFFF;
    color: var(--accent-deep);
    border-color: #FFFFFF;
}

.btn-light:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 10px 26px rgba(26, 22, 37, 0.35);
}

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

.site-head {
    position: relative;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}

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

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

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

.site-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0;
}

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

.site-tagline {
    display: none;
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.55rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 2px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

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

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

.main-nav ul {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.main-nav a {
    display: block;
    padding: 0.55rem 0.2rem;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.97rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--line);
}

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

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

.crumbs {
    padding: 1.1rem 0 0.2rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

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

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

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

.site-main {
    padding: 1.6rem 0 3.2rem;
}

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

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

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

.sidebar {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
}

/* ============ 7. Заголовки секций и декор ============ */

.sec-title {
    position: relative;
    margin-left: -14px;
    padding-left: 18px;
    display: block;
}

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

.sec-title::after {
    content: "";
    position: absolute;
    left: -26px;
    bottom: -12px;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.sec-title.is-shown::after {
    width: calc(100% + 60px);
    max-width: 380px;
}

.section-kicker {
    display: block;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

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

.front-section {
    position: relative;
    padding: 84px 0;
    overflow: hidden;
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cpath d='M260 260 L260 40 L40 260 Z' fill='%236C4DFF' fill-opacity='0.07'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
}

.front-section.is-alt {
    background-color: var(--bg-alt);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cpath d='M260 260 L260 40 L40 260 Z' fill='%23FFFFFF' fill-opacity='0.62'/%3E%3C/svg%3E");
}

.front-section > .shell {
    position: relative;
    z-index: 2;
}

.front-lead {
    padding: 74px 0 20px;
}

.front-lead h1 {
    margin-bottom: 0.5em;
}

.front-lead .lead-text {
    max-width: 760px;
    font-size: 1.12rem;
    color: #3B3350;
}

.lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

/* --- Блок 1: акцентная цитата --- */

.fs-quote-plate {
    display: flex;
    gap: 1.6rem;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 2.6rem 2.4rem;
    box-shadow: 0 4px 16px rgba(184, 169, 212, 0.25);
}

.fs-quote-bar {
    flex: 0 0 5px;
    background: var(--accent-two);
}

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

.fs-quote-body p {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.55rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.fs-quote-author {
    font-family: var(--font-head);
    font-style: normal;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Блок 2: шаги --- */

.steps-track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.9rem;
    margin-top: 2.4rem;
}

.step-item {
    position: relative;
    min-width: 0;
    padding-left: 0;
    text-align: left;
}

.step-dial {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px dashed var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    background: transparent;
    margin-bottom: 1rem;
}

.step-item.is-current .step-dial {
    background: var(--accent);
    border-style: solid;
    color: #FFFFFF;
    box-shadow: 0 6px 22px rgba(108, 77, 255, 0.4);
}

.step-item h3 {
    margin-bottom: 0.4em;
    font-size: 1.16rem;
}

.step-item p {
    margin: 0;
    color: #3B3350;
    font-size: 0.97rem;
}

/* --- Блок 3: zigzag --- */

.zig-row {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: flex-start;
    padding: 1.9rem 0;
    border-bottom: 1px solid rgba(217, 208, 236, 0.75);
}

.zig-row:last-child {
    border-bottom: 0;
}

.zig-icon {
    flex: 0 0 118px;
    width: 118px;
}

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

.zig-body h3 {
    margin-bottom: 0.45em;
}

.zig-body p {
    margin: 0;
    color: #3B3350;
}

/* --- Блок 4: рубрикатор --- */

.topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-left: 0;
    padding: 1.7rem 1.6rem;
    color: var(--ink);
    transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.topic-tile:nth-child(2) {
    border-top-color: var(--accent-two);
}

.topic-tile:nth-child(3) {
    border-top-color: var(--accent-deep);
}

.topic-tile:hover {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    transform: translateY(-2px);
}

.topic-tile:nth-child(2):hover {
    border-left-color: var(--accent-two);
}

.topic-tile:nth-child(3):hover {
    border-left-color: var(--accent-deep);
}

.topic-tile svg {
    margin-bottom: 1rem;
}

.topic-tile h3 {
    margin-bottom: 0.35em;
    font-size: 1.24rem;
}

.topic-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* --- CTA --- */

.fs-cta {
    margin-top: 3rem;
    padding: 2.6rem 2.3rem;
    border-radius: 2px;
    background-color: var(--accent);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.10) 1px, rgba(255, 255, 255, 0) 1px),
        linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
    background-size: 12px 12px, auto;
    color: #FFFFFF;
}

.fs-cta h2,
.fs-cta h3 {
    color: #FFFFFF;
}

.fs-cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
}

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

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.7rem;
    margin-top: 2.4rem;
}

.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-card);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(184, 169, 212, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(184, 169, 212, 0.5);
    border-left: 3px solid var(--accent);
}

.card-thumb-wrap {
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--bg-alt);
}

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

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

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

.card-flag {
    align-self: flex-start;
    background: var(--accent-two);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 1.1rem 0.28rem 0.7rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
    margin-bottom: 0.8rem;
}

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

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

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

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.card-excerpt {
    color: #3B3350;
    font-size: 0.96rem;
    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(--font-head);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    color: var(--accent);
}

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

/* Горизонтальная карточка (списки) */

@media (min-width: 601px) {
    .card-list .card {
        flex-direction: row;
    }

    .card-list .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
    }

    .card-list .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

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

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

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

.entry-head h1 {
    font-size: 2.6rem;
    margin-bottom: 0.4em;
}

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

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

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

.entry-body h2,
.entry-body h3 {
    margin-top: 1.7em;
}

.entry-body ul,
.entry-body ol {
    padding-left: 1.3rem;
}

.entry-body li {
    margin-bottom: 0.5rem;
}

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

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

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

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

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

.pager .page-numbers {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

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

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

/* ============ 12. Виджеты ============ */

.widget {
    margin-bottom: 1.9rem;
}

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

.widget-title {
    font-family: var(--font-head);
    font-size: 1.06rem;
    letter-spacing: 0.03em;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

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

.widget li {
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
}

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

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

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

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

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

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

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

.site-foot {
    position: relative;
    background-color: var(--bg-foot);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='300' viewBox='0 0 320 300'%3E%3Cpath d='M170 20 L300 95 L300 245 L170 320 L40 245 L40 95 Z' fill='%236C4DFF' fill-opacity='0.13'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
    color: #D8D2E6;
    padding: 60px 0 26px;
    overflow: hidden;
}

.foot-cols {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
}

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

.site-foot .widget-title {
    color: #FFFFFF;
    border-bottom-color: var(--accent-two);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #D8D2E6;
}

.site-foot .widget li {
    border-bottom-color: rgba(217, 208, 236, 0.18);
}

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

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

.site-foot .post-date {
    display: block;
    font-size: 0.78rem;
    color: #A79CC0;
}

.foot-note {
    position: relative;
    z-index: 2;
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(217, 208, 236, 0.2);
    font-size: 0.86rem;
    color: #A79CC0;
}

.foot-note a {
    color: #EDE9F6;
}

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

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

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

.search-form button {
    padding: 0.65rem 1.2rem;
    border: 2px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover {
    transform: translateY(2px);
}

.comments-zone {
    margin-top: 2.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

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

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

.comment-box {
    background: #FFFFFF;
    border-left: 3px solid var(--line);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 16px rgba(184, 169, 212, 0.2);
}

.comment-head {
    font-family: var(--font-head);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--muted);
    margin-left: 0.5rem;
}

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

.comment-respond label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.comment-respond .submit {
    padding: 0.78rem 1.7rem;
    border-radius: 2px;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
}

.comment-respond .submit:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 26px rgba(108, 77, 255, 0.4);
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.3rem;
    background: #1A1625;
    color: #E5E0F0;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 260px;
    min-width: 0;
}

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

.cookie-banner .btn {
    flex: 0 0 auto;
}

/* ============ 16. 404 и поиск ============ */

.state-block {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent-two);
    padding: 2rem 1.8rem;
}

.state-block h1 {
    font-size: 2.6rem;
}

.state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.nothing-found {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
}

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

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

    h2 {
        font-size: 1.6rem;
    }

    .front-section {
        padding: 54px 0;
        background-size: 150px 150px;
    }

    .front-lead {
        padding: 46px 0 14px;
    }

    .fs-quote-plate {
        padding: 1.6rem 1.3rem;
    }

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

    .fs-cta {
        padding: 1.8rem 1.4rem;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .entry-head h1 {
        font-size: 1.85rem;
    }

    .sec-title {
        margin-left: 0;
    }
}

@media (min-width: 601px) {
    .site-tagline {
        display: block;
        max-width: 520px;
    }

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

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

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

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

    .zig-row {
        flex-direction: row;
        align-items: center;
        gap: 2.4rem;
    }

    .zig-row.is-flip {
        flex-direction: row-reverse;
    }
}

@media (min-width: 961px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        flex: 0 0 auto;
        margin-left: auto;
    }

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

    .main-nav ul {
        flex-direction: row;
        gap: 1.7rem;
        margin: 0;
    }

    .main-nav a {
        border-bottom: 0;
        padding: 0.3rem 0;
    }

    .main-nav a::after {
        content: "";
        position: absolute;
        left: 50%;
        right: 50%;
        bottom: -2px;
        height: 2px;
        background-image: linear-gradient(90deg, var(--accent), var(--accent-two));
        transition: left 0.25s ease, right 0.25s ease;
    }

    .main-nav a:hover::after {
        left: 0;
        right: 0;
    }

    .steps-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.4rem;
    }

    .steps-track::before {
        content: "";
        position: absolute;
        top: 37px;
        left: 8%;
        right: 8%;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--accent) 0 8px, rgba(108, 77, 255, 0) 8px 16px);
        z-index: 0;
    }

    .step-item {
        position: relative;
        z-index: 1;
    }

    .step-dial {
        background: var(--bg-main);
    }

    .front-section.is-alt .step-dial {
        background: var(--bg-alt);
    }

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

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

/* ============ 18. Служебные классы WordPress ============ */

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

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

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

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

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

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.entry-body img {
    height: auto;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1rem;
}
