/*
Theme Name: 1C Theme (Такси)
Theme URI: https://example.com/1c-theme
Author: DSH
Author URI: https://example.com
Description: Тема WordPress, визуально имитирующая светлый интерфейс «1С:Предприятие 8» (режим «Такси»): жёлтая панель разделов, золотистый активный пункт, серо-жёлтая командная панель и белая рабочая область.
Version: 1.3.3
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 1c_theme
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. Палитра интерфейса 1С («Такси», светлая тема)
   ========================================================================== */
:root {
	--c-yellow: #FBED9E;       /* фон панели разделов и шапки */
	--c-yellow-light: #FDF7D7; /* светлая середина шапки */
	--c-gold: #FBD36F;         /* активный пункт меню / кнопки */
	--c-gold-dark: #E7BD55;    /* рамка активного пункта, hover */
	--c-border: #BCAE5F;       /* золотистая граница панелей */
	--c-commandbar: #F2F2F2;   /* командная панель */
	--c-bg: #F2F2F2;           /* общий фон */
	--c-form-bg: #FFFFFF;      /* рабочая область / формы */
	--c-input-border: #A8A8A8;
	--c-text: #333333;
	--c-text-soft: #484848;
	--c-text-muted: #6C685A;
	--c-link: #33335E;         /* тёмно-синий (иконки/ссылки) */
	--c-link-hover: #335D6F;
	--radius: 3px;
}

/* ==========================================================================
   2. Сброс и база
   ========================================================================== */
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: "Segoe UI", "PT Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
	clear: both;
	line-height: 1.3;
	margin: 0 0 0.75em;
}

p {
	margin: 0 0 1.2em;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100000;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	background: var(--c-gold);
	color: var(--c-text);
	padding: 8px 14px;
	border-radius: var(--radius);
}

.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -40px; margin-right: -40px; }
.alignfull { margin-left: -28px; margin-right: -28px; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--c-text-muted); font-size: 0.85em; text-align: center; }
.sticky { display: block; }

/* ==========================================================================
   3. Каркас страницы
   ========================================================================== */
#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	position: relative;
}

.work-area {
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 16px 24px;
	background: var(--c-form-bg);
}

/* ==========================================================================
   4. Шапка: жёлтая строка приложения + серо-жёлтая командная панель
   ========================================================================== */
.site-header {
	background: var(--c-yellow);
	border-bottom: 1px solid var(--c-border);
	position: relative;
	z-index: 30;
}

.site-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	/* светлее в центре, темнее по краям — как в оригинале */
	background: linear-gradient(90deg, #FBED9E 0%, #FDF7D7 50%, #FBED9E 100%);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-branding .custom-logo {
	max-height: 40px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-text);
}

.site-title a {
	color: var(--c-text);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--c-link);
}

.site-description {
	margin: 0;
	color: var(--c-text-muted);
	font-size: 12px;
	line-height: 1.3;
}

/* Командная панель (верхнее меню) */
.command-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--c-commandbar);
	border-top: 1px solid #DDDDDD;
	border-bottom: 1px solid #C9C9C9;
}

#primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

#primary-menu li {
	position: relative;
}

#primary-menu > li > a {
	display: inline-block;
	padding: 6px 14px;
	color: var(--c-text);
	font-size: 13.5px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	text-decoration: none;
}

#primary-menu > li > a:hover,
#primary-menu > li > a:focus {
	background: #FFFFFF;
	border-color: #B9B9B9;
	color: var(--c-text);
}

#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a,
#primary-menu > li.current_page_item > a {
	background: var(--c-gold);
	border-color: var(--c-gold-dark);
	font-weight: 600;
}

/* Выпадающее подменю */
#primary-menu ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	background: #FFFFFF;
	border: 1px solid #C0C0C0;
	border-radius: var(--radius);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	z-index: 50;
}

#primary-menu li:hover > ul.sub-menu,
#primary-menu li:focus-within > ul.sub-menu {
	display: block;
}

#primary-menu ul.sub-menu a {
	display: block;
	padding: 7px 16px;
	color: var(--c-text);
	font-size: 13.5px;
	text-decoration: none;
}

#primary-menu ul.sub-menu a:hover {
	background: var(--c-yellow);
	color: var(--c-text);
}

.command-bar-search {
	margin-left: auto;
}

.command-bar-search .search-form {
	display: flex;
}

.command-bar-search .search-field {
	width: 180px;
}

/* Кнопка-бургер (мобильная) */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: #FFFFFF;
	border: 1px solid #B9B9B9;
	border-radius: var(--radius);
	padding: 8px 10px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #333;
}

/* ==========================================================================
   5. Панель разделов (левое меню, жёлтая)
   ========================================================================== */
.sections-panel {
	flex: 0 0 230px;
	width: 230px;
	background: var(--c-yellow);
	color: var(--c-text);
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--c-border);
}

.sections-panel-head {
	padding: 12px 16px 10px;
	background: linear-gradient(180deg, #FDF7D7 0%, #FBED9E 100%);
	border-bottom: 1px solid var(--c-border);
}

.sections-panel-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-text-soft);
}

.sections-nav {
	flex: 1 1 auto;
}

.sections-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.sections-menu li {
	margin: 0;
}

.sections-menu > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	color: var(--c-text);
	font-size: 14px;
	text-decoration: none;
	border-left: 4px solid transparent;
}

.sections-menu > li > a::before {
	content: "";
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	border: 1px solid var(--c-link);
	border-radius: 2px;
}

.sections-menu > li > a .section-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.sections-menu > li > a .section-label {
	flex: 1 1 auto;
}

.sections-menu > li > a.has-icon::before {
	display: none;
}

.sections-menu > li > a:hover,
.sections-menu > li > a:focus {
	background: #F6E78E;
	color: var(--c-text);
}

.sections-menu > li.current-menu-item > a,
.sections-menu > li.current-menu-ancestor > a,
.sections-menu > li.current_page_item > a {
	background: var(--c-gold);
	color: var(--c-text);
	font-weight: 600;
	border-left-color: var(--c-gold-dark);
}

.sections-menu > li.current-menu-item > a::before {
	border-color: var(--c-text);
	background: var(--c-text);
}

/* Кнопка-переключатель раздела (у раздела есть подчинённые страницы) */
.sections-menu .section-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 16px;
	background: transparent;
	border: 0;
	border-left: 4px solid transparent;
	border-radius: 0;
	color: var(--c-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
}

.sections-menu .section-toggle::before {
	content: "";
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	border: 1px solid var(--c-link);
	border-radius: 2px;
}

.sections-menu .section-toggle.has-icon::before {
	display: none;
}

.sections-menu .section-toggle .section-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.sections-menu .section-toggle .section-label {
	flex: 1 1 auto;
}

.sections-menu .section-toggle .section-caret {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--c-text-soft);
	transition: transform 0.15s ease;
}

.sections-menu li.is-open > .section-toggle .section-caret {
	transform: rotate(180deg);
}

.sections-menu .section-toggle:hover,
.sections-menu .section-toggle:focus {
	background: #F6E78E;
	color: var(--c-text);
}

.sections-menu .section-toggle:focus-visible {
	outline: 2px solid var(--c-gold-dark);
	outline-offset: -2px;
}

.sections-menu li.current-menu-ancestor > .section-toggle {
	background: var(--c-gold);
	color: var(--c-text);
	font-weight: 600;
	border-left-color: var(--c-gold-dark);
}

.sections-menu li.current-menu-ancestor > .section-toggle::before {
	border-color: var(--c-text);
	background: var(--c-text);
}

/* «Окно меню» раздела — белая всплывающая панель со ссылками (1С:Такси).
   Без JS — обычный раскрытый список ссылок внутри колонки; с JS — белая
   панель ПОВЕРХ содержимого, справа от колонки, напротив кнопки раздела. */
.sections-menu .section-window {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	background: #FFFFFF;
	border: 1px solid #E0E0E0;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* С JS панель раздела занимает всю рабочую область (справа от колонки). */
.js .sections-menu li.has-section-window > .section-window {
	display: none;
	position: absolute;
	left: 230px;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 25;
	overflow-y: auto;
	overflow-x: hidden;
}

.js .sections-menu li.has-section-window.is-open > .section-window {
	display: block;
}

/* Шапка панели: имя раздела (тёмный, полужирный) + иконка слева. */
.sections-menu .section-window-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px 14px;
	background: #FFFFFF;
	border-bottom: 1px solid #E0E0E0;
}

.sections-menu .section-window-head .section-icon {
	display: none;
}

.sections-menu .section-window-head .section-window-title {
	flex: 1 1 auto;
	color: #009944;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.sections-menu .section-window-head .section-window-title:hover {
	color: #007a36;
	text-decoration: none;
}

/* Ссылки панели (дочерние страницы). */
.sections-menu .section-window a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 24px;
	color: var(--c-text-soft);
	font-size: 13.5px;
	text-decoration: none;
	border-left: 3px solid transparent;
}

.sections-menu .section-window a::before {
	display: none;
}

.sections-menu .section-window a .section-icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.sections-menu .section-window a:hover,
.sections-menu .section-window a:focus {
	background: #F5F5F5;
	color: var(--c-text);
}

.sections-menu .section-window a:focus-visible {
	outline: 2px solid var(--c-gold-dark);
	outline-offset: -2px;
}

.sections-menu .section-window > li.current-menu-item > a,
.sections-menu .section-window > li.current-menu-ancestor > a {
	background: var(--c-gold);
	border-left-color: var(--c-gold-dark);
	font-weight: 600;
}

/* Вложенный подуровень внутри панели — тонкий серый разделитель сверху. */
.sections-menu .section-window .section-window-group {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #E0E0E0;
}

.sections-menu .section-window .section-window-group a {
	padding-left: 30px;
}

/* Панель навигации (виджеты под разделами) */
.nav-panel {
	padding: 10px 12px 16px;
	border-top: 1px solid var(--c-border);
}

.nav-panel .widget {
	margin-bottom: 16px;
}

.nav-panel .widget-title {
	background: linear-gradient(180deg, #FDF7D7 0%, var(--c-yellow) 100%);
	color: var(--c-text);
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 8px;
	padding: 5px 8px;
	border: 1px solid var(--c-border);
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nav-panel .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-panel .widget li {
	margin: 2px 0;
}

.nav-panel .widget a {
	color: var(--c-text-soft);
	font-size: 13px;
	text-decoration: none;
	padding: 3px 4px;
	display: block;
}

.nav-panel .widget a:hover {
	color: var(--c-link);
}

/* ==========================================================================
   6. Формы (рабочая область) в стиле 1С
   ========================================================================== */
.form-block {
	background: var(--c-form-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	margin: 0 auto 18px;
	max-width: 960px;
	overflow: hidden;
}

.form-header {
	background: linear-gradient(180deg, #FDF7D7 0%, #FBED9E 100%);
	border-bottom: 1px solid var(--c-border);
	padding: 10px 16px;
}

.form-caption {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--c-text);
}

.form-body {
	padding: 16px 20px 22px;
}

/* Записи / карточки списка */
.posts-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.post-card {
	border: 1px solid #DCDCDC;
	border-radius: var(--radius);
	padding: 14px 16px;
	background: #FFFFFF;
}

.post-card:hover {
	border-color: var(--c-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.entry-title {
	margin: 0 0 6px;
	font-size: 19px;
}

.entry-title a {
	color: var(--c-text);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--c-link-hover);
}

.entry-meta {
	color: var(--c-text-muted);
	font-size: 12.5px;
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.meta-label {
	color: #8A8674;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.03em;
}

.entry-thumb {
	margin-bottom: 10px;
}

.entry-thumb img {
	border: 1px solid #DCDCDC;
	border-radius: var(--radius);
	display: block;
}

.entry-summary p {
	margin-bottom: 12px;
}

.read-more-btn {
	display: inline-block;
	background: var(--c-gold);
	color: var(--c-text);
	font-weight: 600;
	font-size: 13px;
	padding: 7px 18px;
	border: 1px solid var(--c-gold-dark);
	border-radius: var(--radius);
	text-decoration: none;
}

.read-more-btn:hover {
	background: #F6CE55;
	color: var(--c-text);
	text-decoration: none;
}

/* Навигация по страницам списка */
.pagination,
.navigation.pagination {
	margin-top: 20px;
	text-align: center;
}

.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 32px;
	padding: 5px 10px;
	text-align: center;
	background: #FFFFFF;
	border: 1px solid #C9C9C9;
	border-radius: var(--radius);
	color: var(--c-text);
	font-size: 13px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--c-gold);
	border-color: var(--c-gold-dark);
	font-weight: 700;
}

.pagination .page-numbers:hover {
	background: var(--c-yellow);
	text-decoration: none;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
}

.post-navigation a {
	display: inline-block;
	background: #FFFFFF;
	border: 1px solid #C9C9C9;
	border-radius: var(--radius);
	padding: 8px 14px;
	font-size: 13px;
	text-decoration: none;
	color: var(--c-text);
}

.post-navigation a:hover {
	background: var(--c-yellow);
}

/* ==========================================================================
   7. Контент записей/страниц
   ========================================================================== */
.entry-content {
	line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.4em;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1em 0;
	font-size: 13.5px;
}

.entry-content th,
.entry-content td {
	border: 1px solid #C9C9C9;
	padding: 7px 10px;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: #EFEFEF;
	font-weight: 700;
}

.entry-content tr:nth-child(even) td {
	background: #FAFAFA;
}

.entry-content blockquote {
	margin: 1.2em 0;
	padding: 10px 16px;
	border-left: 4px solid var(--c-gold-dark);
	background: #FDF8E3;
}

.entry-content code,
.entry-content pre {
	font-family: Consolas, "Courier New", monospace;
	background: #F4F4F4;
	border: 1px solid #DCDCDC;
	border-radius: 2px;
}

.entry-content code {
	padding: 2px 5px;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 12px 14px;
	overflow: auto;
}

.entry-content pre code {
	border: 0;
	background: transparent;
	padding: 0;
}

.page-links {
	clear: both;
	margin: 1.4em 0;
}

.page-links .post-page-numbers {
	display: inline-block;
	min-width: 28px;
	text-align: center;
	padding: 3px 8px;
	border: 1px solid #C9C9C9;
	border-radius: var(--radius);
	margin: 0 2px;
}

.page-links .post-page-numbers.current {
	background: var(--c-gold);
	border-color: var(--c-gold-dark);
}

/* ==========================================================================
   8. Формы ввода
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	background: #FFFFFF;
	border: 1px solid var(--c-input-border);
	border-radius: 2px;
	padding: 7px 9px;
	font-size: 14px;
	color: var(--c-text);
	font-family: inherit;
	width: 100%;
	max-width: 100%;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--c-gold-dark);
	box-shadow: 0 0 0 2px rgba(251, 211, 111, 0.35);
}

textarea {
	min-height: 120px;
	resize: vertical;
}

input[type="submit"],
button,
.button,
.wp-block-button__link {
	display: inline-block;
	background: var(--c-gold);
	color: var(--c-text);
	border: 1px solid var(--c-gold-dark);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 18px;
	cursor: pointer;
	text-decoration: none;
}

input[type="submit"]:hover,
button:hover,
.button:hover,
.wp-block-button__link:hover {
	background: #F6CE55;
	color: var(--c-text);
	text-decoration: none;
}

/* Форма поиска */
.search-form {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

.search-form .search-field {
	width: auto;
	flex: 1 1 auto;
}

.search-form .search-submit {
	flex: 0 0 auto;
}

/* ==========================================================================
   9. Комментарии
   ========================================================================== */
.comments-area {
	margin-top: 8px;
	border-top: 1px solid #DCDCDC;
	padding-top: 16px;
}

.comments-title,
.comment-reply-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 14px;
}

.comment-list {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.comment-list .comment {
	border: 1px solid #DCDCDC;
	border-radius: var(--radius);
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #FFFFFF;
}

.comment-list .children {
	list-style: none;
	margin: 10px 0 0 22px;
	padding: 0;
}

.comment-author {
	font-weight: 600;
}

.comment-metadata {
	color: var(--c-text-muted);
	font-size: 12px;
	margin-bottom: 8px;
}

.comment-respond {
	margin-top: 20px;
}

.comment-form label {
	display: block;
	font-size: 13px;
	margin-bottom: 3px;
}

.comment-form p {
	margin-bottom: 12px;
}

/* ==========================================================================
   10. Подвал
   ========================================================================== */
.site-footer-widgets {
	background: var(--c-yellow);
	border-top: 1px solid var(--c-border);
	padding: 18px 20px;
}

.footer-widgets-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	max-width: 1120px;
	margin: 0 auto;
}

.footer-widgets-inner .widget {
	flex: 1 1 220px;
	min-width: 200px;
	color: var(--c-text);
}

.footer-widgets-inner .widget-title {
	background: linear-gradient(180deg, #FDF7D7 0%, var(--c-yellow) 100%);
	color: var(--c-text);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 8px;
	border: 1px solid var(--c-border);
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.footer-widgets-inner .widget a {
	color: var(--c-link);
}

.footer-widgets-inner .widget a:hover {
	color: var(--c-link-hover);
}

.footer-widgets-inner .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-widgets-inner .widget li {
	margin: 4px 0;
}

.site-footer-bar {
	background: var(--c-commandbar);
	color: var(--c-text-soft);
	border-top: 1px solid #C9C9C9;
	padding: 12px 20px;
}

.site-footer-info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: center;
	max-width: 1120px;
	margin: 0 auto;
	font-size: 13px;
}

.footer-brand {
	background: var(--c-gold);
	color: var(--c-text);
	font-weight: 700;
	font-size: 12px;
	padding: 3px 8px;
	border: 1px solid var(--c-gold-dark);
	border-radius: 2px;
}

.site-footer-bar a {
	color: var(--c-link);
}

.site-footer-bar a:hover {
	color: var(--c-link-hover);
}

/* ==========================================================================
   11. Сообщение «ничего не найдено» / 404
   ========================================================================== */
.no-results {
	padding: 30px 20px;
	text-align: center;
}

.no-results .form-caption {
	margin-bottom: 10px;
}

.not-found {
	padding: 40px 20px;
	text-align: center;
}

.not-found .error-code {
	font-size: 84px;
	font-weight: 800;
	line-height: 1;
	color: var(--c-gold-dark);
	margin-bottom: 10px;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   12. Адаптивность
   ========================================================================== */
@media (max-width: 900px) {
	.sections-panel {
		flex: 0 0 190px;
		width: 190px;
	}

	.js .sections-menu li.has-section-window > .section-window {
		left: 190px;
	}
}

@media (max-width: 768px) {
	.site-content {
		flex-direction: column;
	}

	.sections-panel {
		flex: 0 0 auto;
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--c-border);
	}

	.sections-nav {
		overflow-x: auto;
	}

	.sections-menu {
		display: flex;
		flex-wrap: nowrap;
		gap: 2px;
		padding: 6px 8px;
	}

	.sections-menu li {
		flex: 0 0 auto;
	}

	.sections-menu > li > a {
		padding: 8px 14px;
		border-left: 0;
		border-bottom: 3px solid transparent;
		border-radius: 2px 2px 0 0;
		white-space: nowrap;
	}

	.sections-menu > li.current-menu-item > a {
		border-bottom-color: var(--c-gold-dark);
		border-left-color: transparent;
	}

	.sections-menu .section-toggle {
		padding: 8px 14px;
		border-left: 0;
		border-bottom: 3px solid transparent;
		border-radius: 2px 2px 0 0;
		white-space: nowrap;
	}

	.sections-menu li.current-menu-ancestor > .section-toggle {
		border-bottom-color: var(--c-gold-dark);
		border-left-color: transparent;
	}

	.sections-menu li.has-section-window {
		position: relative;
	}

	.sections-menu .section-window {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 60;
		width: 260px;
		max-width: calc(100vw - 16px);
		background: #FFFFFF;
		border: 1px solid #E0E0E0;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	}

	.js .sections-menu li.has-section-window > .section-window {
		top: 100%;
		left: 0;
		right: auto;
		bottom: auto;
	}

	.sections-menu .section-window a {
		white-space: nowrap;
	}

	.menu-toggle {
		display: flex;
	}

	.command-bar {
		flex-wrap: wrap;
	}

	.command-bar-search {
		margin-left: 0;
		width: 100%;
	}

	.command-bar-search .search-field {
		width: auto;
		flex: 1;
	}

	#primary-menu {
		display: none;
		width: 100%;
		flex-direction: column;
	}

	#primary-menu.is-open {
		display: flex;
	}

	#primary-menu > li > a {
		display: block;
		width: 100%;
	}

	#primary-menu ul.sub-menu {
		position: static;
		display: none;
		box-shadow: none;
		border: 0;
		border-left: 3px solid var(--c-gold);
		border-radius: 0;
		margin-left: 10px;
	}

	#primary-menu li:hover > ul.sub-menu,
	#primary-menu li:focus-within > ul.sub-menu {
		display: block;
	}

	.work-area {
		padding: 10px 8px 18px;
	}

	.alignwide { margin-left: 0; margin-right: 0; }
	.alignfull { margin-left: -9px; margin-right: -9px; }

	.footer-widgets-inner {
		flex-direction: column;
	}
}
