/* Дополнения к дизайну (css/style.css не трогаем) */
.about-text { max-width: 800px; margin: 0 auto; }
.about-text p { margin-top: 0; }
.checkout-period { display: block; cursor: pointer; margin: 0; }
.checkout-submit { border: 0; background: none; padding: 0; cursor: pointer; }
.alert-status { margin-bottom: 20px; padding: 12px 16px; border-radius: 6px; background: #e8f7ee; color: #1d7a45; text-align: left; }
.contacts-map iframe { width: 100%; min-height: 400px; border: 0; }
.page-content img { max-width: 100%; height: auto; }
.form-wrap.has-error .form-validation { opacity: 1; visibility: visible; }
.pagination { justify-content: center; margin-top: 30px; }

/* Внутренние страницы: шапка в потоке и полноразмерный блок заголовка, как в дизайне
   (в style.css старого проекта это было переопределено для главной) */
.page-header.page-header_inner { position: relative; }
.page-header_inner ~ .breadcrumbs-custom .breadcrumbs-custom-main { padding: 40px 0 62px !important; }
@media (min-width: 768px) {
	.page-header_inner ~ .breadcrumbs-custom .breadcrumbs-custom-main { padding: 60px 0 82px !important; min-height: 20.3125vw !important; }
}
@media (min-width: 1200px) {
	.page-header_inner ~ .breadcrumbs-custom .breadcrumbs-custom-main { padding: 80px 0 110px !important; }
}
@media (min-width: 2050px) {
	.page-header_inner ~ .breadcrumbs-custom .breadcrumbs-custom-main { min-height: 390px !important; }
}

/* Логотип OneTV (горизонтальный) */
.rd-navbar .rd-navbar-brand img { width: auto !important; height: 44px !important; max-height: 44px !important; max-width: none !important; }
.rd-navbar-fixed .rd-navbar-brand img { height: 34px !important; max-height: 34px !important; }
.footer-light .brand img { width: auto; height: 44px; }
.section-layout-3 .brand img { width: auto; height: 56px; }
/* Главная: прозрачная шапка поверх тёмного слайдера — светлая версия, пока шапка не «прилипла» */
.page-header:not(.page-header_inner) .rd-navbar-static:not(.rd-navbar--is-stuck) .brand-logo-dark { display: none; }
.page-header:not(.page-header_inner) .rd-navbar-static:not(.rd-navbar--is-stuck) .brand-logo-light { display: block; }

/* Выбор языка — выпадающий список */
.lang-switch-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border: 1px solid rgba(38, 47, 60, .2); border-radius: 999px; background: transparent; color: #262f3c; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; transition: .2s; }
.lang-switch-toggle:hover, .lang-switch.show .lang-switch-toggle { border-color: var(--theme-primary, #16b6d2); color: var(--theme-primary, #16b6d2); }
.lang-switch-toggle .mdi { font-size: 16px; }
.lang-switch-caret { transition: transform .2s; }
.lang-switch .show .lang-switch-caret, .lang-switch-toggle[aria-expanded="true"] .lang-switch-caret { transform: rotate(180deg); }
.lang-switch-menu { min-width: 150px; padding: 6px; border: 0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-size: 14px; }
.lang-switch-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: #262f3c; }
.lang-switch-menu .dropdown-item:hover { background: #f3f5f7; }
.lang-switch-menu .dropdown-item.active { background: var(--theme-primary, #16b6d2); color: #fff; }
.lang-switch-code { width: 24px; font-weight: 700; font-size: 12px; opacity: .8; }
/* мобильная шапка: переключатель закреплён справа в панели (как .list-localization у шаблона) */
.rd-navbar-classic.rd-navbar-fixed .lang-switch { position: fixed; right: 10px; top: 28px; z-index: 1081; transform: translateY(-50%); }
.rd-navbar-classic.rd-navbar-fixed .lang-switch-toggle { padding: 5px 9px 5px 8px; font-size: 12px; }
.page-header:not(.page-header_inner) .rd-navbar-static:not(.rd-navbar--is-stuck) .lang-switch-toggle { color: #fff; border-color: rgba(255, 255, 255, .45); }

/* Цветовые темы: значения по умолчанию (текущая тема шаблона); зелёная — css/theme-green.css */
:root { --theme-primary: #16b6d2; --theme-primary-rgb: 22, 182, 210; --theme-primary-dark: #1397ae; --theme-secondary: #ff6f80; }

/* Плавающий переключатель темы (partials/theme-switcher.blade.php, js/theme.js) */
.theme-switch { position: fixed; left: 16px; bottom: 16px; z-index: 1030; display: flex; align-items: center; gap: 7px; padding: 6px 7px 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 22px rgba(31, 41, 51, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.theme-switch-icon { margin-right: 1px; font-size: 18px; line-height: 1; color: #8491a5; }
.theme-switch-option { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .2s, box-shadow .2s; }
.theme-switch-option_current { background: linear-gradient(135deg, #16b6d2 50%, #ff6f80 50%); }
.theme-switch-option_green { background: linear-gradient(135deg, #1a8021 50%, #8cc63f 50%); }
.theme-switch-option:hover { transform: scale(1.1); }
.theme-switch-option.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--theme-primary); }
.theme-switch-option:focus-visible { outline: 2px solid #262f3c; outline-offset: 4px; }
@media (max-width: 575.98px) {
	.theme-switch { left: 8px; bottom: 8px; gap: 5px; padding: 4px 5px; opacity: .6; transition: opacity .2s; }
	.theme-switch:hover, .theme-switch:focus-within, .theme-switch:active { opacity: 1; }
	.theme-switch-icon { display: none; }
	.theme-switch-option { width: 20px; height: 20px; }
}
@media print { .theme-switch { display: none; } }
