/*
Theme Name: TCSP Trust
Author: Tiêu Chuẩn Sản Phẩm
Description: Theme dịch vụ tư vấn công bố sản phẩm & giấy phép ATTP: phong cách tin cậy, dễ đọc, tương phản cao, nút gọi hotline nổi bật.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tcsp-trust
*/

:root {
	--c-primary: #1e3a8a;
	--c-primary-dk: #14286b;
	--c-primary-2: #1e40af;
	--c-accent: #b45309;
	--c-accent-dk: #92400e;
	--c-ok: #15803d;
	--c-bg: #f8fafc;
	--c-card: #ffffff;
	--c-fg: #0f172a;
	--c-text: #1e293b;
	--c-soft: #475569;
	--c-muted: #e9eef5;
	--c-tint: #eef2fb;
	--c-border: #cbd5e1;
	--c-line: #e2e8f0;
	--c-ring: #1e3a8a;

	--f-sans: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	--sh-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
	--sh-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .05);
	--sh-lg: 0 18px 40px rgba(20, 40, 107, .14);

	--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
	--wrap: 1200px;
	--t-fast: 150ms;
	--t-mid: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 16px/1.65 var(--f-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-primary-2); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: var(--c-primary-dk); }
h1, h2, h3, h4 { color: var(--c-fg); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-ring); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; vertical-align: middle; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-fg); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 24px; } }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
	border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2;
	cursor: pointer; text-align: center;
	transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dk); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 6px 16px rgba(180, 83, 9, .25); }
.btn--accent:hover { background: var(--c-accent-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dk); background: var(--c-tint); }
.btn--light { background: #fff; color: var(--c-primary-dk); border-color: #fff; }
.btn--light:hover { background: var(--c-tint); color: var(--c-primary-dk); }

.tag {
	display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em;
	color: var(--c-primary); background: var(--c-tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.tag:hover { background: var(--c-primary); color: #fff; }
.tag--light { background: rgba(255, 255, 255, .14); color: #fff; }
.tag--light:hover { background: #fff; color: var(--c-primary-dk); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 8px; }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--c-primary-dk); color: #cdd6ee; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: #cdd6ee; }
a.topbar__item:hover { color: #fff; }
@media (max-width: 767px) { .topbar { display: none; } }

.head { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--sh-sm); }
.admin-bar .head { top: 32px; }
@media (max-width: 782px) { .admin-bar .head { top: 0; } }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-fg); }
.brand:hover { color: var(--c-fg); }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--c-primary); color: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand__name b { color: var(--c-primary); font-weight: 800; }
.brand__tag { font-size: 12px; color: var(--c-soft); font-weight: 500; }

.head__actions { display: flex; align-items: center; gap: 12px; }
.head__call { display: inline-flex; align-items: center; gap: 10px; color: var(--c-fg); padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid var(--c-line); transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.head__call:hover { border-color: var(--c-accent); color: var(--c-fg); background: #fffaf3; }
.head__call-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent); color: #fff; }
.head__call-txt { display: flex; flex-direction: column; line-height: 1.15; }
.head__call-txt small { font-size: 11px; color: var(--c-soft); }
.head__call-txt strong { font-size: 16px; color: var(--c-accent-dk); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1.5px solid var(--c-line); background: #fff; cursor: pointer; place-items: center; color: var(--c-fg); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

.nav { background: var(--c-primary); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav__list > li { position: relative; }
.nav__list a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__search { display: none; } .nav__list a { padding: 0 10px; font-size: 14px; } }
@media (min-width: 1280px) { .nav__list { flex-wrap: nowrap; } .nav__search input { width: 180px; } }
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a, .nav__list > .current-category-ancestor > a { background: rgba(255, 255, 255, .12); color: #fff; }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--sh-lg); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--t-mid) ease, transform var(--t-mid) ease, visibility var(--t-mid); z-index: 5; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { color: var(--c-text); min-height: 44px; border-radius: var(--r-sm); font-weight: 500; }
.nav__list .sub-menu a:hover { background: var(--c-tint); color: var(--c-primary-dk); }
.nav__search { display: flex; align-items: center; background: rgba(255, 255, 255, .12); border-radius: var(--r-md); }
.nav__search input { width: 220px; height: 38px; border: 0; background: transparent; color: #fff; padding: 0 12px; }
.nav__search input::placeholder { color: #c6d0ec; }
.nav__search input:focus { outline: none; }
.nav__search:focus-within { box-shadow: 0 0 0 2px #fff; }
.nav__search button { width: 40px; height: 38px; border: 0; background: transparent; color: #fff; cursor: pointer; }

@media (max-width: 1023px) {
	.head__call-txt { display: none; }
	.head__call { padding: 4px; }
	.nav-toggle { display: grid; }
	.nav { display: none; }
	.nav.is-open { display: block; max-height: calc(100vh - 72px); overflow-y: auto; }
	.nav__in { flex-direction: column; align-items: stretch; padding-block: 8px 16px; }
	.nav__list { flex-direction: column; }
	.nav__list a { min-height: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; min-width: 0; }
	.nav__list .sub-menu a { color: #dfe6f7; }
	.nav__list .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	.nav__search { margin-top: 12px; }
	.nav__search input { width: 100%; flex: 1; height: 44px; }
}
@media (max-width: 420px) { .brand__tag { display: none; } .brand__name { font-size: 17px; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--c-primary-dk) 0%, var(--c-primary) 60%, #2747a3 100%); color: #dbe3f6; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .04); pointer-events: none; }
.hero__in { display: grid; gap: 32px; padding-block: 48px 56px; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero__in { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding-block: 72px 80px; } }
.hero .eyebrow { color: #fbbf77; }
.hero__title { color: #fff; font-size: clamp(1.75rem, 4.2vw, 2.75rem); line-height: 1.2; font-weight: 800; margin-bottom: 16px; }
.hero__title span { color: #fcd9a8; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.125rem); max-width: 58ch; color: #dbe3f6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 20px; }
.hero__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; color: #e7ecf9; }
.hero__checks .ico { color: #86efac; }

.hero__panel { background: #fff; color: var(--c-text); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-lg); }
.hero__panel-title { font-weight: 700; color: var(--c-fg); font-size: 17px; margin-bottom: 12px; }
.quick { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.quick a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: var(--r-md); color: var(--c-fg); font-weight: 600; font-size: 15px; border: 1px solid var(--c-line); transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.quick a:hover { border-color: var(--c-primary); background: var(--c-tint); color: var(--c-primary-dk); }
.quick__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c-tint); color: var(--c-primary); }
.quick__name { flex: 1; }
.quick a > .ico:last-child { color: var(--c-soft); }
.hero__search { display: flex; gap: 8px; }
.hero__search input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: 0 12px; background: #fff; }
.hero__search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, .18); }

/* ---------- Facts ---------- */
.facts { background: #fff; border-bottom: 1px solid var(--c-line); }
.facts__in { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .facts__in { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 20px 12px; text-align: center; border-right: 1px solid var(--c-line); }
.fact:last-child { border-right: 0; }
@media (max-width: 767px) { .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); } }
.fact strong { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--c-primary); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fact span { font-size: 14px; color: var(--c-soft); }

/* ---------- Sections ---------- */
.section { padding-block: 56px; }
.section--tight { padding-block: 32px 56px; }
.section--muted { background: var(--c-muted); }
.section__head { max-width: 720px; margin-bottom: 28px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; }
.section__title { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; margin-bottom: 8px; }
.section__lead { color: var(--c-soft); font-size: 17px; margin: 0; }

.svc-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 24px; color: var(--c-text); box-shadow: var(--sh-sm); transition: border-color var(--t-mid) ease, box-shadow var(--t-mid) ease, transform var(--t-mid) ease; }
.svc:hover { border-color: var(--c-primary); box-shadow: var(--sh-md); transform: translateY(-2px); color: var(--c-text); }
.svc__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-tint); color: var(--c-primary); margin-bottom: 16px; transition: background-color var(--t-mid) ease, color var(--t-mid) ease; }
.svc:hover .svc__ico { background: var(--c-primary); color: #fff; }
.svc__title { font-size: 18px; margin-bottom: 8px; }
.svc__text { color: var(--c-soft); font-size: 15px; flex: 1; }
.svc__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--c-primary); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: #fff; border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--c-line); position: relative; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { color: var(--c-soft); font-size: 15px; margin: 0; }

/* ---------- Layout ---------- */
.layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; } }
.layout__main { min-width: 0; }
.layout__side { display: grid; gap: 20px; }
@media (min-width: 1024px) { .layout__side { position: sticky; top: 140px; } }

/* ---------- Cards / rows ---------- */
.feature { display: grid; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--sh-sm); }
@media (min-width: 768px) { .feature { grid-template-columns: 1.1fr 1fr; } }
.feature__media { display: block; background: var(--c-muted); aspect-ratio: 16 / 10; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: 22px; }
.feature__title { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.feature__title a, .card__title a, .row__title a { color: var(--c-fg); }
.feature__title a:hover, .card__title a:hover, .row__title a:hover { color: var(--c-primary-2); }

.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid:not(.card-grid--2) { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--t-mid) ease, border-color var(--t-mid) ease; }
.card:hover { box-shadow: var(--sh-md); border-color: var(--c-border); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--c-muted); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: #94a3b8; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 16px; line-height: 1.4; margin-bottom: 8px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--c-soft); }
.dot { color: var(--c-border); }

.rows { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow var(--t-mid) ease; }
.row:hover { box-shadow: var(--sh-md); }
@media (min-width: 640px) { .row { grid-template-columns: 240px 1fr; } }
.row__media { display: block; aspect-ratio: 16 / 10; background: var(--c-muted); overflow: hidden; }
@media (min-width: 640px) { .row__media { aspect-ratio: auto; height: 100%; min-height: 160px; } }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row__body { padding: 16px 18px; }
.row__title { font-size: 18px; line-height: 1.4; margin-bottom: 6px; }
.row__excerpt { color: var(--c-soft); font-size: 15px; margin-bottom: 10px; }
.more { text-align: center; margin-top: 24px; }

/* ---------- Sidebar ---------- */
.cta-box { background: linear-gradient(160deg, var(--c-primary-dk), var(--c-primary)); color: #dbe3f6; border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; }
.cta-box__title { color: #fff; font-weight: 800; font-size: 19px; margin: 0; }
.cta-box__text { font-size: 15px; margin: 0 0 4px; }
.cta-box .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta-box .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.article .cta-box { margin: 32px 0; }
@media (min-width: 640px) { .article .cta-box { grid-template-columns: 1fr 1fr; } .article .cta-box__title, .article .cta-box__text { grid-column: 1 / -1; } }

.side-box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 18px; }
.side-box__title { font-size: 16px; font-weight: 800; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c-tint); }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: var(--r-sm); color: var(--c-text); font-weight: 500; font-size: 15px; }
.side-cats a:hover, .side-cats a[aria-current] { background: var(--c-tint); color: var(--c-primary-dk); }
.side-cats .count { font-size: 12px; font-weight: 700; color: var(--c-soft); background: var(--c-muted); padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.side-pop { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.side-pop li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--c-line); }
.side-pop li:first-child { border-top: 0; padding-top: 0; }
.side-pop li::before { content: counter(p); font-weight: 800; color: var(--c-primary); font-size: 18px; line-height: 1.3; }
.side-pop a { color: var(--c-text); font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.side-pop a:hover { color: var(--c-primary-2); }

/* ---------- Page head / article ---------- */
.page-head { background: linear-gradient(160deg, var(--c-primary-dk), var(--c-primary)); color: #dbe3f6; padding-block: 28px 32px; }
.page-head__title { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.25rem); font-weight: 800; margin: 6px 0 8px; max-width: 30ch; }
.page-head--article .page-head__title { max-width: 36ch; }
.page-head__desc { color: #dbe3f6; max-width: 70ch; margin: 0; }
.crumbs { font-size: 13.5px; color: #b9c5e6; margin-bottom: 10px; }
.crumbs a { color: #dbe3f6; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .separator { margin: 0 4px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; color: #c9d3ee; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 768px) { .article { padding: 36px 40px; } }

.toc { background: var(--c-tint); border-left: 4px solid var(--c-primary); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 28px; }
.toc__title { font-weight: 800; color: var(--c-fg); margin-bottom: 8px; }
.toc__list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.toc__list a { color: var(--c-primary-2); font-size: 15px; }
.toc__list a:hover { text-decoration: underline; }
.toc__sub { margin-left: 16px; list-style: circle; }

.entry { font-size: 17px; line-height: 1.8; color: var(--c-text); overflow-wrap: anywhere; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.45em; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--c-tint); }
.entry h3 { font-size: 1.2em; margin: 1.5em 0 .5em; }
.entry h4 { font-size: 1.05em; margin: 1.3em 0 .4em; }
.entry p, .entry ul, .entry ol { margin: 0 0 1.1em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: .4em; }
.entry a { color: var(--c-primary-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.entry a:hover { color: var(--c-primary-dk); text-decoration-thickness: 2px; }
.entry img { border-radius: var(--r-md); margin-inline: auto; }
.entry figure, .entry .wp-caption { margin: 1.5em auto; max-width: 100% !important; }
.entry figcaption, .entry .wp-caption-text { font-size: 14px; color: var(--c-soft); text-align: center; margin-top: 8px; }
.entry blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--c-accent); background: #fffaf3; border-radius: 0 var(--r-md) var(--r-md) 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--c-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry th { background: var(--c-tint); color: var(--c-fg); }
.entry iframe { width: 100%; border: 0; aspect-ratio: 16 / 9; height: auto; }
.entry .aligncenter { display: block; margin-inline: auto; }
@media (min-width: 640px) { .entry .alignleft { float: left; margin: .3em 1.2em 1em 0; } .entry .alignright { float: right; margin: .3em 0 1em 1.2em; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; margin: 0 0 24px; }
.tags span { font-weight: 700; color: var(--c-fg); }
.tags a { padding: 4px 10px; border-radius: 999px; background: var(--c-muted); color: var(--c-text); }
.tags a:hover { background: var(--c-primary); color: #fff; }
.related { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.related__title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* ---------- Comments ---------- */
.comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 2px 0 8px; }
.comment-metadata a { color: var(--c-soft); }
.comment-respond { background: var(--c-tint); border-radius: var(--r-lg); padding: 20px; }
.comment-reply-title { font-size: 19px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; min-height: 44px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: 10px 12px; background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, .18); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- Search / pager / empty ---------- */
.searchform { display: flex; gap: 8px; margin: 16px 0; }
.searchform input { flex: 1; min-width: 0; height: 46px; border: 1.5px solid var(--c-border); border-radius: var(--r-md); padding: 0 12px; background: #fff; }
.searchform input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, .18); }
.pager { margin-top: 28px; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--c-line); background: #fff; color: var(--c-text); font-weight: 600; }
.pager a.page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary-dk); }
.pager .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pager .dots { border: 0; background: transparent; }
.empty { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px; }
.empty--big { max-width: 640px; margin-inline: auto; text-align: center; }
.empty__code { font-size: 72px; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: 8px; }

/* ---------- Band + footer ---------- */
.band { background: var(--c-accent-dk); background: linear-gradient(120deg, #92400e, #b45309); color: #ffedd5; }
.band__in { display: grid; gap: 20px; padding-block: 40px; align-items: center; }
@media (min-width: 900px) { .band__in { grid-template-columns: 1fr auto; gap: 40px; } }
.band__title { color: #fff; font-size: clamp(1.3rem, 2.8vw, 1.75rem); font-weight: 800; margin-bottom: 6px; }
.band__text { margin: 0; max-width: 62ch; }
.band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn--accent { background: #fff; color: var(--c-accent-dk); box-shadow: none; }
.band .btn--accent:hover { background: #fff7ed; color: #7c2d12; }
.band .btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.band .btn--light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.foot { background: #0b1736; color: #b5c0dc; font-size: 15px; }
.foot__grid { display: grid; gap: 32px; padding-block: 48px 32px; }
@media (min-width: 640px) { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .brand__name b { color: #9db4f5; }
.foot .brand__tag { color: #9aa7c7; }
.foot .brand__mark { background: #fff; color: var(--c-primary); }
.foot__h { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.foot__list, .foot__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__list a { display: inline-flex; min-height: 36px; align-items: center; color: #c4cde5; }
.foot__list a:hover, .foot__contact a:hover { color: #fff; }
.foot__contact li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 4px 0; }
.foot__contact .ico { color: #9db4f5; margin-top: 3px; }
.foot__contact a { color: #c4cde5; }
.foot__bar { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; font-size: 13px; color: #8e9bbd; }
@media (max-width: 767px) { .foot__bar { padding-bottom: 90px; } }

.callfab { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--c-accent); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(146, 64, 14, .35); }
.callfab:hover { color: #fff; background: var(--c-accent-dk); }
@media (max-width: 767px) { .callfab { display: inline-flex; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
	.svc:hover, .card:hover .card__media img { transform: none; }
}

@media print {
	.topbar, .head, .band, .foot, .layout__side, .callfab, .comments, .related, .cta-box { display: none !important; }
	.article { border: 0; padding: 0; }
}
