/*
Theme Name: KOKTAL APARTMENTS
Theme URI: https://koktalap.kz/
Author: ОСИ «ЖК KOKTAL APARTMENTS»
Description: Классическая тема WordPress для информационного сайта ОСИ. Новости и объявления, документы и отчёты с разбивкой по годам и категориям, телефоны аварийных и городских служб на каждой странице, поддержка русского и казахского языков. Оформление построено на фирменной афише комплекса: акварельная зелень, ботанические листья, засечковый логотип. Без сборщиков и билдеров.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koktalap
Tags: classic, two-columns, custom-logo, custom-menu, translation-ready
*/

/* ==========================================================================
   Переменные и сброс
   ========================================================================== */

/* Цвета сняты с логотипа и афиши комплекса: зелень кроны, золото надписи, кремовый фон */
:root {
	--brand: #226b3a;
	--brand-dark: #144e26;
	--brand-deep: #0f3d1e;
	--brand-light: #e7f2ea;
	--accent: #c8a02e;
	--accent-soft: #e3bc57;
	--accent-deep: #8a6b1c;
	--cream: #f7f3e6;
	--cream-dark: #efe8d6;
	--leaf: #cfe3d3;
	--danger: #c0392b;
	--danger-light: #fdeceb;
	--ink: #16211a;
	--muted: #5b6b60;
	--line: #e3e9e4;
	--bg: #ffffff;
	--surface: #f4f8f4;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(22, 33, 26, .06), 0 4px 16px rgba(22, 33, 26, .06);
	--shadow-lg: 0 18px 40px rgba(15, 61, 30, .14);
	--wrap: 1160px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: Georgia, "Times New Roman", serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	overflow-wrap: break-word;
}

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

a {
	color: var(--brand);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	line-height: 1.25;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

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

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
}

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

.container {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 16px;
}

/* ==========================================================================
   Кнопки и бейджи
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding: 11px 24px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover,
.btn:focus {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
	color: #fff;
	text-decoration: none;
}

.btn--small {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 14px;
}

/* Золотая кнопка с афиши */
.btn--gold {
	background: var(--accent);
	border-color: var(--accent-deep);
	color: #2a2000;
	font-weight: 700;
	box-shadow: 0 8px 22px rgba(138, 107, 28, .34);
}

.btn--gold:hover,
.btn--gold:focus {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
	color: #fff;
}

.btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--brand-dark);
}

.btn--light:hover,
.btn--light:focus {
	background: var(--brand-light);
	border-color: var(--brand-light);
	color: var(--brand-dark);
}

.btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, .6);
	color: #fff;
}

.btn--ghost:hover,
.btn--ghost:focus {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
	color: #fff;
}

/* Тёмно-зелёная заливка: на светлом первом экране контурная кнопка терялась */
.btn--dark {
	background: var(--brand-dark);
	border-color: var(--brand-dark);
	color: #fff;
	box-shadow: 0 8px 22px rgba(15, 61, 30, .22);
}

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

.badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.badge--urgent {
	background: var(--danger-light);
	color: var(--danger);
}

/* ==========================================================================
   Строка аварийных служб
   ========================================================================== */

.emergency-bar {
	position: relative;
	background: var(--brand-deep);
	color: rgba(255, 255, 255, .92);
	font-size: 14px;
}

/* Подсказка, что строку можно листать вбок */
.emergency-bar::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 32px;
	height: 100%;
	background: linear-gradient(90deg, rgba(15, 61, 30, 0) 0%, var(--brand-deep) 100%);
	pointer-events: none;
}

.emergency-bar__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 7px;
	padding-bottom: 7px;
}

.emergency-bar__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #fff;
}

.emergency-bar__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e74c3c;
	box-shadow: 0 0 0 4px rgba(231, 76, 60, .22);
}

.emergency-bar__list {
	display: flex;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0 4px 0 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.emergency-bar__list::-webkit-scrollbar {
	display: none;
}

.emergency-bar__link {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	min-height: 34px;
	padding: 6px 12px;
	white-space: nowrap;
	border-radius: 999px;
	color: #fff;
	transition: background .15s ease;
}

.emergency-bar__link:hover,
.emergency-bar__link:focus {
	background: rgba(255, 255, 255, .12);
	text-decoration: none;
}

.emergency-bar__label {
	opacity: .8;
	font-size: 13px;
}

.emergency-bar__phone {
	font-weight: 700;
	color: var(--accent-soft);
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
	background: var(--cream);
	border-bottom: 1px solid rgba(138, 107, 28, .16);
}

/* Перенос обязателен: на телефоне меню уходит на свою строку под логотипом.
   Без него оно втискивается в одну строку и ломает шапку */
.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Основа 0, чтобы длинное название ужималось, а не выдавливало кнопки */
.site-brand {
	flex: 1 1 0;
	min-width: 0;
}

.site-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--brand-deep);
}

.site-brand__link:hover,
.site-brand__link:focus {
	text-decoration: none;
}

.site-brand__mark {
	width: 46px;
	height: 46px;
	flex-shrink: 0;
}

.site-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-brand__name {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--brand-dark);
}

.site-brand__sub {
	margin-top: 3px;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 14px;
	letter-spacing: .04em;
	color: var(--accent-deep);
}

.custom-logo {
	max-height: 54px;
	width: auto;
}

.site-header__tools {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
}

.lang-switcher {
	display: flex;
	border: 1px solid rgba(138, 107, 28, .3);
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255, 255, 255, .5);
}

.lang-switcher__item {
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 700;
	color: var(--accent-deep);
	letter-spacing: .04em;
}

.lang-switcher__item:hover,
.lang-switcher__item:focus {
	background: rgba(255, 255, 255, .9);
	text-decoration: none;
}

.lang-switcher__item.is-current {
	background: var(--brand);
	color: #fff;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid rgba(138, 107, 28, .3);
	border-radius: 999px;
	background: rgba(255, 255, 255, .6);
	color: var(--brand-deep);
	font-size: 15px;
	font-family: inherit;
	cursor: pointer;
}

.nav-toggle__box {
	position: relative;
	display: block;
	width: 18px;
	height: 12px;
}

.nav-toggle__box span,
.nav-toggle__box::before,
.nav-toggle__box::after {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--brand-deep);
	content: "";
	transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__box span {
	top: 5px;
}

.nav-toggle__box::before {
	top: 0;
}

.nav-toggle__box::after {
	bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box span {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box::before {
	transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box::after {
	transform: translateY(-5px) rotate(-45deg);
}

.site-nav {
	display: none;
	order: 3;
	width: 100%;
	padding-top: 6px;
	border-top: 1px solid rgba(138, 107, 28, .16);
}

.site-nav.is-open {
	display: block;
}

.site-nav .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu li {
	position: relative;
}

.site-nav .menu a {
	display: block;
	padding: 12px 4px;
	color: var(--brand-deep);
	font-weight: 500;
	border-bottom: 1px solid rgba(138, 107, 28, .14);
}

.site-nav .menu a:hover,
.site-nav .menu a:focus {
	color: var(--brand);
	text-decoration: none;
}

.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a {
	color: var(--brand);
	font-weight: 700;
}

.site-nav .sub-menu {
	margin: 0;
	padding: 0 0 0 14px;
	list-style: none;
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

/* Первый экран это одна фирменная картинка во всю ширину экрана.
   Фон секции подобран под кремовые углы картинки, чтобы стыка не было видно */
.hero {
	position: relative;
	padding: 0 0 26px;
	text-align: center;
	background: #f7f7ee;
}

/* Картинка выводится целиком, без обрезки и без рамок.
   На телефоне высокая версия, на компьютере панорамная, их подменяет picture */
.hero__poster,
.hero__poster img {
	display: block;
	width: 100%;
	height: auto;
}

.hero__below {
	padding-top: 22px;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--accent);
}

.hero__text {
	max-width: 560px;
	margin: 0 auto;
	font-size: 16px;
	color: var(--muted);
}

.hero__actions {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

/* ==========================================================================
   Цифры о доме
   ========================================================================== */

.numbers {
	background: var(--cream);
	border-top: 1px solid rgba(138, 107, 28, .16);
	border-bottom: 1px solid rgba(138, 107, 28, .16);
}

.numbers__inner {
	display: grid;
	gap: 14px;
	padding-top: 22px;
	padding-bottom: 22px;
	grid-template-columns: repeat(2, 1fr);
	text-align: center;
}

.numbers__value {
	display: block;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--brand-dark);
}

.numbers__label {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

/* ==========================================================================
   Секции и заголовки
   ========================================================================== */

.site-main {
	display: block;
	padding-bottom: 40px;
}

.section {
	padding: 32px 0;
}

.section--tight {
	padding: 20px 0;
}

.section--grey {
	background: var(--surface);
}

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.section__title {
	margin: 0 0 18px;
	font-family: var(--font-display);
	font-size: 24px;
	color: var(--brand-deep);
}

.section__head .section__title {
	margin-bottom: 12px;
}

.section__link {
	font-size: 15px;
	font-weight: 600;
}

.page-head {
	padding: 20px 0 8px;
}

.page-head__title {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 28px;
	color: var(--brand-deep);
}

.page-head__text {
	color: var(--muted);
	max-width: 720px;
}

.breadcrumbs {
	padding: 14px 0 0;
	font-size: 13px;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--muted);
}

.breadcrumbs__sep {
	margin: 0 6px;
	color: var(--line);
}

.breadcrumbs__current {
	color: var(--ink);
}

.empty {
	padding: 24px;
	background: var(--surface);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

/* Раздел готов, но файлов или новостей ещё нет */
.empty--soon {
	display: block;
	padding: 30px 24px;
	border: 1px dashed rgba(138, 107, 28, .38);
	background: var(--cream);
}

.empty__title {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-display);
	font-size: 19px;
	color: var(--brand-deep);
}

.empty__text {
	display: block;
	max-width: 460px;
	margin: 0 auto;
	font-size: 15px;
	color: var(--muted);
}

/* ==========================================================================
   Срочные объявления
   ========================================================================== */

.alerts {
	display: grid;
	gap: 10px;
}

.alert {
	display: block;
	padding: 14px 16px;
	border: 1px solid rgba(192, 57, 43, .3);
	border-left: 4px solid var(--danger);
	border-radius: var(--radius);
	background: var(--danger-light);
	color: var(--ink);
}

.alert:hover,
.alert:focus {
	background: #fbe1de;
	text-decoration: none;
}

.alert__badge {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--danger);
}

.alert__title {
	display: block;
	font-size: 17px;
	font-weight: 600;
}

.alert__date {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--muted);
}

/* ==========================================================================
   Телефоны служб
   ========================================================================== */

/* Колонки, а не сетка: группы разной высоты укладываются плотно,
   без пустых дыр под короткими группами */
.services {
	display: block;
}

.services__group {
	break-inside: avoid;
	margin-bottom: 22px;
}

.services__group:last-child {
	margin-bottom: 0;
}

.services__title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.services__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

.service {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.service__name {
	display: block;
	font-weight: 600;
	color: var(--ink);
}

.service__phones {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.service__phones li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 3px 0;
}

.service__phone-label {
	font-size: 14px;
	color: var(--muted);
}

.service__number {
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--brand-dark);
}

.service__note {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}

/* ==========================================================================
   Карточки новостей
   ========================================================================== */

.cards {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

.card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	overflow: hidden;
}

.card--urgent {
	border-color: rgba(192, 57, 43, .35);
}

.card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 16px;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--muted);
}

.card__cat {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--brand-light);
	color: var(--brand-dark);
	font-weight: 600;
}

.card__title {
	margin: 0 0 8px;
	font-size: 18px;
}

.card__title a {
	color: var(--ink);
}

.card__title a:hover,
.card__title a:focus {
	color: var(--brand);
	text-decoration: none;
}

.card__excerpt {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 15px;
}

.card__more {
	margin-top: auto;
	font-weight: 600;
	font-size: 15px;
}

/* ==========================================================================
   Плитки быстрых ссылок
   ========================================================================== */

.tiles {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.tile {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	color: var(--ink);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tile:hover,
.tile:focus {
	transform: translateY(-2px);
	border-color: #cfe0d4;
	box-shadow: var(--shadow);
	text-decoration: none;
}

.tile__title {
	display: block;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--brand-dark);
}

.tile__text {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: var(--muted);
}

.tile__arrow {
	margin-top: auto;
	padding-top: 12px;
	font-size: 18px;
	font-weight: 700;
	color: var(--accent-deep);
}

/* ==========================================================================
   Документы
   ========================================================================== */

.doc-filter {
	display: grid;
	gap: 12px;
	margin: 16px 0 24px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	grid-template-columns: 1fr;
}

.doc-filter__label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.doc-filter input[type="search"],
.doc-filter select,
.searchform input[type="search"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: var(--ink);
}

.doc-filter__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.doc-filter__reset {
	font-size: 14px;
	color: var(--muted);
}

.docs {
	display: grid;
	gap: 10px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.doc {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.doc__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--brand-light);
	color: var(--brand-dark);
	font-size: 11px;
	font-weight: 700;
}

.doc__icon--pdf {
	background: var(--danger-light);
	color: var(--danger);
}

.doc__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--ink);
}

.doc__title:hover,
.doc__title:focus {
	color: var(--brand);
}

.doc__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 4px;
	font-size: 13px;
	color: var(--muted);
}

.doc__note {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--muted);
}

.doc__btn {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--brand);
	border-radius: 999px;
	color: var(--brand);
	font-weight: 600;
	font-size: 15px;
}

.doc__btn:hover,
.doc__btn:focus {
	background: var(--brand);
	color: #fff;
	text-decoration: none;
}

.download {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 14px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.download__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	background: var(--danger-light);
	color: var(--danger);
	font-size: 12px;
	font-weight: 700;
}

.download__name {
	display: block;
	font-weight: 600;
}

.download__meta {
	display: block;
	font-size: 13px;
	color: var(--muted);
}

.download .btn {
	grid-column: 1 / -1;
}

/* ==========================================================================
   Двухколоночная разметка и виджеты
   ========================================================================== */

.layout {
	display: grid;
	gap: 28px;
	margin-bottom: 32px;
	grid-template-columns: 1fr;
}

.widget {
	margin-bottom: 20px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
}

.widget__title {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 17px;
	color: var(--brand-deep);
}

.widget__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.widget__list li {
	border-bottom: 1px solid var(--line);
}

.widget__list li:last-child {
	border-bottom: 0;
}

.widget__list a {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	color: var(--ink);
}

.widget__list a:hover,
.widget__list a:focus {
	color: var(--brand);
	text-decoration: none;
}

.widget__count {
	color: var(--muted);
	font-size: 13px;
}

.widget__text {
	margin: 0;
}

/* ==========================================================================
   Текстовые страницы
   ========================================================================== */

.entry {
	max-width: 780px;
	margin: 0 auto;
	padding-top: 12px;
}

.entry--page {
	max-width: 820px;
}

.entry__head {
	margin-bottom: 16px;
}

.entry__title {
	margin: 8px 0 10px;
	font-family: var(--font-display);
	font-size: 28px;
	color: var(--brand-deep);
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 14px;
	color: var(--muted);
}

.entry__media {
	margin: 0 0 20px;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.prose {
	font-size: 17px;
}

.prose--intro {
	max-width: 820px;
	margin-bottom: 8px;
	font-size: 16px;
	color: var(--muted);
}

.prose h2 {
	margin-top: 1.4em;
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--brand-deep);
}

.prose h3 {
	margin-top: 1.2em;
	font-size: 18px;
}

.prose img {
	border-radius: var(--radius);
}

.prose a {
	text-decoration: underline;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li {
	margin-bottom: .4em;
}

.prose blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 4px solid var(--brand);
	background: var(--surface);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.prose th,
.prose td {
	padding: 8px 10px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--cream);
	color: var(--brand-deep);
}

/* Таблицы правил и штрафов на узком экране прокручиваются вбок */
.table-scroll,
.wp-block-table {
	overflow-x: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: 13px;
	color: var(--muted);
}

.alignleft,
.alignright,
.aligncenter {
	display: block;
	margin: 0 auto 1em;
}

/* Галерея из редактора */
.wp-block-gallery.has-nested-images {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wp-block-gallery.has-nested-images .wp-block-image {
	flex-grow: 1;
	max-width: 100%;
}

.wp-block-gallery.has-nested-images .wp-block-image img {
	border-radius: var(--radius);
}

.post-nav {
	display: grid;
	gap: 10px;
	max-width: 780px;
	margin: 24px auto 0;
	grid-template-columns: 1fr;
}

.post-nav__item {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
}

.post-nav__item:hover,
.post-nav__item:focus {
	background: var(--surface);
	text-decoration: none;
}

.post-nav__item--next {
	text-align: right;
}

.post-nav__dir {
	display: block;
	font-size: 13px;
	color: var(--muted);
}

.post-nav__title {
	font-weight: 600;
	font-size: 15px;
}

.back-link {
	max-width: 780px;
	margin: 24px auto 0;
}

/* ==========================================================================
   Контакты и карта
   ========================================================================== */

.contacts {
	display: grid;
	gap: 12px;
	grid-template-columns: 1fr;
}

.contacts--page {
	margin-top: 16px;
}

.contacts__item {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
}

.contacts__item p {
	margin: 0;
}

.contacts__label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--accent-deep);
}

.map {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
}

.map iframe {
	display: block;
	width: 100%;
	min-height: 320px;
	border: 0;
}

/* ==========================================================================
   Поиск, пагинация, 404
   ========================================================================== */

.searchform {
	display: flex;
	gap: 8px;
	max-width: 480px;
}

.results {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.results__item {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.results__title {
	font-size: 17px;
	font-weight: 600;
}

.results__meta {
	display: flex;
	gap: 12px;
	margin: 2px 0 6px;
	font-size: 13px;
	color: var(--muted);
}

.results__text {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

.pagination,
.navigation.pagination {
	margin: 24px 0;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0 4px 4px 0;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
}

.page-numbers:hover,
.page-numbers:focus {
	background: var(--surface);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
}

.screen-reader-text + .nav-links {
	margin-top: 8px;
}

.notfound {
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 0;
	text-align: center;
}

.notfound__code {
	display: block;
	font-family: var(--font-display);
	font-size: 60px;
	font-weight: 700;
	color: var(--brand-light);
	line-height: 1;
}

.notfound__title {
	margin: 8px 0 8px;
	font-family: var(--font-display);
	font-size: 26px;
	color: var(--brand-deep);
}

.notfound__text {
	color: var(--muted);
}

.notfound__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}

.notfound__search .searchform {
	margin: 0 auto;
}

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

.site-footer {
	padding: 32px 0 20px;
	background: var(--brand-deep);
	color: rgba(255, 255, 255, .8);
	font-size: 15px;
}

.site-footer a {
	color: #fff;
}

.site-footer__grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

.site-footer__logo {
	width: 108px;
	height: auto;
	margin-bottom: 12px;
}

.site-footer__name {
	margin-bottom: 10px;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.site-footer__label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--accent-soft);
}

.site-footer__line {
	margin: 0 0 12px;
}

.site-footer__contacts,
.site-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__contacts li,
.site-footer__menu li {
	margin-bottom: 6px;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus {
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: 14px;
}

/* ==========================================================================
   Узкие телефоны, до 430px: ужимаем шапку, чтобы логотип не наезжал на кнопки
   ========================================================================== */

@media (max-width: 429px) {

	.site-brand__mark {
		width: 40px;
		height: 40px;
	}

	.site-brand__name {
		font-size: 18px;
		letter-spacing: .06em;
	}

	.site-brand__sub {
		font-size: 12px;
	}

	.site-header__tools {
		gap: 8px;
	}

	/* Высоту переключателя не занижаем: по нему тоже попадают пальцем */
	.lang-switcher__item {
		padding: 10px 9px;
		font-size: 11px;
	}

	.nav-toggle {
		padding: 8px 11px;
	}

	/* Подпись прячем только визуально: программам чтения с экрана она нужна */
	.nav-toggle__text {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ==========================================================================
   Планшеты, от 600px
   ========================================================================== */

@media (min-width: 600px) {

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

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

	.numbers__inner {
		grid-template-columns: repeat(4, 1fr);
	}

	.doc {
		grid-template-columns: auto 1fr auto;
		align-items: center;
	}

	.doc__btn {
		grid-column: auto;
	}

	.download {
		grid-template-columns: auto 1fr auto;
	}

	.download .btn {
		grid-column: auto;
	}

	.doc-filter {
		grid-template-columns: 2fr 1fr 1fr auto;
		align-items: end;
	}

	.post-nav {
		grid-template-columns: 1fr 1fr;
	}

	.hero__below {
		padding-top: 26px;
	}

	.page-head__title,
	.entry__title {
		font-size: 32px;
	}
}

/* ==========================================================================
   Компьютеры, от 900px
   ========================================================================== */

@media (min-width: 900px) {

	/* На широком экране телефоны переносятся на вторую строку, а не обрезаются */
	.emergency-bar__list {
		flex-wrap: wrap;
		overflow: visible;
		padding-right: 0;
	}

	.emergency-bar__inner {
		align-items: flex-start;
	}

	.emergency-bar__title {
		padding-top: 8px;
	}

	.emergency-bar::after {
		display: none;
	}

	.nav-toggle {
		display: none;
	}

	.site-nav {
		display: block;
		order: 0;
		width: auto;
		padding-top: 0;
		border-top: 0;
	}

	.site-nav .menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 2px;
	}

	.site-nav .menu a {
		padding: 10px 9px;
		border-bottom: 0;
		border-radius: 999px;
		font-size: 14px;
		white-space: nowrap;
	}

	.site-nav .menu a:hover,
	.site-nav .menu a:focus {
		background: rgba(255, 255, 255, .7);
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		display: none;
		min-width: 220px;
		padding: 6px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: #fff;
		box-shadow: var(--shadow);
	}

	.site-nav .menu li:hover > .sub-menu,
	.site-nav .menu li:focus-within > .sub-menu {
		display: block;
	}

	.site-header__inner {
		flex-wrap: nowrap;
		gap: 14px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.site-brand {
		flex: 0 1 auto;
	}

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

	.tiles {
		grid-template-columns: repeat(4, 1fr);
	}

	.services {
		column-count: 2;
		column-gap: 24px;
	}

	.services__list {
		grid-template-columns: 1fr;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 36px;
	}

	.site-footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
	}

	.section {
		padding: 44px 0;
	}

	.hero {
		padding: 0 0 40px;
	}

	.numbers__value {
		font-size: 36px;
	}
}

/* ==========================================================================
   Промежуточная ширина: меню уже горизонтальное, но места ещё мало
   ========================================================================== */

@media (min-width: 900px) and (max-width: 1139px) {

	.site-nav .menu a {
		padding: 10px 6px;
		font-size: 13.5px;
	}

	.site-brand__name {
		font-size: 18px;
	}

	.site-brand__sub {
		font-size: 12px;
	}

	.lang-switcher__item {
		padding: 6px 9px;
		font-size: 12px;
	}
}

/* ==========================================================================
   Печать
   ========================================================================== */

@media print {

	.emergency-bar,
	.site-header,
	.site-footer,
	.doc-filter,
	.post-nav,
	.pagination {
		display: none;
	}

	body {
		font-size: 12pt;
		color: #000;
	}
}
