/* ==========================================================================
   Бюро туризма Алматы — основная таблица стилей
   ========================================================================== */

/* Geologica — локальные подмножества (латиница, кириллица, казахские буквы).
   Внешние запросы к Google Fonts не нужны. */
@font-face {
	font-family: "Geologica";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geologica-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
	font-family: "Geologica";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geologica-cyrillic-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Geologica";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geologica-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Geologica";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geologica-latin-wght-normal.woff2") format("woff2-variations");
	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 {
	--atb-orange: #e7865a;
	--atb-orange-dark: #d2703f;
	--atb-orange-soft: rgba(231, 134, 90, 0.12);
	--atb-navy: #3c3e4c;
	--atb-navy-900: #2e3141;
	--atb-slate: #515d74;
	--atb-cream: #ede7dd;
	--atb-ink: #4e4e4e;
	--atb-line: #d8d8d8;
	--atb-gray: #b7b7b7;
	--atb-white: #fff;

	--atb-container: 1440px;
	--atb-gutter: 24px;
	--atb-header-h: 119px;
	--atb-radius: 10px;
	--atb-radius-lg: 40px;

	--atb-font: "Geologica", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--atb-shadow: 0 10px 40px rgba(46, 49, 65, 0.12);
}

/* --------------------------------------------------------------- Сброс -- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--atb-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--atb-ink);
	background: var(--atb-white);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--atb-orange);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
	color: var(--atb-orange-dark);
}

button {
	font: inherit;
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	font-weight: 700;
	line-height: 1.15;
	color: var(--atb-navy);
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

table {
	border-collapse: collapse;
	width: 100%;
}

/* Фокус — обязателен для государственного сайта. */
:focus-visible {
	outline: 3px solid var(--atb-orange);
	outline-offset: 2px;
}

.atb-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 20px;
	background: var(--atb-orange);
	color: #fff;
}

.atb-skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ----------------------------------------------------------- Раскладка -- */

.atb-container {
	width: 100%;
	max-width: calc(var(--atb-container) + var(--atb-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--atb-gutter);
}

.atb-section {
	padding: 64px 0;
}

.atb-section--tight {
	padding: 40px 0;
}

.atb-section__title {
	margin: 0 0 40px;
	font-size: clamp(28px, 3vw, 56px);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	color: var(--atb-orange);
}

.atb-section__title--left {
	text-align: left;
}

.atb-page-title {
	margin: 0 0 40px;
	font-size: clamp(28px, 3vw, 56px);
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	color: var(--atb-orange);
}

/* ------------------------------------------------------------- Кнопки -- */

.atb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 28px;
	border: 1px solid var(--atb-orange);
	border-radius: 6px;
	background: var(--atb-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.atb-btn:hover,
.atb-btn:focus {
	background: var(--atb-orange-dark);
	border-color: var(--atb-orange-dark);
	color: #fff;
}

.atb-btn--ghost {
	background: transparent;
	color: var(--atb-orange);
}

.atb-btn--ghost:hover,
.atb-btn--ghost:focus {
	background: var(--atb-orange);
	color: #fff;
}

.atb-btn--sm {
	min-height: 38px;
	padding: 8px 20px;
	font-size: 13px;
}

.atb-btn--block {
	width: 100%;
}

.atb-btn[aria-disabled="true"],
.atb-btn:disabled {
	opacity: 0.55;
	pointer-events: none;
}

.atb-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--atb-orange);
}

.atb-more::after {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	transition: width 0.2s ease;
}

.atb-more:hover::after {
	width: 46px;
}

.atb-center {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

/* -------------------------------------------------------------- Формы -- */

.atb-field {
	width: 100%;
	min-height: 46px;
	padding: 11px 16px;
	border: 1px solid var(--atb-line);
	border-radius: 4px;
	background: #fff;
	color: var(--atb-ink);
	font: inherit;
	font-size: 15px;
}

.atb-field::placeholder {
	color: var(--atb-gray);
}

.atb-field:focus {
	border-color: var(--atb-orange);
	outline: none;
}

textarea.atb-field {
	min-height: 110px;
	resize: vertical;
}

select.atb-field {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E7865A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
}

.atb-honeypot {
	position: absolute;
	left: -9999px;
}

.atb-notice {
	margin: 0 0 24px;
	padding: 14px 20px;
	border-radius: 6px;
	font-size: 15px;
}

.atb-notice--ok {
	background: rgba(231, 134, 90, 0.14);
	color: var(--atb-navy);
}

.atb-notice--err {
	background: #fdecec;
	color: #a12b2b;
}

/* ------------------------------------------------------------- Шапка -- */

.atb-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: var(--atb-navy);
	color: #fff;
}

.atb-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--atb-header-h);
	padding-top: 12px;
	padding-bottom: 12px;
}

.atb-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	color: #fff;
}

.atb-logo img,
.atb-logo svg {
	max-height: 54px;
	width: auto;
}

.atb-logo__text {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}

/* Часы и погода */
.atb-meta {
	display: flex;
	align-items: center;
	gap: 22px;
	flex: 0 0 auto;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--atb-radius);
}

.atb-meta__item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.25;
	color: #fff;
	white-space: nowrap;
}

.atb-meta__item svg {
	flex: 0 0 auto;
	color: var(--atb-orange);
}

.atb-meta__temp {
	font-size: 17px;
	font-weight: 500;
}

/* Поиск */
.atb-search {
	position: relative;
	flex: 1 1 auto;
	max-width: 330px;
	/* Ширина поля ограничена, поэтому само оно свободное место не съедает.
	   Без auto-отступа язык, кнопка и бургер не доходили до края. */
	margin-right: auto;
}

.atb-search__input {
	width: 100%;
	min-height: 40px;
	padding: 9px 44px 9px 18px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
}

.atb-search__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.atb-search__submit {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
}

.atb-search__submit:hover {
	color: var(--atb-orange);
}

/* Языки */
.atb-lang {
	position: relative;
	flex: 0 0 auto;
}

.atb-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 14px;
}

.atb-lang__toggle svg {
	color: var(--atb-orange);
	transition: transform 0.2s ease;
}

.atb-lang[data-open="true"] .atb-lang__toggle svg {
	transform: rotate(180deg);
}

.atb-lang__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 5;
	min-width: 150px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--atb-shadow);
	display: none;
}

.atb-lang[data-open="true"] .atb-lang__list {
	display: block;
}

.atb-lang__list a,
.atb-lang__list button {
	display: block;
	width: 100%;
	padding: 9px 14px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--atb-navy);
	font-size: 14px;
	text-align: left;
}

.atb-lang__list a:hover,
.atb-lang__list button:hover,
.atb-lang__list [aria-current="true"] {
	background: var(--atb-cream);
	color: var(--atb-navy);
}

/* Служебные элементы Google Переводчика прячем — переключатель свой. */
.atb-gt-holder {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

body > .skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
	display: none !important;
}

body {
	top: 0 !important;
}

.goog-text-highlight {
	background: none !important;
	box-shadow: none !important;
}

/* Кнопка «Версия для слабовидящих» */
.atb-bvi-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 9px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--atb-orange);
	color: #fff;
	font-size: 14px;
	font-weight: 300;
	white-space: nowrap;
}

.atb-bvi-btn svg { display: none; }

.atb-bvi-btn:hover {
	background: var(--atb-orange-dark);
}

/* Бургер */
.atb-burger {
	flex: 0 0 auto;
	display: grid;
	gap: 5px;
	width: 34px;
	padding: 6px 0;
	border: 0;
	background: transparent;
}

.atb-burger span {
	display: block;
	height: 2px;
	background: var(--atb-orange);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

body.atb-menu-open .atb-burger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.atb-menu-open .atb-burger span:nth-child(2) {
	opacity: 0;
}

body.atb-menu-open .atb-burger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------- Мега-меню -- */

body.admin-bar {
	--atb-adminbar: 32px;
}

.atb-megamenu {
	position: fixed;
	inset: calc(var(--atb-header-h) + var(--atb-adminbar, 0px)) 0 auto 0;
	z-index: 70;
	max-height: calc(100vh - var(--atb-header-h));
	overflow-y: auto;
	background: var(--atb-cream);
	box-shadow: var(--atb-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

body.atb-menu-open .atb-megamenu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

body.admin-bar .atb-megamenu {
	max-height: calc(100vh - var(--atb-header-h) - var(--atb-adminbar, 0px));
}

.atb-megamenu__inner {
	display: grid;
	grid-template-columns: 1fr 1fr 320px;
	gap: 48px;
	padding: 48px var(--atb-gutter) 56px;
}

.atb-megamenu__cols {
	columns: 2;
	column-gap: 48px;
	grid-column: span 2;
}

.atb-megamenu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atb-megamenu__group {
	break-inside: avoid;
	margin-bottom: 30px;
}

.atb-megamenu__group > a,
.atb-megamenu__group > .atb-megamenu__label {
	display: block;
	margin-bottom: 12px;
	font-size: 17px;
	font-weight: 500;
	color: var(--atb-orange);
}

.atb-megamenu__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atb-megamenu__sub li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 8px;
}

.atb-megamenu__sub li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--atb-orange);
}

.atb-megamenu__sub a {
	font-size: 15px;
	color: var(--atb-navy);
}

.atb-megamenu__sub a:hover {
	color: var(--atb-orange);
}

.atb-megamenu__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-self: start;
	padding-top: 4px;
}

.atb-megamenu__side .atb-btn {
	width: 100%;
	text-transform: none;
	font-size: 15px;
	min-height: 52px;
	border-radius: 8px;
}

.atb-megamenu__close {
	position: absolute;
	top: 18px;
	right: var(--atb-gutter);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--atb-orange);
}

.atb-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(46, 49, 65, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}

body.atb-menu-open .atb-overlay {
	opacity: 1;
	visibility: visible;
}

/* --------------------------------------------------------- Слайдер -- */

.atb-hero {
	position: relative;
	overflow: hidden;
	background: var(--atb-navy);
}

.atb-hero__slide {
	position: relative;
	display: none;
	min-height: 700px;
}

.atb-hero__slide.is-active {
	display: block;
}

.atb-hero__media {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.atb-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atb-hero__panel {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 2;
	width: min(50%, 980px);
	background: var(--atb-navy);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H92 C97,28 97,72 92,100 H0 Z' fill='%23000'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H92 C97,28 97,72 92,100 H0 Z' fill='%23000'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.atb-hero__ornament {
	position: absolute;
	left: -40px;
	top: 50%;
	transform: translateY(-50%);
	width: 300px;
	opacity: 0.07;
	pointer-events: none;
}

.atb-hero__body {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 700px;
	max-width: 780px;
	padding: 80px 0;
}

.atb-hero__eyebrow {
	margin: 0 0 4px;
	font-size: clamp(16px, 1.5vw, 26px);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.atb-hero__title {
	margin: 0 0 22px;
	font-size: clamp(40px, 7.8vw, 150px);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--atb-orange);
}

.atb-hero__text {
	max-width: 470px;
	margin: 0 0 32px;
	font-size: 16px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.86);
}

.atb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.atb-hero__nav {
	position: absolute;
	right: 40px;
	bottom: 36px;
	z-index: 4;
	display: flex;
	gap: 12px;
}

.atb-hero__dot {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	text-indent: -9999px;
	overflow: hidden;
	transition: background 0.2s ease;
}

.atb-hero__dot.is-active,
.atb-hero__dot:hover {
	background: var(--atb-orange);
}

.atb-hero__counter {
	position: absolute;
	left: 0;
	bottom: 44px;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 22px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.5);
}

.atb-hero__counter::after {
	content: "";
	width: 60px;
	height: 1px;
	background: rgba(255, 255, 255, 0.35);
}

/* ------------------------------------------------------- Сетка карточек */

.atb-grid {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(4, 1fr);
}

.atb-grid--gap {
	gap: 30px;
}

.atb-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.atb-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

/* Карточка новости / быстрой ссылки — фото во всю плитку */
.atb-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 260px;
	padding: 26px 24px;
	overflow: hidden;
	color: #fff;
	background: var(--atb-navy);
}

.atb-tile__img {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.atb-tile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.atb-tile:hover .atb-tile__img img {
	transform: scale(1.05);
}

.atb-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(60, 62, 76, 0.1) 0%, rgba(46, 49, 65, 0.88) 72%);
}

.atb-tile > *:not(.atb-tile__img) {
	position: relative;
	z-index: 2;
}

.atb-tile__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.atb-tile__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--atb-orange);
}

.atb-tile__title a {
	color: inherit;
}

.atb-tile__date {
	flex: 0 0 auto;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
}

.atb-tile__excerpt {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 300;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.atb-tile--link {
	min-height: 300px;
	justify-content: flex-end;
}

.atb-tile--link .atb-tile__title {
	font-size: 15px;
	margin: 0;
}

.atb-tile--news {
	min-height: 300px;
}

/* Плитка без изображения: фирменная заливка вместо пустого прямоугольника. */
.atb-tile--noimg {
	background:
		radial-gradient(120% 90% at 15% 0%, rgba(231, 134, 90, 0.28) 0%, rgba(231, 134, 90, 0) 60%),
		linear-gradient(160deg, #474a5c 0%, var(--atb-navy-900) 100%);
}

.atb-tile--noimg::before {
	content: "";
	position: absolute;
	right: -60px;
	top: -40px;
	z-index: 1;
	width: 240px;
	height: 240px;
	background: url("../img/ornament.svg") no-repeat center / contain;
	opacity: 0.08;
	pointer-events: none;
}

.atb-tile--noimg::after {
	background: linear-gradient(180deg, rgba(46, 49, 65, 0) 35%, rgba(46, 49, 65, 0.75) 100%);
}

/* -------------------------------------------------- Документы и отчёты */

.atb-doc {
	display: flex;
	flex-direction: column;
}

.atb-doc__thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	background: #ececec;
	overflow: hidden;
	display: grid;
	place-items: center;
}

.atb-doc__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atb-doc__thumb svg {
	width: 64px;
	height: 64px;
	color: #fff;
	opacity: 0.9;
}

.atb-doc__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 4px;
}

.atb-doc__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--atb-orange);
}

.atb-doc__date {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--atb-gray);
}

.atb-doc__meta {
	font-size: 12px;
	color: var(--atb-gray);
}

.atb-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 36px;
}

.atb-filters__group {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	flex: 1 1 auto;
}

.atb-filters .atb-field {
	width: auto;
	min-width: 210px;
}

.atb-filters__search {
	position: relative;
	flex: 0 0 auto;
	min-width: 260px;
}

.atb-filters__search .atb-field {
	width: 100%;
	padding-right: 44px;
}

.atb-filters__search button {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: var(--atb-orange);
}

/* ----------------------------------------------------------- О бюро -- */

.atb-about {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.atb-about__text {
	max-width: 520px;
	font-size: 15px;
}

.atb-about__media img {
	width: 100%;
	border-radius: var(--atb-radius-lg);
}

/* Карточка подразделения */
.atb-person {
	position: relative;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	overflow: hidden;
	color: #fff;
	background: var(--atb-navy);
}

.atb-person__img {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.atb-person__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atb-person::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(60, 62, 76, 0.05) 0%, rgba(46, 49, 65, 0.9) 70%);
}

.atb-person > *:not(.atb-person__img) {
	position: relative;
	z-index: 2;
}

.atb-person__name {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--atb-orange);
}

.atb-person__row {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.88);
}

.atb-person__phone {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--atb-orange);
}

/* --------------------------------------------------------- Вакансии -- */

.atb-vacancy {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--atb-line);
	background: #fff;
}

.atb-vacancy__head {
	padding: 16px 20px;
	background: var(--atb-cream);
	text-align: center;
}

.atb-vacancy__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--atb-orange);
}

.atb-vacancy__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 26px 24px 28px;
	text-align: center;
	font-size: 14px;
}

.atb-vacancy__body p {
	margin: 0;
}

.atb-vacancy__phone {
	color: var(--atb-orange);
}

.atb-vacancy__body .atb-btn {
	margin-top: 12px;
	text-transform: none;
}

/* ------------------------------------------------------------- FAQ -- */

.atb-faq-block {
	position: relative;
	overflow: hidden;
	background: var(--atb-navy);
	color: #fff;
}

.atb-faq-block .atb-section__title {
	text-align: left;
	margin: 0;
}

.atb-faq-block__inner {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 60px;
	align-items: start;
	padding: 64px var(--atb-gutter);
}

.atb-faq-block__ornament {
	position: absolute;
	right: -60px;
	top: 50%;
	transform: translateY(-50%);
	width: 320px;
	opacity: 0.06;
	pointer-events: none;
}

.atb-accordion {
	position: relative;
	z-index: 2;
}

.atb-accordion__item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.atb-accordion__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 14px 0;
	border: 0;
	background: transparent;
	color: var(--atb-orange);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
}

.atb-accordion__icon {
	position: relative;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.atb-accordion__icon::before,
.atb-accordion__icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: var(--atb-orange);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.atb-accordion__icon::before {
	width: 18px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.atb-accordion__icon::after {
	width: 2px;
	height: 18px;
	transform: translate(-50%, -50%);
}

.atb-accordion__btn[aria-expanded="true"] .atb-accordion__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.atb-accordion__panel {
	display: none;
	padding: 0 40px 18px 0;
	font-size: 15px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.85);
}

.atb-accordion__panel.is-open {
	display: block;
}

/* Светлый вариант аккордеона — страница «Вопросы и ответы» */
.atb-accordion--light .atb-accordion__item {
	border-bottom-color: var(--atb-line);
}

.atb-accordion--light .atb-accordion__panel {
	color: var(--atb-ink);
}

.atb-faq-page {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 56px;
	align-items: start;
}

.atb-faq-topics {
	margin: 0;
	padding: 0;
	list-style: none;
	border-right: 1px solid var(--atb-line);
}

.atb-faq-topics li {
	margin-bottom: 4px;
}

.atb-faq-topics a {
	display: block;
	padding: 8px 18px 8px 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--atb-navy);
}

.atb-faq-topics a:hover,
.atb-faq-topics .is-current a {
	color: var(--atb-orange);
}

/* ------------------------------------------------- Форма «Задать вопрос» */

.atb-ask {
	padding: 64px 0;
}

.atb-ask__form {
	max-width: 860px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.atb-ask__form .atb-ask__wide {
	grid-column: span 2;
}

.atb-ask__form .atb-center {
	grid-column: span 2;
	margin-top: 8px;
}

/* Согласие на обработку персональных данных */
.atb-consent {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--atb-ink);
}

.atb-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.atb-consent input {
	flex: 0 0 auto;
	margin-top: 2px;
	width: 16px;
	height: 16px;
	accent-color: var(--atb-orange);
}

/* Пауза автопрокрутки слайдера */
.atb-hero__pause {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-right: 6px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	transition: background 0.2s ease;
}

.atb-hero__pause:hover {
	background: var(--atb-orange);
}

.atb-hero__pause-icon {
	display: block;
	width: 10px;
	height: 11px;
	border-left: 3px solid #fff;
	border-right: 3px solid #fff;
}

.atb-hero__pause.is-paused .atb-hero__pause-icon {
	width: 0;
	height: 0;
	border-left: 10px solid #fff;
	border-right: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	margin-left: 3px;
}

/* ---------------------------------------------------------- Контакты -- */

.atb-contacts {
	position: relative;
	padding: 72px 0;
}

/* Контакты слева, карта справа. */
.atb-contacts__inner {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: 40px;
	align-items: stretch;
}

.atb-contacts__map {
	position: relative;
	z-index: 0;
	min-height: 400px;
	border-radius: 12px;
	overflow: hidden;
	background: #e9eee6;
}

.atb-contacts__map iframe,
.atb-contacts__map img,
.atb-contacts__map .atb-map {
	width: 100%;
	height: 100%;
	min-height: 100%;
	border: 0;
	object-fit: cover;
}

.atb-contacts__map iframe,
.atb-contacts__map img {
	filter: grayscale(0.15);
}

/* Карта Leaflet */

.atb-map {
	display: block;
	background: #e9eee6;
}

/* Виджет 2ГИС: сам рисует iframe с заданными в скрипте размерами,
   поэтому растягиваем его по контейнеру принудительно. */
.atb-contacts__map--2gis {
	display: flex;
	flex-direction: column;
}

.atb-contacts__map .atb-map--2gis {
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
}

.atb-map--2gis iframe,
.atb-map--2gis > div {
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
	display: block;
}

.atb-map__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 9px 14px;
	background: #fff;
	border-top: 1px solid var(--atb-line);
	font-size: 12px;
	line-height: 1.3;
}

.atb-map__nojs {
	margin: 0;
	padding: 24px;
	font-size: 14px;
}

/* Запасная ссылка: видна, пока карта не инициализирована (и без JS). */
.atb-map__link {
	display: inline-block;
	margin: 24px;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--atb-orange);
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

.atb-map .leaflet-container {
	font: inherit;
	background: #e9eee6;
}

.atb-map .leaflet-control-attribution {
	background: rgba(255, 255, 255, 0.8);
	font-size: 11px;
}

.atb-map .leaflet-control-attribution a { color: var(--atb-slate); }

/* Подсказка на телефоне: карта не двигается, пока по ней не нажали. */
.atb-map--locked::after {
	content: "Нажмите на карту, чтобы её двигать";
	position: absolute;
	left: 50%;
	bottom: 30px;
	z-index: 500;
	transform: translateX(-50%);
	max-width: calc(100% - 24px);
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(60, 62, 76, 0.86);
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
}

/* Метка в фирменных цветах */
.atb-map__pin span {
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--atb-orange);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.atb-map__pin span::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 9px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
}

.atb-contacts__card {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px;
	border-radius: 12px;
	background: var(--atb-cream);
}

.atb-contacts__card .atb-section__title {
	text-align: left;
	margin-bottom: 26px;
}

.atb-contacts__row {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 15px;
}

.atb-contacts__row svg {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--atb-orange);
}

.atb-contacts__label {
	display: block;
	color: var(--atb-ink);
}

.atb-contacts__value {
	color: var(--atb-navy);
}

.atb-contacts__row a.atb-contacts__value {
	color: var(--atb-orange);
}

.atb-subscribe {
	margin-top: 28px;
}

.atb-subscribe__label {
	display: block;
	margin-bottom: 10px;
	font-size: 15px;
}

.atb-subscribe__row {
	display: flex;
	gap: 12px;
}

.atb-subscribe__row .atb-field {
	flex: 1 1 auto;
	background: transparent;
}

/* ----------------------------------------------------------- Подвал -- */

.atb-footer {
	position: relative;
	overflow: hidden;
	background: var(--atb-navy);
	color: rgba(255, 255, 255, 0.8);
}

.atb-footer__ornament {
	position: absolute;
	left: -70px;
	top: 50%;
	transform: translateY(-50%);
	width: 260px;
	opacity: 0.06;
	pointer-events: none;
}

.atb-footer__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px 40px;
	min-height: 220px;
	padding: 40px var(--atb-gutter);
}

.atb-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1 1 320px;
	min-width: 0;
}

.atb-footer__aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-left: auto;
}

.atb-footer__menu a {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.atb-footer__menu a:hover {
	color: var(--atb-orange);
}

.atb-socials {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.atb-socials a,
.atb-socials span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--atb-orange);
	color: #fff;
}

.atb-socials span {
	opacity: 0.55;
	cursor: default;
}

.atb-socials a:hover {
	background: var(--atb-orange-dark);
	color: #fff;
}

.atb-footer__policy {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.38);
}

.atb-footer__policy {
	color: rgba(255, 255, 255, 0.5);
}

a.atb-footer__policy:hover {
	color: var(--atb-orange);
}

span.atb-footer__policy {
	cursor: default;
}

/* ------------------------------------------------------- Пагинация -- */

.atb-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
}

.atb-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--atb-line);
	border-radius: 4px;
	color: var(--atb-navy);
	font-size: 14px;
}

.atb-pagination .page-numbers.current,
.atb-pagination .page-numbers:hover {
	border-color: var(--atb-orange);
	background: var(--atb-orange);
	color: #fff;
}

/* --------------------------------------------------- Контент страницы -- */

.atb-entry {
	max-width: 900px;
	margin: 0 auto;
	font-size: 16px;
}

.atb-entry--wide {
	max-width: none;
}

.atb-entry h2 {
	margin-top: 1.6em;
	font-size: 28px;
}

.atb-entry h3 {
	margin-top: 1.4em;
	font-size: 22px;
}

.atb-entry table {
	margin: 24px 0;
	font-size: 15px;
}

.atb-entry table th {
	padding: 16px 20px;
	background: var(--atb-cream);
	color: var(--atb-orange);
	font-weight: 600;
	text-align: left;
}

.atb-entry table td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--atb-line);
}

.atb-entry img {
	border-radius: 8px;
}

.atb-entry figure {
	margin: 24px 0;
}

.atb-file-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--atb-orange);
}

.atb-attachments {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.atb-attachments li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--atb-line);
	border-radius: 6px;
}

.atb-attachments .atb-attachments__size {
	margin-left: auto;
	font-size: 13px;
	color: var(--atb-gray);
}

.atb-post-meta {
	margin-bottom: 24px;
	font-size: 14px;
	color: var(--atb-gray);
	text-align: center;
}

.atb-post-thumb {
	margin: 0 0 32px;
}

.atb-post-thumb img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 12px;
}


/* --------------------------------------------- Страница документа/отчёта */

.atb-doc-single__grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 48px;
	align-items: start;
}

.atb-doc-single__thumb .atb-doc__thumb {
	aspect-ratio: 3 / 4;
}

.atb-props {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 8px 20px;
	margin: 0 0 28px;
	font-size: 15px;
}

.atb-props dt {
	color: var(--atb-gray);
}

.atb-props dd {
	margin: 0;
	color: var(--atb-navy);
}

.atb-doc-single__empty {
	color: var(--atb-gray);
}

/* --------------------------------------------------------- Личный приём */

.atb-reception {
	max-width: none;
}

.atb-reception__print {
	margin-top: 28px;
}

.atb-reception__print button {
	border: 0;
	background: transparent;
	padding: 0;
}

/* Таблицы в контенте должны прокручиваться на узких экранах. */
.atb-entry table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: thin;
}

/* На телефоне ужимаем ячейки, чтобы влезало больше колонок. */
@media (max-width: 640px) {
	.atb-entry table {
		font-size: 14px;
	}

	.atb-entry table th,
	.atb-entry table td {
		padding: 10px 12px;
	}
}

@media (min-width: 900px) {
	.atb-entry table {
		display: table;
		white-space: normal;
	}
}

/* -------------------------------------- Панель «Версия для слабовидящих» */

.atb-bvi-panel {
	position: relative;
	z-index: 200;
	display: none;
	background: var(--atb-navy-900);
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.atb-bvi-panel.is-open {
	display: block;
}

.atb-bvi-panel__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 26px;
	padding: 14px var(--atb-gutter);
}

.atb-bvi-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.atb-bvi-group__label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

.atb-bvi-panel button {
	min-width: 36px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 14px;
}

.atb-bvi-panel button[aria-pressed="true"],
.atb-bvi-panel button:hover {
	background: var(--atb-orange);
	border-color: var(--atb-orange);
}

.atb-bvi-panel .atb-bvi-swatch {
	width: 34px;
	text-indent: -9999px;
	overflow: hidden;
}

.atb-bvi-swatch--white { background: #fff; }
.atb-bvi-swatch--black { background: #000; }
.atb-bvi-swatch--blue { background: #9dd1ff; }

/* Режим для слабовидящих */
html.bvi { --atb-radius-lg: 0; }

html.bvi body {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.8;
	letter-spacing: var(--bvi-spacing, 0);
}

/* Декоративная графика и фоновые фото в этом режиме только мешают. */
html.bvi .atb-hero__media,
html.bvi .atb-hero__panel,
html.bvi .atb-hero__ornament,
html.bvi .atb-footer__ornament,
html.bvi .atb-faq-block__ornament,
html.bvi .atb-tile__img,
html.bvi .atb-person__img,
html.bvi .atb-tile::after,
html.bvi .atb-person::after,
html.bvi .atb-contacts__map {
	display: none !important;
}

html.bvi .atb-hero__slide,
html.bvi .atb-hero__body { min-height: 0; }
html.bvi .atb-hero__body { padding: 48px 0; }
html.bvi .atb-hero__nav,
html.bvi .atb-hero__counter { display: none; }
html.bvi .atb-hero__slide { display: block; }
html.bvi .atb-tile,
html.bvi .atb-person { min-height: 0; border: 2px solid currentColor; }
html.bvi .atb-contacts { min-height: 0; padding: 40px 0; }
html.bvi .atb-contacts__inner { grid-template-columns: 1fr; }
html.bvi .atb-contacts__card { width: 100%; border-radius: 0; }
html.bvi .atb-doc__thumb { display: none; }
html.bvi .atb-grid { gap: 24px; }

html.bvi.bvi-noimg img,
html.bvi.bvi-noimg iframe,
html.bvi.bvi-noimg figure {
	display: none !important;
}

/* Чёрным по белому */
html.bvi.bvi-white body,
html.bvi.bvi-white .atb-header,
html.bvi.bvi-white .atb-footer,
html.bvi.bvi-white .atb-faq-block,
html.bvi.bvi-white .atb-hero,
html.bvi.bvi-white .atb-megamenu,
html.bvi.bvi-white .atb-tile,
html.bvi.bvi-white .atb-vacancy,
html.bvi.bvi-white .atb-vacancy__head,
html.bvi.bvi-white .atb-person,
html.bvi.bvi-white .atb-contacts,
html.bvi.bvi-white .atb-contacts__card { background: #fff; color: #000; }
html.bvi.bvi-white a,
html.bvi.bvi-white h1, html.bvi.bvi-white h2, html.bvi.bvi-white h3,
html.bvi.bvi-white .atb-section__title,
html.bvi.bvi-white .atb-page-title,
html.bvi.bvi-white .atb-tile__title,
html.bvi.bvi-white .atb-tile__date,
html.bvi.bvi-white .atb-tile__excerpt,
html.bvi.bvi-white .atb-doc__title,
html.bvi.bvi-white .atb-hero__title,
html.bvi.bvi-white .atb-hero__eyebrow,
html.bvi.bvi-white .atb-hero__text,
html.bvi.bvi-white .atb-footer__menu a,
html.bvi.bvi-white .atb-footer__policy,
html.bvi.bvi-white .atb-accordion__btn,
html.bvi.bvi-white .atb-accordion__panel,
html.bvi.bvi-white .atb-megamenu__sub a { color: #000; }
html.bvi.bvi-white .atb-logo__text { color: #000; }
html.bvi.bvi-white .atb-header { border-bottom: 2px solid #000; }
html.bvi.bvi-white .atb-footer { border-top: 2px solid #000; }
html.bvi.bvi-white .atb-btn,
html.bvi.bvi-white .atb-bvi-btn,
html.bvi.bvi-white .atb-socials a,
html.bvi.bvi-white .atb-socials span { background: #fff; color: #000; border: 2px solid #000; }
html.bvi.bvi-white .atb-meta,
html.bvi.bvi-white .atb-search__input { border-color: #000; color: #000; }
html.bvi.bvi-white .atb-meta__item,
html.bvi.bvi-white .atb-meta__item svg,
html.bvi.bvi-white .atb-search__submit,
html.bvi.bvi-white .atb-lang__toggle,
html.bvi.bvi-white .atb-lang__toggle svg { color: #000; }
html.bvi.bvi-white .atb-search__input::placeholder { color: #000; opacity: .75; }
html.bvi.bvi-white .atb-burger span,
html.bvi.bvi-white .atb-accordion__icon::before,
html.bvi.bvi-white .atb-accordion__icon::after { background: #000; }

/* Белым по чёрному */
html.bvi.bvi-black body,
html.bvi.bvi-black .atb-header,
html.bvi.bvi-black .atb-footer,
html.bvi.bvi-black .atb-faq-block,
html.bvi.bvi-black .atb-hero,
html.bvi.bvi-black .atb-megamenu,
html.bvi.bvi-black .atb-tile,
html.bvi.bvi-black .atb-vacancy,
html.bvi.bvi-black .atb-vacancy__head,
html.bvi.bvi-black .atb-person,
html.bvi.bvi-black .atb-contacts,
html.bvi.bvi-black .atb-contacts__card { background: #000; color: #fff; }
html.bvi.bvi-black a,
html.bvi.bvi-black h1, html.bvi.bvi-black h2, html.bvi.bvi-black h3,
html.bvi.bvi-black .atb-section__title,
html.bvi.bvi-black .atb-page-title,
html.bvi.bvi-black .atb-tile__title,
html.bvi.bvi-black .atb-tile__date,
html.bvi.bvi-black .atb-tile__excerpt,
html.bvi.bvi-black .atb-doc__title,
html.bvi.bvi-black .atb-hero__title,
html.bvi.bvi-black .atb-hero__eyebrow,
html.bvi.bvi-black .atb-hero__text,
html.bvi.bvi-black .atb-footer__menu a,
html.bvi.bvi-black .atb-footer__policy,
html.bvi.bvi-black .atb-accordion__btn,
html.bvi.bvi-black .atb-accordion__panel,
html.bvi.bvi-black .atb-megamenu__sub a { color: #ffd200; }
html.bvi.bvi-black .atb-logo__text { color: #ffd200; }
html.bvi.bvi-black .atb-header { border-bottom: 2px solid #ffd200; }
html.bvi.bvi-black .atb-footer { border-top: 2px solid #ffd200; }
html.bvi.bvi-black .atb-btn,
html.bvi.bvi-black .atb-bvi-btn,
html.bvi.bvi-black .atb-socials a,
html.bvi.bvi-black .atb-socials span { background: #000; color: #ffd200; border: 2px solid #ffd200; }
html.bvi.bvi-black .atb-meta,
html.bvi.bvi-black .atb-search__input { border-color: #ffd200; color: #ffd200; }
html.bvi.bvi-black .atb-meta__item,
html.bvi.bvi-black .atb-meta__item svg,
html.bvi.bvi-black .atb-search__submit,
html.bvi.bvi-black .atb-lang__toggle,
html.bvi.bvi-black .atb-lang__toggle svg { color: #ffd200; }
html.bvi.bvi-black .atb-search__input::placeholder { color: #ffd200; opacity: .75; }
html.bvi.bvi-black .atb-field { background: #000; color: #ffd200; border-color: #ffd200; }
html.bvi.bvi-black .atb-burger span,
html.bvi.bvi-black .atb-accordion__icon::before,
html.bvi.bvi-black .atb-accordion__icon::after { background: #ffd200; }

/* Тёмно-синим по голубому */
html.bvi.bvi-blue body,
html.bvi.bvi-blue .atb-header,
html.bvi.bvi-blue .atb-footer,
html.bvi.bvi-blue .atb-faq-block,
html.bvi.bvi-blue .atb-hero,
html.bvi.bvi-blue .atb-megamenu,
html.bvi.bvi-blue .atb-tile,
html.bvi.bvi-blue .atb-vacancy,
html.bvi.bvi-blue .atb-vacancy__head,
html.bvi.bvi-blue .atb-person,
html.bvi.bvi-blue .atb-contacts,
html.bvi.bvi-blue .atb-contacts__card { background: #9dd1ff; color: #063462; }
html.bvi.bvi-blue a,
html.bvi.bvi-blue h1, html.bvi.bvi-blue h2, html.bvi.bvi-blue h3,
html.bvi.bvi-blue .atb-section__title,
html.bvi.bvi-blue .atb-page-title,
html.bvi.bvi-blue .atb-tile__title,
html.bvi.bvi-blue .atb-tile__date,
html.bvi.bvi-blue .atb-tile__excerpt,
html.bvi.bvi-blue .atb-doc__title,
html.bvi.bvi-blue .atb-hero__title,
html.bvi.bvi-blue .atb-hero__eyebrow,
html.bvi.bvi-blue .atb-hero__text,
html.bvi.bvi-blue .atb-footer__menu a,
html.bvi.bvi-blue .atb-footer__policy,
html.bvi.bvi-blue .atb-accordion__btn,
html.bvi.bvi-blue .atb-accordion__panel,
html.bvi.bvi-blue .atb-megamenu__sub a { color: #063462; }
html.bvi.bvi-blue .atb-logo__text { color: #063462; }
html.bvi.bvi-blue .atb-header { border-bottom: 2px solid #063462; }
html.bvi.bvi-blue .atb-footer { border-top: 2px solid #063462; }
html.bvi.bvi-blue .atb-btn,
html.bvi.bvi-blue .atb-bvi-btn,
html.bvi.bvi-blue .atb-socials a,
html.bvi.bvi-blue .atb-socials span { background: #9dd1ff; color: #063462; border: 2px solid #063462; }
html.bvi.bvi-blue .atb-meta,
html.bvi.bvi-blue .atb-search__input { border-color: #063462; color: #063462; }
html.bvi.bvi-blue .atb-meta__item,
html.bvi.bvi-blue .atb-meta__item svg,
html.bvi.bvi-blue .atb-search__submit,
html.bvi.bvi-blue .atb-lang__toggle,
html.bvi.bvi-blue .atb-lang__toggle svg { color: #063462; }
html.bvi.bvi-blue .atb-search__input::placeholder { color: #063462; opacity: .75; }
html.bvi.bvi-blue .atb-field { background: #9dd1ff; color: #063462; border-color: #063462; }
html.bvi.bvi-blue .atb-burger span,
html.bvi.bvi-blue .atb-accordion__icon::before,
html.bvi.bvi-blue .atb-accordion__icon::after { background: #063462; }

/* ------------------------------------------------------- Адаптивность -- */

@media (max-width: 1200px) {
	.atb-header__inner { gap: 16px; }
	.atb-meta { display: none; }
	.atb-grid { grid-template-columns: repeat(2, 1fr); }
	.atb-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.atb-megamenu__inner { grid-template-columns: 1fr 260px; }
	.atb-megamenu__cols { grid-column: span 1; }
}

@media (max-width: 782px) {
	body.admin-bar { --atb-adminbar: 46px; }
}

@media (max-width: 900px) {
	:root { --atb-header-h: 80px; }

	.atb-search { display: none; }

	/* Поиск был распоркой между логотипом и правой группой. Без него
	   логотип сам забирает свободное место, иначе всё съезжает влево. */
	.atb-logo { margin-right: auto; }

	.atb-bvi-btn { padding: 9px 12px; }
	.atb-bvi-btn svg { display: block; }
	.atb-bvi-btn__text { display: none; }
	.atb-bvi-panel__inner { gap: 10px 16px; }
	.atb-hero__slide,
	.atb-hero__body { min-height: 520px; }
	.atb-hero__panel { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: 0.92; }
	.atb-about { grid-template-columns: 1fr; gap: 32px; }
	.atb-doc-single__grid { grid-template-columns: 1fr; gap: 28px; }
	.atb-doc-single__thumb { max-width: 320px; }
	.atb-props { grid-template-columns: 1fr; gap: 2px; }
	.atb-props dd { margin-bottom: 12px; }
	.atb-faq-block__inner { grid-template-columns: 1fr; gap: 28px; }
	.atb-faq-page { grid-template-columns: 1fr; gap: 28px; }
	.atb-faq-topics { border-right: 0; border-bottom: 1px solid var(--atb-line); padding-bottom: 12px; }
	.atb-megamenu__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
	.atb-megamenu__cols { columns: 1; }
	.atb-ask__form { grid-template-columns: 1fr; }
	.atb-ask__form .atb-ask__wide,
	.atb-ask__form .atb-center { grid-column: span 1; }
	.atb-contacts { padding: 40px 0; }

	/* Узкий экран — карточка сверху, карта под ней. */
	.atb-contacts__inner { grid-template-columns: 1fr; gap: 24px; }
	.atb-contacts__map { min-height: 300px; }

	/* Кнопки масштаба уезжают под липкую шапку — уводим их вниз слева
	   (справа внизу стоит копирайт OpenStreetMap). */
	.atb-map .leaflet-top.leaflet-right {
		top: auto;
		right: auto;
		bottom: 0;
		left: 0;
	}

	/* Подвал: в колонку flex-basis становится высотой, и меню
	   растягивалось на 320 px пустоты. */
	.atb-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		min-height: 0;
		gap: 20px;
		padding: 30px var(--atb-gutter);
	}

	.atb-footer__menu { flex: 0 0 auto; gap: 10px 20px; }
	.atb-footer__aside { margin-left: 0; gap: 14px 20px; }
	.atb-footer__ornament { width: 170px; left: -55px; }
}

@media (max-width: 640px) {
	:root { --atb-gutter: 16px; }

	.atb-section { padding: 40px 0; }
	.atb-grid,
	.atb-grid--2 { grid-template-columns: 1fr; }

	/* Документы и отчёты остаются в две колонки — превью узкие. */
	.atb-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.atb-grid--3 .atb-vacancy,
	.atb-grid--3 .atb-tile { grid-column: span 2; }

	.atb-page-title,
	.atb-section__title { margin-bottom: 24px; }
	.atb-hero__actions .atb-btn { flex: 1 1 auto; }
	.atb-filters { gap: 12px; margin-bottom: 24px; }
	.atb-doc__title { font-size: 13px; }
	.atb-doc__head { flex-direction: column; gap: 2px; margin-bottom: 2px; }
	.atb-doc__date { order: -1; }
	.atb-footer__inner { gap: 20px; min-height: 0; }
	.atb-footer__aside { margin-left: 0; }
	.atb-megamenu__side .atb-btn { min-height: 46px; }
	.atb-center { margin-top: 28px; }
	.atb-logo__text { display: none; }
	.atb-logo img,
	.atb-logo svg { max-height: 34px; }
	.atb-header__inner { gap: 12px; min-height: 72px; }
	.atb-lang__toggle { padding: 8px 6px; }
	.atb-bvi-panel button { font-size: 13px; padding: 0 8px; }
	.atb-hero__nav { right: 20px; bottom: 20px; }
	.atb-hero__counter { display: none; }
	.atb-contacts__card { padding: 28px 20px; }
	.atb-filters .atb-field,
	.atb-filters__search { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
	.atb-grid--3 { gap: 14px; }
	.atb-hero__slide,
	.atb-hero__body { min-height: 440px; }
	.atb-hero__actions { width: 100%; }
	.atb-bvi-panel__inner { padding: 12px var(--atb-gutter); }
	.atb-bvi-group { flex-wrap: wrap; }
}

@media print {
	.atb-header, .atb-footer, .atb-megamenu, .atb-overlay, .atb-bvi-panel, .atb-hero__nav { display: none !important; }
}
