@import url("base.css");

/* ==========================================================================
   НОВЫЙ ДИЗАЙН САЙТА (ATS)
   Подключается вместо all.css только когда у посетителя выставлена кука ats=true
   (см. правила в .htaccess). Ничего в админке MODX менять не требуется.
   Цветовая схема сохранена: красный / оранжевый / розовый — как на вывеске.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Переменные и базовая типографика
   -------------------------------------------------------------------------- */

:root {
	--ats-red: #c60606;
	--ats-red-bright: #e02020;
	--ats-red-dark: #8f0404;
	--ats-maroon: #6a1111;
	--ats-orange: #e08b31;
	--ats-orange-soft: #f6b26b;
	--ats-pink: #ffd6d7;
	--ats-pink-soft: #fff2ef;
	--ats-line: #f6d8cf;
	--ats-ink: #3d2b2a;
	--ats-ink-soft: #6d5654;
	--ats-white: #fff;
	--ats-radius: 20px;
	--ats-radius-sm: 14px;
	--ats-shadow: 0 12px 34px rgba(160, 45, 30, .12);
	--ats-shadow-sm: 0 6px 18px rgba(160, 45, 30, .10);
	--ats-container: 1200px;
}

html,
body {
	height: auto;
	min-height: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Ubuntu", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ats-ink);
	background-color: #fff6f4;
	background-image:
		radial-gradient(1100px 420px at 50% -120px, #ffe3dd 0%, rgba(255, 227, 221, 0) 70%),
		linear-gradient(180deg, #fff7f5 0%, #ffeceb 40%, #fff7f5 100%);
	background-repeat: no-repeat;
	background-attachment: scroll;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

/* Изображения никогда не вылезают за экран */
img {
	max-width: 100%;
	height: auto;
	border: 0;
}

/* Внешние виджеты (например баннер Госуслуг) тоже умещаются в экран */
#content iframe {
	max-width: 100%;
	border: 0;
}

#content #js-show-iframe-wrapper {
	max-width: 100%;
	overflow: hidden;
	/* виджет сам центрирует картинку внутри, трогаем только отступ */
	margin-left: auto;
	margin-right: auto;
}

/* Баннеры и виджеты, вставленные перед текстом (Госуслуги, опросы, голосования).
   Разметку им проставляет ats.js — иначе они прижаты к левому краю.

   ВАЖНО: внутренние блоки виджета Госуслуг (.bf-2, .pos-banner-fluid)
   не трогаем — у них своя сетка, и вмешательство ломает вёрстку баннера. */
#content .ats-banner {
	float: none;
	display: block;
	max-width: 100%;
	margin: 0 auto 28px;
	text-align: center;
}

#content .ats-banner br {
	display: none;
}

/* Только виджеты- iframe верхнего уровня (опросы, голосования) */
#content .ats-banner > iframe {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

p {
	margin: 0 0 1em;
	padding: 0;
	text-indent: 0;
	line-height: 1.65;
}

h1,
h2,
h3,
h4 {
	margin: 28px 0 12px;
	line-height: 1.25;
	color: var(--ats-maroon);
}

h3 {
	margin-top: 30px;
	font-size: 22px;
}

h4 {
	font-size: 19px;
}

.normal-h1 {
	margin: 0 0 18px;
	font-size: 26px;
	font-weight: 700;
	color: var(--ats-maroon);
}

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

ul li,
ol li {
	margin: 0 0 .35em;
	line-height: 1.6;
}

a {
	color: var(--ats-red);
	text-decoration: none;
	transition: color .15s ease;
}

a:hover,
a:focus {
	color: var(--ats-orange);
	text-decoration: underline;
}

hr {
	border: 0;
	border-top: 2px solid var(--ats-line);
	margin: 28px 0;
}

strong,
b {
	color: var(--ats-maroon);
}

table {
	width: 100%;
	margin: 0 0 20px;
	border-collapse: collapse;
	background: var(--ats-white);
}

th,
td {
	border: 1px solid var(--ats-line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
}

.table-fin,
.table-structure {
	border: 1px solid var(--ats-line);
	border-collapse: collapse;
}

.table-fin td,
.table-fin th,
.table-structure td,
.table-structure th {
	border: 1px solid var(--ats-line);
	padding: 10px 12px;
}

#content :focus-visible,
#footer :focus-visible,
#header :focus-visible {
	outline: 3px solid var(--ats-orange);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Шапка: логотип + красная панель навигации
   -------------------------------------------------------------------------- */

#header {
	position: sticky;
	top: 0;
	z-index: 900;
	min-width: 0;
	margin: 0 auto;
	background: var(--ats-white);
	box-shadow: 0 2px 16px rgba(160, 45, 30, .10);
}

#header.ats-stuck {
	box-shadow: 0 6px 24px rgba(160, 45, 30, .18);
}

.logo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	max-width: var(--ats-container);
	margin: 0 auto;
	padding: 12px 20px;
	text-align: left;
}

.logo a {
	display: inline-block;
	min-width: 0;
	max-width: 100%;
}

.logo img {
	display: block;
	width: auto;
	min-width: 0;
	max-width: 100%;
	max-height: 88px;
}

/* --- Панель меню --- */

.main_menu {
	position: relative;
	width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	background-image: none;
	background-color: transparent;
	background-image: linear-gradient(115deg, var(--ats-red-dark) 0%, var(--ats-red-bright) 48%, var(--ats-red) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
	font-family: "Ubuntu", "Segoe UI", Arial, sans-serif;
}

.main_menu ul {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	overflow: visible;
	max-width: var(--ats-container);
	margin: 0 auto;
	padding: 0 14px;
}

#header .main_menu > ul > li {
	position: relative;
	float: none;
	display: block;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	background-image: none;
	background-color: transparent;
}

#header .main_menu > ul > li + li {
	background-image: none;
}

#header .main_menu > ul > li:hover {
	background-color: transparent;
}

#header .main_menu > ul > li > a {
	display: block;
	height: auto;
	padding: 15px 14px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: .1px;
	text-decoration: none;
	background-image: none;
	border-radius: 0;
	transition: background-color .15s ease;
}

#header .main_menu > ul > li:hover > a,
#header .main_menu > ul > li:focus-within > a,
#header .main_menu > ul > li.active > a {
	background-color: rgba(255, 255, 255, .18);
	color: #fff;
	text-decoration: none;
}

/* Подменю (десктоп) */
#header .main_menu li ul {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	display: none;
	width: auto;
	min-width: 268px;
	max-width: min(660px, 92vw);
	height: auto;
	margin: 0;
	padding: 8px;
	border: 0;
	border-top: 4px solid var(--ats-orange);
	border-radius: 0 0 18px 18px;
	background: var(--ats-white);
	box-shadow: 0 22px 48px rgba(120, 25, 12, .28);
}

#header .main_menu > ul > li:last-child ul,
#header .main_menu li ul li.last ul {
	right: 0;
	left: auto;
}

/* У пункта «Сведения об ОУ» много подпунктов — в две колонки */
#header .main_menu li#row56 ul {
	width: min(640px, 92vw);
	columns: 2;
	column-gap: 6px;
}

#header .main_menu li#row56 ul li {
	break-inside: avoid;
}

#header .main_menu li ul li {
	display: block;
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
}

#header .main_menu li ul li a,
#header .main_menu li ul li a:link {
	display: block;
	width: auto;
	height: auto;
	padding: 10px 12px;
	color: var(--ats-maroon);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	background-image: none;
	border-radius: 12px;
}

#header .main_menu li ul li a:hover {
	background-color: var(--ats-pink-soft);
	color: var(--ats-red);
	text-decoration: none;
}

#header .main_menu > ul > li:hover ul,
#header .main_menu > ul > li:focus-within ul,
#header .main_menu > ul > li.ats-open ul {
	display: block;
}

/* --- Кнопка «меню» для телефонов и планшетов --- */

/* Стрелочка у пункта с подменю — только в мобильном меню */
.ats-caret {
	display: none;
}

.ats-burger {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--ats-red-bright), var(--ats-red));
	box-shadow: 0 8px 18px rgba(198, 6, 6, .32);
	cursor: pointer;
}

.ats-burger span,
.ats-burger span::before,
.ats-burger span::after {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

.ats-burger span {
	position: relative;
}

.ats-burger span::before,
.ats-burger span::after {
	content: "";
	position: absolute;
	left: 0;
}

.ats-burger span::before {
	top: -7px;
}

.ats-burger span::after {
	top: 7px;
}

/* --------------------------------------------------------------------------
   3. Контент и колонки
   -------------------------------------------------------------------------- */

#content {
	width: auto;
	max-width: var(--ats-container);
	min-width: 0;
	margin: 26px auto 40px;
	padding: 30px 34px 38px;
	overflow: hidden;
	font-family: "Ubuntu", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	color: var(--ats-ink);
	background: var(--ats-white);
	border-radius: 26px;
	box-shadow: var(--ats-shadow);
}

/* На главной и в старых шаблонах две колонки — включаем сетку */
#content.ats-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

#content .column_first,
#content .column_second,
#content .column_one {
	width: auto;
	max-width: 100%;
	float: none;
}

#content .column_second .news_titul,
#content .column_second .news_titul {
	margin: 0 0 26px;
}

/* Общие текстовые блоки */
#content .public_group,
#content .public_first,
#content .public_sotr,
#content .public_tvorch,
#content .public_history,
#content .public_gallery,
.column_first .public_gallery {
	width: auto;
	max-width: 100%;
	min-width: 0;
	margin: 0;
}

/* Заголовок страницы */
#content .title_outer,
.column_first .public_gallery .title_outer,
.column_one .title_outer {
	overflow: visible;
	position: relative;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 0 18px;
	background-image: none;
}

#content .title {
	float: none;
	display: block;
	position: relative;
	width: auto;
	max-width: 100%;
	height: auto;
	background-image: none;
}

#content .title .left,
#content .title .right,
#content .title_outer > .right {
	display: none;
}

#content .title .text,
.column_first .public_gallery .title .text {
	float: none;
	position: relative;
	z-index: 1;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0 0 0 18px;
	color: var(--ats-maroon);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: .2px;
	border-left: 7px solid var(--ats-orange);
}

#content .title .text a {
	color: inherit;
	text-decoration: none;
}

#content .title .text a:hover {
	color: var(--ats-red);
}

#content .text_more {
	padding-left: 0 !important;
	padding-top: 0 !important;
}

#content .column_first .public_first p,
#content .column_one .public_first p {
	margin: 0 0 1em;
	text-indent: 0;
}

#content .column_first .public_first a,
#content .column_one .public_first a {
	color: var(--ats-red);
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
}

/* Все картинки внутри текста — мягкие прямоугольники */
#content img {
	border-radius: var(--ats-radius-sm);
	box-shadow: none;
}

#content .column_first .public_first img,
#content .column_one .public_first img,
#content .group_one p img,
#content .sotr_one img {
	border: 0;
	box-shadow: none;
}

/* Ссылки-переходы («Наши сотрудники», «Наши группы» …) */
.ssyl {
	margin: 0 0 12px !important;
	text-indent: 0;
}

.ssyl a {
	display: inline-block;
	margin: 0 8px 10px 0;
	padding: 10px 18px;
	color: var(--ats-red) !important;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	background: var(--ats-white);
	border: 2px solid var(--ats-orange-soft);
	border-radius: 999px;
}

.ssyl a:hover {
	color: #fff !important;
	background: linear-gradient(135deg, var(--ats-orange), var(--ats-red));
	border-color: transparent;
	text-decoration: none;
}

.a_independent_quality {
	margin-left: 0;
	color: var(--ats-maroon);
	font-size: 17px;
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Карточки: группы, сотрудники, новости
   -------------------------------------------------------------------------- */

.group_one,
.sotr_one {
	margin: 0 0 22px;
	padding: 20px 22px;
	overflow: hidden;
	background: var(--ats-pink-soft);
	border: 1px solid var(--ats-line);
	border-radius: var(--ats-radius);
}

.group_one .name_group,
.group_one .name_new,
.group_one .name_new a,
.name_sotr,
.news_titul .title_news a {
	display: block;
	margin: 0 0 6px;
	color: var(--ats-maroon);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.group_one .name_new a:hover,
.news_titul .title_news a:hover {
	color: var(--ats-red);
	text-decoration: none;
}

.group_one .date,
.date {
	margin: 0 0 10px;
	color: #b4705a;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .3px;
	text-indent: 0;
}

#content .column_second .news_titul .title_news a {
	font-size: 19px;
	color: var(--ats-maroon);
	font-weight: 700;
}

#content .column_second .news_titul img {
	margin: 12px 0 0;
	border: 0;
	box-shadow: none;
}

.info_sotr {
	margin: 14px 0 0;
	line-height: 1.7;
}

.info_sotr span {
	color: var(--ats-maroon);
	font-weight: 700;
}

.img-ul-wrap .left {
	float: none;
	width: auto;
	max-width: 100%;
	padding-right: 0;
}

.img-ul-wrap .right {
	float: none;
	width: 100%;
}

/* --------------------------------------------------------------------------
   5. Фотогалерея
   -------------------------------------------------------------------------- */

/* Альбомы на странице «Фотогалерея» */
.albom-gallery {
	display: block;
	float: none;
	width: 100%;
	height: auto;
	margin: 0 0 18px;
	padding: 12px 12px 16px;
	text-align: center;
	background: var(--ats-white);
	border: 1px solid var(--ats-line);
	border-radius: var(--ats-radius);
	box-shadow: var(--ats-shadow-sm);
	transition: transform .18s ease, box-shadow .18s ease;
}

.ats-albums {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	align-items: stretch;
}

.ats-albums .albom-gallery {
	margin: 0;
}

.albom-gallery:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 30px rgba(160, 45, 30, .18);
}

.albom-gallery img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-height: 190px;
	object-fit: cover;
	border-radius: var(--ats-radius-sm);
	box-shadow: none;
}

.albom-gallery .date {
	margin: 10px 0 6px;
}

.albom-gallery > div {
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.35;
}

.albom-gallery a {
	color: var(--ats-maroon);
}

.albom-gallery a:hover {
	color: var(--ats-red);
}

/* Фотографии внутри альбома */
a[rel="example_group"] {
	display: inline-block;
	vertical-align: top;
	width: calc(33.3333% - 26px);
	margin: 0 13px 13px 0;
}

a[rel="example_group"] img {
	display: block;
	width: 100% !important;
	height: auto !important;
	border: 0;
	border-radius: var(--ats-radius-sm);
	box-shadow: none;
	transition: transform .18s ease;
}

a[rel="example_group"]:hover img {
	transform: translateY(-2px);
}

.ats-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
}

.ats-photos a[rel="example_group"] {
	width: auto;
	flex: 0 0 calc(33.3333% - 9px);
	margin: 0;
}

/* Полоса фотографий из старого шаблона превращается в слайдер */
.ats-slider {
	position: relative;
	margin: 8px 0 26px;
}

.ats-slider__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.ats-slider__track::-webkit-scrollbar {
	display: none;
}

.ats-slider__track > img {
	flex: 0 0 auto;
	width: auto;
	max-width: 78%;
	border-radius: var(--ats-radius-sm);
	scroll-snap-align: center;
}

.ats-slider__btn {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: none;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(198, 6, 6, .92);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(120, 25, 12, .35);
}

.ats-slider__btn--prev {
	left: 8px;
}

.ats-slider__btn--next {
	right: 8px;
}

.ats-slider.ats-slider-ready .ats-slider__btn {
	display: block;
}

.ats-slider.ats-slider-start .ats-slider__btn--prev {
	display: none;
}

.ats-slider.ats-slider-end .ats-slider__btn--next {
	display: none;
}

.public_gallery .photos {
	text-align: left;
}

.public_gallery .photos img {
	margin: 0;
	border: 0;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   6. Документы, файлы, аккордеоны
   -------------------------------------------------------------------------- */

.file {
	position: relative;
	height: auto;
	margin: 0 0 6px;
	font-family: inherit;
}

.file .doc,
.file .ppt,
.file .jpg,
.file .pdf,
.file .zip {
	float: none;
	display: block;
	height: auto;
	margin: 0 0 8px;
	padding: 6px 0 6px 38px;
	font-size: 16px !important;
	line-height: 1.55 !important;
	background-size: 24px 24px;
	background-position: left top;
}

.file a {
	color: var(--ats-red) !important;
	font-style: normal;
	font-weight: 400;
}

.file a:hover {
	color: var(--ats-orange) !important;
}

.file-order-child {
	display: block;
	width: auto;
}

.subdiv {
	margin-left: 0;
	padding-left: 18px;
	border-left: 3px solid var(--ats-line);
}

.docs_subtitle {
	margin: 22px 0 8px;
	color: var(--ats-maroon);
	font-size: 18px;
	font-weight: 700;
}

.doc_type,
.type_tvorch {
	margin: 24px 0 10px;
	color: var(--ats-maroon);
	font-size: 18px;
	font-weight: 700;
}

#content .unrolled {
	position: relative;
	margin: 22px 0 0 !important;
	padding: 14px 16px 14px 36px;
	color: var(--ats-maroon);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-indent: 0;
	background: var(--ats-pink-soft);
	border: 1px solid var(--ats-line);
	border-radius: var(--ats-radius-sm);
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

#content .unrolled::before {
	left: 16px;
	border-color: var(--ats-orange);
}

/* Таблицы на узких экранах прокручиваются, а не ломают вёрстку */
.ats-table-wrap {
	width: 100%;
	margin: 0 0 20px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ats-table-wrap table {
	margin-bottom: 0;
}

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

#respond {
	padding: 24px 26px;
	background: var(--ats-pink-soft);
	border: 1px solid var(--ats-line);
	border-radius: var(--ats-radius);
}

#respond form p {
	margin: 0 0 16px;
	text-indent: 0;
}

#respond label {
	display: block;
	margin: 0 0 6px;
	color: var(--ats-maroon);
	font-size: 16px;
	font-weight: 700;
}

#respond input[type="text"],
#respond input[type="email"],
#respond select,
#respond textarea {
	display: block;
	width: 100%;
	max-width: 560px;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	color: var(--ats-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	background: var(--ats-white);
	border: 2px solid var(--ats-line);
	border-radius: var(--ats-radius-sm);
	transition: border-color .15s ease, box-shadow .15s ease;
}

#respond textarea {
	min-height: 170px;
	resize: vertical;
}

#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond select:focus,
#respond textarea:focus {
	outline: 0;
	border-color: var(--ats-orange);
	box-shadow: 0 0 0 4px rgba(224, 139, 49, .18);
}

#respond input.vericodeform {
	max-width: 180px;
}

#respond img[src*="veriword"] {
	vertical-align: middle;
	border-radius: 8px;
}

#respond input[type="submit"] {
	display: inline-block;
	width: auto;
	margin: 4px 0 0;
	padding: 14px 36px;
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--ats-red-bright), var(--ats-red));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(198, 6, 6, .28);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}

#respond input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(198, 6, 6, .34);
}

#respond input[type="submit"]:active {
	transform: translateY(0);
}

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

#footer {
	width: auto;
	max-width: var(--ats-container);
	margin: 0 auto 40px;
	padding: 0 26px 22px;
	overflow: hidden;
	background: var(--ats-white);
	border-radius: 26px;
	box-shadow: var(--ats-shadow);
}

#footer .first_p {
	height: 8px;
	margin: 0 -26px 22px;
	background: linear-gradient(90deg, var(--ats-red-dark) 0%, var(--ats-red-bright) 45%, var(--ats-orange) 100%);
}

#footer .second_p,
#footer .third_p {
	display: none;
}

.footer-banner {
	float: left;
	margin: 6px 12px 6px 0;
}

.footer-banner img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 42px;
	border-radius: 6px;
}

#footer .ym-advanced-informer {
	display: block;
	margin: 10px 0 0;
}

/* --------------------------------------------------------------------------
   9. Панель настройки для слабовидящих
   -------------------------------------------------------------------------- */

#infobardm {
	font-family: "Ubuntu", "Segoe UI", Arial, sans-serif;
	border-radius: 0 0 16px 16px;
}

#enableuGost {
	display: block;
	max-width: var(--ats-container);
	margin: 0 auto;
	padding: 12px 20px;
	color: #fff !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	background: linear-gradient(135deg, var(--ats-orange), var(--ats-red));
}

#enableuGost:hover {
	color: #fff !important;
	text-decoration: none;
	filter: brightness(1.06);
}

/* --------------------------------------------------------------------------
   10. Служебные элементы
   -------------------------------------------------------------------------- */

.ats-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 800;
	display: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	background: linear-gradient(135deg, var(--ats-red-bright), var(--ats-red));
	border: 0;
	border-radius: 50%;
	box-shadow: 0 12px 26px rgba(198, 6, 6, .38);
	cursor: pointer;
}

.ats-top.ats-show {
	display: flex;
}

body.ats-menu-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Планшеты
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	#header .main_menu > ul > li > a {
		padding: 14px 11px;
		font-size: 14px;
	}
}

@media (max-width: 960px) {
	/* Меню превращается в раскрывающуюся панель */
	.ats-burger {
		display: inline-flex;
	}

	.main_menu {
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}

	.main_menu.ats-open {
		max-height: 80vh;
		overflow-y: auto;
	}

	.main_menu ul {
		display: none;
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		padding: 8px 14px 18px;
	}

	.main_menu.ats-open ul {
		display: flex;
	}

	#header .main_menu > ul > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, .16);
	}

	#header .main_menu > ul > li:last-child {
		border-bottom: 0;
	}

	#header .main_menu > ul > li > a,
	#header .main_menu > ul > li > a.ats-toggle {
		display: block;
		flex: 1 1 auto;
		padding: 14px 10px;
		font-size: 17px;
		text-align: left;
	}

	#header .main_menu li ul,
	#header .main_menu li#row56 ul {
		position: static;
		display: none;
		flex: 1 1 100%;
		width: auto;
		max-width: none;
		min-width: 0;
		height: auto;
		padding: 0 0 8px 12px;
		border: 0;
		border-radius: 0;
		background: rgba(255, 255, 255, .12);
		box-shadow: none;
		columns: auto;
	}

	#header .main_menu > ul > li.ats-open ul {
		display: block;
	}

	#header .main_menu li ul li a,
	#header .main_menu li ul li a:link {
		padding: 10px 12px;
		color: #fff;
		font-size: 16px;
		text-align: left;
	}

	#header .main_menu li ul li a:hover {
		background: rgba(255, 255, 255, .16);
		color: #fff;
	}

	/* Стрелочка-раскрытие подменю */
	#header .ats-caret {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 40px;
		height: 40px;
		margin-right: 6px;
		vertical-align: middle;
		border-radius: 10px;
		background: rgba(255, 255, 255, .18);
		cursor: pointer;
		transition: transform .2s ease;
	}

	#header .ats-caret::before {
		content: "";
		width: 9px;
		height: 9px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		transform: rotate(45deg) translate(-2px, -2px);
	}

	#header li.ats-open > .ats-caret {
		transform: rotate(180deg);
	}

	#content.ats-two-col {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	#content {
		margin: 20px 16px 32px;
		padding: 24px 24px 30px;
		border-radius: 22px;
	}

	#content .title .text {
		font-size: 23px;
	}

	#footer {
		margin: 0 16px 32px;
		padding: 0 20px 20px;
		border-radius: 22px;
	}

	#footer .first_p {
		margin: 0 -20px 18px;
	}
}

@media (max-width: 900px) {
	.ats-albums {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 16px;
	}
}

/* --------------------------------------------------------------------------
   12. Телефоны
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
	.ats-photos a[rel="example_group"] {
		flex-basis: calc(50% - 7px);
	}

	a[rel="example_group"] {
		width: calc(50% - 14px);
	}
}

@media (max-width: 640px) {
	.ats-albums {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	body {
		font-size: 16px;
	}

	#content {
		margin: 14px 10px 26px;
		padding: 20px 16px 26px;
		border-radius: 18px;
	}

	#footer {
		margin: 0 10px 26px;
		padding: 0 16px 18px;
		border-radius: 18px;
	}

	#footer .first_p {
		margin: 0 -16px 16px;
	}

	.logo {
		padding: 10px 14px;
	}

	.logo img {
		max-height: 62px;
	}

	#content .title .text {
		padding-left: 14px;
		font-size: 21px;
		border-left-width: 6px;
	}

	.group_one,
	.sotr_one {
		padding: 16px 16px;
	}

	.group_one .name_group,
	.group_one .name_new,
	.name_sotr {
		font-size: 18px;
	}

	#respond {
		padding: 18px 16px;
	}

	#respond input[type="submit"] {
		width: 100%;
		padding: 15px 20px;
	}

	.subdiv {
		padding-left: 12px;
	}

	.albom-gallery {
		padding: 10px 10px 14px;
	}

	.ats-top {
		right: 12px;
		bottom: 12px;
		width: 46px;
		height: 46px;
	}

	.footer-banner {
		margin: 6px 8px 6px 0;
	}
}

@media (max-width: 420px) {
	.ats-slider__btn {
		width: 38px;
		height: 38px;
		margin-top: -19px;
	}
}

/* --------------------------------------------------------------------------
   13. Прочее: доступность и движение
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

.ats-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Страница «75 лет ВОВ» — отдельная композиция, делаем её адаптивной */
.vov-75-let {
	float: none;
	height: auto;
	min-height: 0;
	padding: 28px;
	text-align: center;
	background-size: cover;
	background-position: center top;
	border-radius: var(--ats-radius);
}

@media (max-width: 640px) {
	.vov-75-let {
		padding: 18px 16px;
	}
}

.qoute-title {
	color: var(--ats-red);
	-webkit-text-stroke-width: 0;
	font-size: 24px;
	font-style: italic;
	line-height: 1.4;
}

.one-item-75 {
	text-align: left;
}

.img-banner-fin {
	width: 100%;
	max-width: 320px;
	height: auto;
}

@media (max-width: 640px) {
	.img-banner-fin.first,
	.img-banner-fin.second {
		float: none !important;
		max-width: 100%;
		margin: 0 0 12px;
	}
}

.finans-img-4 {
	width: 200px;
	height: 200px;
	max-width: 100%;
	object-fit: contain;
}