/* =========================================================================
   Talgar CRB — основные стили (mobile-first: 360 → 768 → 1280)
   Цвет из логотипа: #008d98. Для текста и кнопок — #00737c (контраст 5,6:1 на белом).
   ========================================================================= */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--tg-brand: #008d98;
	--tg-brand-700: #00737c;
	--tg-brand-800: #005b62;
	--tg-brand-900: #0b3d44;
	--tg-brand-50: #e8f6f7;
	--tg-brand-100: #cdeef0;
	--tg-red: #c8102e;
	--tg-text: #1b2a2f;
	--tg-muted: #4f6168;
	--tg-line: #dbe5e7;
	--tg-bg: #ffffff;
	--tg-bg-soft: #f4f8f9;
	--tg-radius: 14px;
	--tg-radius-sm: 10px;
	--tg-shadow: 0 1px 2px rgba(var(--tg-shadow-rgb), .06), 0 6px 20px rgba(var(--tg-shadow-rgb), .08);
	--tg-focus: 0 0 0 3px #ffbf47;
	--tg-container: 1240px;
	/* оттенки, зависящие от цветовой схемы */
	--tg-accent: #f0a32a;
	--tg-on-dark: #e6f2f3;
	--tg-on-dark-muted: #a9c8cc;
	--tg-line-strong: #b9d3d6;
	--tg-input-border: #9fb4b8;
	--tg-shadow-rgb: 11, 61, 68;
	--tg-overlay-strong: rgba(5, 40, 45, .88);
	--tg-overlay-mid: rgba(5, 40, 45, .6);
	--tg-overlay-light: rgba(5, 40, 45, .25);
}

/* Цветовые схемы («Данные больницы → Оформление»): «Бирюза» — значения выше, из логотипа */
html[data-scheme="sky"] {
	--tg-brand: #1a8fc7;
	--tg-brand-700: #0c6898;
	--tg-brand-800: #0a527a;
	--tg-brand-900: #0c2f4b;
	--tg-brand-50: #eaf5fb;
	--tg-brand-100: #cfe7f5;
	--tg-text: #17263a;
	--tg-muted: #4b5c6e;
	--tg-line: #d8e3ec;
	--tg-bg-soft: #f3f7fb;
	--tg-accent: #f3b81d;
	--tg-on-dark: #e4f0f8;
	--tg-on-dark-muted: #a7c3d8;
	--tg-line-strong: #b2cbe0;
	--tg-input-border: #98afc3;
	--tg-shadow-rgb: 12, 47, 75;
	--tg-overlay-strong: rgba(6, 30, 52, .88);
	--tg-overlay-mid: rgba(6, 30, 52, .6);
	--tg-overlay-light: rgba(6, 30, 52, .25);
}
html[data-scheme="emerald"] {
	--tg-brand: #14916b;
	--tg-brand-700: #0c7253;
	--tg-brand-800: #0a5942;
	--tg-brand-900: #0d3a2e;
	--tg-brand-50: #e8f5ef;
	--tg-brand-100: #cceadb;
	--tg-text: #18291f;
	--tg-muted: #4c6157;
	--tg-line: #d8e6df;
	--tg-bg-soft: #f3f8f5;
	--tg-accent: #ee7d4f;
	--tg-on-dark: #e3f2eb;
	--tg-on-dark-muted: #a5c9b9;
	--tg-line-strong: #b1d2c3;
	--tg-input-border: #9bb6aa;
	--tg-shadow-rgb: 13, 58, 46;
	--tg-overlay-strong: rgba(6, 36, 28, .88);
	--tg-overlay-mid: rgba(6, 36, 28, .6);
	--tg-overlay-light: rgba(6, 36, 28, .25);
}

html { font-size: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html[data-fs="2"] { font-size: 120%; }
html[data-fs="3"] { font-size: 140%; }

body {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--tg-text);
	background: var(--tg-bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--tg-brand-900); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); }
h3 { font-size: 1.2rem; }
a { color: var(--tg-brand-700); text-underline-offset: 2px; }
a:hover { color: var(--tg-brand-800); }
/* ссылки внутри текста отличаются не только цветом (WCAG 1.4.1, axe link-in-text-block) */
.entry-content p a, .entry-content li a, .entry-content td a, .tg-note a, .tg-checkup a, .entry-meta a, .cat-links a, .talgar-zakup-goszakup a, .talgar-zakup-types a { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--tg-focus); border-radius: 4px; }
img { max-width: 100%; height: auto; }

.tg-container { width: 100%; max-width: var(--tg-container); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.tg-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.tg-ph { background: #fff3b0; color: #6b4e00; outline: 1px dashed #c9a100; border-radius: 4px; padding: 0 .3em; font-weight: 600; }

/* GeneratePress: контейнер страницы */
body .grid-container { max-width: var(--tg-container); }
.site.grid-container { max-width: none; padding: 0; }
body .site-content, body.one-container .site-content, body.separate-containers .site-content { padding: 0; }
.one-container .site-content, .separate-containers .site-main { margin: 0; }
.separate-containers .inside-article, .one-container .inside-article { padding: 24px 16px 40px; }
.site-main { max-width: var(--tg-container); margin: 0 auto !important; }
.home .site-content, .home .site-main { max-width: none; }

/* ---------- Кнопки ---------- */
.tg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 44px; padding: .6em 1.1em; border: 2px solid var(--tg-brand-700); border-radius: 999px;
	background: var(--tg-brand-700); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.tg-btn:hover, .tg-btn:focus-visible { background: var(--tg-brand-800); border-color: var(--tg-brand-800); color: #fff; }
.tg-btn--lg { min-height: 52px; padding: .75em 1.4em; font-size: 1.05rem; }
.tg-btn--light { background: #fff; color: var(--tg-brand-800); border-color: #fff; }
.tg-btn--light:hover, .tg-btn--light:focus-visible { background: var(--tg-brand-50); color: var(--tg-brand-900); border-color: var(--tg-brand-50); }
.tg-btn--ghost { background: transparent; color: var(--tg-brand-700); }
.tg-btn--ghost:hover { background: var(--tg-brand-50); color: var(--tg-brand-800); }
.tg-btn--sos { background: var(--tg-red); border-color: var(--tg-red); padding: .5em .9em; font-weight: 800; }
.tg-btn--sos:hover, .tg-btn--sos:focus-visible { background: #9e0b23; border-color: #9e0b23; }
.tg-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 1px solid var(--tg-line); border-radius: 50%; background: #fff; color: var(--tg-brand-900); cursor: pointer; padding: 0;
}
.tg-iconbtn:hover { background: var(--tg-brand-50); color: var(--tg-brand-900); }
.tg-iconbtn[aria-expanded="true"] { background: var(--tg-brand-700); border-color: var(--tg-brand-700); color: #fff; }

/* ---------- Шапка ---------- */
.tg-header { background: #fff; border-bottom: 1px solid var(--tg-line); position: relative; z-index: 50; }
.tg-topbar { background: var(--tg-brand-900); color: var(--tg-on-dark); font-size: .875rem; }
.tg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.tg-topbar__addr { display: none; align-items: center; gap: .4em; }
.tg-topbar__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tg-tool { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: 0 .6em; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: .85rem; cursor: pointer; }
.tg-tool span { display: none; }
.tg-tool:hover, .tg-tool[aria-expanded="true"] { background: rgba(255,255,255,.14); color: #fff; }
.tg-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.tg-lang a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .7em; color: #fff; text-decoration: none; font-weight: 600; font-size: .85rem; }
.tg-lang a[aria-current="true"] { background: #fff; color: var(--tg-brand-900); }
.tg-lang a:hover { background: rgba(255,255,255,.18); color: #fff; }

.tg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.tg-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--tg-brand-900); min-width: 0; }
.tg-brand__logo { width: 112px; height: auto; display: block; }
.tg-brand picture { flex: none; }
.tg-brand__partner { display: none; flex: none; padding-right: 12px; border-right: 1px solid var(--tg-line); }
.tg-topbar__partner { width: 30px; height: 30px; display: block; flex: none; border-radius: 50%; }
.tg-brand__partner img { border-radius: 50%; }
.tg-brand__partner img { width: 44px; height: 44px; display: block; }
.tg-brand__text { display: none; }
.tg-brand__text strong { display: block; font-size: 1rem; line-height: 1.25; }
.tg-brand__text small { display: block; color: var(--tg-muted); font-size: .8rem; }
.tg-head__actions { display: flex; align-items: center; gap: 8px; }
.tg-callout { display: none; align-items: center; gap: .5em; }
.tg-callout__icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--tg-brand-50); color: var(--tg-brand-700); }
.tg-callout small { display: block; font-size: .75rem; color: var(--tg-muted); line-height: 1.2; }
.tg-callout__phone, .tg-callout .tg-ph { font-weight: 700; font-size: 1.05rem; color: var(--tg-brand-900); text-decoration: none; white-space: nowrap; }

.tg-panel { border-top: 1px solid var(--tg-line); background: var(--tg-bg-soft); padding: 12px 0; }
.tg-search { display: flex; gap: 8px; }
.tg-search input[type="search"] { flex: 1; min-height: 48px; padding: 0 1em; border: 2px solid var(--tg-line); border-radius: 999px; font-size: 1rem; background: #fff; }
.tg-search input[type="search"]:focus { border-color: var(--tg-brand-700); outline: none; }

.tg-a11y__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.tg-a11y__group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tg-a11y__label { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; margin-right: 4px; }
.tg-a11y button { min-height: 40px; min-width: 40px; padding: 0 .8em; border: 2px solid var(--tg-brand-900); border-radius: 8px; background: #fff; color: #000; font-weight: 700; cursor: pointer; }
.tg-a11y button[aria-pressed="true"] { background: var(--tg-brand-900); color: #fff; }
.tg-a11y__a2 { font-size: 1.2rem !important; }
.tg-a11y__a3 { font-size: 1.45rem !important; }
.tg-a11y__bw { background: #fff !important; color: #000 !important; }
.tg-a11y__dark { background: #000 !important; color: #ff0 !important; }
.tg-a11y__reset { display: inline-flex; align-items: center; gap: .4em; }

/* Меню: мобильное */
.tg-nav { display: none; border-top: 1px solid var(--tg-line); background: #fff; }
.tg-nav.is-open { display: block; }
.tg-menu, .tg-menu ul { list-style: none; margin: 0; padding: 0; }
.tg-menu > li { position: relative; border-bottom: 1px solid var(--tg-line); display: flex; flex-wrap: wrap; align-items: center; }
.tg-menu > li > a { flex: 1; display: block; padding: 14px 4px; color: var(--tg-brand-900); font-weight: 600; text-decoration: none; }
.tg-menu .sub-menu { display: none; width: 100%; padding: 0 0 10px 12px; }
.tg-menu li.is-open > .sub-menu { display: block; }
.tg-menu .sub-menu a { display: block; padding: 9px 4px; color: var(--tg-text); text-decoration: none; font-size: .95rem; }
.tg-menu .sub-menu a:hover, .tg-menu > li > a:hover { color: var(--tg-brand-700); }
.tg-menu .current-menu-item > a, .tg-menu .current-menu-ancestor > a, .tg-menu .current-page-ancestor > a { color: var(--tg-brand-700); }
.tg-subtoggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--tg-brand-900); cursor: pointer; padding: 0; }
.tg-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tg-menu .lang-item { display: none; }

/* ---------- Хлебные крошки, страницы ---------- */
.tg-crumbs { max-width: var(--tg-container); margin: 0 auto; padding: 16px 16px 0; font-size: .875rem; color: var(--tg-muted); }
.tg-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25em .5em; }
.tg-crumbs li + li::before { content: "›"; margin-right: .5em; color: var(--tg-on-dark-muted); }
.tg-crumbs a { color: var(--tg-muted); }
.entry-header .entry-title { margin-bottom: .4em; }
.entry-content { font-size: 1.0625rem; max-width: 960px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0; }
.entry-content th, .entry-content td { border: 1px solid var(--tg-line); padding: .55em .7em; vertical-align: top; text-align: left; }
.entry-content tr:first-child td, .entry-content thead td, .entry-content th { background: var(--tg-brand-50); font-weight: 600; }
.tg-table { overflow-x: auto; margin: 1.2em 0; border-radius: var(--tg-radius-sm); }
.tg-table:focus-visible { box-shadow: var(--tg-focus); }
.entry-content iframe[src*="youtube"] { width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--tg-radius-sm); }
.entry-content img { border-radius: var(--tg-radius-sm); }
/* «История больницы»: руководители — карточки со сроками */
.tg-leaders { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; counter-reset: lead; }
.tg-leaders li { padding: 14px 16px; border: 1px solid var(--tg-line); border-left: 4px solid var(--tg-brand-700); border-radius: var(--tg-radius-sm); }
.tg-leaders h3 { margin: 0 0 2px; font-size: 1.05rem; }
.tg-leaders .tg-leaders__meta { margin: 0 0 6px; font-size: .9rem; font-weight: 600; color: var(--tg-muted); }
.tg-leaders li p:last-child { margin-bottom: 0; }
.tg-leaders li { display: flow-root; }
.tg-leaders .tg-leaders__photo { float: left; width: 96px; height: 124px; margin: 2px 16px 4px 0; object-fit: cover; object-position: 50% 15%; }
@media (min-width: 768px) { .tg-leaders .tg-leaders__photo { width: 120px; height: 156px; } }
/* Госсимволы: официальные изображения и аудио гимна (страница «Государственные символы») */
.tg-symbol { margin: 16px 0 24px; }
.tg-photo { margin: 12px 0 16px; }
.tg-photo img { display: block; width: 100%; max-width: 360px; height: auto; border-radius: var(--tg-radius, 12px); }
.tg-symbol img { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 0; }
.tg-symbol--flag img { box-shadow: 0 0 0 1px var(--tg-line, #dfe6ee); }
.tg-symbol--gerb img { max-width: 320px; }
.tg-symbol audio { display: block; width: 100%; max-width: 480px; }
.tg-symbol figcaption { margin-top: 6px; font-size: .875rem; color: var(--tg-muted, #5b6b7c); }

/* Ссылки на документы (PDF, DOC, XLS) */
.entry-content a.talgar-doc,
.entry-content a[href$=".pdf"], .entry-content a[href$=".doc"], .entry-content a[href$=".docx"], .entry-content a[href$=".xls"], .entry-content a[href$=".xlsx"] {
	display: inline-flex; align-items: center; gap: .55em; padding: .55em .9em .55em .7em;
	border: 1px solid var(--tg-line); border-radius: var(--tg-radius-sm); background: var(--tg-bg-soft);
	text-decoration: none; font-weight: 600; color: var(--tg-brand-800);
}
.entry-content a.talgar-doc::before,
.entry-content a[href$=".pdf"]::before, .entry-content a[href$=".doc"]::before, .entry-content a[href$=".docx"]::before, .entry-content a[href$=".xls"]::before, .entry-content a[href$=".xlsx"]::before {
	content: ""; width: 1.4em; height: 1.4em; flex: none; background: currentColor;
	-webkit-mask: url("../icons/file-text.svg") center / contain no-repeat; mask: url("../icons/file-text.svg") center / contain no-repeat;
}
.entry-content a.talgar-doc:hover, .entry-content a[href$=".pdf"]:hover { border-color: var(--tg-brand-700); background: var(--tg-brand-50); }
.tg-tpl-documents .entry-content p { margin: .5em 0; }

/* Список дочерних страниц (разделы) — карточками */
.entry-content .wp-block-page-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.entry-content .wp-block-page-list > li > a { display: flex; align-items: center; min-height: 56px; padding: .7em 1em; border: 1px solid var(--tg-line); border-radius: var(--tg-radius-sm); background: #fff; text-decoration: none; font-weight: 600; color: var(--tg-brand-900); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.entry-content .wp-block-page-list > li > a:hover { border-color: var(--tg-brand-700); background: var(--tg-brand-50); }
.entry-content .wp-block-page-list .wp-block-page-list, .entry-content .wp-block-page-list ul { display: none; }

.tg-note { display: flex; gap: .6em; align-items: flex-start; padding: .9em 1em; background: var(--tg-brand-50); border-left: 4px solid var(--tg-brand-700); border-radius: 8px; color: var(--tg-text); }
.tg-note .tg-icon { color: var(--tg-brand-700); margin-top: .15em; }
.tg-review { display: flex; gap: .5em; padding: .6em .9em; background: #fff3b0; border-radius: 8px; color: #5c4300; font-size: .9rem; }
.tg-updated { color: var(--tg-muted); font-size: .9rem; }

/* Отделение */
.tg-dept { display: grid; gap: 20px; margin: 8px 0 28px; }
.tg-dept__media img, .tg-dept__noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--tg-radius); }
.tg-dept__noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--tg-brand-50); color: var(--tg-brand-700); }
.tg-dept__noimg .tg-icon { width: 56px; height: 56px; }
.tg-dept__facts { margin: 0; display: grid; gap: 10px; }
.tg-dept__facts div { padding: .8em 1em; border: 1px solid var(--tg-line); border-radius: var(--tg-radius-sm); }
.tg-dept__facts dt { display: flex; align-items: center; gap: .5em; font-size: .85rem; color: var(--tg-muted); font-weight: 600; }
.tg-dept__facts dd { margin: .2em 0 0; font-size: 1.05rem; font-weight: 600; }
.tg-dept__services h2 { font-size: 1.25rem; }
.tg-dept__services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tg-dept__services li { display: flex; gap: .6em; align-items: flex-start; }
.tg-dept__services .tg-icon { color: var(--tg-brand-700); margin-top: .2em; }

/* Контакты */
.tg-contacts { display: grid; gap: 20px; margin: 8px 0 28px; }
.tg-contacts__row { display: flex; gap: .6em; align-items: flex-start; margin: 0 0 .8em; }
.tg-contacts__row .tg-icon { color: var(--tg-brand-700); margin-top: .2em; }
.tg-contacts__phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tg-contacts__phones li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: .6em .9em; background: var(--tg-bg-soft); border-radius: 8px; }
.tg-contacts__phones a { font-weight: 700; white-space: nowrap; }
.tg-contacts__map iframe, .tg-mapstub { width: 100%; height: 320px; border: 0; border-radius: var(--tg-radius); margin-bottom: 12px; }
.tg-mapstub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: repeating-linear-gradient(45deg, var(--tg-brand-50), var(--tg-brand-50) 12px, #fff 12px, #fff 24px); color: var(--tg-brand-800); }
.tg-mapstub .tg-icon { width: 40px; height: 40px; }
.tg-mapload .tg-btn { margin-top: 4px; }

/* Новости: список и запись */
.blog .site-main article, .archive .site-main article, .search .site-main article { border-bottom: 1px solid var(--tg-line); }
.entry-meta, .posted-on { color: var(--tg-muted); font-size: .9rem; }
.post-image img, .featured-image img { border-radius: var(--tg-radius); }
.read-more { font-weight: 600; }
.paging-navigation .nav-links, .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tg-line); border-radius: 8px; text-decoration: none; }
.nav-links .page-numbers.current { background: var(--tg-brand-700); color: #fff; border-color: var(--tg-brand-700); }
.page-header { max-width: var(--tg-container); margin: 0 auto; padding: 24px 16px 0; }

/* Закупки: навигация по годам */
.talgar-zakup-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 0; }
.talgar-zakup-nav a { font-size: .95rem; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9em; border: 1px solid var(--tg-line); border-radius: 999px; text-decoration: none; color: var(--tg-brand-900); }
.talgar-zakup-nav a[aria-current="page"] { background: var(--tg-brand-700); border-color: var(--tg-brand-700); color: #fff; }
.talgar-zakup-types, .talgar-zakup-goszakup { font-size: .95rem; color: var(--tg-muted); }

/* ---------- Главная ---------- */
.tg-section { padding: 40px 0; }
.tg-section--tint, .tg-stats-wrap { background: var(--tg-bg-soft); }
.tg-section__title { margin: 0 0 20px; }
.tg-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.tg-section__head .tg-section__title { margin: 0; }
.tg-section__head > a, .tg-more a { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; text-decoration: none; }
.tg-eyebrow { margin: 0 0 .3em; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--tg-brand-700); }

.tg-hero { position: relative; color: #fff; overflow: hidden; background: var(--tg-brand-900); }
.tg-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.tg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--tg-overlay-mid) 0%, var(--tg-overlay-strong) 100%); }
.tg-hero__content { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 48px; }
.tg-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.tg-hero__video.is-playing { opacity: 1; }
.tg-hero__pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: grid; place-items: center; }
.tg-hero__pause[hidden] { display: none; }
.tg-hero__pause:focus-visible { box-shadow: var(--tg-focus); }
.tg-hero__pause-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.tg-hero__pause[data-paused="1"] .tg-hero__pause-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
html[data-noimg="1"] .tg-hero__video, html[data-noimg="1"] .tg-hero__pause, html[data-contrast] .tg-hero__video, html[data-contrast] .tg-hero__pause { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tg-hero__video, .tg-hero__pause { display: none !important; } }
.tg-hero h1 { color: #fff; margin: 0 0 .4em; max-width: 18em; text-wrap: balance; }
.tg-hero__kicker { margin: 0 0 .5em; font-weight: 600; color: var(--tg-brand-100); }
.tg-hero__lead { font-size: 1.1rem; max-width: 34em; margin: 0 0 1.4em; color: var(--tg-on-dark); }
.tg-hero__buttons { display: grid; gap: 10px; }
.tg-hero .tg-btn { width: 100%; }
.tg-hero .tg-btn:not(.tg-btn--light) { background: var(--tg-brand-700); border-color: var(--tg-brand-700); }
.tg-hero .tg-btn:not(.tg-btn--light):hover { background: var(--tg-brand-800); border-color: var(--tg-brand-800); }

.tg-director { display: grid; gap: 20px; align-items: center; }
.tg-director__photo { width: 180px; height: 240px; object-fit: cover; object-position: top; border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); }
.tg-director__body h2 { margin: 0 0 .5em; }
.tg-director__reception { display: flex; gap: .5em; align-items: flex-start; color: var(--tg-muted); }
.tg-director__buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tg-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-tile { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 112px; padding: 16px; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); text-decoration: none; color: var(--tg-brand-900); font-weight: 600; line-height: 1.3; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: border-color .15s, transform .15s, box-shadow .15s; }
.tg-tile:hover { border-color: var(--tg-brand-700); box-shadow: var(--tg-shadow); transform: translateY(-2px); color: var(--tg-brand-900); }
.tg-tile__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tg-brand-50); color: var(--tg-brand-700); }

.tg-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-stats li { padding: 18px 16px; background: #fff; border-radius: var(--tg-radius); border: 1px solid var(--tg-line); }
.tg-stats strong { display: block; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); color: var(--tg-brand-700); line-height: 1.1; font-weight: 800; }
.tg-stats span { color: var(--tg-muted); }
.tg-stats .tg-count { display: inline-block; color: inherit; font-variant-numeric: tabular-nums; }
.tg-more { margin: 16px 0 0; }

.tg-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.tg-card { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.tg-card:hover { box-shadow: var(--tg-shadow); border-color: var(--tg-line-strong); }
.tg-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--tg-text); }
.tg-card__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--tg-brand-50); color: var(--tg-brand-700); overflow: hidden; }
.tg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tg-card__media .tg-icon { width: 48px; height: 48px; opacity: .8; }
.tg-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.tg-card time { color: var(--tg-muted); font-size: .875rem; }
.tg-card strong { color: var(--tg-brand-900); line-height: 1.35; }
.tg-card--ann .tg-card__link { gap: 8px; padding: 16px; }
.tg-badge { align-self: flex-start; padding: .2em .7em; border-radius: 999px; background: var(--tg-brand-50); color: var(--tg-brand-800); font-size: .8rem; font-weight: 700; }
.tg-badge--alt { background: #fde8ec; color: #8a0c22; }
.tg-section--tint .tg-note { margin-top: 18px; background: #fff; }

.tg-links-grid { display: grid; gap: 24px; }
.tg-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tg-links a { display: flex; align-items: center; gap: .7em; min-height: 56px; padding: .6em 1em; border: 1px solid var(--tg-line); border-radius: var(--tg-radius-sm); background: #fff; color: var(--tg-brand-900); text-decoration: none; font-weight: 600; }
.tg-links a > .tg-icon:first-child { color: var(--tg-brand-700); }
.tg-links__logo { flex: none; width: 32px; height: 32px; object-fit: contain; }
.tg-links a span { flex: 1; }
.tg-links__ext { opacity: .55; width: 1em; height: 1em; }
.tg-links a:hover { border-color: var(--tg-brand-700); background: var(--tg-brand-50); }
.tg-osms { padding: 24px; border-radius: var(--tg-radius); background: linear-gradient(135deg, var(--tg-brand-800), var(--tg-brand-900)); color: var(--tg-on-dark); align-self: start; }
.tg-osms h2 { display: flex; align-items: center; gap: .5em; color: #fff; font-size: 1.3rem; margin: 0 0 .6em; }
.tg-osms iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--tg-radius-sm); background: #fff; }
.tg-osms a:not(.tg-btn) { color: #fff; font-weight: 700; }
.tg-osms__call { margin: 1em 0 0; }

/* ---------- Подвал ---------- */
.tg-footer { background: var(--tg-brand-900); color: var(--tg-on-dark); font-size: .95rem; }
.tg-footer a { color: #fff; }
.tg-footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.tg-footer__title { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0 0 .8em; }
.tg-footer__line { display: flex; gap: .6em; align-items: flex-start; margin: 0 0 .7em; }
.tg-footer__line .tg-icon { color: var(--tg-brand-100); margin-top: .2em; }
.tg-footer__list, .tg-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tg-footer__list li { display: flex; flex-direction: column; }
.tg-footer__list span { font-size: .85rem; color: var(--tg-on-dark-muted); }
.tg-footer__list a { font-weight: 600; text-decoration: none; }
.tg-footer__list .tg-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .4em; font-size: inherit; line-height: inherit; color: inherit; }
.tg-footer__menu a { text-decoration: none; }
.tg-footer__menu a:hover, .tg-footer__list a:hover { text-decoration: underline; }
.tg-footer__map iframe, .tg-footer__map .tg-mapstub { height: 200px; margin-bottom: 10px; }
.tg-footer .tg-mapstub { background: rgba(255,255,255,.06); color: var(--tg-on-dark); }
.tg-link-ext { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; }
.tg-social { display: flex; gap: 8px; margin-top: 16px; }
.tg-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); }
.tg-social a:hover { background: var(--tg-brand); }
.tg-footer .tg-ph { background: #fff3b0; color: #5c4300; }
.tg-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; font-size: .875rem; }
.tg-footer__bottom .tg-container { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tg-footer__bottom a { color: var(--tg-on-dark); }

/* ---------- Формы (Contact Form 7) ---------- */
.wpcf7 { max-width: 720px; padding: 20px; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); background: var(--tg-bg-soft); }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 14px; }
.wpcf7 input[type="text"], .wpcf7 input[type="tel"], .wpcf7 input[type="email"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: .6em .8em; border: 2px solid var(--tg-input-border); border-radius: 10px; background: #fff; font: inherit; font-weight: 400;
}
.wpcf7 textarea { min-height: 150px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--tg-brand-700); outline: none; box-shadow: var(--tg-focus); }
.wpcf7 .wpcf7-acceptance { display: block; font-weight: 400; font-size: .95rem; }
.wpcf7 .wpcf7-acceptance input { width: 20px; height: 20px; margin-right: .5em; vertical-align: -.2em; }
.wpcf7 input[type="submit"] { min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px; background: var(--tg-brand-700); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--tg-brand-800); }
.wpcf7 .tg-form-hint { font-size: .9rem; color: var(--tg-muted); }
.tg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.wpcf7-not-valid-tip { color: #b00020; font-weight: 600; }

/* ---------- 768 px ---------- */
@media (min-width: 768px) {
	.tg-topbar__addr { display: inline-flex; }
	.tg-tool span { display: inline; }
	.tg-brand__logo { width: 150px; }
	.tg-brand__partner { display: block; }
	.tg-brand__partner img { width: 70px; height: 70px; }
	.tg-topbar__partner { display: none; }
	.tg-brand__text { display: block; max-width: 300px; }
	.tg-callout { display: flex; }
	.tg-callbtn { display: none; }
	.tg-hero__content { padding-top: 88px; padding-bottom: 80px; }
	.tg-hero__buttons { display: flex; flex-wrap: wrap; }
	.tg-hero .tg-btn { width: auto; }
	.tg-director { grid-template-columns: 220px 1fr; gap: 32px; }
	.tg-director__photo { width: 220px; height: 300px; }
	.tg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.tg-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.tg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tg-dept { grid-template-columns: 320px 1fr; }
	.tg-dept__services { grid-column: 1 / -1; }
	.tg-contacts { grid-template-columns: 1fr 1fr; }
	.entry-content .wp-block-page-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.separate-containers .inside-article, .one-container .inside-article { padding: 24px 24px 48px; }
	.tg-section { padding: 56px 0; }
}

/* ---------- 1100+ px: меню в строку ---------- */
@media (min-width: 1100px) {
	.tg-container { padding-left: 24px; padding-right: 24px; }
	.tg-crumbs { padding: 20px 24px 0; }
	.tg-burger { display: none; }
	.tg-nav { display: block; }
	.tg-menu { display: flex; flex-wrap: nowrap; justify-content: space-between; }
	.tg-menu > li { border: 0; flex-wrap: nowrap; }
	.tg-menu > li > a { padding: 14px 4px 14px 8px; font-size: .95rem; white-space: nowrap; }
	.tg-subtoggle { width: 24px; height: 44px; margin-right: 4px; }
	.tg-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 300px; max-width: 560px; padding: 10px; display: none;
		background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); z-index: 60;
	}
	.tg-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
	.tg-menu > li:hover > .sub-menu, .tg-menu > li:focus-within > .sub-menu, .tg-menu li.is-open > .sub-menu { display: block; }
	.tg-menu .sub-menu:has(> li:nth-child(10)) { columns: 2; min-width: 560px; }
	.tg-menu .sub-menu li { break-inside: avoid; }
	.tg-menu .sub-menu a { padding: 8px 10px; border-radius: 8px; line-height: 1.35; }
	.tg-menu .sub-menu a:hover { background: var(--tg-brand-50); }
	.tg-brand__text { max-width: 360px; }
	.tg-brand__text strong { font-size: 1.1rem; }
	.tg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tg-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.tg-cards--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tg-cards--ann { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tg-links-grid { grid-template-columns: 1.6fr 1fr; gap: 40px; }
	.tg-footer__grid { grid-template-columns: 1.2fr 1fr .9fr 1.2fr; }
	.entry-content .wp-block-page-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.separate-containers .inside-article, .one-container .inside-article { padding: 24px 24px 56px; }
}

/* ---------- Версия для слабовидящих ---------- */
html[data-noimg="1"] img, html[data-noimg="1"] picture, html[data-noimg="1"] video, html[data-noimg="1"] .tg-card__media, html[data-noimg="1"] .tg-director__photo { display: none !important; }
html[data-noimg="1"] .tg-hero { background: var(--tg-brand-900); }

html[data-contrast="high"] body, html[data-contrast="high"] .tg-header, html[data-contrast="high"] .tg-nav,
html[data-contrast="high"] .site, html[data-contrast="high"] .inside-article, html[data-contrast="high"] .tg-section,
html[data-contrast="high"] .tg-card, html[data-contrast="high"] .tg-tile, html[data-contrast="high"] .tg-stats li,
html[data-contrast="high"] .tg-links a, html[data-contrast="high"] .tg-panel, html[data-contrast="high"] .tg-note { background: #fff !important; color: #000 !important; box-shadow: none !important; }
html[data-contrast="high"] * { border-color: #000 !important; }
html[data-contrast="high"] h1, html[data-contrast="high"] h2, html[data-contrast="high"] h3, html[data-contrast="high"] strong,
html[data-contrast="high"] .tg-tile, html[data-contrast="high"] .tg-card *, html[data-contrast="high"] .tg-menu a, html[data-contrast="high"] .tg-stats strong { color: #000 !important; }
html[data-contrast="high"] a { color: #000 !important; text-decoration: underline !important; }
html[data-contrast="high"] .tg-hero, html[data-contrast="high"] .tg-topbar, html[data-contrast="high"] .tg-footer, html[data-contrast="high"] .tg-osms { background: #000 !important; color: #fff !important; }
html[data-contrast="high"] .tg-hero::after { display: none; }
html[data-contrast="high"] .tg-hero__bg { display: none; }
html[data-contrast="high"] .tg-hero *, html[data-contrast="high"] .tg-topbar *, html[data-contrast="high"] .tg-footer *, html[data-contrast="high"] .tg-osms * { color: #fff !important; }
html[data-contrast="high"] .tg-btn, html[data-contrast="high"] .wpcf7 input[type="submit"] { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html[data-contrast="high"] .tg-icon { color: inherit !important; background: none !important; }

html[data-contrast="dark"] body, html[data-contrast="dark"] .tg-header, html[data-contrast="dark"] .tg-nav, html[data-contrast="dark"] .site,
html[data-contrast="dark"] .inside-article, html[data-contrast="dark"] .tg-section, html[data-contrast="dark"] .tg-card, html[data-contrast="dark"] .tg-tile,
html[data-contrast="dark"] .tg-stats li, html[data-contrast="dark"] .tg-links a, html[data-contrast="dark"] .tg-panel, html[data-contrast="dark"] .tg-note,
html[data-contrast="dark"] .tg-topbar, html[data-contrast="dark"] .tg-footer, html[data-contrast="dark"] .tg-osms, html[data-contrast="dark"] .tg-hero,
html[data-contrast="dark"] .tg-menu .sub-menu, html[data-contrast="dark"] .wpcf7, html[data-contrast="dark"] .entry-content td { background: #000 !important; color: #fff !important; box-shadow: none !important; }
html[data-contrast="dark"] * { border-color: #ff0 !important; }
html[data-contrast="dark"] h1, html[data-contrast="dark"] h2, html[data-contrast="dark"] h3, html[data-contrast="dark"] strong, html[data-contrast="dark"] .tg-stats strong, html[data-contrast="dark"] .tg-card *, html[data-contrast="dark"] .tg-tile { color: #fff !important; }
html[data-contrast="dark"] a, html[data-contrast="dark"] .tg-menu a { color: #ff0 !important; }
html[data-contrast="dark"] .tg-hero::after, html[data-contrast="dark"] .tg-hero__bg { display: none; }
html[data-contrast="dark"] .tg-btn { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0 !important; }
html[data-contrast="dark"] .tg-icon { background: none !important; color: inherit !important; }

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

@media print {
	.tg-topbar, .tg-head__actions, .tg-nav, .tg-panel, .tg-footer__map, .tg-crumbs { display: none !important; }
}

/* Новость без обложки: значок вместо пустой картинки */
.tg-card__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 16px 16px 0; border-radius: 12px; background: var(--tg-brand-50); color: var(--tg-brand-700); }
.tg-card__icon + .tg-card__body { padding-top: 10px; }
.wpcf7 form > p { margin: 0 0 4px; }
.wpcf7 label br { display: none; }

/* Главная во всю ширину (GeneratePress flexbox сужает прямых потомков .site-content) */
main.tg-home { display: block; width: 100%; max-width: none; flex: 1 1 100%; }

/* Тёмная/чёрно-белая тема: все подписи и плашки читаемые */
html[data-contrast="dark"] body *:not(a):not(.tg-ph):not(button):not(input):not(select):not(textarea) { color: #fff !important; }
html[data-contrast="dark"] .tg-badge, html[data-contrast="dark"] .tg-card__icon, html[data-contrast="dark"] .tg-tile__icon, html[data-contrast="dark"] .tg-callout__icon { background: transparent !important; border: 1px solid #ff0; }
html[data-contrast="high"] .tg-badge, html[data-contrast="high"] .tg-card__icon, html[data-contrast="high"] .tg-tile__icon, html[data-contrast="high"] .tg-callout__icon { background: transparent !important; color: #000 !important; border: 1px solid #000; }
html[data-contrast="high"] .tg-section *:not(a):not(.tg-ph), html[data-contrast="high"] .site-main *:not(a):not(.tg-ph):not(button) { color: #000 !important; }
html[data-contrast="high"] .tg-hero *, html[data-contrast="high"] .tg-osms * { color: #fff !important; }
html[data-contrast] .tg-ph { background: #ff0 !important; color: #000 !important; }
html[data-contrast="high"] .tg-section .tg-osms, html[data-contrast="high"] .tg-section .tg-osms *:not(.tg-btn) { color: #fff !important; }
html[data-contrast="high"] .tg-lang a[aria-current="true"] { background: #fff !important; color: #000 !important; }
html[data-contrast="dark"] .tg-lang a[aria-current="true"] { background: #ff0 !important; color: #000 !important; }
html[data-noimg="1"] .tg-director { grid-template-columns: 1fr; }
html[data-contrast="dark"] .tg-iconbtn { background: #000 !important; color: #ff0 !important; border-color: #ff0 !important; }
html[data-contrast="high"] .tg-iconbtn { background: #fff !important; color: #000 !important; }

/* Архив рубрик */
.tg-archive { padding: 8px 16px 48px; }
.tg-archive__title { margin: .3em 0 .5em; }
.tg-archive .tg-cards { margin-top: 16px; }
.tg-archive .pagination, .tg-archive .navigation { margin-top: 24px; }
@media (min-width: 1100px) { .tg-archive { padding: 8px 24px 56px; } }
.entry-content td p, .entry-content th p { margin: 0; }
.entry-content td p + p { margin-top: .3em; }
.page-header, .archive .page-header { padding-left: 16px; padding-right: 16px; }

/* Закупки: список */
.tg-zakup-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--tg-line); }
.tg-zakup-list li { border-bottom: 1px solid var(--tg-line); }
.tg-zakup-list a { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 4px; text-decoration: none; color: var(--tg-text); }
.tg-zakup-list a:hover { background: var(--tg-bg-soft); }
.tg-zakup-list strong { color: var(--tg-brand-900); }
.tg-zakup-list time { color: var(--tg-muted); font-size: .9rem; }
@media (min-width: 768px) { .tg-zakup-list a { grid-template-columns: 130px 1fr 110px; align-items: center; gap: 16px; } .tg-zakup-list time { text-align: right; } }

/* Фото директора: 3:4, на мобильных во всю ширину карточки (до 320 px), на десктопе 300 px */
.tg-director { grid-template-columns: 1fr; }
.tg-director .tg-director__photo { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--tg-radius); box-shadow: var(--tg-shadow); }
.tg-director--page { margin: 8px 0 32px; padding: 20px; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); background: var(--tg-bg-soft); }
@media (min-width: 768px) {
	.tg-director { grid-template-columns: 300px 1fr; gap: 40px; }
	.tg-director .tg-director__photo { width: 300px; max-width: none; }
	.tg-director--page { padding: 28px; }
}

/* Телефоны +7XXXXXXXXXX не переносятся */
a.tel, .tel { white-space: nowrap; }
.entry-content td a.tel { font-variant-numeric: tabular-nums; }

/* Справочники с телефонами на узких экранах: строка таблицы — карточка */
@media (max-width: 600px) {
	.tg-table--stack table, .tg-table--stack tbody, .tg-table--stack tr, .tg-table--stack td, .tg-table--stack th { display: block; width: 100%; }
	.tg-table--stack thead, .tg-table--stack tr:first-child:not(:has(td[colspan])):has(strong) { display: none; }
	.tg-table--stack tr { border: 1px solid var(--tg-line); border-radius: var(--tg-radius-sm); margin: 0 0 8px; padding: 6px 0; background: #fff; }
	.tg-table--stack td, .tg-table--stack th { border: 0 !important; padding: .2em .9em !important; background: transparent !important; font-weight: 400 !important; }
	.tg-table--stack td:empty { display: none; }
	.tg-table--stack tr:has(> td[colspan]) { background: var(--tg-brand-50); border-color: var(--tg-brand-100); margin-top: 16px; }
	.tg-table--stack td[colspan] { font-weight: 700 !important; }
	.tg-table--stack a.tel { display: inline-block; padding: .25em 0; font-weight: 700; font-size: 1.05rem; }
}

/* ---------- Сервисы для пациентов (inc/features.php) ---------- */
/* Объявление дня */
.tg-notice { background: var(--tg-brand-50); border-bottom: 1px solid var(--tg-brand-100); }
.tg-notice--warn { background: #fff3b0; border-bottom-color: #e8cf5a; }
.tg-notice__inner { display: flex; gap: .6em; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
.tg-notice__inner > .tg-icon { flex: none; margin-top: .2em; color: var(--tg-brand-700); }
.tg-notice--warn .tg-notice__inner > .tg-icon { color: #8a5a00; }
.tg-notice p { margin: 0; }
.tg-notice a { font-weight: 600; text-decoration: underline; }

/* Открыто сейчас */
.tg-open { display: inline-block; margin-left: .5em; padding: .1em .55em; border-radius: 999px; background: var(--tg-bg-soft); color: var(--tg-muted); font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.tg-open.is-open { background: #dff3e4; color: #135c2a; }
.tg-open.is-open::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .35em; border-radius: 50%; background: #1f8a3c; vertical-align: .05em; }
.tg-open.is-closed { background: #fde8ec; color: #8a0c22; }
.tg-footer .tg-open { align-self: flex-start; margin-left: 0; margin-top: 2px; }
.tg-footer__list .tg-open:not(.is-open):not(.is-closed) { background: rgba(255,255,255,.1); color: var(--tg-on-dark); }
.tg-phone-inline .tel { white-space: nowrap; }

/* Что делать, если… */
.tg-situations { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.tg-situation { display: flex; gap: 14px; align-items: center; min-height: 72px; padding: 14px 16px; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); text-decoration: none; color: var(--tg-text); transition: border-color .15s, box-shadow .15s; }
.entry-content .tg-situations a { text-decoration: none; }
.tg-situation:hover { border-color: var(--tg-brand-700); box-shadow: var(--tg-shadow); color: var(--tg-text); }
.tg-situation > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tg-situation strong { color: var(--tg-brand-900); line-height: 1.3; }
.tg-situation > span > span { color: var(--tg-muted); font-size: .9rem; line-height: 1.4; }
.tg-situation__icon { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--tg-brand-50); color: var(--tg-brand-700); }
.tg-situation__go { flex: none; color: var(--tg-brand-700); }

/* Калькулятор скринингов и прививок */
.tg-checkup { display: grid; gap: 16px; margin: 8px 0 24px; }
.tg-checkup__box { padding: 18px; background: var(--tg-bg-soft); border: 1px solid var(--tg-line); border-radius: var(--tg-radius); }
.tg-checkup__box h2 { display: flex; gap: .5em; align-items: center; margin: 0 0 14px; font-size: 1.25rem; }
.tg-checkup__box h2 .tg-icon { color: var(--tg-brand-700); }
.tg-checkup__form { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.tg-checkup__form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.tg-checkup__form input[type=number], .tg-checkup__form input[type=date] { min-height: 44px; min-width: 170px; padding: 8px 10px; border: 1px solid var(--tg-input-border); border-radius: 8px; font: inherit; }
.tg-checkup__form fieldset { display: flex; gap: 14px; margin: 0; padding: 0; border: 0; }
.tg-checkup__form legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.tg-checkup__form fieldset label { flex-direction: row; align-items: center; min-height: 44px; font-weight: 400; }
.tg-checkup__out:not(:empty) { margin-top: 16px; padding: 14px 16px; background: #fff; border-radius: 10px; border: 1px solid var(--tg-line); }
.tg-checkup__out ul { margin: .4em 0; padding-left: 1.2em; }
.tg-checkup__out li { margin: .35em 0; }
.tg-checkup__out li.is-now small { color: #135c2a; font-weight: 700; }
.tg-checkup__out li.is-past small { color: #8a0c22; }
.tg-checkup__out p { margin: .4em 0; }
@media (min-width: 768px) {
	.tg-situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html[data-contrast="high"] .tg-notice, html[data-contrast="high"] .tg-situation, html[data-contrast="high"] .tg-checkup__box, html[data-contrast="high"] .tg-open { background: #fff !important; color: #000 !important; border: 1px solid #000; }
html[data-contrast="dark"] .tg-notice, html[data-contrast="dark"] .tg-situation, html[data-contrast="dark"] .tg-checkup__box, html[data-contrast="dark"] .tg-checkup__out, html[data-contrast="dark"] .tg-open { background: #000 !important; color: #ff0 !important; border: 1px solid #ff0; }
html[data-contrast="dark"] .tg-situation *, html[data-contrast="dark"] .tg-notice * { color: #ff0 !important; }
.entry-content .tg-more a { text-decoration: none; }
/* Вопросы и ответы: блоки «Подробности» */
.entry-content .wp-block-details { margin: 0 0 10px; border: 1px solid var(--tg-line); border-radius: var(--tg-radius-sm); background: #fff; }
.entry-content .wp-block-details summary { display: flex; align-items: center; gap: .6em; min-height: 52px; padding: .7em 1em; font-weight: 600; color: var(--tg-brand-900); cursor: pointer; list-style: none; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::before { content: "+"; flex: none; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--tg-brand-50); color: var(--tg-brand-700); text-align: center; line-height: 1.4em; font-weight: 700; }
.entry-content .wp-block-details[open] summary::before { content: "−"; }
.entry-content .wp-block-details > :not(summary) { margin: 0; padding: 0 1em 1em 3em; }
html[data-contrast="dark"] .entry-content .wp-block-details { background: #000 !important; border-color: #ff0; }

/* Цели для пальца ≥ 44 px (QA-отчёт, ошибка 9) */
.tg-topbar__inner { min-height: 48px; }
.tg-tool { min-height: 44px; min-width: 44px; justify-content: center; }
.tg-lang a { min-height: 44px; }
.tg-section__head > a, .tg-more a { min-height: 44px; }
.tg-footer__list a, .tg-footer__menu a, .tg-footer__bottom a, .tg-link-ext { display: inline-flex; align-items: center; min-height: 44px; }
.tg-footer__list li { gap: 0; }
.tg-footer__list span { line-height: 1.3; }
.tg-footer__menu { gap: 0; }
/* Версия для слабовидящих, крупный шрифт: меню переносится на вторую строку, а не уходит за край (ошибка 10) */
@media (min-width: 1100px) {
	html[data-fs="2"] .tg-menu, html[data-fs="3"] .tg-menu { flex-wrap: wrap; justify-content: flex-start; column-gap: 8px; }
	html[data-fs="3"] .tg-menu > li > a { font-size: .9rem; }
}

/* Онлайн-сервисы на главной */
.tg-eservices-wrap { padding-top: 28px; padding-bottom: 8px; }
.tg-eservices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.tg-eservice { display: flex; gap: 12px; align-items: center; min-height: 64px; height: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); text-decoration: none; color: var(--tg-text); transition: border-color .15s, box-shadow .15s; }
.tg-eservice:hover { border-color: var(--tg-brand-700); box-shadow: var(--tg-shadow); color: var(--tg-text); }
.tg-eservice > span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.tg-eservice strong { color: var(--tg-brand-900); }
.tg-eservice small { color: var(--tg-muted); font-size: .85rem; }
.tg-eservice__icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--tg-brand-50); color: var(--tg-brand-700); }
.tg-eservice__ext { flex: none; width: 18px; height: 18px; color: var(--tg-muted); }
@media (min-width: 768px) { .tg-eservices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tg-eservices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Знакомьтесь, наш врач */
.tg-doctor { display: grid; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); text-decoration: none; color: var(--tg-text); }
.tg-doctor:hover { border-color: var(--tg-brand-700); box-shadow: var(--tg-shadow); color: var(--tg-text); }
.tg-doctor__photo { width: 160px; height: 200px; object-fit: cover; border-radius: var(--tg-radius-sm); }
.tg-doctor > span { display: flex; flex-direction: column; gap: 6px; }
.tg-doctor strong { font-size: 1.15rem; color: var(--tg-brand-900); }
@media (min-width: 768px) { .tg-doctor { grid-template-columns: auto 1fr; } }

/* «Узнать участок»: поиск по улице */

/* Оценка приёма (черновик): звёзды-кнопки крупные */
.wpcf7 .tg-rate { margin: 0 0 1em; padding: 0; border: 0; }
.wpcf7 .tg-rate legend { font-weight: 600; margin-bottom: 6px; }
.wpcf7 .tg-rate .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .tg-rate label { display: flex; align-items: center; gap: .5em; min-height: 44px; }

/* =========================================================================
   Оформление v2 (12.10.2026): акцентный цвет схемы, первый экран, заголовки разделов,
   плитки, цифры, карточки, подвал. Цвета — только переменные схемы (см. :root).
   ========================================================================= */
/* Заголовки разделов: короткая акцентная черта */
.tg-section__title { position: relative; padding-bottom: 14px; }
.tg-section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--tg-accent); }
.tg-section__head { align-items: flex-end; }
.tg-section__head > a { padding: 0 2px; }

/* Первый экран */
.tg-hero__kicker { display: inline-flex; align-items: center; gap: .55em; padding: .35em .95em; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .9rem; }
.tg-hero__kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tg-accent); }
.tg-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.015em; }
.tg-hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.tg-hero .tg-btn--lg { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }

/* Директор: фото в белой рамке, фон с лёгким переходом */
.tg-director-wrap { background: linear-gradient(180deg, var(--tg-bg-soft) 0%, #fff 100%); }
.tg-director__photo { box-shadow: 0 0 0 6px #fff, var(--tg-shadow); }

/* Плитки и онлайн-сервисы: иконка заливается цветом при наведении */
.tg-tile__icon, .tg-eservice__icon, .tg-situation__icon { background: linear-gradient(135deg, var(--tg-brand-50), var(--tg-brand-100)); transition: background-color .15s, color .15s; }
.tg-tile:hover .tg-tile__icon, .tg-eservice:hover .tg-eservice__icon, .tg-situation:hover .tg-situation__icon { background: var(--tg-brand-700); color: #fff; }
.tg-tile { font-size: 1.02rem; }

/* Цифры: акцентная полоса слева */
.tg-stats li { position: relative; overflow: hidden; padding-left: 20px; }
.tg-stats li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tg-accent); }

/* Карточки новостей без фото — фон с переходом вместо плоской заливки */
.tg-card__media { background: linear-gradient(135deg, var(--tg-brand-50), var(--tg-brand-100)); }
.tg-card:hover { transform: translateY(-2px); }
.tg-card { transition: box-shadow .15s, border-color .15s, transform .15s; }

/* Меню: текущий раздел отмечен чертой (компьютер) */
@media (min-width: 1100px) {
	.tg-menu > li > a { position: relative; }
	.tg-menu > .current-menu-item > a::after, .tg-menu > .current-menu-ancestor > a::after, .tg-menu > .current-page-ancestor > a::after {
		content: ""; position: absolute; left: 8px; right: 4px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--tg-accent);
	}
	.tg-hero::after { background: linear-gradient(100deg, var(--tg-overlay-strong) 0%, var(--tg-overlay-mid) 55%, var(--tg-overlay-light) 100%); }
}

/* Подвал: акцентная полоса сверху */
.tg-footer { border-top: 4px solid var(--tg-accent); }

/* Внутренние страницы: заголовок страницы с акцентом */
.entry-header .entry-title { position: relative; padding-bottom: 14px; margin-bottom: 18px; }
.entry-header .entry-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--tg-accent); }

@media (prefers-reduced-motion: reduce) {
	.tg-card:hover, .tg-tile:hover { transform: none; }
}
html[data-contrast] .tg-section__title::after, html[data-contrast] .entry-title::after, html[data-contrast] .tg-stats li::before { background: currentColor !important; }
html[data-contrast] .tg-footer { border-top-color: currentColor !important; }

/* Первая плитка — выделенная, на всю ширину (по умолчанию «Что делать, если…»): ряды плиток без «сирот» */
.tg-tiles > li:first-child { grid-column: 1 / -1; }
.tg-tiles > li:first-child .tg-tile { flex-direction: row; align-items: center; min-height: 72px; background: linear-gradient(110deg, var(--tg-brand-800), var(--tg-brand-700)); border-color: transparent; color: #fff; font-size: 1.1rem; }
.tg-tiles > li:first-child .tg-tile__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.tg-tiles > li:first-child .tg-tile:hover { color: #fff; box-shadow: var(--tg-shadow); }
.tg-tiles > li:first-child .tg-tile:hover .tg-tile__icon { background: var(--tg-accent); color: var(--tg-brand-900); }
html[data-contrast] .tg-tiles > li:first-child .tg-tile { background: transparent !important; }

/* Карта сайта ([talgar_sitemap]) */
.tg-sitemap { list-style: none; margin: 0 0 24px; padding: 0; columns: 2 280px; column-gap: 32px; }
.tg-sitemap > li { break-inside: avoid; margin: 0 0 16px; }
.tg-sitemap > li > a { font-weight: 700; font-size: 1.05rem; }
.tg-sitemap .sub-menu { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--tg-line); }
.tg-sitemap .sub-menu li { margin: 4px 0; }
.tg-sitemap a { display: inline-block; padding: 4px 0; }

/* Данные, которые больница ещё не прислала: посетителям — «Информация обновляется…» (talgar_ph_html) */
.tg-soon { color: var(--tg-muted); font-style: italic; }
html[data-contrast] .tg-soon { font-style: normal; }
.tg-soon--edit { outline: 1px dashed #c9a100; outline-offset: 2px; cursor: help; } /* редактору: наведите — подсказка, что заполнить */

/* ------------------------------------------------------------------ Наши врачи (inc/doctors.php) */
.tg-docs__tools { display: grid; gap: 10px; padding: 10px 0; margin-bottom: 8px; background: var(--tg-bg); border-bottom: 1px solid var(--tg-line); }
.tg-docs__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--tg-input-border); border-radius: var(--tg-radius-sm); background: var(--tg-bg); }
.tg-docs__search:focus-within { box-shadow: var(--tg-focus); }
.tg-docs__search .tg-icon { color: var(--tg-muted); flex: none; }
.tg-docs__search input { flex: 1; min-width: 0; min-height: 44px; border: 0; padding: 0; background: transparent; font: inherit; color: var(--tg-text); }
.tg-docs__search input:focus { outline: none; }
.tg-doc-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tg-doc-nav a, .entry-content .tg-doc-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--tg-brand-50); color: var(--tg-brand-800); text-decoration: none; font-size: .92em; }
.tg-doc-nav a:hover, .tg-doc-nav a:focus-visible { background: var(--tg-brand-100); }
.tg-doc-nav__n { font-size: .85em; color: var(--tg-muted); }
.tg-docs__group { scroll-margin-top: 140px; margin: 8px 0 28px; }
.tg-docs__h { margin-bottom: 4px; }
.tg-docs__note { margin: 0 0 12px; color: var(--tg-muted); }
.tg-docs__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tg-doc { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); background: var(--tg-bg); }
.tg-doc[hidden] { display: none; }
.tg-doc__head { display: flex; gap: 12px; align-items: center; }
.tg-doc__img, .tg-doc__init { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tg-doc__init { display: grid; place-items: center; background: var(--tg-brand-50); color: var(--tg-brand-800); font-weight: 600; }
.tg-doc__name { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.tg-doc__pos { margin: 2px 0 0; color: var(--tg-muted); font-size: .95em; }
.tg-doc__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .92em; }
.tg-doc__facts div { display: flex; gap: 4px; }
.tg-doc__facts dt { color: var(--tg-muted); }
.tg-doc__facts dt::after { content: ":"; }
.tg-doc__facts dd { margin: 0; font-weight: 500; }
.tg-doc__sched { width: 100%; table-layout: fixed; margin: 0; border-collapse: collapse; font-size: .9em; }
.tg-doc__sched th, .tg-doc__sched td { padding: 5px 6px; border: 0; border-top: 1px solid var(--tg-line); text-align: left; vertical-align: top; }
.entry-content .tg-doc__sched tr th, .entry-content .tg-doc__sched tr td { background: none; font-weight: 400; }
.tg-doc__sched .tg-doc__c1 { width: 7.6em; }
.tg-doc__sched th { color: var(--tg-muted); }
.tg-doc__sched td { overflow-wrap: anywhere; }
.entry-content .tg-doc__sched tr.is-today th, .entry-content .tg-doc__sched tr.is-today td { background: var(--tg-brand-50); }
.tg-doc__sched tr.is-today th { color: var(--tg-brand-800); font-weight: 600; }
.tg-doc__time { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .tg-docs__tools { position: sticky; top: 0; z-index: 5; } }
.tg-docs__empty { padding: 12px; background: var(--tg-bg-soft); border-radius: var(--tg-radius-sm); }

/* ------------------------------------------------------------------ бегущая лента «Официальные ресурсы» (template-parts/resources-strip.php) */
.tg-res { padding: 28px 0 32px; background: var(--tg-bg-soft); border-top: 1px solid var(--tg-line); }
.tg-res__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tg-res__title { margin: 0; font-size: 1.25rem; color: var(--tg-brand-900); }
.tg-res__ctrl { display: flex; gap: 8px; flex: none; }
.tg-res__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--tg-brand-800); border-radius: 12px; background: var(--tg-bg); color: var(--tg-brand-800); cursor: pointer; }
.tg-res__btn:hover { background: var(--tg-brand-800); color: #fff; }
.tg-res__btn:focus-visible { box-shadow: var(--tg-focus); outline: none; }
.tg-res__btn .tg-icon { width: 18px; height: 18px; }
.tg-res__prev-ico { transform: rotate(180deg); }
.tg-res__pause { position: relative; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.tg-res__btn[aria-pressed="true"] .tg-res__pause { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tg-res__track { overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tg-res__track::-webkit-scrollbar { display: none; }
.tg-res__list { display: flex; gap: 14px; margin: 0; padding: 0 12px; list-style: none; width: max-content; }
.tg-res__list li { flex: none; width: 300px; margin: 0; }
.tg-res__card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border: 1px solid var(--tg-brand-800); border-radius: 18px; background: var(--tg-bg); color: var(--tg-brand-900); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.tg-res__card:hover, .tg-res__card:focus-visible { background: var(--tg-brand-800); color: #fff; transform: translateY(-2px); }
.tg-res__card:focus-visible { box-shadow: var(--tg-focus); outline: none; }
.tg-res__logo { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 2px solid var(--tg-brand-800); border-radius: 12px; background: #fff; color: var(--tg-brand-700); }
.tg-res__logo img { width: 34px; height: 34px; object-fit: contain; }
.tg-res__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tg-res__name { font-weight: 700; font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tg-res__host { font-size: .8rem; color: var(--tg-muted); }
.tg-res__card:hover .tg-res__host, .tg-res__card:focus-visible .tg-res__host { color: var(--tg-on-dark-muted); }
.tg-res__ext { flex: none; width: 16px; height: 16px; opacity: .55; }
@media (max-width: 600px) { .tg-res__list li { width: 260px; } .tg-res__title { font-size: 1.1rem; } }
html[data-contrast="high"] .tg-res { background: #fff !important; }
.tg-res__track { cursor: grab; } .tg-res__track.is-drag { cursor: grabbing; } .tg-res__track.is-drag a { pointer-events: none; }
/* фильтры «Наших врачей»: поиск, участок, подразделение, специальность */
.tg-docs__filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.tg-docs__f { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.tg-docs__f--q { grid-column: 1 / -1; }
.tg-docs__flabel { font-size: .85rem; font-weight: 600; color: var(--tg-muted); }
.tg-docs__f input[data-doc-area], .tg-docs__f select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--tg-input-border); border-radius: var(--tg-radius-sm); background: var(--tg-bg); color: var(--tg-text); font: inherit; }
.tg-docs__f input[data-doc-area]:focus, .tg-docs__f select:focus { outline: none; box-shadow: var(--tg-focus); }
.tg-docs__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 0; font-size: .92rem; min-height: 1.4em; }
.tg-docs__status [data-doc-count] { font-weight: 600; }
.tg-docs__status [data-doc-count]:empty { display: none; }
.tg-docs__reset { padding: 4px 10px; border: 1px solid var(--tg-brand-700); border-radius: 999px; background: var(--tg-bg); color: var(--tg-brand-800); font: inherit; font-size: .88rem; cursor: pointer; }
.tg-docs__reset:hover { background: var(--tg-brand-50); }
.tg-docs__reset:focus-visible { outline: none; box-shadow: var(--tg-focus); }
@media (min-width: 900px) { .tg-docs__filters { grid-template-columns: 2fr 1fr 1.4fr 1.4fr; } .tg-docs__f--q { grid-column: auto; } }
.tg-docs .tg-docs__search input[type="search"] { border: 0; box-shadow: none; background: transparent; min-height: 42px; padding: 0; outline: none; }
.tg-docs__f:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .tg-docs__f:last-child { grid-column: auto; } }
.tg-video { margin: 0 0 24px; } .tg-video video { display: block; width: 100%; max-width: 720px; height: auto; border-radius: var(--tg-radius-sm); background: #000; } .tg-video figcaption { margin-top: 6px; color: var(--tg-muted); font-size: .92rem; }
.entry-content .gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0 0 24px; } .entry-content .gallery br { display: none; } .entry-content .gallery .gallery-item { width: auto !important; max-width: none; margin: 0; padding: 0; } .entry-content .gallery .gallery-icon img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 0 !important; border-radius: var(--tg-radius-sm); } .entry-content .gallery .gallery-caption { font-size: .85rem; color: var(--tg-muted); }
.tg-schools-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; } .entry-content .tg-schools-nav a { display: inline-flex; min-height: 36px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--tg-brand-50); color: var(--tg-brand-800); text-decoration: none; font-size: .92em; } .entry-content .tg-schools-nav a:hover { background: var(--tg-brand-100); } .entry-content h2[id^="school-"] { scroll-margin-top: 90px; }
/* цели для пальца ≥ 24 px (WCAG 2.2, проверка 21.10.2026): телефоны в плашке «Справочная», рубрика и соседние записи */
.tg-callout__phone { display: inline-block; padding: 3px 0; }
.cat-links a, .tags-links a, .post-navigation a, .nav-links a, .search .entry-title a { display: inline-block; padding: 4px 0; }
.search .post-image a, .archive .post-image a { display: block; } .search .post-image img, .archive .post-image img { width: 100%; max-width: 240px; height: auto; border-radius: var(--tg-radius-sm); }
