/*
Theme Name: dds_foodddy.ru
Theme URI: https://foodddy.ru/
Author: Анна Соловьёва
Description: Тема для образовательной платформы «Школа правильного питания»: уроки, практические задания и рецепты как методическая база. Лесная зелёная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fdschool
*/

:root {
    --bg: #F4F9F4;
    --bg-alt: #E3F0E3;
    --head: #1B3B2B;
    --foot: #142B1F;
    --aside: #EDF5ED;
    --ink: #1C2E24;
    --accent: #2E8B57;
    --accent-dark: #226B43;
    --accent-2: #A3D9A5;
    --muted: #5A7A62;
    --white: #FFFFFF;
    --radius-btn: 8px;
    --radius-card: 12px;
    --shadow: 0 6px 22px rgba(27, 59, 43, .08);
    --shadow-hover: 0 14px 34px rgba(27, 59, 43, .16);
    --font-head: "Montserrat", "Nunito Sans", "Segoe UI", Arial, sans-serif;
    --font-body: "Open Sans", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='%232E8B57' fill-opacity='0.06'%3E%3Cpath d='M400 410C400 250 300 120 110 70c30 170 120 290 290 340z'/%3E%3Cpath d='M400 410C330 300 240 220 130 180' fill='none' stroke='%232E8B57' stroke-opacity='0.12' stroke-width='3'/%3E%3Cpath d='M300 300c-40-10-70 5-90 30 35 15 70 5 90-30zM240 230c-35-20-65-15-90 5 30 25 65 25 90-5z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(rgba(46, 139, 87, .09) 1.2px, transparent 1.3px);
    background-repeat: no-repeat, repeat;
    background-position: right bottom, 0 0;
    background-size: 420px 420px, 22px 22px;
    background-attachment: fixed, scroll;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.25;
    margin: 1.6em 0 .6em;
    font-weight: 700;
}
h1 { font-size: 3.2rem; margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .25s ease, color .2s ease;
}
a:hover { background-size: 100% 1.5px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent-2);
    outline-offset: 2px;
}

blockquote {
    margin: 1.6em 0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--accent-2);
    background: rgba(163, 217, 165, .15);
    border-radius: 0 8px 8px 0;
}

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid #BFD8C2; }
th, td { border: 1px solid #BFD8C2; padding: .6em .8em; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }

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

.grad-text {
    background: linear-gradient(90deg, #A3D9A5, #5CC48A 55%, #DDF3C4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    padding: .78em 1.4em;
    border-radius: var(--radius-btn);
    border: 2px solid var(--accent);
    cursor: pointer;
    text-align: center;
    background-image: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { background-image: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(34, 107, 67, .25); }
.btn--fill { background-color: var(--accent); color: var(--white); }
.btn--fill:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn--line { background-color: transparent; color: var(--accent); }
.btn--line:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn--ghostlight { background-color: transparent; color: var(--white); border-color: rgba(255, 255, 255, .75); }
.btn--ghostlight:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }

/* ---------- Верхняя полоса и шапка ---------- */
.topline { height: 5px; background: var(--accent); }

.masthead { background: var(--head); color: #E7F2E8; }
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 auto;
    color: #F4F9F4;
    background-image: none;
}
.brand:hover { background-image: none; }
.brand__mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand__mark svg, .brand-logo { width: 52px; height: 52px; display: block; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; min-width: 0; max-width: 620px; }
.brand__name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.3;
    color: #FFFFFF;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand__desc {
    font-size: .8rem;
    line-height: 1.4;
    color: #A9C8B0;
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.navtoggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(163, 217, 165, .5);
    border-radius: var(--radius-btn);
    padding: .5rem .8rem;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-2);
    position: relative;
    content: "";
}
.navtoggle__bars::before { position: absolute; top: -6px; }
.navtoggle__bars::after { position: absolute; top: 6px; }

.mainnav { flex: 0 0 auto; }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.mainnav__list a {
    display: block;
    padding: .55rem .9rem;
    color: #E7F2E8;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    border-radius: var(--radius-btn);
    background-image: none;
}
.mainnav__list a:hover,
.mainnav__list .current-menu-item > a { background-color: rgba(163, 217, 165, .16); color: #FFFFFF; }

/* ---------- Разделители ---------- */
.wave-divider {
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='22' viewBox='0 0 80 22'%3E%3Cpath d='M0 11 Q10 2 20 11 T40 11 T60 11 T80 11' fill='none' stroke='%23A3D9A5' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    margin: 0;
}
.wave-divider--footer { margin-top: 3rem; }
.dash-divider {
    width: min(85%, 1180px);
    margin: 0 auto;
    border-top: 2px dashed rgba(46, 139, 87, .45);
}

/* ---------- Заголовки секций ---------- */
.section-title {
    position: relative;
    font-size: 2.1rem;
    margin: 0 0 1.6rem;
    padding: 0 0 .7rem 2.4rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 1.7rem;
    height: 1.7rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22V12' stroke='%232E8B57' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 13C12 7 15 3 21 2c0 6-3 10-9 11z' fill='%232E8B57'/%3E%3Cpath d='M12 15c0-4-2-7-7-8 0 4 2 7 7 8z' fill='%23A3D9A5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 2.4rem;
    bottom: 0;
    width: 120px;
    height: 2px;
    background: var(--accent);
}
.section-lead { color: var(--muted); max-width: 64ch; margin: -.6rem 0 2rem; }

.entry-content h2, .entry-content h3 { position: relative; padding-left: 1.2rem; }
.entry-content h2::before, .entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: .7rem;
    height: .7rem;
    background: var(--accent);
    border-radius: 0 70% 0 70%;
}

/* ---------- Главная ---------- */
.front-inner { width: 85%; max-width: 1180px; margin: 0 auto; }
.front-section { padding: 4.5rem 0; }
.front-section--alt { background: var(--bg-alt); }
.front-section--latest { background: transparent; }

.hero {
    position: relative;
    overflow: hidden;
    background: var(--head);
    color: #FFFFFF;
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__veil {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(100deg, rgba(20, 43, 31, .92) 0%, rgba(27, 59, 43, .78) 45%, rgba(46, 139, 87, .35) 100%);
}
.hero__inner { position: relative; padding: 5rem 0; }
.hero__kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent-2);
    margin: 0 0 1rem;
    padding-left: 1.6rem;
    position: relative;
}
.hero__kicker::before {
    content: "";
    position: absolute;
    left: 0; top: .35em;
    width: 1rem; height: 1rem;
    background: var(--accent-2);
    border-radius: 0 70% 0 70%;
}
.hero__title { color: #FFFFFF; max-width: 18ch; margin-bottom: 1.2rem; }
.hero__lead { color: #D6EAD8; font-size: 1.15rem; max-width: 58ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.4rem;
}
.step {
    position: relative;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 2.2rem 1.5rem 1.6rem;
    box-shadow: var(--shadow);
}
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem;
    right: -2.4rem;
    width: 2.4rem;
    border-top: 2px dashed var(--accent);
    opacity: .6;
}
.step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.step__title { margin: 0 0 .5rem; font-size: 1.12rem; }
.step p { margin: 0; font-size: .96rem; color: #33483B; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-more { margin-top: 2.2rem; text-align: center; }
.empty-note { color: var(--muted); }

.front-section--quote {
    background: linear-gradient(135deg, #1B3B2B 0%, #1F4A33 60%, #245A3C 100%);
    color: #FFFFFF;
}
.bigquote {
    margin: 0;
    padding: 1.2rem 0 1.2rem 2.2rem;
    border-left: 5px solid var(--accent-2);
    background: none;
    border-radius: 0;
}
.bigquote p {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 2.1rem;
    line-height: 1.35;
    color: #FFFFFF;
    margin: 0 0 1.2rem;
    max-width: 30ch;
}
.bigquote cite { font-style: normal; color: var(--accent-2); font-size: 1rem; }

.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
    min-width: 0;
    padding: .6rem 1.6rem;
    border-left: 1px solid #C4DEC6;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--accent);
}
.stat__label { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* ---------- Карточки ---------- */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--shadow-hover); }
.card-thumb { overflow: hidden; }
.card-thumb a { display: block; background-image: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.chip {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 20px;
    background: rgba(163, 217, 165, .45);
    color: #1F5A38;
    font-size: .78rem;
    font-weight: 600;
    background-image: none;
}
.chip:hover { background-color: var(--accent-2); background-image: none; color: #143D26; }
.card-title { font-size: 1.18rem; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: .95rem; color: #3A4F42; margin-bottom: 1.1rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; padding: .55em 1.1em; font-size: .88rem; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 1rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.8rem; overflow-wrap: anywhere; }
.crumbs .sep { color: var(--accent-2); margin: 0 .25rem; }
.crumbs span:last-child { color: var(--ink); }

.layout-with-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
}
.layout-with-sidebar .content-area { flex: 0 0 67%; min-width: 0; }
.layout-with-sidebar .sidebar { flex: 0 0 27%; min-width: 0; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }

.page-head { margin-bottom: 2rem; }
.page-head__title { font-size: 2.6rem; margin-bottom: .5rem; }
.page-head__lead { color: var(--muted); max-width: 62ch; }

.entry {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 2.4rem 2.6rem;
}
.entry-title { font-size: 2.5rem; margin-bottom: .6rem; overflow-wrap: anywhere; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; border-radius: 10px; }
.entry-content { overflow-wrap: break-word; }
.entry-content img { border-radius: 8px; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content pre { overflow-x: auto; background: var(--bg-alt); padding: 1rem; border-radius: 8px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 2px dashed rgba(46, 139, 87, .35); }

.empty-block { background: var(--white); border-radius: var(--radius-card); padding: 2rem 2.2rem; box-shadow: var(--shadow); }

.notfound { text-align: center; padding: 2rem 0 3rem; }
.notfound__code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 7rem;
    line-height: 1;
    margin: 0 0 .5rem;
    background: linear-gradient(90deg, #2E8B57, #A3D9A5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.notfound .searchbox { max-width: 520px; margin: 1.5rem auto; }
.notfound__home { margin-top: 1.5rem; }

/* ---------- Поиск ---------- */
.searchbox { display: flex; gap: .5rem; }
.searchbox__field {
    flex: 1;
    min-width: 0;
    padding: .72rem .9rem;
    border: 2px solid #C4DEC6;
    border-radius: var(--radius-btn);
    font: inherit;
    font-size: .95rem;
    background: var(--white);
    color: var(--ink);
}
.searchbox__field:focus { border-color: var(--accent); outline: none; }
.searchbox__btn { flex: 0 0 auto; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 2.6rem 0 1rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    border-radius: var(--radius-btn);
    border: 2px solid rgba(46, 139, 87, .35);
    background: var(--white);
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    background-image: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager a.page-numbers:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 .3rem; color: var(--muted); }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--aside);
    border-radius: var(--radius-card);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    color: var(--ink);
    border-bottom: 2px dashed rgba(46, 139, 87, .45);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px solid #D3E6D4; line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #1F5A38; font-weight: 600; }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; margin-top: .15rem; }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Подвал ---------- */
.sitefoot { background: var(--foot); color: #C9DECD; padding: 3.5rem 0 0; }
.sitefoot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.sitefoot__col { min-width: 0; }
.sitefoot .widget { margin-bottom: 1.5rem; }
.sitefoot .widget-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-left: 1.3rem;
    position: relative;
}
.sitefoot .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: .35em;
    width: .75rem; height: .75rem;
    background: var(--accent-2);
    border-radius: 0 70% 0 70%;
}
.sitefoot p, .sitefoot .textwidget { color: #C9DECD; font-size: .95rem; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { padding: .3rem 0; }
.sitefoot a { color: var(--accent-2); }
.sitefoot a:hover { color: #FFFFFF; }
.sitefoot .post-date { color: #8FB39A; font-size: .8rem; display: block; }
.sitefoot__bottom {
    margin-top: 2rem;
    padding: 1.3rem 0 1.6rem;
    border-top: 1px dashed rgba(163, 217, 165, .3);
    font-size: .86rem;
    color: #8FB39A;
}
.sitefoot__bottom p { margin: 0; color: #8FB39A; }

/* ---------- Комментарии ---------- */
.comments {
    margin-top: 2.2rem;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 2rem 2.4rem;
}
.comments__title { margin-top: 0; font-size: 1.5rem; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { padding-left: 1.6rem; border-left: 2px solid var(--accent-2); }
.comments__list .comment-body { padding: 1rem 0; border-bottom: 1px solid #DDEBDE; }
.comments__list .avatar { border-radius: 50%; float: left; margin-right: .8rem; }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .92rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 2px solid #C4DEC6;
    border-radius: var(--radius-btn);
    font: inherit;
    background: var(--bg);
}
.comment-form .form-submit .btn { border: 2px solid var(--accent); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    background: var(--head);
    color: #E7F2E8;
    border-radius: var(--radius-card);
    border-left: 5px solid var(--accent-2);
    box-shadow: 0 16px 40px rgba(20, 43, 31, .35);
}
.cookie-banner__text { margin: 0; font-size: .92rem; line-height: 1.5; color: #E7F2E8; }
.cookie-banner__btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .brand__desc { display: none; }
    .navtoggle { display: inline-flex; }
    .masthead__row { flex-wrap: wrap; }
    .mainnav { flex: 1 0 100%; display: none; }
    .mainnav.is-open { display: block; }
    .mainnav__list { flex-direction: column; padding: .5rem 0 .3rem; border-top: 1px solid rgba(163, 217, 165, .2); }
    .front-inner { width: 90%; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:not(:last-child)::after { display: none; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.5rem; }
    .layout-single .content-area { width: 100%; }
    .sitefoot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bigquote p { font-size: 1.7rem; }
    body { background-size: 260px 260px, 22px 22px; background-attachment: scroll, scroll; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.6rem; }
    .hero { min-height: 480px; }
    .hero__inner { padding: 3.5rem 0; }
    .hero__lead { font-size: 1rem; }
    .front-section { padding: 3rem 0; }
    .steps { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .step { padding: 1.6rem 1.3rem 1.4rem; }
    .card-grid, .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: minmax(0, 1fr); row-gap: 1.4rem; }
    .stat { border-left: 0; padding: 0 0 1.2rem; border-bottom: 1px solid #C4DEC6; }
    .stat:last-child { border-bottom: 0; }
    .bigquote { padding: 1rem 0 1rem 1.3rem; }
    .bigquote p { font-size: 1.35rem; }
    .entry { padding: 1.5rem 1.3rem; }
    .entry-title, .page-head__title { font-size: 1.8rem; }
    .comments { padding: 1.5rem 1.3rem; }
    .empty-block { padding: 1.5rem 1.3rem; }
    .sidebar { padding: 1.4rem 1.3rem; }
    .sitefoot__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .searchbox { flex-direction: column; }
    .brand__mark svg, .brand-logo { width: 44px; height: 44px; }
    .brand__name { font-size: .88rem; }
}
