/*
Theme Name: dds_artisanal-galerie-charente.com
Theme URI: https://artisanal-galerie-charente.com
Author: Анна Бельская
Author URI: https://artisanal-galerie-charente.com
Description: Тема для образовательной платформы с онлайн-курсами и мастер-классами по творческим и прикладным специальностям. Тёплая, тактильная эстетика ручного ремесла: терракотовая охра, необработанный лён, шампань и старая бронза.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artisanat
*/

/* =========================================================================
   1. Переменные
   ========================================================================= */
:root {
    --ink: #2b2722;
    --ink-soft: #5b5247;
    --ochre: #a14a27;
    --ochre-deep: #813619;
    --champagne: #f3e8cf;
    --linen: #ddccab;
    --bronze: #94794a;
    --paper: #e7dbc1;
    --cream: #f5efe0;
    --cream-2: #faf6ea;
    --line: #cdbe9c;
    --footer-bg: #2c2620;
    --footer-text: #e3d6bc;
    --footer-muted: #b3a384;
    --shadow-clay: 0 14px 28px -16px rgba(54, 38, 22, 0.55);
    --font-display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
    --font-body: "Spectral", Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(0.33, 0.1, 0.2, 1);
}

/* =========================================================================
   2. Базовая типографика и сброс
   ========================================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.42rem; }
h4 { font-size: 1.16rem; }

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--ochre);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

a:hover {
    color: var(--ochre-deep);
}

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

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

blockquote {
    margin: 1.6em 0;
    padding: 0.4em 1.4em;
    border-left: 3px solid var(--bronze);
    font-style: italic;
    color: var(--ink-soft);
}

code, pre {
    font-family: "Courier New", monospace;
    background: var(--cream);
    border-radius: 4px;
}

pre {
    padding: 1em 1.2em;
    overflow-x: auto;
    border: 1px solid var(--line);
}

code {
    padding: 0.1em 0.4em;
}

/* Таблицы — видимые границы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--bronze);
}

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

th {
    background: var(--cream);
    font-family: var(--font-display);
    font-weight: 600;
}

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

/* =========================================================================
   3. Контейнер ширины — единственное место ограничения
   ========================================================================= */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* =========================================================================
   4. Кнопки
   ========================================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
        background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* Основная — скол керамики в правом нижнем углу */
.btn-primary {
    padding: 0.85em 2em;
    color: var(--champagne);
    background-color: var(--ochre-deep);
    border: 0;
    border-radius: 22px 22px 5px 22px;
    box-shadow: var(--shadow-clay);
}

.btn-primary:hover {
    color: var(--champagne);
    transform: translateY(3px);
    box-shadow: 0 6px 14px -10px rgba(54, 38, 22, 0.7),
        inset 0 3px 8px -3px rgba(0, 0, 0, 0.35);
}

/* Второстепенная — тонкая бронзовая рамка, без тени */
.btn-outline {
    padding: 0.78em 1.8em;
    color: var(--ochre-deep);
    background-color: transparent;
    border: 1px solid var(--bronze);
    border-radius: 22px;
}

.btn-outline:hover {
    color: var(--champagne);
    background-color: var(--bronze);
}

/* =========================================================================
   5. Декоративный разделитель — нить / мазок кисти
   ========================================================================= */
.thread-divider {
    border: 0;
    height: 22px;
    margin: 2.6em 0;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='22'%3E%3Cpath d='M2 12 C 40 2, 70 20, 110 11 S 190 2, 238 12' stroke='%2394794a' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='120' cy='11' r='3.6' fill='%23a14a27'/%3E%3C/svg%3E");
}

/* =========================================================================
   6. Шапка
   ========================================================================= */
.site-header {
    background-color: var(--cream);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.3rem 0;
}

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

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

.brand-logo img {
    display: block;
    width: auto;
    height: 64px;
}

/* Подпись кистью — заглушка логотипа */
.brand-signature svg {
    display: block;
    width: 168px;
    height: 70px;
}

.brand-signature .sig-text {
    opacity: 0;
    animation: sig-appear 1s var(--ease) 0.25s both;
}

.brand-signature .sig-stroke {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: sig-draw 1.5s var(--ease) 0.5s both;
}

@keyframes sig-appear {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes sig-draw {
    to { stroke-dashoffset: 0; }
}

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

.site-title {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 30ch;
}

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

.site-description {
    margin: 0.25em 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 46ch;
}

/* Навигация */
.header-nav {
    display: flex;
    align-items: center;
}

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

.main-navigation a {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--ochre-deep);
    border-bottom-color: var(--bronze);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 42px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--bronze);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* =========================================================================
   7. Каркас страницы
   ========================================================================= */
.site-main {
    padding: 2.6rem 0 3.4rem;
}

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

.layout-single {
    display: block;
}

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

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

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

/* Хлебные крошки */
.breadcrumbs {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-bottom: 1.7rem;
}

.breadcrumbs a {
    color: var(--bronze);
}

.breadcrumbs a:hover {
    color: var(--ochre-deep);
}

.breadcrumbs .sep {
    margin: 0 0.4em;
    color: var(--line);
}

.breadcrumbs .current {
    color: var(--ink);
}

/* =========================================================================
   8. Боковая колонка и виджеты
   ========================================================================= */
.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background-color: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 16px 8px 18px 7px;
    padding: 1.5rem 1.5rem 1.6rem;
    margin-bottom: 1.8rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.2rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--linen);
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.97rem;
}

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

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

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

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-top: 0.15rem;
}

/* =========================================================================
   9. Карточки записей
   ========================================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
    gap: 2rem;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 16px 7px 19px 9px;
    box-shadow: var(--shadow-clay);
    transition: transform 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
}

.card-thumb {
    margin: 0;
    overflow: hidden;
}

.card-thumb a {
    display: block;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.card:hover .card-thumb img {
    transform: scale(1.05);
}

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

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

.card-title {
    font-size: 1.4rem;
    margin: 0 0 0.6rem;
}

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

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

.card-excerpt {
    color: var(--ink-soft);
    margin-bottom: 1.1rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
}

/* =========================================================================
   10. Отдельная запись / страница
   ========================================================================= */
.entry {
    background-color: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 14px 8px 16px 8px;
    padding: 2.2rem clamp(1.3rem, 4vw, 2.8rem) 2.5rem;
}

.entry-thumb {
    margin: -2.2rem clamp(-1.3rem, -4vw, -2.8rem) 1.8rem;
    overflow: hidden;
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
}

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

.entry-meta {
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 1.6rem;
}

.entry-content {
    font-size: 1.05rem;
}

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.6em;
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-size: 0.92rem;
}

.entry-tags a {
    display: inline-block;
    margin: 0.2rem 0.3rem 0.2rem 0;
    padding: 0.25em 0.8em;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px 6px 14px 6px;
    color: var(--ink-soft);
}

.post-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

/* =========================================================================
   11. Комментарии
   ========================================================================= */
.comments-area {
    margin-top: 2.6rem;
    background-color: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 14px 8px 16px 8px;
    padding: 2rem clamp(1.3rem, 4vw, 2.6rem);
}

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

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

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

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

.comment-inner {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px 6px 14px 6px;
    padding: 1.2rem 1.4rem;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.7rem;
}

.comment-avatar {
    border-radius: 50%;
}

.comment-author {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.08rem;
}

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

.comment-pending {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--ochre);
}

.comment-actions {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.comment-respond {
    margin-top: 1.6rem;
}

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

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

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

/* =========================================================================
   12. Форма поиска
   ========================================================================= */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65em 0.9em;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 9px 4px 10px 4px;
}

.sidebar .search-form .search-field {
    flex-basis: 140px;
}

/* =========================================================================
   13. Пагинация
   ========================================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.6rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 12px 5px 13px 5px;
}

.pagination .page-numbers:hover {
    border-color: var(--bronze);
    color: var(--ochre-deep);
}

.pagination .page-numbers.current {
    color: var(--champagne);
    background: var(--ochre-deep);
    border-color: var(--ochre-deep);
}

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

/* =========================================================================
   14. Главная страница
   ========================================================================= */
.fp-body {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Герой */
.hero {
    position: relative;
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--champagne);
    background-color: #3a2a1c;
    background-image:
        radial-gradient(ellipse at 25% 30%, rgba(161, 74, 39, 0.55), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(43, 39, 34, 0.85), transparent 65%),
        linear-gradient(160deg, #4a3320 0%, #2c2018 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23h)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(85%, 1100px);
    margin-inline: auto;
    padding: 5rem 0;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--linen);
    margin-bottom: 1rem;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.1s both;
}

.hero-title {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--champagne);
    max-width: 18ch;
    margin: 0 0 1.1rem;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.3s both;
}

.hero-lead {
    font-size: 1.18rem;
    max-width: 52ch;
    color: var(--linen);
    margin-bottom: 2rem;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.5s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.7s both;
}

.hero .btn-outline {
    color: var(--champagne);
    border-color: var(--linen);
}

.hero .btn-outline:hover {
    color: var(--ink);
    background: var(--linen);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Тематическая секция */
.fp-section {
    padding: 3.6rem 0;
}

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

.section-head {
    text-align: center;
    margin-bottom: 2.4rem;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.5rem;
}

.section-head h2 {
    margin: 0 0 0.4rem;
}

.section-head p {
    max-width: 58ch;
    margin: 0 auto;
    color: var(--ink-soft);
}

/* Направления — «горшки» с биркой */
.pots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.pot {
    position: relative;
    background-color: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 10px 10px 26px 26px;
    padding: 2.4rem 1.6rem 1.8rem;
    text-align: center;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pots .pot:nth-child(even) {
    transform: translateY(26px);
}

.pot:hover {
    box-shadow: var(--shadow-clay);
}

.pots .pot:nth-child(even):hover {
    transform: translateY(22px);
}

.pot-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
}

.pot-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pot-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    padding: 0.2em 1em;
    margin-bottom: 0.6rem;
    color: var(--ink);
    background: var(--linen);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.pot p {
    font-size: 0.96rem;
    color: var(--ink-soft);
    margin: 0;
}

/* Слайдер «Голоса мастеров» */
.quote-slider {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.slides {
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.slide.is-active {
    position: relative;
    opacity: 1;
}

.slide blockquote,
blockquote.slide {
    margin: 0;
    padding: 0 1rem;
    border: 0;
}

.slide .quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.slide .quote-author {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bronze);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.8rem;
}

.slider-prev,
.slider-next {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    color: var(--ink);
    background: var(--cream-2);
    border: 1px solid var(--bronze);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.slider-prev:hover,
.slider-next:hover {
    color: var(--champagne);
    background: var(--bronze);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    background: var(--linen);
    border: 1px solid var(--bronze);
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots button.is-active {
    background: var(--ochre);
}

/* Блок контактов */
.contact-card {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    background-color: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 18px 8px 20px 8px;
    padding: 2.6rem 2rem;
}

.contact-lines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 2rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 1.2rem 0 1.4rem;
}

.contact-lines a {
    color: var(--ochre-deep);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: var(--linen);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 600;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.social-links a:hover {
    color: var(--champagne);
    background: var(--ochre);
}

/* Этапы обучения */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    counter-reset: step;
}

.step {
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 14px 7px 16px 7px;
    padding: 1.8rem 1.6rem;
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.9rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--champagne);
    background: var(--ochre-deep);
    border-radius: 50% 50% 50% 6px;
}

.step h3 {
    margin-bottom: 0.4rem;
}

.step p {
    font-size: 0.96rem;
    color: var(--ink-soft);
    margin: 0;
}

.fp-posts-foot {
    text-align: center;
    margin-top: 2.4rem;
}

/* =========================================================================
   15. Блок 404
   ========================================================================= */
.error-404 {
    text-align: center;
    padding: 2rem 0 1rem;
}

.error-404 .big {
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 1;
    color: var(--linen);
    margin: 0;
}

.error-404 .search-form {
    max-width: 460px;
    margin: 1.8rem auto;
}

/* =========================================================================
   16. Подвал
   ========================================================================= */
.site-footer {
    color: var(--footer-text);
    background-color: var(--footer-bg);
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.035) 0,
        rgba(255, 255, 255, 0.035) 2px,
        transparent 2px,
        transparent 9px
    );
    border-top: 4px solid var(--ochre-deep);
}

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

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

.footer-col .widget {
    margin: 0;
}

.footer-col .widget-title {
    font-size: 1.2rem;
    color: var(--champagne);
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(227, 214, 188, 0.25);
}

.footer-col,
.footer-col p {
    color: var(--footer-text);
}

.footer-col a {
    color: var(--linen);
}

.footer-col a:hover {
    color: var(--champagne);
}

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

.footer-col li {
    padding: 0.34rem 0;
    border-bottom: 1px dashed rgba(227, 214, 188, 0.18);
}

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

.footer-col .post-date,
.footer-col .rss-date {
    display: block;
    font-size: 0.8rem;
    color: var(--footer-muted);
}

.site-bottom {
    border-top: 1px solid rgba(227, 214, 188, 0.18);
    padding: 1.2rem 0;
    text-align: center;
    font-size: 0.88rem;
    color: var(--footer-muted);
}

/* =========================================================================
   17. Cookie-баннер
   ========================================================================= */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    padding: 1rem 1.4rem;
    color: var(--champagne);
    background-color: rgba(34, 28, 22, 0.97);
    border-top: 2px solid var(--bronze);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 64ch;
}

.cookie-banner a {
    color: var(--linen);
    text-decoration: underline;
}

.cookie-banner .btn {
    padding: 0.55em 1.6em;
    font-size: 0.98rem;
}

/* =========================================================================
   18. Адаптив
   ========================================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

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

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

    .pots .pot:nth-child(even) {
        transform: none;
    }

    .pots .pot:nth-child(even):hover {
        transform: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-nav {
        order: 3;
        width: 100%;
    }

    .main-navigation #primary-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        width: 100%;
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--line);
    }

    .main-navigation #primary-menu.is-open {
        display: flex;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 17px;
        background-image: none;
        background-color: var(--cream);
    }

    .hero::after {
        display: none;
    }

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

    .pots,
    .steps,
    .card-grid,
    .card-grid.cols-2,
    .card-grid.cols-3,
    .footer-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Мобильные кнопки — минималистичные полосы */
    .btn-primary,
    .btn-outline {
        display: block;
        width: 100%;
        border-radius: 999px;
        box-shadow: none;
    }

    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .entry-thumb {
        margin-left: 0;
        margin-right: 0;
    }

    .post-navigation {
        flex-direction: column;
    }
}
