/*
Theme Name: dds_zokvavet.ru
Theme URI: https://zokvavet.ru/
Author: Волкова Татьяна Григорьевна
Description: Тема справочника по товарам для животных «Хвостик»: бумажные карточки-этикетки, каталожная сетка, корешки и штамп-лапа.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hvstk
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #F2EBDD;
    --pine: #1F3A34;
    --pine-deep: #172C27;
    --kraft: #E3D9C6;
    --sage: #C9D6C1;
    --ink: #26302B;
    --muted: #7A7466;
    --terra: #D2572E;
    --terra-dark: #A9411F;
    --mustard: #E8B23A;
    --line: #B9AE9A;
    --light: #F2EBDD;
    --label: #EFE3CC;
    --card: #EADAC0;
    --box: #F8F4EA;
    --sheet: #FBF8F1;
    --tab: #DCC9A8;
    --spine: #E6D3B2;
    --rivet: #9C6A48;
    --grid: rgba(185, 174, 154, .3);
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-text: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.hvstk-cookie[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    letter-spacing: .012em;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .27 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 16px 16px, 16px 16px, 220px 220px;
}
p, li, dd, td, th, h1, h2, h3, h4, h5, h6, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, .hvstk-label, .hvstk-brand__name { hyphens: manual; }
p { margin: 0 0 1em; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ink); text-decoration: underline dashed var(--terra); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--terra-dark); text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; letter-spacing: .005em; margin: 1.6em 0 .55em; color: inherit; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); margin: 0 0 1.4em; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { font-family: var(--f-head); font-weight: 700; background: var(--label); }
button, input, textarea, select { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hvstk-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--light); padding: .6rem 1rem; text-decoration: none; }
.hvstk-skip:focus { top: 1rem; }

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

/* ---------- Корешок с перфорацией ---------- */
.hvstk-main { position: relative; display: block; padding-bottom: 4.5rem; }
.hvstk-main::before {
    content: "";
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 2.5rem;
    width: 46px;
    background-color: var(--spine);
    background-image:
        radial-gradient(circle at 23px 70px, var(--paper) 0 7px, var(--line) 7.5px 8.5px, transparent 9px),
        linear-gradient(90deg, transparent 0 38px, rgba(38, 48, 43, .12) 38px 39px, transparent 39px);
    background-size: 46px 160px, 46px 100%;
    background-repeat: repeat-y, no-repeat;
    border-right: 1px solid var(--line);
    box-shadow: 2px 0 0 rgba(255, 255, 255, .4);
    border-radius: 0 4px 4px 0;
}
@media (min-width: 1380px) { .hvstk-main::before { display: block; } }

/* ---------- Шапка ---------- */
.hvstk-top { padding: 1.6rem 0 .4rem; position: relative; z-index: 20; }
.hvstk-top__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hvstk-brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); min-width: 0; }
.hvstk-brand:hover { color: var(--ink); }
.hvstk-brand__stamp { flex: 0 0 auto; width: 84px; height: 84px; transform: rotate(-6deg); transition: transform .2s; }
.hvstk-brand:hover .hvstk-brand__stamp { transform: rotate(4deg) scale(1.04); }
.hvstk-brand__svg, .hvstk-brand__img { width: 100%; height: 100%; object-fit: contain; }
.hvstk-brand__text { display: flex; flex-direction: column; min-width: 0; }
.hvstk-brand__name { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: .9; letter-spacing: .01em; }
.hvstk-brand__kind { align-self: flex-start; margin-top: .45rem; font-size: .9rem; font-weight: 700; line-height: 1.2; padding: .2rem .6rem; background: var(--mustard); color: var(--ink); clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%); padding-right: 1rem; }
.hvstk-top__side { display: flex; align-items: center; min-width: 0; }
.hvstk-menu { list-style: none; margin: 0; padding: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; border-bottom: 2px solid var(--ink); position: relative; }
.hvstk-menu::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; border-bottom: 1px solid var(--line); }
.hvstk-menu a { font-size: 1rem; font-weight: 700; text-decoration: none; color: var(--ink); padding: .2rem 0; display: inline-block; border-bottom: 1px dashed transparent; }
.hvstk-menu a:hover, .hvstk-menu .current-menu-item > a, .hvstk-menu .current_page_item > a { color: var(--terra-dark); border-bottom-color: var(--terra); }
.hvstk-top__desc { margin: .9rem 0 0; padding-top: .6rem; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--muted); max-width: 70ch; }
.hvstk-burger { display: none; align-items: center; gap: .6rem; background: var(--ink); color: var(--light); border: 0; padding: .65rem 1rem; cursor: pointer; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hvstk-burger__bars, .hvstk-burger__bars::before, .hvstk-burger__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.hvstk-burger__bars::before, .hvstk-burger__bars::after { content: ""; position: absolute; left: 0; }
.hvstk-burger__bars::before { top: -6px; }
.hvstk-burger__bars::after { top: 6px; }
.hvstk-burger[aria-expanded="true"] .hvstk-burger__bars { background: transparent; }
.hvstk-burger[aria-expanded="true"] .hvstk-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.hvstk-burger[aria-expanded="true"] .hvstk-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.hvstk-btn {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    position: relative;
    background: var(--terra);
    color: var(--light);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    padding: .62rem 1.5rem .62rem 1.2rem;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 98% 18%, 100% 36%, 98.4% 55%, 100% 74%, 98% 90%, 100% 100%, 0 100%, 1.2% 80%, 0 60%, 1.4% 40%, 0 20%);
    transition: background .15s, transform .15s;
}
.hvstk-btn:hover { background: var(--terra-dark); color: var(--light); transform: translate(-2px, -2px); }
.hvstk-btn:active { transform: translate(0, 0); }
.hvstk-btn__paw { width: 1.35rem; height: 1.35rem; fill: currentColor; flex: 0 0 auto; }
.hvstk-link { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Секции главной ---------- */
.hvstk-shell.hvstk-front { width: min(85%, 1180px); }
.hvstk-sec { position: relative; margin-top: 3.4rem; padding: 3.2rem 2.6rem 2.8rem; border-radius: 6px; box-shadow: 0 1px 0 rgba(38, 48, 43, .08), 0 10px 22px -18px rgba(38, 48, 43, .55); }
.hvstk-front > .hvstk-sec:first-child { margin-top: 2.6rem; }
.hvstk-sec > :last-child { margin-bottom: 0; }
.hvstk-sec--pine { background: var(--pine); color: var(--light); }
.hvstk-sec--paper { background: rgba(248, 244, 234, .55); border: 2px dashed var(--line); box-shadow: none; }
.hvstk-sec--box { background: var(--box); border: 1px solid #DDD3BF; }
.hvstk-sec--kraft { background: var(--kraft); }
.hvstk-sec--sage { background: var(--sage); }

/* Ярлык-номер раздела */
.hvstk-tab {
    position: absolute;
    top: -22px;
    right: 2.2rem;
    z-index: 3;
    display: inline-block;
    padding: 1.15rem 1.1rem .55rem;
    background: var(--tab);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid var(--line);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
    background-image:
        linear-gradient(var(--ink), var(--ink)),
        radial-gradient(ellipse 13px 4px at 50% 8px, rgba(38, 48, 43, .55) 0 98%, transparent 100%);
    background-size: calc(100% - 1.6rem) 2px, 100% 100%;
    background-position: center calc(100% - .35rem), 0 0;
    background-repeat: no-repeat;
    padding-bottom: .85rem;
}
.hvstk-tab--static { position: relative; top: auto; right: auto; margin-bottom: .9rem; }

/* Заголовок-ярлык */
.hvstk-label {
    display: inline-block;
    position: relative;
    margin: 0 0 2rem;
    padding: .38em 1.1em .34em 1.3em;
    max-width: 100%;
    background: var(--label);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.8rem, 4.2vw, 3rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .01em;
    clip-path: polygon(0 0, 100% 0, 98.6% 18%, 100% 38%, 98.8% 60%, 100% 80%, 98.5% 100%, 0 100%);
    box-shadow: inset 0 -3px 0 rgba(38, 48, 43, .1);
}
.hvstk-label--side { transform: rotate(-.6deg); }
.hvstk-label--side::before {
    content: "";
    position: absolute;
    left: .35em;
    top: .3em;
    bottom: .3em;
    width: 12px;
    background: radial-gradient(circle at 6px 7px, var(--pine) 0 4.2px, transparent 4.8px) 0 0 / 12px 15px repeat-y;
}
.hvstk-label--perf { padding-top: .62em; }
.hvstk-label--perf::before {
    content: "";
    position: absolute;
    left: .5em;
    right: .9em;
    top: 7px;
    height: 10px;
    background: radial-gradient(circle at 7px 5px, rgba(255, 255, 255, .85) 0 3.6px, rgba(185, 174, 154, .9) 4px 4.6px, transparent 5px) 0 0 / 22px 10px repeat-x;
}

/* ---------- Блок 1: маркировка ---------- */
.hvstk-mark { padding-right: 2.6rem; }
.hvstk-mark__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .62fr); gap: 2rem; align-items: center; position: relative; z-index: 2; }
.hvstk-mark__tag { position: relative; margin: 0; max-width: 470px; }
.hvstk-mark__tag img { width: 100%; height: auto; }
.hvstk-mark__fields { position: absolute; left: 51%; top: 64%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .1em; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(.95rem, 1.9vw, 1.45rem); line-height: 1.22; color: var(--light); text-align: center; }
.hvstk-mark__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.hvstk-mark__notes li { border-left: 2px solid rgba(242, 235, 221, .65); padding: .1rem 0 .1rem 1rem; }
.hvstk-mark__notes h3 { margin: 0 0 .3rem; font-size: 1.3rem; font-weight: 600; color: var(--light); }
.hvstk-mark__notes p { margin: 0; font-size: .97rem; line-height: 1.5; color: rgba(242, 235, 221, .82); }
.hvstk-mark__clip { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: 6px; pointer-events: none; }
.hvstk-mark__collar {
    position: absolute; right: 0; top: 28px; width: min(31%, 350px); height: auto;
    filter: drop-shadow(-6px 12px 10px rgba(0, 0, 0, .3));
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

/* ---------- Блок 2: мерки ---------- */
.hvstk-measure__lead { max-width: 64ch; margin: -.6rem 0 2rem; color: var(--ink); }
.hvstk-measure__steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.hvstk-ticket {
    position: relative;
    padding: 2.6rem 1.5rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    -webkit-mask: radial-gradient(circle at 0 50%, transparent 11px, #000 11.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 50%, transparent 11px, #000 11.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
    transition: transform .2s;
}
.hvstk-ticket::before { content: ""; position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--rivet); }
.hvstk-ticket:nth-child(2) { transform: rotate(.8deg); }
.hvstk-ticket:nth-child(3) { transform: rotate(-.7deg); }
.hvstk-ticket:hover { transform: translateY(-4px); }
.hvstk-ticket__num { position: absolute; top: .9rem; left: 1.2rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 2px solid var(--terra); border-radius: 50%; color: var(--terra); font-family: var(--f-head); font-weight: 700; font-size: 1.4rem; transform: rotate(-12deg); }
.hvstk-ticket__ico { display: block; width: 52px; height: 52px; margin: 0 0 .6rem auto; color: var(--pine); }
.hvstk-ticket h3 { margin: 0 0 .45rem; font-size: 1.45rem; text-transform: uppercase; }
.hvstk-ticket p { margin: 0; font-size: .98rem; line-height: 1.5; }
.hvstk-measure__slip { position: relative; max-width: 720px; margin: 0 auto; padding: 1rem 1.6rem; background: var(--mustard); color: var(--ink); font-weight: 700; transform: rotate(-.6deg); }
.hvstk-measure__slip::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 20px; margin-left: -45px; background: rgba(242, 235, 221, .75); border: 1px solid rgba(185, 174, 154, .6); transform: rotate(2deg); }

/* ---------- Карточки записей ---------- */
.hvstk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.hvstk-cards--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { display: flex; flex-direction: column; }
.hvstk-card {
    position: relative;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.1rem 1.2rem 1.3rem;
    box-shadow: 0 8px 14px -12px rgba(38, 48, 43, .6);
    transition: transform .2s, box-shadow .2s;
}
.hvstk-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 20px -14px rgba(38, 48, 43, .7); }
.hvstk-card__hole { position: absolute; left: 14px; top: 3.4rem; width: 24px; height: 24px; border-radius: 50%; background: var(--box); box-shadow: inset 0 0 0 5px var(--rivet), 0 0 0 1px rgba(38, 48, 43, .15); z-index: 2; }
.hvstk-card__thumb { display: block; margin: 0 0 1rem 2.6rem; padding: 6px; background: #FDFBF6; box-shadow: 0 2px 5px rgba(38, 48, 43, .25); transform: rotate(.6deg); overflow: hidden; }
.hvstk-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; min-width: 0; }
.hvstk-card__pin { align-self: flex-start; margin-bottom: .4rem; padding: .1rem .55rem; background: var(--mustard); font-family: var(--f-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.hvstk-card__title { margin: 0 0 .25rem; font-family: var(--f-text); font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; }
.hvstk-card__title a { color: var(--ink); text-decoration: none; }
.hvstk-card__title a:hover { color: var(--terra-dark); text-decoration: underline dashed var(--terra); }
.hvstk-card__date { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.hvstk-card__excerpt { flex: 1; font-size: .96rem; line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.hvstk-card__foot { position: relative; align-self: flex-start; display: flex; align-items: center; padding-right: 1.6rem; }
.hvstk-card__btn { padding-right: 2.2rem; }
.hvstk-card__stamp { position: absolute; right: 0; top: 50%; width: 3.3rem; height: 3.3rem; margin-top: -1.65rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid #4A2E22; box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px #4A2E22; background: rgba(234, 218, 192, .55); transform: rotate(-14deg); pointer-events: none; transition: transform .2s; }
.hvstk-card__paw { width: 1.75rem; height: 1.75rem; fill: #4A2E22; }
.hvstk-card:hover .hvstk-card__stamp { transform: rotate(8deg) scale(1.06); }
.hvstk-fresh__more { margin: 1.8rem 0 0; text-align: right; }
.hvstk-empty { padding: 1.5rem; background: var(--box); border: 1px dashed var(--line); }

/* ---------- Блок 4: размерная сетка ---------- */
.hvstk-sizes__title, .hvstk-kit__title { margin: 0 0 1.6rem; padding-right: 9rem; font-size: clamp(1.9rem, 4.4vw, 3.1rem); text-transform: uppercase; line-height: 1; }
.hvstk-sizes__wrap { overflow-x: auto; }
.hvstk-sizes__table { min-width: 620px; margin: 0; border: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: none; }
.hvstk-sizes__table th, .hvstk-sizes__table td { border: 0; border-bottom: 1px solid #A8977E; padding: .75rem 1rem; vertical-align: middle; background: none; }
.hvstk-sizes__table thead th { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--ink); }
.hvstk-sizes__table th:first-child, .hvstk-sizes__table td:first-child { border-right: 2px solid var(--ink); width: 7.5rem; }
.hvstk-sizes__table tbody tr:hover { background: rgba(242, 235, 221, .55); }
.hvstk-chip { display: inline-block; min-width: 3.2rem; padding: .22rem .8rem; border-radius: 999px; text-align: center; font-family: var(--f-head); font-weight: 700; font-size: .95rem; line-height: 1.3; color: #FFF8EC; white-space: nowrap; }
.hvstk-chip--xs { background: #4F8A4B; }
.hvstk-chip--s { background: var(--mustard); color: var(--ink); }
.hvstk-chip--m { background: var(--terra); }
.hvstk-chip--l { background: #2F73A0; }
.hvstk-chip--xl { background: #74407F; }
.hvstk-sizes__note { margin: 1.2rem 0 0; font-size: .95rem; color: #4E4A40; max-width: 80ch; }

/* ---------- Блок 5: аптечка ---------- */
.hvstk-kit__lead { max-width: 72ch; margin: -.6rem 0 1.8rem; }
.hvstk-kit__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.hvstk-kit__item figure { margin: 0; }
.hvstk-kit__frame { position: relative; display: block; padding: 6px; background: #F6F1E4; border-radius: 4px; box-shadow: 0 3px 8px -4px rgba(38, 48, 43, .5); transition: transform .2s; }
.hvstk-kit__item:hover .hvstk-kit__frame { transform: translateY(-3px) rotate(-1deg); }
.hvstk-kit__frame img { width: 100%; height: auto; aspect-ratio: 304 / 356; object-fit: cover; border-radius: 2px; }
.hvstk-kit__num { position: absolute; top: 10px; left: 13px; z-index: 2; font-family: var(--f-head); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--ink); text-shadow: 0 0 6px rgba(255, 255, 255, .8); }
.hvstk-kit__item figcaption { padding: .6rem .2rem 0; text-align: center; line-height: 1.3; }
.hvstk-kit__item figcaption strong { display: block; font-size: 1.1rem; }
.hvstk-kit__item figcaption span { display: block; font-size: .86rem; color: #4E5A4C; margin-top: .2rem; }

/* ---------- Внутренние страницы ---------- */
.hvstk-crumbs { margin: 1.4rem 0 1.6rem; font-size: .93rem; color: var(--muted); }
.hvstk-crumbs a { color: var(--ink); }
.hvstk-crumbs__sep { color: var(--terra); margin: 0 .2rem; }
.hvstk-layout { display: block; }
.hvstk-layout--single .hvstk-content { width: 85%; margin-left: auto; margin-right: auto; }
.hvstk-layout--aside { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.hvstk-content { min-width: 0; }
.hvstk-pagehead { margin-bottom: 2rem; }
.hvstk-pagehead .hvstk-label { margin-bottom: 1rem; display: block; width: fit-content; }
.hvstk-pagehead__lead { color: var(--muted); max-width: 64ch; }

.hvstk-doc { position: relative; background: var(--sheet); border: 1px solid #DDD3BF; padding: 2.6rem 2.6rem 2.4rem 4rem; box-shadow: 0 10px 22px -18px rgba(38, 48, 43, .6); }
.hvstk-doc__holes { position: absolute; left: 16px; top: 0; bottom: 0; width: 20px; background: radial-gradient(circle at 10px 90px, var(--paper) 0 7px, var(--line) 7.5px 8.5px, transparent 9px) 0 0 / 20px 220px repeat-y; }
.hvstk-doc__head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.hvstk-doc__cat { display: inline-block; margin-bottom: .6rem; padding: .15rem .7rem; background: var(--mustard); color: var(--ink); font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; text-decoration: none; }
.hvstk-doc__cat:hover { background: var(--terra); color: var(--light); }
.hvstk-doc__title { margin: 0 0 .4rem; text-transform: uppercase; }
.hvstk-doc__date { color: var(--muted); font-size: .95rem; }
.hvstk-doc__cover { margin: 0 0 1.8rem; padding: 6px; background: #FFF; box-shadow: 0 2px 6px rgba(38, 48, 43, .2); }
.hvstk-doc__cover img { width: 100%; height: auto; }
.hvstk-doc__text > :first-child { margin-top: 0; }
.hvstk-doc__text h2 { position: relative; padding-left: 1rem; }
.hvstk-doc__text h2::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; background: var(--terra); }
.hvstk-doc__text ul { padding-left: 0; list-style: none; }
.hvstk-doc__text ul li { position: relative; padding-left: 1.5rem; margin-bottom: .35rem; }
.hvstk-doc__text ul li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 9px; height: 9px; background: var(--terra); transform: rotate(45deg); }
.hvstk-doc__text ol { padding-left: 1.5rem; }
.hvstk-doc__text ol li::marker { font-family: var(--f-head); font-weight: 700; color: var(--terra-dark); }
.hvstk-doc__text blockquote { margin: 1.6em 0; padding: 1.4rem 1.8rem; background: var(--pine); color: var(--light); font-size: 1.12rem; border-left: 8px solid var(--mustard); }
.hvstk-doc__text blockquote p:last-child { margin-bottom: 0; }
.hvstk-doc__text blockquote a { color: var(--light); }
.hvstk-doc__text img { height: auto; }
.hvstk-doc__text figure { margin: 1.6em 0; }
.hvstk-doc__text figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.hvstk-doc__text pre { overflow-x: auto; padding: 1rem; background: var(--kraft); }
.hvstk-doc__text table { display: block; overflow-x: auto; }
.hvstk-doc__text .wp-block-table table { display: table; }
.hvstk-doc__tags { list-style: none; margin: 2rem 0 0; padding: 1rem 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: .5rem; }
.hvstk-doc__tags a { display: inline-block; padding: .15rem .7rem; border: 1px solid var(--line); background: var(--label); text-decoration: none; font-size: .9rem; }
.hvstk-doc__tags a:hover { background: var(--terra); color: var(--light); border-color: var(--terra); }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

.hvstk-near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.hvstk-near__link { display: block; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; line-height: 1.3; min-width: 0; transition: transform .15s, background .15s; }
.hvstk-near__link span { display: block; font-family: var(--f-head); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: .3rem; }
.hvstk-near__link:hover { background: var(--label); transform: translate(-2px, -2px); }
.hvstk-near__link--next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.hvstk-aside { min-width: 0; position: relative; margin-top: .4rem; padding: 2.4rem 1.5rem 1.5rem; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.hvstk-aside::before { content: ""; position: absolute; top: 12px; left: 1.2rem; right: 1.2rem; height: 10px; background: radial-gradient(circle at 7px 5px, var(--paper) 0 3.6px, var(--line) 4px 4.6px, transparent 5px) 0 0 / 20px 10px repeat-x; }
.hvstk-aside .widget { margin-bottom: 1.8rem; }
.hvstk-aside .widget:last-child { margin-bottom: 0; }
.hvstk-aside .widget-title { margin: 0 0 .9rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); font-size: 1.35rem; text-transform: uppercase; color: var(--ink); }
.hvstk-aside ul { list-style: none; margin: 0; padding: 0; }
.hvstk-aside li { padding: .55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.35; color: var(--ink); }
.hvstk-aside a { color: var(--ink); }
.hvstk-aside a:hover { color: var(--terra-dark); }
.hvstk-aside .post-date, .hvstk-aside .rss-date { display: block; font-size: .85rem; color: #5F5A4F; }
.hvstk-aside p { color: var(--ink); }

/* ---------- Пагинация ---------- */
.hvstk-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.4rem 0 0; }
.hvstk-pager .page-numbers, .hvstk-pager .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.7rem; padding: .5rem .9rem; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2; transition: transform .15s, background .15s; }
.hvstk-pager a.page-numbers:hover, .hvstk-pager a.post-page-numbers:hover { background: var(--label); transform: translate(-2px, -2px); color: var(--terra-dark); }
.hvstk-pager .page-numbers.current, .hvstk-pager .post-page-numbers.current { background: var(--terra); border-color: var(--terra); color: var(--light); }
.hvstk-pager .page-numbers.dots { background: none; border: 0; min-width: 0; padding: .5rem .2rem; }

/* ---------- Поиск ---------- */
.hvstk-search { margin: 1.2rem 0; }
.hvstk-search__label { display: block; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.hvstk-search__row { display: flex; gap: 0; }
.hvstk-search__field { flex: 1; min-width: 0; padding: .65rem .9rem; border: 2px solid var(--ink); border-right: 0; border-radius: 0; background: var(--sheet); }
.hvstk-search__btn { padding: .65rem 1.2rem; border: 2px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--light); font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; transition: background .15s; }
.hvstk-search__btn:hover { background: var(--terra); border-color: var(--terra); }

/* ---------- 404 ---------- */
.hvstk-lost { position: relative; padding: 2.4rem 2.6rem; background: var(--sheet); border: 1px solid #DDD3BF; }
.hvstk-lost__code { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--terra); }
.hvstk-lost__title { margin: .4rem 0 .6rem; text-transform: uppercase; }
.hvstk-lost__text { max-width: 56ch; }

/* ---------- Комментарии ---------- */
.hvstk-comments { margin-top: 2.6rem; padding: 2rem 2.2rem; background: var(--box); border: 1px solid #DDD3BF; }
.hvstk-comments__title, .comment-reply-title { margin: 0 0 1.2rem; text-transform: uppercase; font-size: 1.6rem; }
.hvstk-comments__list, .hvstk-comments__list .children { list-style: none; margin: 0; padding: 0; }
.hvstk-comments__list .children { margin-left: 1.6rem; }
.hvstk-note__body { margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--mustard); }
.hvstk-note__head { display: flex; gap: .8rem; align-items: center; margin-bottom: .5rem; }
.hvstk-note__head img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; overflow: hidden; font-size: 0; background: var(--kraft); }
.hvstk-note__author { display: block; font-weight: 700; }
.hvstk-note__date { font-size: .85rem; color: var(--muted); }
.hvstk-note__wait { font-style: italic; color: var(--terra-dark); }
.hvstk-note__reply a { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; font-size: .88rem; letter-spacing: .05em; }
.comment-respond { margin-top: 1.4rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 0; background: var(--sheet); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .submit { background: var(--terra); color: var(--light); border: 0; border-radius: 0; padding: .7rem 1.6rem; font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; transition: background .15s, transform .15s; }
.comment-form .submit:hover { background: var(--terra-dark); transform: translate(-2px, -2px); }
.comments-navigation, .comment-navigation { display: flex; justify-content: space-between; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.hvstk-foot { background: var(--pine); color: var(--light); padding: 3.2rem 0 1.6rem; border-top: 6px solid var(--pine-deep); }
.hvstk-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.hvstk-foot__col { min-width: 0; }
.hvstk-foot .widget { margin-bottom: 1.4rem; color: var(--light); }
.hvstk-foot .widget-title { margin: 0 0 .8rem; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; color: var(--light); }
.hvstk-foot p, .hvstk-foot li, .hvstk-foot .textwidget { color: rgba(242, 235, 221, .86); font-size: .97rem; line-height: 1.5; }
.hvstk-foot ul { list-style: none; margin: 0; padding: 0; }
.hvstk-foot li { margin-bottom: .35rem; }
.hvstk-foot a { color: var(--light); text-decoration: underline dashed rgba(242, 235, 221, .6); }
.hvstk-foot a:hover { color: var(--mustard); text-decoration-color: var(--mustard); }
.hvstk-foot .post-date { display: block; font-size: .85rem; color: rgba(242, 235, 221, .7); }
.hvstk-foot__copy { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px dashed rgba(242, 235, 221, .3); text-align: center; font-size: .9rem; color: rgba(242, 235, 221, .78); }

/* ---------- Cookie-баннер ---------- */
.hvstk-cookie { position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; max-width: 680px; margin-left: auto; margin-right: auto; display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.4rem 1rem 3.2rem; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 14px 30px -16px rgba(38, 48, 43, .8); }
.hvstk-cookie__hole { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 5px var(--rivet); }
.hvstk-cookie__text { margin: 0; font-size: .93rem; line-height: 1.45; flex: 1; min-width: 0; }
.hvstk-cookie__ok { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
    .hvstk-mark__collar { width: min(30%, 300px); }
}
@media (max-width: 1100px) {
    .hvstk-kit__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .hvstk-burger { display: inline-flex; }
    .hvstk-top__side { position: static; }
    .hvstk-nav { display: none; position: absolute; left: 4%; right: 4%; top: calc(100% - .2rem); z-index: 30; padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 24px -18px rgba(38, 48, 43, .8); }
    .hvstk-nav.is-open { display: block; }
    .hvstk-menu { flex-direction: column; gap: 0; border-bottom: 0; padding: 0; }
    .hvstk-menu::after { display: none; }
    .hvstk-menu li { border-bottom: 1px dashed var(--line); }
    .hvstk-menu li:last-child { border-bottom: 0; }
    .hvstk-menu a { display: block; padding: .7rem 0; font-size: 1.1rem; }
    .hvstk-shell.hvstk-front { width: min(92%, 1180px); }
    .hvstk-sec { padding: 3rem 1.8rem 2.2rem; }
    .hvstk-mark { padding-right: 1.8rem; }
    .hvstk-mark__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hvstk-mark__clip { position: relative; inset: auto; overflow: hidden; border-radius: 0 0 6px 0; margin: 1.2rem -1.8rem -2.2rem 0; height: 230px; }
    .hvstk-mark__collar { top: 0; width: min(60%, 300px); }
    .hvstk-measure__steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
    .hvstk-layout--aside { grid-template-columns: minmax(0, 1fr); }
    .hvstk-layout--single .hvstk-content { width: 100%; }
    .hvstk-aside { margin-top: 2.4rem; }
    .hvstk-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .hvstk-top { padding-top: 1.1rem; }
    .hvstk-brand { gap: .7rem; }
    .hvstk-brand__stamp { width: 58px; height: 58px; }
    .hvstk-brand__kind { font-size: .78rem; }
    .hvstk-burger__label { display: none; }
    .hvstk-sec { margin-top: 3rem; padding: 2.8rem 1.2rem 1.8rem; }
    .hvstk-mark { padding-right: 1.2rem; }
    .hvstk-tab { right: 1rem; font-size: .88rem; }
    .hvstk-label { margin-bottom: 1.5rem; padding: .38em .9em .34em 1.1em; }
    .hvstk-label--perf { padding-top: .62em; }
    .hvstk-mark__grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .hvstk-mark__tag { justify-self: center; width: 100%; }
    .hvstk-mark__clip { margin: 1rem -1.2rem -1.8rem 0; height: 190px; overflow: hidden; border-radius: 0 0 6px 0; }
    .hvstk-mark__collar { width: 78%; }
    .hvstk-measure__slip { padding: .9rem 1.1rem; }
    .hvstk-cards, .hvstk-cards--three { grid-template-columns: minmax(0, 1fr); }
    .hvstk-sizes__title, .hvstk-kit__title { padding-right: 0; margin-top: .6rem; }
    .hvstk-kit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hvstk-doc { padding: 1.8rem 1.2rem 1.6rem 2.6rem; }
    .hvstk-doc__holes { left: 8px; }
    .hvstk-lost { padding: 1.8rem 1.3rem; }
    .hvstk-comments { padding: 1.5rem 1.2rem; }
    .hvstk-near { grid-template-columns: minmax(0, 1fr); }
    .hvstk-near__link--next { grid-column: 1; }
    .hvstk-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .hvstk-cookie { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem 1rem 2.8rem; left: .6rem; right: .6rem; bottom: .6rem; }
}
