/* =========================================================
   HerVibeHub Modern — design system (SPEC.md v2.0.0)
   Light theme default, dark via html[data-theme="dark"].
   ========================================================= */

/* ---------------------------------------------------------
   1. Tokens
   ------------------------------------------------------- */
:root {
        --bg: #FBF8F4;
        --surface: #FFFFFF;
        --surface-2: #F5EFE8;
        --text: #2E2A27;
        --text-muted: #7A716A;
        --border: #ECE4DB;

        --accent: #C2527B;
        --accent-hover: #A93D64;
        --accent-soft: #F9E8EF;
        --accent-2: #7D9471;
        --accent-2-soft: #EBF1E8;
        --gold: #D9A441;
        --grad-hero: linear-gradient(135deg, #C2527B 0%, #D9A441 100%);

        --shadow-sm: 0 2px 10px rgba(46, 42, 39, .06);
        --shadow-md: 0 10px 30px rgba(46, 42, 39, .08);
        --shadow-lg: 0 16px 40px rgba(46, 42, 39, .14);

        --radius-card: 20px;
        --radius-btn: 14px;
        --radius-input: 14px;
        --radius-chip: 999px;

        --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
        --font-sans: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

        --header-h: 68px;
        --container: 1200px;
        --prose-w: 720px;
}

html[data-theme="dark"] {
        --bg: #171412;
        --surface: #201C19;
        --surface-2: #2A2420;
        --text: #F3EDE7;
        --text-muted: #A79C93;
        --border: #332C27;

        --accent: #E77FA5;
        --accent-hover: #F093B4;
        --accent-soft: #3A2430;
        --accent-2: #9DB48F;
        --accent-2-soft: #26301F;
        --gold: #E5B85C;

        --shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
        --shadow-md: 0 10px 30px rgba(0, 0, 0, .3);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------
   2. Base
   ------------------------------------------------------- */
*,
*::before,
*::after {
        box-sizing: border-box;
}

html {
        -webkit-text-size-adjust: 100%;
        scroll-behavior: smooth;
        /* 2.0.16: страховка от горизонтального разъезда страницы.
           clip (не hidden!) не создаёт scroll-контейнер — sticky-шапка не ломается.
           Старые браузеры просто проигнорируют. */
        overflow-x: clip;
}

body {
        margin: 0;
        background: var(--bg);
        color: var(--text);
        font-family: var(--font-sans);
        font-size: 17px;
        line-height: 1.7;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        transition: background .25s ease, color .25s ease;
        overflow-x: clip; /* 2.0.16: см. комментарий у html */
}

img,
svg,
video,
iframe {
        max-width: 100%;
        height: auto;
}

img {
        border: 0;
}

a {
        color: var(--accent);
        text-decoration: none;
        transition: color .18s ease, background .18s ease, border-color .18s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
        font-family: var(--font-serif);
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 .5em;
        color: var(--text);
}

h1 {
        font-size: clamp(2.1rem, 4.5vw, 3.3rem);
}

h2 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
        font-size: 1.35rem;
}

p {
        margin: 0 0 1.25em;
}

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

::selection {
        background: var(--accent-soft);
        color: var(--accent-hover);
}

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

html {
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
}

/* ---------------------------------------------------------
   3. Utilities
   ------------------------------------------------------- */
.hvh-container {
        width: 100%;
        max-width: var(--container);
        margin: 0 auto;
        padding: 0 24px;
}

.sr-only {
        position: absolute !important;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
}

.hvh-skip-link {
        position: absolute;
        left: -9999px;
        top: 0;
        z-index: 1000;
        background: var(--accent);
        color: #fff;
        padding: 10px 18px;
        border-radius: 0 0 var(--radius-btn) 0;
        font-weight: 600;
}

.hvh-skip-link:focus {
        left: 0;
        color: #fff;
}

.hvh-eyebrow {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--accent);
        margin: 0 0 14px;
}

/* Reveal-on-scroll (enabled only when JS is present) */
html.hvh-js .hvh-reveal {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .55s ease, transform .55s ease;
}

html.hvh-js .hvh-reveal.is-visible {
        opacity: 1;
        transform: none;
}

/* ---------------------------------------------------------
   4. Buttons, chips, inputs
   ------------------------------------------------------- */
.hvh-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 12px 26px;
        border-radius: var(--radius-btn);
        border: 1px solid transparent;
        font-family: var(--font-sans);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        cursor: pointer;
        transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.hvh-btn--primary {
        background: var(--accent);
        color: #fff;
}

.hvh-btn--primary:hover {
        background: var(--accent-hover);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
}

.hvh-btn--secondary {
        background: transparent;
        border-color: var(--border);
        color: var(--text);
}

.hvh-btn--secondary:hover {
        background: var(--surface-2);
        color: var(--text);
        transform: translateY(-2px);
}

.hvh-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
}

.hvh-input {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        background: var(--surface);
        color: var(--text);
        font-family: var(--font-sans);
        font-size: 15px;
        transition: border-color .18s ease, box-shadow .18s ease;
}

.hvh-input::placeholder {
        color: var(--text-muted);
}

.hvh-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-soft);
}

.hvh-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 14px;
        border-radius: var(--radius-chip);
        background: var(--accent-soft);
        color: var(--accent-hover);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
}

.hvh-chip:hover {
        background: var(--accent);
        color: #fff;
}

html[data-theme="dark"] .hvh-chip:hover {
        color: var(--bg);
}

.hvh-chip__emoji {
        font-size: 14px;
        line-height: 1;
}

.hvh-chip--photo {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 2;
        background: rgba(255, 255, 255, .82);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        color: #7a3d55;
}

html[data-theme="dark"] .hvh-chip--photo {
        background: rgba(23, 20, 18, .72);
        color: var(--accent);
}

/* ---------------------------------------------------------
   5. Header
   ------------------------------------------------------- */
.hvh-page {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
}

.hvh-main {
        flex: 1 0 auto;
        outline: none;
}

.hvh-header {
        position: sticky;
        top: 0;
        z-index: 120;
        background: color-mix(in srgb, var(--bg) 78%, transparent);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        transition: box-shadow .2s ease, background .25s ease;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
        .hvh-header {
                background: rgba(251, 248, 244, .85);
        }

        html[data-theme="dark"] .hvh-header {
                background: rgba(23, 20, 18, .85);
        }
}

.hvh-header.is-scrolled {
        box-shadow: var(--shadow-sm);
}

.hvh-header__inner {
        max-width: var(--container);
        margin: 0 auto;
        padding: 0 24px;
        min-height: var(--header-h);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
}

/* 2.0.16: бренд сжимается, кнопки (поиск/тема/бургер) — никогда */
.hvh-header__brand {
        min-width: 0;
}

.hvh-header__actions {
        flex: 0 0 auto;
}

.hvh-logo {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        color: var(--text);
        /* 2.0.16: длинное имя сайта (например «HerVibeHub — красота, здоровье,
           развитие») больше не раздувает шапку/футер — flex-элементы сжимаются */
        max-width: 100%;
        min-width: 0;
}

.hvh-logo:hover {
        color: var(--text);
}

.hvh-logo__star {
        color: var(--accent);
        font-size: 1.1em;
        transform: translateY(1px);
}

.hvh-logo__text {
        font-family: var(--font-serif);
        font-size: 24px;
        font-weight: 700;
        letter-spacing: .01em;
        white-space: nowrap;
        /* 2.0.16: усечение с «…» вместо разъезда за экран */
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
}

.hvh-header .widget,
.custom-logo-link {
        line-height: 0;
}

.custom-logo {
        max-height: 44px;
        width: auto;
}

.hvh-nav__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 6px;
}

.hvh-nav__link {
        display: inline-block;
        padding: 8px 14px;
        border-radius: var(--radius-chip);
        color: var(--text-muted);
        font-size: 15px;
        font-weight: 600;
}

.hvh-nav__link:hover,
.hvh-nav__item.current-menu-item > .hvh-nav__link,
.hvh-nav__item.current_page_item > .hvh-nav__link {
        color: var(--accent);
        background: var(--accent-soft);
}

/* ---------- Выпадающее подменю (пункт «Калькуляторы», 2.0.8) ---------- */
.hvh-nav__item {
        position: relative;
}

.hvh-nav__item.menu-item-has-children > .hvh-nav__link::after {
        content: '▾';
        display: inline-block;
        margin-left: 6px;
        font-size: 11px;
        opacity: .65;
        transform: translateY(-1px);
}

.hvh-nav__item > .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 140;
        min-width: 280px;
        margin: 0;
        padding: 8px;
        list-style: none;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.hvh-nav__item:hover > .sub-menu,
.hvh-nav__item:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
}

.hvh-nav__item > .sub-menu .hvh-nav__item {
        position: static;
}

.hvh-nav__item > .sub-menu .hvh-nav__link {
        display: block;
        padding: 10px 12px;
        border-radius: var(--radius-btn);
        white-space: nowrap;
        font-size: 14.5px;
}

.hvh-nav__item > .sub-menu .hvh-nav__link:hover {
        background: var(--accent-soft);
        color: var(--accent);
}

.hvh-header__actions {
        display: flex;
        align-items: center;
        gap: 6px;
}

.hvh-iconbtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid transparent;
        border-radius: var(--radius-chip);
        background: transparent;
        color: var(--text);
        font-size: 16px;
        cursor: pointer;
        transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.hvh-iconbtn:hover {
        background: var(--surface-2);
        color: var(--accent);
}

.hvh-icon {
        width: 20px;
        height: 20px;
        display: block;
}

/* Theme toggle: show moon in light, sun in dark */
.hvh-theme-toggle__sun {
        display: none;
}

html[data-theme="dark"] .hvh-theme-toggle__sun {
        display: block;
}

html[data-theme="dark"] .hvh-theme-toggle__moon {
        display: none;
}

/* Burger */
.hvh-burger {
        flex-direction: column;
        gap: 5px;
}

.hvh-burger__line {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease;
}

.hvh-burger[aria-expanded="true"] .hvh-burger__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
}

.hvh-burger[aria-expanded="true"] .hvh-burger__line:nth-child(2) {
        opacity: 0;
}

.hvh-burger[aria-expanded="true"] .hvh-burger__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
}

/* Mobile panel */
.hvh-mobile__backdrop,
.hvh-search__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(46, 42, 39, .4);
        z-index: 129;
        opacity: 0;
        transition: opacity .25s ease;
}

.hvh-mobile.is-open .hvh-mobile__backdrop {
        opacity: 1;
}

.hvh-mobile__panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 130;
        width: min(360px, 88vw);
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        padding: 18px 22px 28px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .28s ease;
}

.hvh-mobile.is-open .hvh-mobile__panel {
        transform: translateX(0);
}

.hvh-mobile__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 18px;
}

.hvh-mobile__brand {
        font-family: var(--font-serif);
        font-size: 22px;
        font-weight: 700;
        /* 2.0.16: длинное имя сайта не выталкивает кнопку «✕» из панели */
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

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

.hvh-mobile__list .hvh-nav__item {
        border-bottom: 1px solid var(--border);
}

.hvh-mobile__list .hvh-nav__link {
        display: block;
        padding: 14px 4px;
        border-radius: 0;
        font-size: 17px;
        background: none;
        color: var(--text);
}

.hvh-mobile__list .hvh-nav__link:hover {
        color: var(--accent);
}

/* Если в назначенном меню появятся подпункты — в мобильной панели
   показываем их простым отступом (без position:absolute выпадашки) */
.hvh-mobile__list .sub-menu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 8px 16px;
        list-style: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
}

.hvh-mobile__list .sub-menu .hvh-nav__link {
        padding: 10px 4px;
        font-size: 15.5px;
        color: var(--text-muted);
}

.hvh-mobile__list .menu-item-has-children > .hvh-nav__link::after {
        content: none;
}

.hvh-mobile__tagline {
        margin-top: auto;
        padding-top: 22px;
        color: var(--text-muted);
        font-size: 13px;
        line-height: 1.6;
}

/* ---------------------------------------------------------
   6. Search overlay
   ------------------------------------------------------- */
.hvh-search__panel {
        position: fixed;
        inset: 0;
        z-index: 130;
        background: color-mix(in srgb, var(--bg) 92%, transparent);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        padding: 12vh 24px 24px;
        overflow-y: auto;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
        .hvh-search__panel {
                background: rgba(251, 248, 244, .95);
        }

        html[data-theme="dark"] .hvh-search__panel {
                background: rgba(23, 20, 18, .96);
        }
}

.hvh-search__close {
        position: absolute;
        top: 22px;
        right: 22px;
        font-size: 20px;
}

.hvh-search__form {
        max-width: 640px;
        margin: 0 auto;
}

.hvh-search__label {
        display: block;
        font-family: var(--font-serif);
        font-size: clamp(1.4rem, 3vw, 2rem);
        font-weight: 700;
        margin-bottom: 18px;
        color: var(--text);
}

.hvh-search__row {
        display: flex;
        gap: 12px;
}

.hvh-search__input {
        flex: 1;
}

.hvh-search__results {
        max-width: 640px;
        margin: 26px auto 0;
}

.hvh-search__status {
        color: var(--text-muted);
        font-size: 14px;
        margin: 0 0 10px;
}

.hvh-search__list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 52vh;
        overflow-y: auto;
        border-radius: var(--radius-card);
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
}

.hvh-search__list::-webkit-scrollbar {
        width: 8px;
}

.hvh-search__list::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 8px;
}

.hvh-search__item {
        border-bottom: 1px solid var(--border);
}

.hvh-search__item:last-child {
        border-bottom: 0;
}

.hvh-search__item a {
        display: block;
        padding: 14px 16px;
        color: var(--text);
        border-radius: 14px;
}

.hvh-search__item a:hover {
        background: var(--surface-2);
        color: var(--accent-hover);
}

.hvh-search__type {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .1em;
        color: var(--accent);
        margin-right: 10px;
}

.hvh-search__title {
        font-weight: 600;
}

/* ---------------------------------------------------------
   7. Reading progress
   ------------------------------------------------------- */
.hvh-progress {
        position: fixed;
        top: var(--hvh-progress-top, var(--header-h));
        left: 0;
        right: 0;
        height: 3px;
        z-index: 125;
        background: transparent;
        pointer-events: none;
}

.hvh-progress__bar {
        display: block;
        height: 100%;
        width: 0;
        background: var(--grad-hero);
        border-radius: 0 3px 3px 0;
        transition: width .08s linear;
}

/* ---------------------------------------------------------
   8. Hero (front page)
   ------------------------------------------------------- */
.hvh-hero {
        padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 96px);
        background: var(--bg);
}

.hvh-hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: clamp(32px, 5vw, 72px);
        align-items: center;
}

.hvh-hero__title {
        margin-bottom: 18px;
}

.hvh-hero__accent {
        color: var(--accent);
        text-decoration: underline wavy var(--gold);
        text-decoration-thickness: 3px;
        text-underline-offset: 10px;
}

.hvh-hero__subtitle {
        max-width: 52ch;
        color: var(--text-muted);
        font-size: 18px;
        margin-bottom: 28px;
}

.hvh-hero__cta {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 34px;
}

.hvh-stats {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: clamp(20px, 4vw, 44px);
        margin: 0;
        padding: 0;
}

.hvh-stats__item {
        display: flex;
        flex-direction: column;
}

.hvh-stats__value {
        font-family: var(--font-serif);
        font-size: clamp(1.5rem, 2.6vw, 2rem);
        font-weight: 700;
        color: var(--text);
        line-height: 1.1;
}

.hvh-stats__label {
        font-size: 14px;
        color: var(--text-muted);
}

.hvh-hero__visual {
        position: relative;
        padding: 12px;
}

.hvh-hero__blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(52px);
        opacity: .8;
        pointer-events: none;
}

.hvh-hero__blob--1 {
        width: 340px;
        height: 340px;
        background: var(--accent-soft);
        top: -34px;
        right: -30px;
}

.hvh-hero__blob--2 {
        width: 260px;
        height: 260px;
        background: var(--accent-2-soft);
        bottom: -20px;
        left: -20px;
        opacity: .7;
}

.hvh-hero__card {
        position: relative;
        display: block;
        border-radius: var(--radius-card);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        background: var(--surface);
        transition: transform .25s ease, box-shadow .25s ease;
}

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

.hvh-hero__card .hvh-thumb {
        border-radius: 0;
        aspect-ratio: 16 / 11;
}

.hvh-hero__card-body {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 44px 22px 20px;
        background: linear-gradient(180deg, transparent 0%, rgba(30, 24, 22, .78) 100%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
}

.hvh-hero__card-title {
        font-size: clamp(1.15rem, 1.8vw, 1.5rem);
        color: #fff;
        margin: 0;
        line-height: 1.3;
}

.hvh-hero__float {
        position: absolute;
        left: -18px;
        bottom: 26px;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 18px;
        border-radius: var(--radius-card);
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        font-size: 14px;
        color: var(--text-muted);
}

.hvh-hero__float strong {
        font-family: var(--font-serif);
        font-size: 18px;
        color: var(--text);
}

.hvh-hero__float-star {
        font-size: 18px;
}

/* ---------------------------------------------------------
   9. Sections
   ------------------------------------------------------- */
.hvh-section {
        padding: clamp(56px, 8vw, 96px) 0;
        background: var(--bg);
}

.hvh-section--alt {
        background: var(--surface-2);
}

.hvh-section__head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: clamp(24px, 4vw, 40px);
}

.hvh-section__title {
        margin: 0;
}

.hvh-section__subtitle {
        margin: 8px 0 0;
        color: var(--text-muted);
}

.hvh-section__link {
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
        padding-bottom: 4px;
}

/* Tools */
.hvh-tools {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
}

.hvh-tool {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: clamp(22px, 3vw, 34px);
        border-radius: var(--radius-card);
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        color: var(--text);
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hvh-tool:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-soft);
        color: var(--text);
}

.hvh-tool__emoji {
        font-size: 30px;
        line-height: 1;
        margin-bottom: 6px;
}

.hvh-tool__title {
        font-family: var(--font-serif);
        font-size: 1.35rem;
        font-weight: 700;
}

.hvh-tool__text {
        color: var(--text-muted);
        font-size: 15px;
        max-width: 46ch;
}

.hvh-tool__link {
        margin-top: 10px;
        font-weight: 700;
        font-size: 15px;
        color: var(--accent);
}

/* Categories grid */
.hvh-cats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
}

.hvh-cat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 20px 22px;
        border-radius: var(--radius-card);
        border: 1px solid var(--border);
        background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent-2-soft) 100%);
        background-blend-mode: normal;
        color: var(--text);
        transition: transform .22s ease, box-shadow .22s ease;
}

.hvh-cat:nth-child(3n) {
        background: linear-gradient(135deg, var(--accent-2-soft) 0%, var(--accent-soft) 100%);
}

.hvh-cat:nth-child(4n) {
        background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, var(--surface)) 0%, var(--accent-soft) 100%);
}

.hvh-cat:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        color: var(--text);
}

.hvh-cat__emoji {
        font-size: 26px;
        line-height: 1;
}

.hvh-cat__name {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 1.05rem;
}

.hvh-cat__count {
        font-size: 13px;
        color: var(--text-muted);
}

/* ---------------------------------------------------------
   10. Editor's choice (featured)
   ------------------------------------------------------- */
.hvh-featured {
        display: grid;
        grid-template-columns: 55% minmax(0, 1fr);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
}

.hvh-featured__media {
        display: block;
        position: relative;
}

.hvh-featured__media .hvh-thumb {
        border-radius: 0;
        height: 100%;
        aspect-ratio: auto;
        min-height: 320px;
}

.hvh-featured__body {
        padding: clamp(24px, 3.4vw, 44px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        justify-content: center;
}

.hvh-featured__title {
        margin: 0;
        font-size: clamp(1.4rem, 2.4vw, 2rem);
        line-height: 1.25;
}

.hvh-featured__title a {
        color: var(--text);
}

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

.hvh-featured__excerpt {
        color: var(--text-muted);
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.hvh-featured__more {
        font-weight: 700;
        color: var(--accent);
}

/* ---------------------------------------------------------
   11. Trending
   ------------------------------------------------------- */
.hvh-trending {
        display: flex;
        flex-direction: column;
        gap: 14px;
        max-width: 860px;
}

.hvh-trend {
        display: flex;
        align-items: center;
        gap: clamp(14px, 3vw, 28px);
        padding: 18px 22px;
        border-radius: var(--radius-card);
        background: var(--surface);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        color: var(--text);
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hvh-trend:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: var(--accent-soft);
        color: var(--text);
}

.hvh-trend__num {
        font-family: var(--font-serif);
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 700;
        color: var(--accent);
        line-height: 1;
        min-width: 2ch;
}

.hvh-trend__body {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
}

.hvh-trend__title {
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: 1.1rem;
        line-height: 1.35;
}

.hvh-trend__meta {
        font-size: 13px;
        color: var(--text-muted);
}

.hvh-trend__arrow {
        margin-left: auto;
        color: var(--accent);
        font-size: 18px;
        transition: transform .2s ease;
}

.hvh-trend:hover .hvh-trend__arrow {
        transform: translateX(4px);
}

/* ---------------------------------------------------------
   12. Cards grid
   ------------------------------------------------------- */
.hvh-grid {
        display: grid;
        gap: 24px;
}

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

.hvh-card {
        position: relative;
        display: flex;
        flex-direction: column;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hvh-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-soft);
}

.hvh-card__media {
        position: relative;
        display: block;
}

.hvh-card__body {
        padding: 18px 20px 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
}

.hvh-thumb {
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: var(--surface-2);
        border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.hvh-card__media .hvh-thumb,
.hvh-featured__media .hvh-thumb,
.hvh-hero__card .hvh-thumb {
        border-radius: 0;
}

.hvh-thumb__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
}

.hvh-card:hover .hvh-thumb__img,
.hvh-featured:hover .hvh-thumb__img {
        transform: scale(1.04);
}

.hvh-thumb__placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 52px;
        background:
                radial-gradient(circle at 18% 22%, var(--accent-soft) 0%, transparent 52%),
                radial-gradient(circle at 82% 78%, var(--accent-2-soft) 0%, transparent 55%),
                var(--surface-2);
}

.hvh-card__title {
        font-size: clamp(1.2rem, 1.5vw, 1.35rem);
        line-height: 1.32;
        margin: 0 0 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.hvh-card__title a {
        color: var(--text);
}

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

.hvh-card__excerpt {
        color: var(--text-muted);
        font-size: 15px;
        line-height: 1.6;
        margin: 0 0 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.hvh-card__meta {
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        color: var(--text-muted);
}

.hvh-card__avatar {
        line-height: 0;
}

.hvh-card__avatar-img,
.hvh-meta__img {
        border-radius: 50%;
        display: block;
}

.hvh-card__author {
        font-weight: 600;
        color: var(--text);
}

/* ---------------------------------------------------------
   13. CTA band
   ------------------------------------------------------- */
.hvh-section--cta {
        background: var(--bg);
        padding-top: 0;
}

.hvh-cta {
        text-align: center;
        max-width: 720px;
        margin: 0 auto;
        padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
        border-radius: var(--radius-card);
        background:
                radial-gradient(circle at 12% 18%, var(--accent-soft) 0%, transparent 46%),
                radial-gradient(circle at 88% 86%, var(--accent-2-soft) 0%, transparent 48%),
                var(--surface-2);
        border: 1px solid var(--border);
}

.hvh-cta__title {
        margin-bottom: 10px;
}

.hvh-cta__text {
        color: var(--text-muted);
        max-width: 52ch;
        margin: 0 auto 26px;
}

.hvh-cta__form {
        display: flex;
        gap: 12px;
        max-width: 480px;
        margin: 0 auto;
}

.hvh-cta__note {
        margin: 14px 0 0;
        font-size: 12.5px;
        color: var(--text-muted);
}

/* ---------------------------------------------------------
   14. Page head (listings)
   ------------------------------------------------------- */
.hvh-pagehead {
        padding: clamp(40px, 6vw, 72px) 0 clamp(18px, 3vw, 30px);
        background: var(--bg);
}

.hvh-pagehead__title {
        margin-bottom: 8px;
}

.hvh-pagehead__subtitle {
        color: var(--text-muted);
        max-width: 60ch;
        margin: 0 0 22px;
}

.hvh-pagehead__desc p {
        margin-bottom: .5em;
}

.hvh-pagehead__badge {
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        border-radius: var(--radius-card);
        background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
        border: 1px solid var(--border);
        margin-bottom: 16px;
}

.hvh-chipfilter {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
}

.hvh-chipfilter__chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: var(--radius-chip);
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
        transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.hvh-chipfilter__chip:hover {
        color: var(--accent);
        border-color: var(--accent-soft);
        transform: translateY(-2px);
}

.hvh-chipfilter__chip.is-active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
}

/* Breadcrumbs */
.hvh-breadcrumbs {
        margin-bottom: 14px;
}

.hvh-breadcrumbs__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 2px 6px;
        font-size: 13.5px;
        color: var(--text-muted);
}

.hvh-breadcrumbs__item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
}

.hvh-breadcrumbs__sep {
        color: var(--border);
}

.hvh-breadcrumbs a {
        color: var(--text-muted);
        font-weight: 600;
}

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

/* ---------------------------------------------------------
   15. Single article
   ------------------------------------------------------- */
.hvh-single__head {
        padding: clamp(36px, 5vw, 64px) 0 8px;
}

.hvh-single__title {
        margin: 14px 0 18px;
        max-width: 20ch;
}

.hvh-single__lead {
        color: var(--text-muted);
        font-size: 18px;
        max-width: 62ch;
}

.hvh-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 14px;
        color: var(--text-muted);
}

.hvh-meta__avatar {
        line-height: 0;
}

.hvh-single__figure {
        position: relative;
        max-width: 960px;
        margin: 26px auto 0;
}

.hvh-single__figure.hvh-thumb {
        aspect-ratio: auto;
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-md);
}

.hvh-single__figure img {
        border-radius: var(--radius-card);
        width: 100%;
}

.hvh-single__figure .hvh-chip--photo {
        top: 16px;
        left: 16px;
}

.hvh-single__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: clamp(32px, 5vw, 64px);
        padding: clamp(28px, 4vw, 44px) 0;
        align-items: start;
}

.hvh-single__layout--solo {
        grid-template-columns: minmax(0, 1fr);
}

/* Prose */
.hvh-prose {
        max-width: var(--prose-w);
        font-size: 17px;
}

.hvh-prose > * + * {
        margin-top: 1.25em;
}

.hvh-prose h2,
.hvh-prose h3 {
        margin-top: 1.7em;
        scroll-margin-top: calc(var(--header-h) + 24px);
}

.hvh-prose blockquote {
        margin: 1.5em 0;
        padding: 18px 22px;
        border-left: 3px solid var(--accent);
        background: var(--surface-2);
        border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
        font-style: italic;
}

.hvh-prose blockquote p {
        margin: 0;
}

.hvh-prose ul li::marker,
.hvh-prose ol li::marker {
        color: var(--accent);
}

.hvh-prose img {
        border-radius: var(--radius-btn);
}

.hvh-prose figure {
        margin: 1.6em 0;
}

.hvh-prose figcaption {
        font-size: 13.5px;
        color: var(--text-muted);
        text-align: center;
        margin-top: 8px;
}

/* Frame for embedded iframes (e.g. /ingredient-checker/) */
.hvh-prose iframe {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-md);
        background: var(--surface);
        display: block;
}

.hvh-prose iframe[src*="ingredient-checker"] {
        min-height: 78vh;
}

.hvh-prose--page {
        /* width:100% обязателен: это грид-элемент (.hvh-single__layout--solo),
           а у грид-элемента с margin:auto растягивание (stretch) не работает —
           он сжимается до max-content. Страница, где контент — один iframe,
           сжимается до дефолтной ширины iframe (300px), вокруг — фон темы. */
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
}

/* ---------- Полная ширина: шаблон страниц-приложений (page-app.php) ---------- */
.hvh-page--app .hvh-app-embed {
        width: 100%;
        padding: 0 0 28px;
}
.hvh-page--app .hvh-app-embed .hvh-prose {
        max-width: none;
        margin: 0;
        width: 100%;
}
.hvh-page--app .hvh-app-embed p:empty {
        display: none;
}
.hvh-page--app .hvh-app-embed iframe {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
}

/* ---------- Хаб «Калькуляторы» (page-tools.php, 2.0.8) ---------- */
.hvh-tools-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 18px;
        margin: 26px 0 18px;
}

.hvh-tool-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 22px;
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        background: var(--surface);
        box-shadow: var(--shadow-sm);
        text-decoration: none;
        color: var(--text);
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.hvh-tool-card:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        box-shadow: var(--shadow-md);
        color: var(--text);
}

.hvh-tool-card__emoji {
        font-size: 34px;
        line-height: 1;
}

.hvh-tool-card__tag {
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 4px 10px;
        border-radius: 999px;
}

.hvh-tool-card__title {
        margin: 0;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.25;
}

.hvh-tool-card__desc {
        margin: 0;
        color: var(--text-muted);
        font-size: 14.5px;
        line-height: 1.55;
}

.hvh-tool-card__cta {
        margin-top: auto;
        padding-top: 6px;
        font-weight: 700;
        font-size: 14px;
        color: var(--accent);
}

.hvh-tool-card.is-soon {
        opacity: .66;
        border-style: dashed;
        box-shadow: none;
}

.hvh-tool-card__soon {
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--text-muted);
        border: 1px dashed var(--border);
        padding: 4px 10px;
        border-radius: 999px;
}

.hvh-tools-note {
        margin-top: 18px;
        font-size: 13.5px;
        color: var(--text-muted);
}

.hvh-page-links {
        font-weight: 600;
}

.hvh-tags {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 2em;
        padding-top: 1.2em;
        border-top: 1px solid var(--border);
        font-size: 14px;
}

.hvh-tags__label {
        color: var(--text-muted);
        font-weight: 600;
}

.hvh-tags a {
        display: inline-block;
        padding: 4px 12px;
        border-radius: var(--radius-chip);
        background: var(--accent-2-soft);
        color: var(--accent-2);
        font-weight: 600;
        font-size: 13px;
}

.hvh-tags a:hover {
        background: var(--accent-2);
        color: #fff;
}

/* TOC */
.hvh-toc {
        position: sticky;
        top: calc(var(--header-h) + 28px);
}

.hvh-toc__box {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
}

.hvh-toc__summary {
        list-style: none;
        cursor: pointer;
        padding: 14px 18px;
        font-weight: 700;
        font-size: 14px;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--accent);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
}

.hvh-toc__summary::-webkit-details-marker {
        display: none;
}

.hvh-toc__summary::after {
        content: "▾";
        font-size: 12px;
        transition: transform .2s ease;
}

.hvh-toc__box:not([open]) .hvh-toc__summary {
        border-bottom: 0;
}

.hvh-toc__box:not([open]) .hvh-toc__summary::after {
        transform: rotate(-90deg);
}

.hvh-toc__list {
        margin: 0;
        padding: 10px 18px 14px 34px;
        max-height: 60vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--border) transparent;
}

.hvh-toc__list::-webkit-scrollbar {
        width: 8px;
}

.hvh-toc__list::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 8px;
}

.hvh-toc__list li {
        font-size: 14px;
        margin: 6px 0;
}

.hvh-toc__list li a {
        color: var(--text-muted);
}

.hvh-toc__list li a:hover {
        color: var(--accent);
}

.hvh-toc__list .is-h3 {
        padding-left: 12px;
}

/* Likebox / share */
.hvh-single__footer {
        max-width: 960px;
        margin: 0 auto;
        padding: 10px 0 clamp(56px, 7vw, 88px);
        display: flex;
        flex-direction: column;
        gap: 34px;
}

.hvh-likebox {
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: clamp(22px, 3.4vw, 36px);
        text-align: center;
}

.hvh-likebox__title {
        margin-bottom: 6px;
}

.hvh-likebox__text {
        color: var(--text-muted);
        margin-bottom: 18px;
}

.hvh-share {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
}

.hvh-share__btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 20px;
        border-radius: var(--radius-btn);
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.hvh-share__btn:hover {
        transform: translateY(-2px);
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
}

.hvh-share__icon {
        font-size: 14px;
        line-height: 1;
        letter-spacing: .02em;
}

/* Author box */
.hvh-authorbox {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: clamp(22px, 3.4vw, 32px);
        box-shadow: var(--shadow-sm);
}

.hvh-authorbox__avatar {
        flex-shrink: 0;
        line-height: 0;
}

.hvh-authorbox__img {
        border-radius: 50%;
        border: 3px solid var(--accent-soft);
}

.hvh-authorbox__label {
        margin: 0 0 2px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--accent);
}

.hvh-authorbox__name {
        margin: 0 0 6px;
        font-size: 1.25rem;
}

.hvh-authorbox__name a {
        color: var(--text);
}

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

.hvh-authorbox__desc {
        margin: 0;
        color: var(--text-muted);
        font-size: 15px;
}

.hvh-article__widgets {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
}

/* Related */
.hvh-related__title {
        margin-bottom: 22px;
}

/* ---------------------------------------------------------
   16. Comments
   ------------------------------------------------------- */
.hvh-comments__title {
        font-size: 1.4rem;
        margin-bottom: 22px;
}

.hvh-comments__list,
.comment-list {
        list-style: none;
        margin: 0;
        padding: 0;
}

.comment-list .children {
        list-style: none;
        margin: 0;
        padding-left: 24px;
        border-left: 2px solid var(--border);
}

.hvh-comment__body {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: 18px 20px;
        margin: 14px 0;
        box-shadow: var(--shadow-sm);
}

.hvh-comment__head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
}

.hvh-comment__avatar {
        line-height: 0;
}

.hvh-comment__img {
        border-radius: 50%;
}

.hvh-comment__byline {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 10px;
        font-size: 14px;
}

.hvh-comment__author {
        font-weight: 700;
        color: var(--text);
}

.hvh-comment__time {
        color: var(--text-muted);
        font-size: 13px;
}

.hvh-comment__time:hover {
        color: var(--accent);
}

.hvh-comment__pending {
        font-size: 12px;
        color: var(--gold);
        font-weight: 600;
}

.hvh-comment__text {
        font-size: 15.5px;
        overflow-wrap: break-word;
}

.hvh-comment__text p {
        margin-bottom: .6em;
}

.hvh-comment__reply,
.hvh-comment__edit {
        margin-top: 8px;
        font-size: 14px;
        font-weight: 700;
}

.hvh-comment__reply a,
.hvh-comment__edit a {
        color: var(--accent);
}

.hvh-comments__closed {
        color: var(--text-muted);
}

/* Comment form (WP classes) */
.comment-respond {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: clamp(20px, 3vw, 32px);
        margin-top: 10px;
}

.comment-respond .comment-reply-title {
        font-family: var(--font-serif);
        font-size: 1.3rem;
        margin: 0 0 14px;
}

.comment-form p {
        margin-bottom: 16px;
}

.comment-form label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-input);
        background: var(--bg);
        color: var(--text);
        font-family: var(--font-sans);
        font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-form .submit {
        min-height: 46px;
        padding: 12px 26px;
        border: 0;
        border-radius: var(--radius-btn);
        background: var(--accent);
        color: #fff;
        font-family: var(--font-sans);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background .18s ease, transform .18s ease;
}

.comment-form .submit:hover {
        background: var(--accent-hover);
        transform: translateY(-2px);
}

.comment-form-cookies-consent {
        display: flex;
        align-items: center;
        gap: 8px;
}

.comment-form-cookies-consent label {
        margin: 0;
}

.comment-notes,
.logged-in-as {
        font-size: 14px;
        color: var(--text-muted);
}

/* ---------------------------------------------------------
   17. Pagination, forms, widgets, empty states
   ------------------------------------------------------- */
.hvh-page-links,
.navigation.pagination {
        margin: clamp(28px, 5vw, 44px) 0 0;
}

.nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
}

.page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 8px 14px;
        border-radius: var(--radius-btn);
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        font-weight: 600;
        font-size: 15px;
}

.page-numbers:hover {
        color: var(--accent);
        border-color: var(--accent-soft);
        transform: translateY(-2px);
}

.page-numbers.current {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        cursor: default;
}

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

.hvh-searchform {
        max-width: 560px;
        margin: 0 auto;
}

.hvh-searchform__row {
        display: flex;
        gap: 12px;
}

.hvh-searchform__input {
        flex: 1;
}

.hvh-widget {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        padding: 20px 22px;
        box-shadow: var(--shadow-sm);
}

.hvh-widget__title {
        font-size: 1.1rem;
        margin-bottom: 12px;
}

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

.hvh-widget li {
        padding: 7px 0;
        border-bottom: 1px dashed var(--border);
        font-size: 15px;
}

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

.hvh-none {
        text-align: center;
        max-width: 640px;
        margin: 0 auto;
        padding: clamp(30px, 5vw, 60px) 24px;
}

.hvh-none__emoji {
        font-size: 44px;
        display: block;
        margin-bottom: 10px;
}

.hvh-none__code {
        font-family: var(--font-serif);
        font-size: clamp(4rem, 10vw, 7rem);
        font-weight: 700;
        color: var(--gold);
        margin: 0;
        line-height: 1;
}

.hvh-none__title {
        margin-top: 8px;
}

.hvh-none__text {
        color: var(--text-muted);
}

.hvh-none__actions {
        margin: 22px 0;
}

.hvh-empty {
        color: var(--text-muted);
        text-align: center;
        padding: 40px 0;
}

/* ---------------------------------------------------------
   18. Footer
   ------------------------------------------------------- */
.hvh-footer {
        margin-top: auto;
        background: var(--surface);
        border-top: 1px solid var(--border);
}

.hvh-footer__widgets {
        padding-top: 48px;
}

.hvh-footer__grid {
        display: grid;
        /* 2.0.16: minmax(0,…) — колонки сжимаются ниже min-content
           (иначе длинный логотип распирал сетку на мобильных) */
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(28px, 5vw, 64px);
        padding-top: clamp(40px, 6vw, 64px);
        padding-bottom: clamp(32px, 5vw, 56px);
}

/* 2.0.16: длинные слова («конфиденциальности») не рвут узкие колонки */
.hvh-footer__col {
        min-width: 0;
}

.hvh-footer__col a,
.hvh-footer__bottom,
.hvh-footer__about {
        overflow-wrap: break-word;
}

.hvh-logo--footer {
        margin-bottom: 12px;
}

.hvh-footer__about {
        color: var(--text-muted);
        font-size: 14.5px;
        max-width: 42ch;
}

.hvh-footer__about p {
        margin-bottom: .5em;
}

.hvh-footer__socials {
        display: flex;
        gap: 10px;
        margin-top: 16px;
}

.hvh-social {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: var(--radius-chip);
        border: 1px solid var(--border);
        background: var(--surface-2);
        color: var(--text);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .04em;
        transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.hvh-social:hover {
        transform: translateY(-2px);
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
}

.hvh-footer__heading {
        font-size: 1.05rem;
        margin-bottom: 14px;
}

.hvh-footer__topics,
.hvh-footer__pages,
.hvh-footer__menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
}

.hvh-footer__topics li,
.hvh-footer__pages li,
.hvh-footer__menu-list li {
        margin-bottom: 9px;
}

.hvh-footer__topics a,
.hvh-footer__pages a,
.hvh-footer__menu-list a {
        color: var(--text-muted);
        font-size: 15px;
}

.hvh-footer__topics a:hover,
.hvh-footer__pages a:hover,
.hvh-footer__menu-list a:hover {
        color: var(--accent);
}

.hvh-footer__topics a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
}

.hvh-footer__bottom {
        border-top: 1px solid var(--border);
        padding: 18px 0;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.hvh-footer__bottom-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
}

.hvh-footer__copy,
.hvh-footer__tagline {
        margin: 0;
        font-size: 13.5px;
        color: var(--text-muted);
}

/* Back to top */
.hvh-totop {
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 110;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: var(--radius-chip);
        background: var(--surface);
        color: var(--accent);
        box-shadow: var(--shadow-md);
        cursor: pointer;
        transition: transform .18s ease, background .18s ease, color .18s ease, opacity .2s ease;
}

.hvh-totop:hover {
        background: var(--accent);
        color: #fff;
        transform: translateY(-3px);
}

.hvh-totop[hidden] {
        display: none;
}

/* Editor color palette — front-end output */
.has-hvh-accent-color { color: #C2527B; }
.has-hvh-accent-background-color { background-color: #C2527B; }
.has-hvh-accent-soft-color { color: #F9E8EF; }
.has-hvh-accent-soft-background-color { background-color: #F9E8EF; }
.has-hvh-sage-color { color: #7D9471; }
.has-hvh-sage-background-color { background-color: #7D9471; }
.has-hvh-sage-soft-color { color: #EBF1E8; }
.has-hvh-sage-soft-background-color { background-color: #EBF1E8; }
.has-hvh-gold-color { color: #D9A441; }
.has-hvh-gold-background-color { background-color: #D9A441; }
.has-hvh-ink-color { color: #2E2A27; }
.has-hvh-ink-background-color { background-color: #2E2A27; }
.has-hvh-muted-color { color: #7A716A; }
.has-hvh-muted-background-color { background-color: #7A716A; }
.has-hvh-bg-color { color: #FBF8F4; }
.has-hvh-bg-background-color { background-color: #FBF8F4; }
.has-hvh-surface-color { color: #FFFFFF; }
.has-hvh-surface-background-color { background-color: #FFFFFF; }

/* Toast */
.hvh-toast {
        position: fixed;
        left: 50%;
        bottom: 28px;
        transform: translateX(-50%) translateY(20px);
        z-index: 200;
        background: var(--text);
        color: var(--bg);
        padding: 12px 22px;
        border-radius: var(--radius-chip);
        font-size: 14.5px;
        font-weight: 600;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
        max-width: min(90vw, 480px);
        text-align: center;
}

html[data-theme="dark"] .hvh-toast {
        background: var(--accent);
        color: #fff;
}

.hvh-toast.is-shown {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------
   19. Responsive
   ------------------------------------------------------- */
@media (max-width: 1024px) {
        .hvh-cats {
                grid-template-columns: repeat(3, minmax(0, 1fr));
        }

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

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

        .hvh-toc {
                position: static;
                margin-bottom: 28px;
        }

        .hvh-featured {
                grid-template-columns: 1fr;
        }

        .hvh-featured__media .hvh-thumb {
                aspect-ratio: 16 / 9;
                min-height: 0;
        }

        .hvh-featured__body {
                padding: 26px;
        }

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

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

        .hvh-nav {
                display: none;
        }

        .hvh-hero__inner {
                grid-template-columns: 1fr;
        }

        .hvh-hero__visual {
                order: -1;
                max-width: 560px;
        }

        .hvh-hero__float {
                left: 10px;
                bottom: 14px;
        }

        .hvh-tools {
                grid-template-columns: 1fr;
        }

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

        .hvh-grid--3 {
                grid-template-columns: 1fr;
        }

        .hvh-grid {
                gap: 20px;
        }

        .hvh-section__head {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
        }

        .hvh-cta__form {
                flex-direction: column;
        }

        .hvh-search__row {
                flex-direction: column;
        }

        .hvh-search__panel {
                padding-top: 9vh;
        }

        .hvh-footer__grid {
                grid-template-columns: minmax(0, 1fr);
                gap: 28px;
        }

        .hvh-footer__bottom-inner {
                flex-direction: column;
                text-align: center;
        }
}

@media (min-width: 769px) {
        .hvh-burger {
                display: none;
        }
}

@media (max-width: 480px) {
        .hvh-container {
                padding: 0 18px;
        }

        .hvh-header__inner {
                padding: 0 14px;
        }

        .hvh-logo__text {
                font-size: 18px;
        }

        .hvh-stats {
                gap: 18px;
        }

        .hvh-cats {
                grid-template-columns: 1fr;
        }

        .hvh-trend {
                padding: 14px 16px;
        }

        .comment-list .children {
                padding-left: 14px;
        }

        .hvh-totop {
                right: 14px;
                bottom: 14px;
        }
}

/* ---------------------------------------------------------
   20. Motion & print
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
        html {
                scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .01ms !important;
        }

        html.hvh-js .hvh-reveal {
                opacity: 1;
                transform: none;
        }
}

@media print {
        .hvh-header,
        .hvh-footer,
        .hvh-totop,
        .hvh-progress,
        .hvh-toc,
        .hvh-likebox,
        .hvh-search,
        .hvh-mobile {
                display: none !important;
        }

        body {
                background: #fff;
                color: #000;
        }

        .hvh-single__layout {
                grid-template-columns: 1fr;
        }
}

/* ---------------------------------------------------------
   21. Affiliate offers (catalog) + disclosure + languages
   ------------------------------------------------------- */

/* Affiliate disclosure */
.hvh-disclosure {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 6px 0 26px;
        padding: 14px 18px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-btn);
        font-size: 13.5px;
        line-height: 1.6;
        color: var(--text-muted);
}

.hvh-disclosure__icon {
        flex: 0 0 auto;
        font-size: 18px;
        line-height: 1.4;
}

.hvh-disclosure__text {
        margin: 0;
}

.hvh-prose .hvh-disclosure {
        margin: 30px 0 4px;
}

.hvh-pagehead .hvh-disclosure {
        margin: 0 0 22px;
}

/* Trust block («Мы проверяем каждый оффер») */
.hvh-trust {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin: 40px 0 0;
}

.hvh-trust__item {
        padding: 20px 22px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-sm);
}

.hvh-trust__icon {
        display: block;
        font-size: 24px;
        line-height: 1;
        margin: 0 0 10px;
}

.hvh-trust__title {
        margin: 0 0 4px;
        font-family: var(--font-sans);
        font-size: 15px;
        font-weight: 700;
        color: var(--text);
}

.hvh-trust__text {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-muted);
}

/* Offer card */
.hvh-offer-card {
        position: relative;
        display: flex;
        flex-direction: column;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hvh-offer-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-soft);
}

.hvh-offer-card__media {
        display: block;
}

.hvh-offer-card__media .hvh-thumb {
        border-radius: 0;
}

.hvh-offer-card__badge {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        padding: 5px 12px;
        border-radius: var(--radius-chip);
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
        line-height: 1.4;
        box-shadow: var(--shadow-sm);
}

/* Badge colors: gold = Хит/Топ, sage = Новинка, accent = Скидка, outline = none */
.hvh-offer-card__badge--gold {
        background: var(--gold);
        border-color: var(--gold);
        color: #2E2A27;
}

.hvh-offer-card__badge--sage {
        background: var(--accent-2-soft);
        border-color: transparent;
        color: var(--accent-2);
}

.hvh-offer-card__badge--accent {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
}

html[data-theme="dark"] .hvh-offer-card__badge--accent {
        color: var(--bg);
}

.hvh-offer-card__body {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 18px 20px 20px;
}

.hvh-offer-card__title {
        font-size: 1.2rem;
        line-height: 1.32;
        margin: 0 0 8px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.hvh-offer-card__title a {
        color: var(--text);
}

.hvh-offer-card__title a:hover {
        color: var(--accent);
}

.hvh-offer-card__excerpt {
        color: var(--text-muted);
        font-size: 14.5px;
        line-height: 1.6;
        margin: 0 0 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.hvh-offer-card__rating,
.hvh-offer-panel__rating {
        display: flex;
        align-items: center;
        gap: 10px;
}

.hvh-offer-card__rating {
        margin: 0 0 12px;
}

.hvh-offer-rating__value {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
}

.hvh-offer-card__rating-bar,
.hvh-offer-panel__bar {
        position: relative;
        flex: 1;
        height: 6px;
        border-radius: var(--radius-chip);
        background: var(--surface-2);
        overflow: hidden;
}

.hvh-offer-panel__bar {
        height: 8px;
}

.hvh-offer-card__rating-bar > span,
.hvh-offer-panel__bar > span {
        position: absolute;
        inset: 0 auto 0 0;
        display: block;
        border-radius: var(--radius-chip);
        background: var(--gold);
}

.hvh-offer-card__price {
        font-size: 15.5px;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 14px;
}

.hvh-offer-card__price del,
.hvh-offer-card__price-old,
.hvh-offer-panel__price del,
.hvh-offer-cta__price del {
        color: var(--text-muted);
        font-weight: 500;
        margin-left: 8px;
        font-size: .85em;
}

.hvh-offer-card__actions {
        margin-top: auto;
        text-align: center;
}

.hvh-offer-card__cta {
        width: 100%;
}

.hvh-offer-card__note {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: var(--text-muted);
}

/* Empty state */
.hvh-offers-empty {
        margin: 0;
        padding: 56px 24px;
        text-align: center;
        background: var(--surface);
        border: 1px dashed var(--border);
        border-radius: var(--radius-card);
}

.hvh-offers-empty__emoji {
        font-size: 40px;
        line-height: 1;
        margin: 0 0 12px;
}

.hvh-offers-empty__text {
        margin: 0;
        color: var(--text-muted);
}

/* Grouped catalog (page template «Каталог офферов») */
.hvh-offers-group {
        margin: 0 0 54px;
}

.hvh-offers-group:last-of-type {
        margin-bottom: 0;
}

.hvh-offers-group__head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        margin: 0 0 18px;
}

.hvh-offers-group__title {
        margin: 0;
        font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

.hvh-offers-group__emoji {
        font-size: .9em;
        margin-right: 6px;
}

.hvh-offers-group__link {
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
}

/* Single offer */
.hvh-offer-single__badge {
        margin-bottom: 6px;
}

.hvh-offer-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px 32px;
        margin: 20px 0 8px;
        padding: 16px 22px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-sm);
}

.hvh-offer-panel__rating {
        flex: 1 1 240px;
        min-width: 220px;
}

.hvh-offer-panel__price {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: var(--text);
}

.hvh-offer-cta {
        margin: 38px 0 8px;
        padding: clamp(28px, 5vw, 46px) clamp(20px, 5vw, 48px);
        text-align: center;
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        background:
                radial-gradient(circle at 12% 18%, var(--accent-soft) 0%, transparent 46%),
                radial-gradient(circle at 88% 86%, var(--accent-2-soft) 0%, transparent 48%),
                var(--surface-2);
}

.hvh-offer-cta__title {
        margin: 0 0 6px;
        font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.hvh-offer-cta__price {
        margin: 0 0 18px;
        font-size: clamp(1.15rem, 2vw, 1.45rem);
        font-weight: 700;
        color: var(--text);
}

.hvh-offer-cta__btn {
        min-height: 54px;
        padding: 15px 44px;
        font-size: 16.5px;
}

.hvh-offer-cta__note {
        margin: 12px 0 0;
        font-size: 12.5px;
        color: var(--text-muted);
}

/* Language switcher (Polylang chips, RU/EN/PL) */
.hvh-lang-switch {
        margin-right: 4px;
}

.hvh-lang-switch__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 4px;
}

.hvh-lang-switch__link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 10px;
        border-radius: var(--radius-chip);
        border: 1px solid transparent;
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1.2;
        color: var(--text-muted);
        white-space: nowrap;
}

.hvh-lang-switch__link:hover {
        color: var(--accent);
        background: var(--surface-2);
}

.hvh-lang-switch__link.is-active {
        background: var(--accent);
        color: #fff;
}

html[data-theme="dark"] .hvh-lang-switch__link.is-active {
        color: var(--bg);
}

.hvh-lang-switch__link.is-muted {
        opacity: .55;
}

.hvh-lang-switch__flag {
        display: inline-flex;
        line-height: 0;
}

.hvh-lang-switch__flag img {
        display: block;
        width: 16px;
        height: auto;
        border-radius: 2px;
}

.hvh-lang-switch--panel {
        margin: 18px 0 0;
}

.hvh-lang-switch--panel .hvh-lang-switch__link {
        padding: 10px 16px;
        font-size: 14px;
}

/* Responsive: offers & languages */
@media (max-width: 768px) {
        .hvh-header__actions .hvh-lang-switch {
                display: none;
        }

        .hvh-trust {
                grid-template-columns: 1fr;
        }
}

@media (max-width: 480px) {
        .hvh-offers-group__head {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
        }

        .hvh-offer-cta__btn {
                width: 100%;
        }
}

/* About page: author block (demo persona — replace with your own photo) */
.hvh-about-author {
        margin: 0 0 24px;
        text-align: center;
}
.hvh-about-author img {
        width: 240px;
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-card);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-md);
}
.hvh-about-author figcaption {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-muted);
}
.hvh-about-author figcaption strong {
        color: var(--text);
}
@media (min-width: 768px) {
        .hvh-about-author {
                float: left;
                width: 240px;
                margin: 6px 28px 16px 0;
                text-align: left;
        }
}
