/* Дополнения темы NVGSO к public.css */

body.admin-bar .masthead { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .masthead { top: 46px; }
}

.is-hidden { display: none !important; }

/* Правовые страницы: контент + оглавление */
.legal-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 18rem;
	gap: 2.5rem;
	align-items: start;
}
.legal-layout .toc { position: sticky; top: 7rem; }
.legal-layout .prose { max-width: 52rem; }
@media (max-width: 1024px) {
	.legal-layout { grid-template-columns: 1fr; }
	.legal-layout .toc { position: static; order: -1; }
}

/* Новости и статьи */
.article-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.article-meta .news-card__date { margin: 0; }
.news-card__date { display: inline-flex; align-items: center; gap: .35rem; }

/* Поиск */
.search-results .doc-row { text-decoration: none; }
.search-results .doc-row .doc-row__title { font-size: 1rem; }
.search-results .doc-row .muted { display: block; margin-top: .25rem; }

/* Таблицы */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; }

/* Галерея */
a.gallery-item { display: block; text-decoration: none; }
a.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Уведомления */
.toast-wrap {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	max-width: 22rem;
}
.toast {
	background: var(--navy);
	color: #fff;
	padding: .8rem 1rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	font-size: .875rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast--error { background: var(--red-700); }

/* Формы: звёздочки и подсказки */
.form-card .field > label { font-weight: 700; font-size: .8125rem; color: var(--navy); }
.form-card .form-consent { margin-top: 1rem; }
.form-card .btn { margin-top: .25rem; }

/* Контент WordPress */
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose iframe { max-width: 100%; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); }

/* Админ-бар не должен перекрывать шапку */
@media (min-width: 783px) {
	body.admin-bar .mobile-nav { top: 32px; }
}

/* Cookie-баннер не перекрывает кнопки на мобильных */
@media (max-width: 720px) {
	.cookie-banner__actions { width: 100%; }
	.cookie-banner__actions .btn { flex: 1 1 auto; }
}

/* Постраничная навигация WordPress */
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 .7rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--navy);
	font-weight: 700;
	font-size: .8125rem;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* Запрет случайного двойного тапа/зума при клике по шапке.
   Pinch-zoom и панель доступности продолжают работать. */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	touch-action: manipulation;
}
body { -webkit-tap-highlight-color: transparent; }
.topbar a, .topbar button,
.masthead a, .masthead button,
.alert-strip a,
.footer a,
.hotline, .brand, .hotline__num {
	touch-action: manipulation;
}

/* Все ссылки и кнопки: без двойного тапа, pinch-zoom сохраняется */
a, button, [role="button"] { touch-action: manipulation; }
/* Герой в стиле баннера: тёмно-синий фон, сетка, орёл-водяной знак */
.hero {
	background-image:
		url("../img/eagle-new.webp"),
		radial-gradient(62% 90% at 76% 54%, rgba(176, 24, 44, .24), transparent 62%),
		radial-gradient(95% 130% at 88% 4%, rgba(36, 92, 170, .58), transparent 55%),
		linear-gradient(115deg, #020a14 0%, #05172c 44%, #0a2342 100%);
	background-repeat: no-repeat;
	background-position: right -4rem center, center, center, center;
	background-size: min(34rem, 40vw) auto, auto, auto, auto;
	box-shadow: inset 0 0 14rem rgba(0, 0, 0, .28);
}
.hero::before { display: none; }
.hero::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 4.5rem 4.5rem;
}
.hero__tag {
	max-width: 64rem;
	font-size: .625rem;
	letter-spacing: .08em;
	line-height: 1.45;
	white-space: normal;
}
@media (max-width: 900px) {
	.hero { background-position: right -22% center, center, center, center; background-size: 62vw auto, auto, auto, auto; }
	.hero__tag { font-size: .58rem; letter-spacing: .05em; }
}

/* Кнопки «Доступность» и «Поиск» в шапке: шире и аккуратнее */
.nav-extra .icon-btn--text {
	width: auto;
	min-width: 0;
	height: 2.6rem;
	padding: 0 1.1rem;
	border-radius: 8px;
	gap: .5rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
	background: linear-gradient(#fff, #f7f9fc);
	box-shadow: 0 1px 2px rgba(7, 26, 51, .05);
}
.nav-extra .icon-btn--text .icon { color: var(--red); }
.nav-extra .icon-btn--text:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
	box-shadow: 0 4px 12px rgba(7, 26, 51, .16);
}
.nav-extra .icon-btn--text:hover .icon { color: #fff; }
@media (max-width: 1200px) and (min-width: 901px) {
	.nav-extra .icon-btn--text { padding: 0 .8rem; font-size: .75rem; }
}

/* Поле вложения в форме обратной связи */
input[type="file"].input {
	height: auto;
	padding: .55rem .7rem;
	background: #fff;
	cursor: pointer;
}
input[type="file"]::file-selector-button {
	margin-right: .75rem;
	padding: .45rem .8rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--navy-050);
	color: var(--navy);
	font-weight: 700;
	cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--navy); color: #fff; }

#fb-attachment-info { color: var(--navy-700); margin-top: .35rem; }

/* Карточки предприятий: длинные названия шахт не выходят за рамки */
.contact-card > div:last-child { min-width: 0; }
.contact-card__value { overflow-wrap: anywhere; }

/* Кнопка MAX в подвале */
.footer__max {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	margin-top: .9rem;
	padding: .45rem .7rem;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	font-size: .8125rem;
	text-decoration: none;
	transition: background .16s ease, border-color .16s ease;
}
.footer__max:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); color: #fff; }
.footer__max img { display: block; width: 1.75rem; height: 1.75rem; }
.footer__responsible { margin-top: .8rem; }

/* Цитата в светлых секциях: тёмный текст на светлой подложке */
.memory-quote { font-weight: 500; }
.section:not(.section--navy) .memory-quote {
	background: #f4f7fc;
	color: var(--navy-900);
	border-left: 4px solid var(--gold);
	box-shadow: inset 0 0 0 1px var(--line);
}
.section:not(.section--navy) .memory-quote footer {
	color: var(--navy-700);
	font-weight: 600;
}
.section--navy .memory-quote { color: #fff; }
.section--navy .memory-quote footer { color: #cdd9ec; }
