/* ==========================================================================
   Тема «Грунт»
   Палитра: тёмный грунт (#16181d), бумага (#f2f3ef), жёлтая краска (#f2b200).
   Шрифты: Unbounded — заголовки и цены, Onest — текст, JetBrains Mono — артикулы и треки.
   ========================================================================== */

/* ---------- Шрифты (встроены в тему) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(../fonts/unbounded-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: "Unbounded"; font-weight: 600; font-display: swap; src: url(../fonts/unbounded-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(../fonts/unbounded-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url(../fonts/unbounded-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(../fonts/onest-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: "Onest"; font-weight: 400; font-display: swap; src: url(../fonts/onest-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(../fonts/onest-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(../fonts/onest-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(../fonts/onest-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: "Onest"; font-weight: 600; font-display: swap; src: url(../fonts/onest-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url(../fonts/onest-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: "Onest"; font-weight: 700; font-display: swap; src: url(../fonts/onest-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
	--g-ink: #16181d;
	--g-ink-2: #22252d;
	--g-ink-3: #2f333d;
	--g-paper: #f2f3ef;
	--g-card: #ffffff;
	--g-line: #dfe1da;
	--g-line-2: #c9ccc2;
	--g-text: #1b1d22;
	--g-muted: #5b616b;
	--g-on-ink: #eef0ea;
	--g-on-ink-muted: #a3a8b0;
	--g-accent: #f2b200;
	--g-accent-2: #ffc933;
	--g-accent-deep: #8a6400;
	--g-ok: #1c7a47;
	--g-warn: #9a5b00;
	--g-bad: #b3261e;
	--g-radius: 12px;
	--g-radius-sm: 8px;
	--g-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--g-display: "Unbounded", "Onest", system-ui, sans-serif;
	--g-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--g-gutter: clamp(16px, 4vw, 40px);
	--g-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1'/%3E%3C/svg%3E");
	color-scheme: light;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0; background: var(--g-paper); color: var(--g-text);
	font: 400 16px/1.6 var(--g-font); font-variant-numeric: lining-nums;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	min-height: 100vh; display: flex; flex-direction: column;
}
.g-main { flex: 1; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--g-display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .5em; }
h3, h4 { font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd, .cc-track, .cc-sku { font-family: var(--g-mono); font-weight: 500; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.g-skip { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--g-accent); color: var(--g-ink); padding: 10px 14px; border-radius: var(--g-radius-sm); font-weight: 600; }
.g-skip:focus { top: 12px; }

.g-wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--g-gutter); }
.g-icon { flex: none; }

/* ---------- Кнопки ---------- */
.g-btn, .cc-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.25em; border: 2px solid var(--g-accent); border-radius: var(--g-radius-sm);
	background: var(--g-accent); color: var(--g-ink) !important; text-decoration: none;
	font: 600 15px/1.2 var(--g-font); cursor: pointer; white-space: nowrap;
	transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.g-btn:hover, .cc-btn:hover { background: var(--g-accent-2); border-color: var(--g-accent-2); box-shadow: 0 6px 18px -8px rgba(242, 178, 0, .8); }
.g-btn:active, .cc-btn:active { transform: translateY(1px); }
.g-btn .g-icon { width: 18px; height: 18px; transition: transform .15s; }
.g-btn:hover .g-icon { transform: translateX(3px); }
.g-btn-lg { padding: .9em 1.5em; font-size: 16px; }
.g-btn-ghost { background: transparent; color: var(--g-on-ink) !important; border-color: color-mix(in srgb, var(--g-on-ink) 35%, transparent); }
.g-btn-ghost:hover { background: color-mix(in srgb, var(--g-on-ink) 10%, transparent); border-color: var(--g-on-ink); box-shadow: none; }
.g-page .g-btn-ghost, .g-section .g-btn-ghost { color: var(--g-text) !important; border-color: var(--g-line-2); }

/* ---------- Шапка ---------- */
.g-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--g-ink); color: var(--g-on-ink);
	border-bottom: 1px solid var(--g-ink-3);
}
.admin-bar .g-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .g-header { top: 0; position: relative; } }
.g-header-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.g-brand { flex: none; }
.g-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--g-on-ink); text-decoration: none; font: 800 18px/1 var(--g-display); letter-spacing: -.02em; }
.g-logo-mark { width: 26px; height: 30px; background: var(--g-accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.custom-logo { max-height: 44px; width: auto; display: block; }

.g-nav { flex: 0 0 auto; }
.g-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.g-menu li { position: relative; }
.g-menu a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: var(--g-radius-sm); color: var(--g-on-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.g-menu a:hover { background: var(--g-ink-2); }
.g-menu .current-menu-item > a, .g-menu .current_page_item > a, .g-menu .current-menu-ancestor > a { color: var(--g-accent); }
.g-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px; background: var(--g-ink-2); border: 1px solid var(--g-ink-3); border-radius: var(--g-radius-sm); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.g-menu li:hover > .sub-menu, .g-menu li:focus-within > .sub-menu { display: block; }

.g-tools { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.g-search { flex: 0 1 260px; min-width: 140px; display: flex; align-items: center; background: var(--g-ink-2); border: 1px solid var(--g-ink-3); border-radius: 999px; padding: 0 4px 0 14px; transition: border-color .15s; }
.g-search:focus-within { border-color: var(--g-accent); }
.g-search input { background: transparent; border: 0; color: var(--g-on-ink); font: 400 14px var(--g-font); width: 100%; min-width: 0; padding: 9px 0; outline: none; }
.g-search input::placeholder { color: var(--g-on-ink-muted); }
.g-search button { background: none; border: 0; color: var(--g-on-ink-muted); cursor: pointer; padding: 6px; display: grid; place-items: center; border-radius: 50%; }
.g-search button:hover { color: var(--g-accent); }
.g-search .g-icon { width: 18px; height: 18px; }
.g-tool, .g-cart { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: var(--g-on-ink); text-decoration: none; font-weight: 500; font-size: 14px; position: relative; }
.g-tool:hover { background: var(--g-ink-2); }
.g-due { background: var(--g-accent); color: var(--g-ink); font: 700 12px/1 var(--g-font); padding: 4px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.g-cart { background: var(--g-accent); color: var(--g-ink); font-weight: 600; }
.g-cart:hover { background: var(--g-accent-2); }
.g-cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--g-ink); color: var(--g-accent); font: 700 12px/22px var(--g-font); text-align: center; font-variant-numeric: tabular-nums; }
.g-cart.is-empty .g-cart-count { background: color-mix(in srgb, var(--g-ink) 18%, transparent); color: var(--g-ink); }
.g-burger { display: none; background: none; border: 0; color: var(--g-on-ink); padding: 8px; cursor: pointer; border-radius: var(--g-radius-sm); }
.g-burger-close { display: none; }

.g-account .g-tool-label { display: none; } /* значок + подсказка; сумма к оплате показывается рядом */
@media (max-width: 1280px) {
	.g-tool-label { display: none; }
	.g-menu a { padding: 8px 9px; }
}
@media (max-width: 1180px) {
	.g-header-in { flex-wrap: wrap; gap: 8px 10px; min-height: 60px; padding-block: 8px; }
	.g-brand { order: 1; flex: 1; min-width: 0; }
	.g-tools { display: contents; }
	.g-account { order: 2; }
	.g-cart { order: 3; }
	.g-burger { order: 4; display: grid; place-items: center; }
	.g-search { order: 5; flex-basis: 100%; max-width: none; }
	.g-search input { width: 100%; }
	.g-nav { order: 6; flex-basis: 100%; display: none; padding-bottom: 8px; }
	.g-nav.is-open { display: block; }
	.g-menu { flex-direction: column; }
	.g-menu a { padding: 12px; font-size: 16px; }
	.g-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding-left: 12px; }
	.g-burger[aria-expanded="true"] .g-burger-open { display: none; }
	.g-burger[aria-expanded="true"] .g-burger-close { display: inline; }
}
@media (max-width: 560px) {
	.g-logo { font-size: 14px; gap: 8px; line-height: 1.15; }
	.g-logo-mark { width: 22px; height: 26px; }
	.g-tool, .g-cart { padding: 8px 10px; }
}

/* ---------- Главная: первый экран ---------- */
.g-hero {
	background: var(--g-hex), radial-gradient(1200px 500px at 85% -10%, rgba(242,178,0,.14), transparent 60%), var(--g-ink);
	color: var(--g-on-ink);
	padding-block: clamp(48px, 8vw, 104px) clamp(48px, 7vw, 88px);
	border-bottom: 4px solid var(--g-accent);
}
.g-hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.g-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--g-font); letter-spacing: .12em; text-transform: uppercase; color: var(--g-accent); margin-bottom: 20px; }
.g-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.g-hero-title { font-size: clamp(34px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.03em; margin-bottom: 24px; max-width: 16ch; }
.g-hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--g-on-ink-muted); max-width: 58ch; margin-bottom: 32px; }
.g-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.g-hero-panel { display: flex; flex-direction: column; gap: 12px; }
.g-hero-stat { background: color-mix(in srgb, var(--g-ink-2) 88%, transparent); border: 1px solid var(--g-ink-3); border-radius: var(--g-radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(3px); }
.g-hero-stat b { font: 600 20px/1.25 var(--g-display); color: var(--g-on-ink); }
.g-hero-stat-label { font-size: 13px; color: var(--g-on-ink-muted); }
.g-hero-stat-note { font-size: 13px; color: var(--g-on-ink-muted); }
.g-hero-live { border-color: color-mix(in srgb, var(--g-accent) 55%, transparent); position: relative; padding-left: 38px; }
.g-live-dot { position: absolute; left: 18px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--g-accent); box-shadow: 0 0 0 0 rgba(242,178,0,.6); animation: g-pulse 2s infinite; }
@keyframes g-pulse { 0% { box-shadow: 0 0 0 0 rgba(242,178,0,.55); } 70% { box-shadow: 0 0 0 10px rgba(242,178,0,0); } 100% { box-shadow: 0 0 0 0 rgba(242,178,0,0); } }
.g-rate-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-rate-list li { display: flex; flex-direction: column; margin: 0; }
.g-rate-list span { font-size: 12px; color: var(--g-on-ink-muted); }
.g-rate-list b { font: 600 16px/1.3 var(--g-display); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .g-hero-in { grid-template-columns: 1fr; } }

/* ---------- Секции главной ---------- */
.g-section { padding-block: clamp(40px, 6vw, 72px) 0; }
.g-section:last-child { padding-bottom: clamp(48px, 7vw, 88px); }
.g-h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.g-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.g-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.g-more .g-icon { width: 18px; height: 18px; color: var(--g-accent-deep); transition: transform .15s; }
.g-more:hover .g-icon { transform: translateX(3px); }

.g-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .g-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) { .g-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.g-steps-section .g-h2 { margin-bottom: 28px; }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: g; }
.g-steps li { position: relative; background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 60px 22px 22px; margin: 0; counter-increment: g; }
.g-steps li::before {
	content: counter(g); position: absolute; top: 18px; left: 22px;
	width: 32px; height: 36px; display: grid; place-items: center;
	background: var(--g-ink); color: var(--g-accent); font: 800 15px/1 var(--g-display);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.g-steps li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: 62px; right: -17px; height: 2px; background: repeating-linear-gradient(90deg, var(--g-line-2) 0 6px, transparent 6px 12px); }
.g-steps h3 { font-size: 17px; margin-bottom: 8px; }
.g-steps p { color: var(--g-muted); margin: 0; font-size: 15px; }
@media (max-width: 980px) { .g-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-steps li::after { display: none; } }
@media (max-width: 560px) { .g-steps { grid-template-columns: 1fr; } }

.g-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.g-cat { margin: 0; }
.g-cat a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 18px; border-radius: var(--g-radius); overflow: hidden; background: var(--g-ink); color: var(--g-on-ink); text-decoration: none; isolation: isolate; }
.g-cat-img { position: absolute; inset: 0; z-index: -1; }
.g-cat-img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .35s, opacity .35s; }
.g-cat a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(22,24,29,.92)); }
.g-cat a:hover img { transform: scale(1.05); opacity: .7; }
.g-cat-name { font: 600 19px/1.2 var(--g-display); }
.g-cat-sub { font-size: 13px; color: var(--g-on-ink-muted); margin-top: 6px; }
.g-cat a:hover .g-cat-name { color: var(--g-accent); }

.g-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--g-hex), var(--g-ink); color: var(--g-on-ink); border-radius: var(--g-radius); padding: clamp(24px, 4vw, 40px); }
.g-band p { color: var(--g-on-ink-muted); margin: 8px 0 0; }

/* ---------- Заголовок страницы ---------- */
.g-pagehead { background: var(--g-hex), var(--g-ink); color: var(--g-on-ink); padding-block: clamp(28px, 4vw, 48px); border-bottom: 3px solid var(--g-accent); }
.g-pagehead-title { font-size: clamp(26px, 3.6vw, 44px); margin: 0; }
.g-pagehead-lead { margin: 10px 0 0; color: var(--g-on-ink-muted); max-width: 70ch; }
.g-pagehead-meta { margin: 0 0 10px; color: var(--g-on-ink-muted); font-size: 14px; }
.g-pagehead-meta a { color: inherit; }
.g-page { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.g-page-text .g-content { max-width: 760px; }
.g-page-text .g-content > * { max-width: 100%; }
.g-content h2 { font-size: 26px; margin-top: 1.6em; }
.g-content h3 { font-size: 20px; margin-top: 1.4em; }
.g-content img { border-radius: var(--g-radius-sm); }
.g-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--g-accent); color: var(--g-muted); }
.g-content .alignwide { max-width: none; }
.g-cover { margin: 0 0 28px; }
.g-cover img { border-radius: var(--g-radius); width: 100%; }
.g-postnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--g-line); }

.g-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g-post { margin: 0; background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); overflow: hidden; }
.g-post-img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.g-post-body { padding: 18px 20px; }
.g-post-body .g-pagehead-meta { color: var(--g-muted); }
.g-post h2 { font-size: 19px; }
.g-post h2 a { text-decoration: none; }
.g-empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--g-line-2); border-radius: var(--g-radius); }
.g-pagination .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.g-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--g-line); border-radius: var(--g-radius-sm); text-decoration: none; background: var(--g-card); }
.g-pagination .current { background: var(--g-ink); color: var(--g-accent); border-color: var(--g-ink); }

.g-404 { background: var(--g-hex), var(--g-ink); color: var(--g-on-ink); padding-block: clamp(64px, 12vw, 140px); }
.g-404 h1 { font-size: clamp(30px, 5vw, 56px); }
.g-404 p { color: var(--g-on-ink-muted); max-width: 52ch; }

/* ---------- Подвал ---------- */
.g-footer { background: var(--g-ink); color: var(--g-on-ink-muted); margin-top: auto; font-size: 15px; }
.g-footer-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-block: 48px 32px; }
.g-logo-footer { margin-bottom: 14px; }
.g-footer-about p { max-width: 44ch; margin: 0; }
.g-footer-menu, .g-footer .g-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.g-footer-menu a, .g-footer .g-menu a { color: var(--g-on-ink); text-decoration: none; padding: 4px 0; display: inline-block; background: none; }
.g-footer-menu a:hover, .g-footer .g-menu a:hover { color: var(--g-accent); }
.g-contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-contacts li { display: flex; align-items: center; gap: 10px; margin: 0; }
.g-contacts .g-icon { width: 18px; height: 18px; color: var(--g-accent); }
.g-contacts a { color: var(--g-on-ink); text-decoration: none; }
.g-contacts a:hover { color: var(--g-accent); }
.g-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--g-ink-3); font-size: 13px; }
.g-rates { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .g-footer-in { grid-template-columns: 1fr; } }

/* ==========================================================================
   Плагин «Каталог с ценами в валюте» — в стиле темы
   ========================================================================== */
body.grunt {
	--cc-accent: var(--g-accent);
	--cc-accent-ink: var(--g-ink);
	--cc-ok: var(--g-ok);
	--cc-warn: var(--g-warn);
	--cc-bad: var(--g-bad);
	--cc-radius: var(--g-radius);
}
.grunt .cc-catalog, .grunt .cc-product, .grunt .cc-cart, .grunt .cc-account, .grunt .cc-crumbs, .grunt .cc-description {
	--cc-line: var(--g-line);
	--cc-soft: #eceee8;
	--cc-muted: var(--g-muted);
	max-width: none; margin-inline: 0;
}
.grunt .cc-float-cart { display: none; } /* корзина уже есть в шапке */
.grunt .cc-toast { background: var(--g-ink); border: 1px solid var(--g-ink-3); font-family: var(--g-font); }
.grunt .cc-toast a { color: var(--g-accent); }

/* Поля */
.grunt .cc-catalog input:not([type=checkbox]), .grunt .cc-catalog select,
.grunt .cc-cart input:not([type=checkbox]), .grunt .cc-cart textarea,
.grunt .cc-product input[type=number], .grunt .cc-account input:not([type=checkbox]) {
	background: var(--g-card); border: 1px solid var(--g-line-2); border-radius: var(--g-radius-sm);
	padding: .62em .8em; font: 400 15px var(--g-font); color: var(--g-text);
	transition: border-color .15s, box-shadow .15s;
}
.grunt .cc-catalog input:focus, .grunt .cc-catalog select:focus, .grunt .cc-cart input:focus, .grunt .cc-cart textarea:focus, .grunt .cc-product input:focus, .grunt .cc-account input:focus {
	outline: none; border-color: var(--g-ink); box-shadow: 0 0 0 3px rgba(242, 178, 0, .35);
}
.grunt .cc-btn-quiet { background: var(--g-card); border-color: var(--g-line-2); color: var(--g-text) !important; }
.grunt .cc-btn-quiet:hover { background: #eceee8; border-color: var(--g-ink); box-shadow: none; }
.grunt .cc-btn.is-added { background: var(--g-ok); border-color: var(--g-ok); color: #fff !important; }

/* Каталог */
.grunt .cc-catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.grunt .cc-sidebar { top: 96px; background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 18px; }
.grunt .cc-filters > summary { font: 600 14px var(--g-display); text-transform: none; }
.grunt .cc-cats a { font-size: 15px; padding: .38em .6em; }
.grunt .cc-cats .is-active > a, .grunt .cc-cats a.is-active { background: var(--g-ink); color: var(--g-on-ink); box-shadow: none; }
.grunt .cc-cats .is-active > a .cc-count, .grunt .cc-cats a.is-active .cc-count { color: var(--g-accent); }
.grunt .cc-filter-form { border-top-color: var(--g-line); }
.grunt .cc-toolbar { background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 10px; }
.grunt .cc-toolbar .cc-search input { border-color: transparent; background: #f5f6f2; }
.grunt .cc-found { font-size: 14px; }
.grunt .cc-found b { font-family: var(--g-display); font-weight: 600; }

.grunt .cc-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.grunt .cc-card { background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); transition: transform .18s, box-shadow .18s, border-color .18s; }
.grunt .cc-card:hover { transform: translateY(-3px); border-color: var(--g-line-2); box-shadow: 0 14px 30px -16px rgba(22, 24, 29, .35); }
.grunt .cc-card-img { background: #eceee8; aspect-ratio: 1 / 1; border-bottom: 1px solid var(--g-line); }
.grunt .cc-card-img img { object-fit: contain; padding: 10px; }
.grunt .cc-card-body { padding: 14px 16px 16px; gap: 8px; }
.grunt .cc-card-title { font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.grunt .cc-card-title:hover { text-decoration: underline; }
.grunt .cc-sku { font-size: 12px; color: var(--g-muted); }
.grunt .cc-badge { border: 0; font: 600 12px/1 var(--g-font); padding: 5px 9px; border-radius: 999px; }
.grunt .cc-badge-instock { background: #e3f3e9; color: var(--g-ok); }
.grunt .cc-badge-onorder, .grunt .cc-badge-preorder { background: #fdf0cf; color: var(--g-warn); }
.grunt .cc-badge-outofstock { background: #eceee8; color: var(--g-muted); }
.grunt .cc-price-now { font: 600 19px/1.1 var(--g-display); letter-spacing: -.01em; }
.grunt .cc-price-old { font-size: 13px; }
.grunt .cc-ship-est { font-size: 12px; margin-top: 4px; }
.grunt .cc-card-buy .cc-btn { padding: .55em .95em; font-size: 14px; }
.grunt .cc-pages a, .grunt .cc-pages span { background: var(--g-card); border-color: var(--g-line); border-radius: var(--g-radius-sm); }
.grunt .cc-pages [aria-current] { background: var(--g-ink); color: var(--g-accent); border-color: var(--g-ink); }
.grunt .cc-empty { background: var(--g-card); border-color: var(--g-line-2); }
.grunt .cc-notice { background: var(--g-card); border-radius: var(--g-radius-sm); }

/* Страница товара */
.g-product-page { padding-block: 24px clamp(48px, 6vw, 80px); }
.grunt .cc-crumbs { font-size: 14px; margin-bottom: 20px; }
.grunt .cc-crumbs a { text-decoration: none; }
.grunt .cc-crumbs a:hover { text-decoration: underline; }
.grunt .cc-product { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.grunt .cc-gallery-main { background: var(--g-card); border: 1px solid var(--g-line); }
.grunt .cc-gallery-main img { padding: 16px; }
.grunt .cc-thumbs button { background: var(--g-card); border: 2px solid var(--g-line); }
.grunt .cc-thumbs button[aria-current] { border-color: var(--g-ink); }
.grunt .cc-buybox { background: var(--g-card); border: 1px solid var(--g-line); padding: clamp(20px, 3vw, 32px); top: 96px; gap: 16px; }
.grunt .cc-product-title { font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.grunt .cc-price-lg .cc-price-now { font-size: clamp(28px, 3.4vw, 40px); }
.grunt .cc-buybox .cc-add .cc-btn { font-size: 16px; padding: .85em 1.2em; }
.grunt .cc-specs dt { font-size: 14px; }
.grunt .cc-specs dd { font-weight: 500; }
.grunt .cc-description { max-width: 780px; margin-top: 40px; }
.grunt .cc-description h2 { font-size: 22px; }

/* Корзина */
.grunt .cc-cart-table { background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.grunt .cc-cart-table { font-variant-numeric: normal; }
.grunt .cc-cart-table .cc-r, .grunt .cc-cart-table .cc-c, .grunt .cc-total { font-variant-numeric: tabular-nums; }
.grunt .cc-cart-table th { background: #f5f6f2; font-size: 13px; text-transform: none; white-space: nowrap; }
.grunt .cc-cart-table td, .grunt .cc-cart-table th { border-bottom-color: var(--g-line); }
.grunt .cc-cart-table tfoot td { background: #f5f6f2; }
.grunt .cc-total { font: 600 20px var(--g-display); }
.grunt .cc-checkout, .grunt .cc-thanks { background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); }
.grunt .cc-checkout h2, .grunt .cc-thanks h2 { font-size: 22px; }
.grunt .cc-ship-note { background: #fdf0cf; color: #5c4300; border-radius: var(--g-radius-sm); padding: 12px 14px; }

/* Мои заявки */
.grunt .cc-account { max-width: 1040px; }
.grunt .cc-order-title { font-size: clamp(24px, 3vw, 34px); }
.grunt .cc-status { border: 0; font: 600 12px/1 var(--g-font); padding: 6px 10px; border-radius: 999px; background: #eceee8; color: var(--g-muted); }
.grunt .cc-stage-awaiting_payment, .grunt .cc-stage-awaiting_delivery_payment { background: var(--g-accent) !important; color: var(--g-ink) !important; }
.grunt .cc-stage-payment_reported, .grunt .cc-stage-delivery_reported, .grunt .cc-stage-shipping, .grunt .cc-stage-arrived { background: #fdf0cf !important; color: var(--g-warn) !important; }
.grunt .cc-stage-paid, .grunt .cc-stage-ready, .grunt .cc-stage-done { background: #e3f3e9 !important; color: var(--g-ok) !important; }
.grunt .cc-steps { background: var(--g-card); border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 22px 12px 18px; }
.grunt .cc-steps li { color: var(--g-muted); }
.grunt .cc-steps li::before { width: 28px; height: 32px; border: 0; border-radius: 0; background: #e3e5de; color: var(--g-muted); line-height: 32px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); font-family: var(--g-display); }
.grunt .cc-steps li::after { top: 15px; background: #e3e5de; }
.grunt .cc-steps li.is-done::before { background: var(--g-ink); color: var(--g-accent); }
.grunt .cc-steps li.is-done::after, .grunt .cc-steps li.is-current::after { background: var(--g-ink); }
.grunt .cc-steps li.is-current::before { background: var(--g-accent); color: var(--g-ink); }
.grunt .cc-steps li.is-current { color: var(--g-text); }
.grunt .cc-pay-card { background: var(--g-card); border-color: var(--g-line); }
.grunt .cc-pay-card-pending { border-color: var(--g-accent); box-shadow: 0 0 0 2px var(--g-accent) inset; }
.grunt .cc-pay-head b { font: 600 22px var(--g-display); }
.grunt .cc-pay-details { background: #f5f6f2; border: 1px dashed var(--g-line-2); }
.grunt .cc-due-banner { background: var(--g-ink); color: var(--g-on-ink); border: 0; }
.grunt .cc-due-banner b { color: var(--g-accent); font-family: var(--g-display); }
.grunt .cc-note-soft { background: var(--g-card); border: 1px solid var(--g-line); }
.grunt .cc-parcels-list li { background: var(--g-card); border-color: var(--g-line); }
.grunt .cc-parcel { border: 0; font-weight: 600; padding: 3px 8px; }
.grunt .cc-parcel-forming { background: #eceee8; }
.grunt .cc-parcel-sent, .grunt .cc-parcel-transit { background: #fdf0cf; }
.grunt .cc-parcel-arrived { background: #e3f3e9; }
.grunt .cc-account h3 { font-size: 18px; margin-top: 28px; }

@media (max-width: 760px) {
	.grunt .cc-catalog { grid-template-columns: 1fr; }
	.grunt .cc-sidebar { position: static; padding: 12px 14px; }
	.grunt .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.grunt .cc-card-body { padding: 10px; }
	.grunt .cc-price-now { font-size: 16px; }
	.grunt .cc-card-title { font-size: 14px; }
	.grunt .cc-product { grid-template-columns: 1fr; }
	.grunt .cc-steps { padding: 14px; }
	.grunt .cc-steps li::before { left: 0; }
	.grunt .cc-cart-table { border: 0; background: transparent; }
}
