/*
Theme Name: dds_zltstudio.ru
Author: Анна Соколова
Description: Тема для информационного сайта трихологического центра ZLT Studio. Японский минимализм, хвойно-мятная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: zlthair
*/

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

:root {
    --bg:        #F4F7F2;
    --bg-alt:    #E8EFE4;
    --bg-head:   #1B3A2D;
    --bg-foot:   #142A20;
    --bg-side:   #EDF3EA;
    --ink:       #1E2B24;
    --accent:    #4A9B7A;
    --gold:      #C4A35A;
    --muted:     #7A8F82;
    --line:      #D3E0D0;
    --font-head: "Noto Sans JP", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Source Sans 3", "Work Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--bg-alt) 0, var(--bg-alt) 1px, transparent 1px, transparent 24px);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0 0 1rem;
}

h1 { font-size: 3.2rem; letter-spacing: 0.04em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }

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

.home .shell,
.home .dotline { width: min(85%, 1180px); }

.page-main { display: block; position: relative; z-index: 1; }

.empty { color: var(--muted); }

/* ==================================================================
   2. Декоративная верхняя полоса и лист
   ================================================================== */

.edge-line {
    height: 4px;
    background: linear-gradient(to right,
        var(--gold) 0, var(--gold) 20%,
        transparent 20%, transparent 27%,
        var(--gold) 27%, var(--gold) 100%);
}

.leaf-mark {
    position: fixed;
    right: 2%;
    bottom: 3%;
    width: 220px;
    height: 220px;
    fill: var(--accent);
    opacity: 0.06;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
}

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

.top {
    background: var(--bg-head);
    color: #F4F7F2;
    padding: 1.8rem 0;
    position: relative;
    z-index: 2;
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem;
}

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

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

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

.brand-mark { display: block; width: 56px; height: 56px; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: #F4F7F2;
    max-width: 62ch;
}

.brand-tag {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #A8C0B0;
    max-width: 68ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid #3C6B52;
    border-radius: 2px;
    color: #F4F7F2;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 5px 0 var(--gold), 0 -5px 0 var(--gold);
}

.primary { flex: 0 0 auto; margin-left: auto; padding-top: 0.4rem; }

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

.primary-list li { margin: 0; position: relative; }

.primary-list a {
    display: inline-block;
    position: relative;
    color: #E4EEE7;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    padding-bottom: 3px;
}

.primary-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.primary-list a:hover::after,
.primary-list .current-menu-item > a::after { transform: scaleX(1); }

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

/* ==================================================================
   4. Кнопки и ссылки
   ================================================================== */

.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0.75rem 2.25rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn-solid { background: var(--accent); color: #F4F7F2; }
.btn-solid:hover { background: var(--bg-head); color: #F4F7F2; transform: translateX(2px); }

.btn-gold { background: var(--gold); color: var(--bg-head); }
.btn-gold:hover { background: #F4F7F2; color: var(--bg-head); transform: translateX(2px); }

.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #F4F7F2; transform: translateX(2px); }

.entry a,
.card-excerpt a,
.link-arrow {
    position: relative;
    color: var(--accent);
}

.entry a::after,
.card-excerpt a::after,
.link-arrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.entry a:hover::after,
.card-excerpt a:hover::after,
.link-arrow:hover::after { transform: scaleX(1); }

.link-arrow { font-family: var(--font-head); font-size: 0.92rem; letter-spacing: 0.06em; }
.link-arrow::before { content: "— "; color: var(--gold); }

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

.band { padding: 6rem 0; position: relative; }
.band-alt { background: var(--bg-alt); }

.sec-title {
    position: relative;
    margin-left: 3.6rem;
    margin-bottom: 2.6rem;
    font-size: 1.9rem;
    letter-spacing: 0.05em;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: -3.6rem;
    top: 0.62em;
    width: 2.4rem;
    height: 1px;
    background: var(--gold);
}

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

.dotline::before {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--gold) 0, var(--gold) 2px, transparent 2px, transparent 8px);
}

/* Hero */

.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: #1B3A2D;
    opacity: 0.7;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.hero-kicker {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
}

.hero-title {
    color: #F4F7F2;
    max-width: 18ch;
    margin-bottom: 1.6rem;
}

.hero-sub {
    color: #D6E4DA;
    max-width: 56ch;
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
}

.hero-act { margin: 0; }

.hero-dot {
    position: absolute;
    left: 0;
    bottom: 1.2rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    display: block;
}

/* Статистика */

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

.fact {
    min-width: 0;
    padding: 0.6rem 2rem;
    border-left: 1px solid var(--gold);
}

.fact:first-child { border-left: none; padding-left: 0; }

.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--bg-head);
    margin-bottom: 0.8rem;
}

.fact-cap {
    display: block;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
    max-width: 30ch;
}

/* Шаги */

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 2.2rem;
    padding: 2.2rem 0;
    margin: 0;
    background-image: repeating-linear-gradient(to right, var(--gold) 0, var(--gold) 2px, transparent 2px, transparent 8px);
    background-size: 120px 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.step:last-child { background-image: none; }

.step-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--gold);
    width: 4.5rem;
}

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

.step-title { margin-bottom: 0.6rem; }

.step-body p { margin: 0; max-width: 72ch; color: #2C3B33; }

/* Лента записей на главной */

.feed-more { margin: 2.8rem 0 0; }

/* CTA */

.cta-band { padding: 6rem 0; }

.cta {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-head);
    background-image: repeating-linear-gradient(45deg, rgba(42, 77, 60, 0.3) 0, rgba(42, 77, 60, 0.3) 2px, transparent 2px, transparent 20px);
    color: #F4F7F2;
    padding: 3.2rem 2.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-text { min-width: 0; flex: 1 1 460px; }

.cta-title { color: #F4F7F2; font-size: 1.75rem; margin-bottom: 0.9rem; max-width: 30ch; }

.cta-sub { color: #C8DACF; margin: 0; max-width: 52ch; }

.cta-act { margin: 0; position: relative; z-index: 1; }

.cta .leaf-mark {
    position: absolute;
    right: -30px;
    top: -40px;
    bottom: auto;
    width: 240px;
    height: 240px;
    opacity: 0.08;
}

/* ==================================================================
   6. Раскладки внутренних страниц
   ================================================================== */

.page-wrap { padding: 3rem 0 5rem; position: relative; z-index: 1; }

.layout-single { display: block; }

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

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

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

.trail {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

.trail a { color: var(--muted); }
.trail a:hover { color: var(--accent); }
.trail .sep { padding: 0 0.35rem; color: var(--gold); }

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

.page-title { font-size: 2.6rem; margin-bottom: 0.8rem; }

.page-lead { color: var(--muted); max-width: 70ch; margin: 0; }

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #FBFDFA;
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card:hover::before { opacity: 1; }

.card-thumb {
    width: 60%;
    min-width: 0;
    overflow: hidden;
}

.card-thumb a { display: block; }

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

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.6rem 1.6rem 1.8rem;
}

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

.card-title { font-size: 1.22rem; line-height: 1.35; margin-bottom: 0.8rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt { font-size: 0.97rem; color: #3A4A40; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin: 1.1rem 0 0; }

/* Теги рубрик */

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }

.tag-chip {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--bg-head);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.75rem;
    border-radius: 2px;
    transition: background-color 0.25s ease;
}

.tag-chip:hover { background: var(--gold); color: var(--bg-head); }

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

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

.single-title { font-size: 2.5rem; margin-bottom: 0.9rem; }

.single-meta { font-size: 0.86rem; letter-spacing: 0.08em; color: var(--muted); }

.single-thumb { margin: 0 0 2.2rem; }
.single-thumb img { display: block; width: 100%; height: auto; }

.entry { font-size: 1.03rem; }

.entry h2 {
    position: relative;
    margin-top: 2.6rem;
    padding-left: 1.2rem;
}

.entry h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.entry h3 { margin-top: 2rem; }

.entry img { display: block; height: auto; }

.entry blockquote {
    margin: 2rem 0;
    padding: 1.8rem 2rem;
    background-color: var(--bg-head);
    background-image: repeating-linear-gradient(45deg, rgba(42, 77, 60, 0.3) 0, rgba(42, 77, 60, 0.3) 2px, transparent 2px, transparent 20px);
    color: #F4F7F2;
    border-radius: 0;
}

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

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

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

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

.entry pre {
    overflow-x: auto;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-radius: 0;
}

.entry code { font-size: 0.92em; }

.post-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
    margin-top: 3rem;
}

.switch-item {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
    padding: 1.2rem 1.4rem;
    color: var(--ink);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.switch-item span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.switch-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.switch-next { text-align: right; }

/* ==================================================================
   9. Комментарии и формы
   ================================================================== */

.talk { margin-top: 3.5rem; }

.talk-title { font-size: 1.5rem; margin-bottom: 1.6rem; }

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

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

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

.comment-inner {
    border: 1px solid var(--line);
    padding: 1.3rem 1.5rem;
    background: #FBFDFA;
}

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

.comment-author { font-family: var(--font-head); letter-spacing: 0.03em; }

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

.comment-wait { color: var(--gold); font-size: 0.9rem; }

.comment-actions { font-size: 0.9rem; }
.comment-actions a { color: var(--accent); }

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

.comment-reply-title { font-size: 1.3rem; }

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

.comment-form label {
    display: block;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    color: var(--muted);
}

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

.comment-form input:focus,
.comment-form textarea:focus,
.seek-input:focus { outline: none; border-color: var(--accent); }

.comment-form .submit,
.comment-form input[type="submit"] {
    background: var(--accent);
    color: #F4F7F2;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 0.75rem 2.25rem;
    font-family: var(--font-head);
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover { background: var(--bg-head); transform: translateX(2px); }

.seek { margin-bottom: 1.4rem; }

.seek-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.seek-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.seek-row .seek-input { flex: 1 1 180px; min-width: 0; }
.seek-btn { flex: 0 0 auto; padding: 0.65rem 1.4rem; }

.e404-tools { max-width: 620px; }

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    padding: 1.8rem 1.6rem;
    color: var(--ink);
}

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

.sidebar .widget-title {
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: var(--bg-head);
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

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

.sidebar li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #DCE7D8;
}

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

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

.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }

.sidebar p { color: #2C3B33; font-size: 0.96rem; }

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

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

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

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

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

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

.comments-pagination { margin: 1.5rem 0; }
.comments-pagination .page-numbers { margin-right: 0.4rem; color: var(--accent); }

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

.bottom {
    position: relative;
    background: var(--bg-foot);
    color: #C8DACF;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    z-index: 1;
}

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

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

.bottom .widget { margin-bottom: 1.6rem; }

.bottom .widget-title {
    position: relative;
    font-size: 1.02rem;
    letter-spacing: 0.08em;
    color: #F4F7F2;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.bottom .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--gold);
}

.bottom p { color: #B9CFC2; font-size: 0.95rem; }

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

.bottom li { margin-bottom: 0.6rem; }

.bottom a { color: #D6E4DA; }
.bottom a:hover { color: var(--gold); }

.bottom .post-date { display: block; font-size: 0.8rem; color: #8FA89A; }

.rights {
    margin: 3rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid #23402F;
    font-size: 0.85rem;
    color: #8FA89A;
}

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

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: var(--bg-head);
    color: #E4EEE7;
    padding: 1.1rem 2rem;
    border-top: 2px solid var(--gold);
}

.cookie-text { margin: 0; font-size: 0.92rem; max-width: 80ch; min-width: 0; }

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

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

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

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

    .primary { flex: 1 1 100%; margin-left: 0; padding-top: 0; }

    .primary:not(.is-open) .primary-list { display: none; }

    .primary.is-open .primary-list {
        display: block;
        padding-top: 0.6rem;
        border-top: 1px solid #2C543F;
    }

    .primary-list li { margin-bottom: 0.7rem; }

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

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

    .band, .cta-band { padding: 4rem 0; }

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

    .leaf-mark { width: 150px; height: 150px; }
}

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

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.5rem; }

    .top { padding: 1.4rem 0; }

    .hero { min-height: 440px; }
    .hero-inner { padding: 3.5rem 0; }
    .hero-title { max-width: none; }

    .sec-title { margin-left: 0; margin-bottom: 1.8rem; }
    .sec-title::before { position: static; display: block; margin-bottom: 0.7rem; width: 2.4rem; }

    .band, .cta-band { padding: 3.2rem 0; }

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

    .fact {
        border-left: none;
        border-top: 1px solid var(--gold);
        padding: 1.2rem 0 0;
        margin-top: 1.2rem;
    }

    .fact:first-child { border-top: none; margin-top: 0; padding-top: 0; }

    .fact-num { font-size: 2.4rem; }

    .step { flex-direction: column; gap: 0.8rem; }
    .step-num { width: auto; font-size: 2.1rem; }

    .cta { padding: 2rem 1.4rem; }
    .cta-title { font-size: 1.4rem; }
    .cta .leaf-mark { width: 160px; height: 160px; }

    .card-thumb { width: 100%; }

    .card-body { padding: 1.3rem 1.2rem 1.5rem; }

    .page-title { font-size: 1.95rem; }
    .single-title { font-size: 1.85rem; }

    .page-wrap { padding: 2rem 0 3.5rem; }

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

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

    .switch-next { text-align: left; }

    .leaf-mark { display: none; }
    .cta .leaf-mark { display: block; }
}
