/*
 * ProfObuchenie Modern — main stylesheet.
 *
 * Design vocabulary: safety signage colours (GOST 12.4.026 semantics: yellow = attention,
 * green = safe/passed, red = prohibition/failed) and the ruled "title block" of technical drawings.
 * Signal yellow is the only bold accent and is never used for text on light backgrounds.
 */

/* ------------------------------------------------------------------ tokens */
:root {
	--ink: #1d2b3a;          /* text, headings (logo navy) */
	--ink-2: #45566a;        /* secondary text: 7.0:1 on white */
	--steel: #0b6aa6;        /* brand blue (logo), links & primary actions: 5.6:1 on white */
	--steel-dark: #08507e;
	--signal: #f2b705;       /* safety yellow: markers, focus, never text on white */
	--paper: #ffffff;
	--concrete: #eef1f3;     /* surfaces */
	--rule: #c6d0d9;         /* hairlines */
	--rule-strong: #1d2b3a;
	--safe: #1e7b4f;
	--danger: #b3261e;

	--font: "Golos Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Modular scale 1.25 from 17px body. */
	--fs-xs: .8125rem;
	--fs-s: .9375rem;
	--fs-m: 1.0625rem;
	--fs-l: 1.3125rem;
	--fs-xl: 1.625rem;
	--fs-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
	--fs-3xl: clamp(2rem, 1.35rem + 2.6vw, 3.125rem);

	--sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem;
	--wrap: 76rem;
	--measure: 42rem;
	--radius: 4px;
	--focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--signal);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-m);
	line-height: 1.6;
	font-feature-settings: "kern", "liga";
	text-rendering: optimizeLegibility;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--steel); text-underline-offset: .18em; text-decoration-thickness: 1px; }
::selection { background: #ffe58a; color: var(--ink); }
input, textarea { caret-color: var(--steel); }
table, .pob-facts, .stamp__cell dd, .pob-card__price, .pob-panel__price { font-variant-numeric: tabular-nums; }
a:hover { color: var(--steel-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 650; letter-spacing: -.01em; margin: 0 0 var(--sp-4); text-wrap: balance; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-l); }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4); }
.skip-link:focus { top: var(--sp-4); }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 48em) { .wrap { padding-inline: var(--sp-6); } }
.icon { flex: none; vertical-align: -.2em; }

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

/* ------------------------------------------------------------------ buttons */
.btn, .pob-btn, .search-form button, .login-submit .button, #pob-user-login ~ * .button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	min-height: 44px; padding: .55rem 1.15rem;
	border: 1.5px solid var(--steel); border-radius: var(--radius);
	background: var(--paper); color: var(--steel);
	font: inherit; font-size: var(--fs-s); font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .pob-btn:hover { background: var(--concrete); color: var(--steel-dark); text-decoration: none; }
.btn--primary, .pob-btn--primary, .search-form button, .login-submit .button {
	background: var(--steel); color: #fff;
}
.btn--primary:hover, .pob-btn--primary:hover, .search-form button:hover, .login-submit .button:hover { background: var(--steel-dark); border-color: var(--steel-dark); color: #fff; }
.pob-btn--accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.pob-btn--accent:hover { background: #000; color: #fff; }
.pob-btn--ghost, .btn--outline { background: transparent; }
.btn--small { min-height: 40px; padding: .4rem .85rem; }
.btn[disabled], .pob-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ------------------------------------------------------------------ header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 20; }
.site-header__top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); min-height: 40px; font-size: var(--fs-xs); color: var(--ink-2); border-bottom: 1px solid var(--concrete); }
.site-header__contact { display: flex; gap: var(--sp-2); align-items: center; margin: 0; }
.site-header__main { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 76px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 76px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 700; font-size: var(--fs-m); }
.brand__tag { font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }
.brand__name { white-space: nowrap; }
@media (max-width: 99.99em) { .site-header__main .brand__tag { display: none; } }
.site-nav__extra .btn { white-space: nowrap; }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); }
.site-nav__list a { display: block; padding: var(--sp-2) var(--sp-3); color: var(--ink); font-weight: 550; font-size: var(--fs-s); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav__list a:hover { color: var(--steel); }
.site-nav__list a[aria-current], .site-nav__list .current-menu-item > a { border-bottom-color: var(--signal); }
.site-nav { display: flex; align-items: center; gap: var(--sp-5); }
.site-nav__extra { display: flex; align-items: center; gap: var(--sp-4); }
.site-nav__phone { display: inline-flex; gap: var(--sp-2); align-items: center; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: var(--fs-s); }
.site-nav .lang { display: none; }
.nav-toggle { display: none; }

.lang__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.lang__list a { display: inline-block; padding: .2rem .5rem; min-width: 2.6rem; text-align: center; color: var(--ink-2); text-decoration: none; border-radius: var(--radius); font-weight: 600; }
.lang__list a:hover { background: var(--concrete); color: var(--ink); }
.lang__list a[aria-current] { background: var(--ink); color: #fff; }

@media (max-width: 74.99em) {
	.site-header__top .lang { display: none; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: var(--sp-2);
		min-height: 44px; padding: 0 var(--sp-3);
		border: 1.5px solid var(--rule); border-radius: var(--radius);
		background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
	}
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--sp-2) 16px var(--sp-5);
		box-shadow: 0 12px 24px rgba(29, 43, 58, .12);
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { padding: var(--sp-3) 0; border-bottom: 1px solid var(--concrete); }
	.site-nav__list a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: .35em; }
	.site-nav__extra { flex-direction: column; align-items: flex-start; padding-top: var(--sp-4); }
	.site-nav .lang { display: block; }
	.site-header__contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80vw; }
}
@media (max-width: 30em) { .brand__tag { display: none; } .brand__logo { width: 60px; } }

/* ------------------------------------------------------------------ title block (stamp) */
.stamp { margin: 0; border: 2px solid var(--rule-strong); background: var(--paper); }
.stamp__title {
	display: flex; align-items: center; gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	border-bottom: 2px solid var(--rule-strong);
	font-weight: 650; font-size: var(--fs-s);
}
.stamp__title::before { content: ""; width: 14px; height: 14px; background: var(--signal); transform: rotate(45deg); flex: none; } /* diamond from the logo */
.stamp__grid { display: grid; grid-template-columns: 1fr; margin: 0; }
.stamp__cell { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--rule-strong); }
.stamp__cell:first-child { border-top: 0; }
.stamp__cell dt { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: 2px; }
.stamp__cell dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.stamp--test .stamp__grid, .stamp--doc .stamp__grid { grid-template-columns: repeat(2, 1fr); }
.stamp--test .stamp__cell, .stamp--doc .stamp__cell { border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.stamp--test .stamp__cell:nth-child(-n+2), .stamp--doc .stamp__cell:nth-child(-n+2) { border-top: 0; }
.stamp--test .stamp__cell:nth-child(odd), .stamp--doc .stamp__cell:nth-child(odd) { border-left: 0; }
.stamp--test .stamp__cell dd { font-size: var(--fs-l); }
@media (min-width: 48em) {
	.stamp--test .stamp__grid { grid-template-columns: repeat(4, 1fr); }
	.stamp--test .stamp__cell { border-top: 0 !important; border-left: 1px solid var(--rule-strong) !important; }
	.stamp--test .stamp__cell:first-child { border-left: 0 !important; }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-block: var(--sp-7) var(--sp-8); border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; gap: var(--sp-7); align-items: start; }
.hero__title { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -.02em; max-width: 24ch; margin-bottom: var(--sp-5); }
.hero__lead { font-size: var(--fs-l); color: var(--ink-2); max-width: 36rem; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__actions .btn { min-height: 52px; padding-inline: 1.5rem; font-size: var(--fs-m); }
@media (min-width: 64em) {
	.hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-8); }
	.hero__stamp { margin-top: var(--sp-3); }
}

/* ------------------------------------------------------------------ sections */
.section { padding-block: var(--sp-8); }
.section--band { background: var(--concrete); }
.section--rule { border-top: 1px solid var(--rule); }
.section__head { margin-bottom: var(--sp-6); max-width: var(--measure); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap; }
.section__title { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.section__lead { color: var(--ink-2); margin: 0; }

/* Directions: ruled list, not cards. */
.directions { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.directions__item { display: grid; gap: var(--sp-2); padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule); }
.directions__name { font-size: var(--fs-l); margin: 0; }
.directions__desc { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.directions__link { margin: 0; font-weight: 600; font-size: var(--fs-s); }
@media (min-width: 56em) {
	.directions__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(12rem, .8fr); gap: var(--sp-6); align-items: baseline; }
	.directions__link { text-align: right; }
}

/* About: editorial statement + numbered index on the drawing-sheet grid (no imagery). */
.about { display: grid; gap: var(--sp-7); align-items: start; }
.about__intro .section__title { margin-bottom: 0; }
.about__lead { font-size: var(--fs-xl); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); max-width: 30ch; margin: var(--sp-4) 0 0; text-wrap: pretty; }
.about__label { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-3); font-size: var(--fs-s); font-weight: 650; }
.about__label::before { content: ""; width: 12px; height: 12px; background: var(--signal); transform: rotate(45deg); flex: none; }
.about__index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.about__item { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--sp-4); align-items: baseline; padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule); }
.about__num { font-size: var(--fs-xl); font-weight: 700; line-height: 1; color: var(--steel); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.about__text { font-size: var(--fs-m); font-weight: 550; }
.about__facts { margin-top: var(--sp-6); }
.about__facts .stamp__cell dd { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.about__facts .stamp__cell dd a { color: var(--ink); text-decoration: none; }
.about__facts .stamp__cell dd a:hover { color: var(--steel); text-decoration: underline; }
@media (min-width: 56em) {
	.about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-8); }
	.about__lead { font-size: clamp(1.625rem, 1.1rem + 1.1vw, 2rem); }
}

/* Steps: a real sequence, so numbered. */
.steps { list-style: none; counter-reset: step; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: var(--sp-5); }
.steps li { counter-increment: step; position: relative; padding-top: var(--sp-6); border-top: 2px solid var(--rule-strong); }
.steps li::before { content: counter(step); position: absolute; top: var(--sp-3); left: 0; font-weight: 700; font-size: var(--fs-s); color: var(--ink-2); }
.steps h3 { font-size: var(--fs-m); margin-bottom: var(--sp-2); }
.steps p { color: var(--ink-2); font-size: var(--fs-s); margin: 0; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }

.section--contact { background: var(--ink); color: #fff; }
.section--contact a { color: #fff; }
.section--contact p { color: #c9d3dd; }
.contact-cta { display: grid; gap: var(--sp-6); }
@media (min-width: 56em) { .contact-cta { grid-template-columns: 1.2fr 1fr; align-items: center; } }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.contact-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.contact-list .icon { margin-top: .2em; }
.contact-list--large { font-size: var(--fs-l); font-weight: 600; }
.contact-list--large li:last-child { font-size: var(--fs-m); font-weight: 400; }

/* ------------------------------------------------------------------ news */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.post-row { padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule); }
.post-row__meta { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: var(--sp-2); }
.post-row__title { font-size: var(--fs-l); margin-bottom: var(--sp-2); }
.post-row__title a { color: var(--ink); text-decoration: none; }
.post-row__title a:hover { color: var(--steel); text-decoration: underline; }
.post-row__excerpt { color: var(--ink-2); max-width: var(--measure); margin: 0; }
.post-row__eff { font-size: var(--fs-s); font-weight: 600; margin: var(--sp-2) 0 0; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: var(--fs-xs); font-weight: 600; }
.tag--reg { background: #fff4cc; color: #5c4500; box-shadow: inset 0 0 0 1px #e5c454; }
.tag--draft { background: #fdecea; color: #8a1c14; box-shadow: inset 0 0 0 1px #e8a39c; }
.tag--topic { background: var(--concrete); color: var(--ink); text-decoration: none; }
.tag--topic:hover { color: var(--steel); }
.post-row__source { font-size: var(--fs-s); color: var(--ink-2); margin: var(--sp-2) 0 0; }
.article__source { margin: 0 0 var(--sp-5); }
/* News topic filter: ruled tab row that wraps on phones. */
.news-filter { margin: 0 0 var(--sp-6); }
.news-filter ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.news-filter a { display: inline-block; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--rule-strong); color: var(--ink); font-size: var(--fs-s); font-weight: 550; text-decoration: none; }
.news-filter a:hover { color: var(--steel); border-color: var(--steel); }
.news-filter a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.article { max-width: calc(var(--measure) + 4rem); }
.article__meta { color: var(--ink-2); font-size: var(--fs-s); }
.article .stamp { margin: var(--sp-5) 0 var(--sp-6); }
.article__notice { padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--signal); background: var(--concrete); font-size: var(--fs-s); }
.article__status { margin: var(--sp-4) 0 var(--sp-5); padding: var(--sp-4); border: 1px solid var(--rule-strong); font-size: var(--fs-s); }
.article__note { margin-top: var(--sp-6); padding: var(--sp-4); background: var(--concrete); font-size: var(--fs-s); color: var(--ink-2); }
.article__related { margin-top: var(--sp-6); border-top: 1px solid var(--rule); padding-top: var(--sp-5); }

/* ------------------------------------------------------------------ pages */
.page-head { background: var(--concrete); border-bottom: 1px solid var(--rule); padding-block: var(--sp-5) var(--sp-6); }
.page-head__title { font-size: var(--fs-2xl); margin: 0; max-width: 32ch; }
.page-head__lead { color: var(--ink-2); max-width: var(--measure); margin: var(--sp-3) 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-3); padding: 0; font-size: var(--fs-xs); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.page-body { padding-block: var(--sp-6) var(--sp-8); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.prose h3 { margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: var(--sp-2); }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--rule); padding: var(--sp-2) var(--sp-3); text-align: left; }
.empty { color: var(--ink-2); }

/* Legacy Elementor content inside the new chrome: neutralise fixed widths, keep it readable. */
.page-body--legacy .prose { max-width: none; }
.page-body--legacy .elementor-section.elementor-section-boxed > .elementor-container { max-width: 100%; }
.page-body--legacy .elementor-widget-container { overflow-wrap: anywhere; }
.page-body--legacy .elementor-button { border-radius: var(--radius); }
.page-body--legacy iframe { max-width: 100%; }
/* The kit's #7a7a7a body text fails WCAG AA (4.3:1); legacy per-element colours are overridden too. */
.page-body--legacy .elementor-widget-text-editor,
.page-body--legacy .elementor-widget-text-editor :is(p, li, span, strong, b) { color: var(--ink-2) !important; }
.page-body--legacy pre { white-space: pre-wrap; font: inherit; }

/* Contacts: details + Leaflet map. */
.contacts { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 64em) { .contacts { grid-template-columns: minmax(20rem, 5fr) 7fr; gap: var(--sp-7); } }
.contacts__company { font-size: var(--fs-xl); margin: 0 0 var(--sp-4); }
.contacts__list { margin: 0; border-top: 2px solid var(--rule-strong); }
.contacts__row { display: grid; gap: var(--sp-1); padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 30em) { .contacts__row { grid-template-columns: 11rem 1fr; gap: var(--sp-4); } }
.contacts__row dt { display: flex; align-items: center; gap: var(--sp-2); color: var(--ink-2); font-size: var(--fs-s); font-weight: 600; }
.contacts__row dt .icon { flex: none; color: var(--steel); }
.contacts__row dd { margin: 0; overflow-wrap: anywhere; }
.contacts__phone { display: block; font-size: var(--fs-l); font-weight: 700; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.contacts__phone + .contacts__phone { margin-top: var(--sp-1); }
.contacts__phone:hover { color: var(--steel-dark); text-decoration: underline; }
.contacts__social { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 0; }
.contacts__actions .btn { min-height: 48px; }
.contacts__map { margin: 0; border: 2px solid var(--rule-strong); background: var(--concrete); }
.map { position: relative; height: clamp(20rem, 62vw, 34rem); overflow: hidden; background: #12181b; }
/* Drawn at 1:1 and cropped around the office in the centre: street names stay readable on phones. */
.map__image { display: block; width: 100%; height: 100%; object-fit: none; object-position: 50% 50%; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 34px; height: 46px; transform: translate(-50%, -100%); filter: drop-shadow(0 6px 8px rgba(0,0,0,.55)); }
.map__pin svg { display: block; }
.map__pin path { fill: var(--signal); stroke: #12181b; stroke-width: 1.5; }
.map__pin circle { fill: #12181b; }
.map__label { position: absolute; left: calc(50% + 24px); top: calc(50% - 40px); max-width: calc(50% - 36px); padding: 6px 10px; background: rgba(14, 19, 22, .92); border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.map__credit { position: absolute; right: 0; bottom: 0; padding: 3px 8px; background: rgba(14, 19, 22, .85); color: var(--ink-2); font-size: .75rem; }
.map__credit a { color: inherit; }
.map__caption { display: grid; gap: var(--sp-3); padding: var(--sp-4); border-top: 1px solid var(--rule); background: var(--paper); font-size: var(--fs-s); }
.map__address { display: flex; gap: var(--sp-2); align-items: flex-start; color: var(--ink); font-weight: 600; }
.map__address .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--steel); }
.map__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); font-weight: 600; }
.map__links .btn { min-height: 44px; }

.search-form { margin-bottom: var(--sp-6); max-width: 36rem; }
.search-form label { display: block; font-weight: 600; margin-bottom: var(--sp-2); }
.search-form__row { display: flex; gap: var(--sp-2); }
.search-form input { flex: 1; }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], select, textarea {
	font: inherit; font-size: var(--fs-m); color: var(--ink);
	height: 46px; padding: .5rem .75rem; width: 100%;
	border: 1.5px solid #8796a6; border-radius: var(--radius); background: var(--paper);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--steel); }
label { font-weight: 550; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: #13202d; color: #c9d3dd; font-size: var(--fs-s); }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-7); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-8); } }
.site-footer__about { max-width: 42ch; margin: 0; }
.site-footer__h { font-size: var(--fs-m); color: #fff; margin-bottom: var(--sp-3); }
.site-footer .site-nav__list { flex-direction: column; gap: 0; }
.site-footer .site-nav__list a { color: #fff; padding: var(--sp-1) 0; border: 0; font-weight: 400; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__social { display: flex; gap: var(--sp-4); margin-top: var(--sp-4); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); border-top: 1px solid #2c3d4f; padding-block: var(--sp-4); }
.site-footer__bottom p { margin: 0; }
.site-footer__credit { color: #8fa1b3; }
.site-footer__credit a { color: #c9d3dd; text-decoration-color: #4a5d70; text-underline-offset: .2em; }
.site-footer__credit a:hover { color: #fff; }

/* ================================================================== testing plugin UI */
.pob-notice, .pob-empty { color: var(--ink-2); }
.pob-link { font-weight: 600; }
.pob-hp { position: absolute !important; left: -9999px; }
.pob-hint { display: block; font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }

/* Catalog: filter bar + ruled list of tests. */
.pob-filter { display: grid; gap: var(--sp-3); align-items: end; padding: var(--sp-4); background: var(--concrete); border-radius: var(--radius); margin-bottom: var(--sp-4); }
.pob-filter label { display: block; font-size: var(--fs-s); margin-bottom: var(--sp-1); }
@media (min-width: 48em) { .pob-filter { grid-template-columns: 2fr 1.2fr auto; } }
.pob-catalog__count { font-size: var(--fs-s); color: var(--ink-2); }
.pob-cards { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.pob-card article { display: grid; gap: var(--sp-1); padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule); position: relative; }
.pob-card__cat { margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.pob-card__title { font-size: var(--fs-m); margin: 0; }
.pob-card__title a { color: var(--ink); text-decoration: none; }
.pob-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.pob-card:hover .pob-card__title a { color: var(--steel); text-decoration: underline; }
.pob-card__title a:focus-visible { box-shadow: none; }
.pob-card article:focus-within { box-shadow: var(--focus); }
.pob-card__meta { list-style: none; display: flex; gap: var(--sp-4); padding: 0; margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.pob-card__price { margin: 0; font-weight: 700; }
@media (min-width: 56em) {
	.pob-card article { grid-template-columns: 14rem minmax(0, 1fr) 11rem 8rem; gap: var(--sp-5); align-items: baseline; }
	.pob-card__cat { order: -1; }
	.pob-card__price { text-align: right; }
}
.pob-pagination ul { list-style: none; display: flex; gap: var(--sp-2); padding: 0; margin-top: var(--sp-5); }
.pob-pagination a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; }
.pob-pagination a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Single test layout */
.test-layout { display: grid; gap: var(--sp-6); padding-block: var(--sp-6) var(--sp-8); }
.test-layout__main .stamp { margin-bottom: var(--sp-6); }
@media (min-width: 64em) {
	.test-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--sp-7); align-items: start; }
	.test-layout__side { position: sticky; top: var(--sp-5); }
}
.pob-panel { border: 2px solid var(--rule-strong); padding: var(--sp-5); background: var(--paper); }
.pob-panel__title { font-size: var(--fs-l); margin-bottom: var(--sp-2); }
.pob-panel__price { font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--sp-4); }
.pob-panel .pob-facts { display: none; } /* Shown in the title block on the test page. */
.pob-panel__actions { display: grid; gap: var(--sp-3); }
.pob-panel__actions .pob-btn { width: 100%; min-height: 52px; font-size: var(--fs-m); }
.pob-panel__meta { font-size: var(--fs-s); color: var(--ink-2); margin: 0; }
.pob-panel__status:empty { display: none; }
.pob-panel__status { margin: var(--sp-3) 0 0; font-size: var(--fs-s); color: var(--ink-2); }
.pob-panel__status.is-error { color: var(--danger); }

/* Quiz runner */
.pob-quiz { grid-column: 1 / -1; border: 2px solid var(--rule-strong); background: var(--paper); }
.test-layout:has(.pob-quiz:not([hidden])) .test-layout__main { display: none; }
.test-layout:has(.pob-quiz:not([hidden])) { grid-template-columns: 1fr; }
.pob-quiz__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 2px solid var(--rule-strong); }
.pob-quiz__title { font-size: var(--fs-l); margin: 0; }
.pob-quiz__status { display: flex; gap: var(--sp-5); align-items: center; font-size: var(--fs-s); }
.pob-quiz__status p { margin: 0; }
.pob-quiz__timer { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; padding: var(--sp-1) var(--sp-3); border: 1.5px solid var(--rule-strong); border-radius: var(--radius); }
.pob-quiz__timer.is-urgent { border-color: var(--danger); color: var(--danger); background: #fdecea; }
.pob-quiz__body { display: grid; }
@media (min-width: 64em) { .pob-quiz__body { grid-template-columns: minmax(0, 1fr) 16rem; } }
.pob-quiz__main { padding: var(--sp-5); min-width: 0; }
.pob-quiz__aside { padding: var(--sp-5); border-top: 1px solid var(--rule); background: var(--concrete); }
@media (min-width: 64em) { .pob-quiz__aside { border-top: 0; border-left: 1px solid var(--rule); } }
.pob-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.pob-q__legend { display: block; padding: 0; margin-bottom: var(--sp-2); max-width: var(--measure); }
.pob-q__num { display: block; font-size: var(--fs-s); color: var(--ink-2); margin-bottom: var(--sp-2); }
.pob-q__body { display: block; font-size: var(--fs-l); font-weight: 600; line-height: 1.4; }
.pob-q__body p { margin: 0; }
.pob-q__hint { font-size: var(--fs-s); color: var(--ink-2); }
.pob-q__options { display: grid; gap: var(--sp-2); max-width: var(--measure); }
.pob-q__option { position: relative; display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border: 1.5px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.pob-q__option:hover { border-color: var(--steel); }
.pob-q__option input { position: relative; z-index: 1; width: 20px; height: 20px; margin: .2em 0 0; flex: none; accent-color: var(--steel); }
.pob-q__option label { font-weight: 400; cursor: pointer; flex: 1; }
.pob-q__option label::after { content: ""; position: absolute; inset: 0; } /* whole option is the hit area */
.pob-q__option:has(input:checked) { border-color: var(--steel); background: #e8f2f9; }
.pob-q__option:has(input:focus-visible) { box-shadow: var(--focus); }
.pob-q__option input:focus-visible { box-shadow: none; }
.pob-quiz__nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.pob-quiz__nav [data-testid=quiz-finish] { margin-left: auto; }
.pob-quiz__save { min-height: 1.5em; font-size: var(--fs-xs); color: var(--ink-2); margin: var(--sp-3) 0 0; }
.pob-quiz__palette { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: var(--sp-2); }
.pob-quiz__palette button { width: 100%; min-height: 44px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.pob-quiz__palette button.is-answered { background: var(--ink); border-color: var(--ink); color: #fff; }
.pob-quiz__palette button[aria-current] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--signal); }
.pob-dialog { color: var(--ink); border: 2px solid var(--rule-strong); border-radius: var(--radius); padding: var(--sp-5); max-width: 28rem; width: calc(100% - 32px); }
.pob-dialog::backdrop { background: rgba(19, 32, 45, .55); }
.pob-dialog h2 { font-size: var(--fs-l); }
.pob-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-3); }

/* Results */
.pob-result__summary { padding: var(--sp-5); border: 2px solid var(--rule-strong); border-top-width: 8px; margin-bottom: var(--sp-5); }
.pob-quiz > .pob-result__summary { border: 0; border-top-width: 8px; border-top-style: solid; margin: 0; }
.pob-result__summary--pass { border-top-color: var(--safe); }
.pob-result__summary--fail { border-top-color: var(--danger); }
.pob-result__verdict { font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--sp-2); }
.pob-result__summary--pass .pob-result__verdict { color: var(--safe); }
.pob-result__summary--fail .pob-result__verdict { color: var(--danger); }
.pob-result__score span { font-size: var(--fs-xl); font-weight: 700; margin-right: var(--sp-3); }
.pob-result__meta { color: var(--ink-2); font-size: var(--fs-s); margin: 0; }
.pob-result__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-5); margin: var(--sp-4) 0 0; font-size: var(--fs-s); }
.pob-result__facts dt { color: var(--ink-2); font-size: var(--fs-xs); }
.pob-result__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 48em) { .pob-result__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pob-result__history { margin: 0 0 var(--sp-5); }
.pob-result__history h3 { font-size: var(--fs-m); margin-bottom: var(--sp-2); }
.pob-result__history ul { margin: 0; padding-left: 1.1rem; display: grid; gap: var(--sp-2); font-size: var(--fs-s); }
.pob-panel__privacy { font-size: var(--fs-xs); color: var(--ink-2); }
.pob-review { padding-left: 1.25em; max-width: var(--measure); }
.pob-review__item { margin-bottom: var(--sp-5); }
.pob-review__q { font-weight: 600; margin-bottom: var(--sp-2); }
.pob-review__opts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-1); }
.pob-opt { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--rule); border-radius: var(--radius); }
.pob-opt.is-correct { border-color: var(--safe); }
.pob-opt.is-wrong { border-color: var(--danger); }
.pob-review__expl { font-size: var(--fs-s); color: var(--ink-2); margin-top: var(--sp-2); }
.pob-tag { display: inline-block; margin-left: var(--sp-2); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); }
.pob-tag--ok { color: var(--safe); }

/* Account */
.pob-account__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--rule); }
.pob-account__head p { margin: 0; font-weight: 600; }
.pob-account__section { margin-top: var(--sp-6); }
.pob-account__section h2 { font-size: var(--fs-xl); }
.pob-table-wrap { position: relative; overflow-x: auto; border-top: 2px solid var(--rule-strong); } /* containing block for visually hidden th text */
.pob-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.pob-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: var(--sp-3); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.pob-table td { padding: var(--sp-3); border-bottom: 1px solid var(--rule); vertical-align: top; }
.pob-badge { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: var(--fs-xs); font-weight: 600; background: var(--concrete); white-space: nowrap; }
.pob-badge--pass { background: #e1f1e8; color: #145536; }
.pob-badge--fail { background: #fbe4e2; color: #8c1d17; }
.pob-alert { padding: var(--sp-4); border-radius: var(--radius); border: 1.5px solid var(--rule); margin: 0 0 var(--sp-5); background: var(--paper); font-weight: 550; }
.pob-alert--success { border-color: var(--safe); background: #e9f5ee; color: #145536; }
.pob-alert--error { border-color: var(--danger); background: #fdecea; color: #8c1d17; }
.pob-alert--info { border-color: var(--steel); background: #e8f2f9; color: var(--steel-dark); }

/* Sign in / register */
.pob-auth { display: grid; gap: var(--sp-6); }
@media (min-width: 56em) { .pob-auth { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.pob-auth__col { max-width: 30rem; }
.pob-auth__col h2 { font-size: var(--fs-xl); }
.pob-auth__col + .pob-auth__col { border-top: 1px solid var(--rule); padding-top: var(--sp-6); }
@media (min-width: 56em) { .pob-auth__col + .pob-auth__col { border-top: 0; padding-top: 0; border-left: 1px solid var(--rule); padding-left: var(--sp-8); } }
.pob-auth form p, .pob-field { margin: 0 0 var(--sp-4); }
.pob-auth label { display: block; margin-bottom: var(--sp-1); }
.pob-auth .login-remember label, .pob-check label { display: inline; font-weight: 400; }
.pob-check { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-s); margin-bottom: var(--sp-4); }
.pob-check input { width: 20px; height: 20px; flex: none; margin-top: .15em; }
.login-submit .button, .pob-auth .pob-form .pob-btn { width: 100%; min-height: 48px; }
.login-remember input { width: 20px; height: 20px; vertical-align: -4px; margin-right: var(--sp-2); }

textarea { height: auto; min-height: 6rem; }

/* ---- responsive refinements (from 360/768 review) ---- */
@media (max-width: 47.99em) {
	.brand__name { white-space: normal; font-size: var(--fs-s); line-height: 1.2; }
	.brand { min-width: 0; }
	.site-header__main { gap: var(--sp-3); }
}
@media (max-width: 63.99em) {
	/* Price and the primary action come right after the heading on small screens. */
	.test-layout__side { order: -1; }
}

/* ---- critique pass: quiz focus mode, result next steps, purchase panel ---- */
body:has(.pob-quiz:not([hidden])) .page-head { display: none; }
.pob-quiz__head { position: sticky; top: 0; z-index: 5; background: var(--paper); }
.admin-bar .pob-quiz__head { top: 32px; }
@media (max-width: 47.99em) {
	.pob-quiz__title { display: none; }
	.pob-quiz__head { padding: var(--sp-3) var(--sp-4); }
	.pob-quiz__main, .pob-quiz__aside { padding: var(--sp-4); }
	.pob-quiz__nav [data-testid=quiz-finish] { flex-basis: 100%; margin-left: 0; }
	.pob-quiz__nav .pob-btn { flex: 1; }
	.admin-bar .pob-quiz__head { top: 0; }
}
.pob-result__next { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.pob-result__help { margin: var(--sp-4) 0 0; font-size: var(--fs-s); color: var(--ink-2); }
.pob-panel__org { margin: var(--sp-4) 0 0; padding-top: var(--sp-4); border-top: 1px solid var(--rule); font-size: var(--fs-s); color: var(--ink-2); }
.pob-panel__org a { font-weight: 600; }
.pob-table td:first-child { min-width: 12rem; }
.pob-catalog__h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.brand { flex: none; }
.pob-quiz > .pob-result__summary--pass { border-top-color: var(--safe); }
.pob-quiz > .pob-result__summary--fail { border-top-color: var(--danger); }
@media (max-width: 47.99em) {
	.brand { flex: 0 1 auto; }
	.pob-quiz__status { width: 100%; justify-content: space-between; gap: var(--sp-3); }
	.pob-quiz__progress { flex: 1; min-width: 0; font-size: var(--fs-xs); }
}
@media (min-width: 75em) {
	.site-nav { gap: var(--sp-4); }
	.site-nav__list a { padding-inline: .55rem; }
	.site-nav__extra { gap: var(--sp-3); }
}
@media (max-width: 47.99em) {
	.pob-quiz__status { flex-wrap: wrap; }
	.pob-quiz__progress { flex-basis: 100%; }
}
/* Legacy Elementor widgets: use the site typeface (the kit's Google-hosted Roboto is no longer loaded). */
.page-body--legacy .elementor-widget-container,
.page-body--legacy .elementor-widget-container :is(h1, h2, h3, h4, p, li, a, span, div) { font-family: var(--font) !important; }
