/*
Theme Name: School 33 Mogilev
Theme URI: https://school33mogilev.lenobr.by
Author: School 33
Author URI: https://school33mogilev.lenobr.by
Description: Кастомная тема для ГУО «Средняя школа №33 г. Могилева» на основе дизайна с Tailwind CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: school33
Tags: education, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   Переменные темы
   ========================================================================== */
:root {
  --school-bg-image: url('../images/banner.jpg');
  --burgundy: #581c20;
  --burgundy-dark: #3b1215;
  --gold: #d4af37;
}

/* ==========================================================================
   Базовые стили
   ========================================================================== */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  transition: filter 0.3s ease, background-color 0.3s ease;
}

.font-serif-title {
  font-family: 'Playfair Display', serif;
}

/* Hero-баннер */
.hero-banner {
  background: linear-gradient(180deg, rgba(30,10,15,0.50) 0%, rgba(30,10,15,0.85) 100%), var(--school-bg-image);
  background-size: cover;
  background-position: center;
}

/* Канвас */
#leaf-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.8s ease-in-out;
}

/* Навигация */
.glass-nav {
  background: linear-gradient(135deg, rgba(58, 18, 21, 0.95) 0%, rgba(42, 14, 16, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Логотип */
.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-container::before {
  content: '';
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.12) 50%, rgba(212, 175, 55, 0) 75%);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
  animation: ambientPulse 4s ease-in-out infinite alternate;
}

.logo-glow-img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 30px rgba(184, 134, 11, 0.25));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.logo-container:hover .logo-glow-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.75)) drop-shadow(0 0 45px rgba(212, 175, 55, 0.5));
}

@keyframes ambientPulse {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0.9; transform: scale(1.08); }
}

/* Toast */
#toast-notification {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
#toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Утилиты WordPress */
.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;
}

.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: #64748b; text-align: center; }

@media (max-width: 767px) {
    #horizontal-menu {
        display: none !important;
    }
}

/* Статусная строка */
.status-bar-wrapper {
    background: rgba(36, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 10px 0;
    animation: slideDown 0.5s ease-out forwards;
}

.status-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;              
    gap: 8px;                     
    background: linear-gradient(135deg, rgba(59, 18, 21, 0.95) 0%, rgba(42, 14, 16, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 20px rgba(212, 175, 55, 0.15);
}

.status-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;               
}

.status-timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    flex-shrink: 0;               
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    animation: pulseDot 2s infinite;
}

#status-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Социальные сети */
.social-links-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    background-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.social-icon-btn:hover {
    background-color: #d4af37;
    color: #240a0c;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.social-icon-btn:hover i {
    transform: scale(1.15);
}

/* Виджеты подвала */
#footer-1 .widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: #e2e8f0;
}

#footer-1 .widget-title {
    color: #d4af37;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#footer-1 th, #footer-1 td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#footer-1 th {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    font-weight: 600;
}

#footer-1 td { color: #cbd5e1; }
#footer-1 td a { color: #d4af37; text-decoration: none; font-weight: bold; }
#footer-1 td a:hover { background: #d4af37; color: #240a0c; border-radius: 4px; display: inline-block; padding: 2px 6px; }
#footer-1 caption { color: #94a3b8; font-size: 12px; margin-bottom: 10px; text-align: center; }

/* Сайдбар */
#secondary .widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-align: center;
}

#secondary .widget-title {
    color: #581c20;
    font-weight: 700;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
}

#secondary table { 
    width: 100% !important; 
    table-layout: fixed !important;
    border-collapse: collapse !important; 
    background: transparent !important; 
    margin: 0 !important; 
}

#secondary th, #secondary td { 
    padding: 10px 4px !important; 
    text-align: center !important; 
    border: 1px solid #f1f5f9 !important; 
    color: #334155 !important; 
    font-size: 13px !important; 
    background: transparent !important; 
}

#secondary th { 
    background: #f8fafc !important; 
    color: #581c20 !important; 
    font-weight: 700 !important; 
}

#secondary td a { 
    color: #d4af37 !important; 
    font-weight: 700 !important; 
    text-decoration: none !important; 
    display: inline-block !important; 
    padding: 2px 4px !important; 
    border-radius: 4px !important; 
}

#secondary td a:hover { 
    background: #d4af37 !important; 
    color: #ffffff !important; 
}

#secondary caption { 
    color: #64748b !important; 
    font-size: 13px !important; 
    margin-bottom: 10px !important; 
    text-align: center !important; 
    font-weight: 600 !important; 
}

#secondary ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
#secondary ul li { padding: 8px 0 !important; border-bottom: 1px dashed #e2e8f0 !important; font-size: 14px !important; line-height: 1.4 !important; text-align: left !important; }
#secondary ul li:last-child { border-bottom: none !important; }
#secondary ul li a { color: #334155 !important; text-decoration: none !important; transition: color 0.2s !important; display: block !important; }
#secondary ul li a:hover { color: #d4af37 !important; }
#secondary .widget ul li::before { display: none !important; }

/* Слайдер партнеров */
.footer-slider-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.footer-slider-container::-webkit-scrollbar { height: 6px; }
.footer-slider-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.footer-slider-container::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.5); border-radius: 10px; }
.footer-slider-container .widget { display: flex; gap: 20px; }
.footer-slider-container img { height: 60px; width: auto; object-fit: contain; background: #ffffff; padding: 5px; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.3); scroll-snap-align: start; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.footer-slider-container a:hover img { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2); }
.footer-slider-container .gallery { display: flex; flex-wrap: nowrap; gap: 15px; margin: 0; }
.footer-slider-container .gallery-item { float: none; margin: 0 !important; width: auto !important; }

/* Меню */
#horizontal-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    padding: 10px 0;
    width: 100%;
}

#horizontal-menu > ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#horizontal-menu > ul > li {
    position: relative;
}

#horizontal-menu a {
    white-space: nowrap;
}

/* Свечение логотипа */
.logo-container .custom-logo-link {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.logo-container .custom-logo {
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45)) drop-shadow(0 0 30px rgba(184, 134, 11, 0.25)) !important;
    transition: filter 0.4s ease, transform 0.4s ease !important;
    border-radius: 50%;
}

.logo-container:hover .custom-logo {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.75)) drop-shadow(0 0 45px rgba(212, 175, 55, 0.5)) !important;
}

/* Выпадающее меню */
#horizontal-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3b1215;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    padding: 8px 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
}

#horizontal-menu li:hover > .sub-menu {
    display: flex;
}

#horizontal-menu .sub-menu li {
    position: relative;
    width: 100%;
}

#horizontal-menu .sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#horizontal-menu .sub-menu li:last-child > a {
    border-bottom: none;
}

#horizontal-menu .sub-menu a:hover {
    background-color: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

#horizontal-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

#horizontal-menu .sub-menu li:hover > .sub-menu {
    display: flex;
}

/* Логотип в шапке */
.custom-logo-header .custom-logo-link img,
.custom-logo-header img.custom-logo {
    width: 190px !important;
    height: 190px !important;
    max-height: 190px !important;
    max-width: 190px !important;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    transition: transform 0.3s ease;
    display: block;
}

.custom-logo-header:hover img.custom-logo {
    transform: scale(1.05);
}

/* Название школы */
h1.custom-school-title {
    font-size: 35px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 
        3px 3px 0px #240a0c,      
        6px 6px 15px rgba(0,0,0, 0.6), 
        0 0 15px rgba(212, 175, 55, 0.8),
        0 0 30px rgba(212, 175, 55, 0.6),
        0 0 50px rgba(184, 134, 11, 0.4) !important;
    animation: textGlowPulse 3s ease-in-out infinite alternate !important;
}

@keyframes textGlowPulse {
    0% { 
        text-shadow: 
            3px 3px 0px #240a0c, 
            6px 6px 15px rgba(0,0,0, 0.6),
            0 0 15px rgba(212, 175, 55, 0.8), 
            0 0 30px rgba(212, 175, 55, 0.6),
            0 0 50px rgba(184, 134, 11, 0.4); 
    }
    100% { 
        text-shadow: 
            3px 3px 0px #240a0c, 
            6px 6px 20px rgba(0,0,0, 0.7),
            0 0 25px rgba(212, 175, 55, 1),
            0 0 45px rgba(212, 175, 55, 0.8), 
            0 0 70px rgba(184, 134, 11, 0.6); 
    }
}

@media (max-width: 768px) {
    .custom-logo-header .custom-logo-link img,
    .custom-logo-header img.custom-logo {
        width: 80px !important;
        height: 80px !important;
        max-height: 80px !important;
    }
    h1.custom-school-title {
        font-size: 18px !important;
        text-shadow: 
            2px 2px 0px #240a0c, 
            4px 4px 10px rgba(0,0,0, 0.6),
            0 0 12px rgba(212, 175, 55, 0.8),
            0 0 20px rgba(212, 175, 55, 0.5) !important;
        animation: none !important;
    }
}

/* Кнопки */
.btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%) !important;
    color: #1e293b !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-gold:hover {
    background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.5) !important;
    color: #000000 !important;
}

.btn-gold i {
    color: #1e293b !important;
}

.button-29 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: radial-gradient(100% 100% at 100% 0, #fcd34d 0, #b45309 100%) !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: rgba(59, 18, 21, 0.4) 0 2px 4px, rgba(59, 18, 21, 0.3) 0 7px 13px -3px, rgba(69, 26, 3, 0.5) 0 -3px 0 inset !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-family: 'Playfair Display', serif !important;
    height: 48px !important;
    line-height: 1 !important;
    list-style: none !important;
    overflow: hidden !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    position: relative !important;
    text-align: left !important;
    text-decoration: none !important;
    transition: box-shadow 0.15s, transform 0.15s !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    white-space: nowrap !important;
    will-change: box-shadow, transform !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.button-29:focus {
    box-shadow: #d97706 0 0 0 1.5px inset, rgba(59, 18, 21, 0.4) 0 2px 4px, rgba(59, 18, 21, 0.3) 0 7px 13px -3px, #d97706 0 -3px 0 inset !important;
}

.button-29:hover {
    box-shadow: rgba(59, 18, 21, 0.4) 0 4px 8px, rgba(59, 18, 21, 0.3) 0 7px 13px -3px, #d97706 0 -3px 0 inset !important;
    transform: translateY(-2px) !important;
}

.button-29:active {
    box-shadow: #d97706 0 3px 7px inset !important;
    transform: translateY(2px) !important;
}

/* Каллиграфия */
.hero-handwriting {
    font-family: 'Great Vibes', cursive !important;
    font-size: 48px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.font-playfair {
    font-family: 'Playfair Display', serif !important;
}

/* ============================================================
   ОБЫЧНЫЙ ПОИСК (вне статусной строки, напр. на странице поиска)
   ============================================================ */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-form:focus-within {
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.5);
    border-color: #b45309;
}

.search-form label {
    display: none;
}

.search-form input[type="search"] {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    color: #1e293b !important;
    outline: none !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.search-form input[type="search"]::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.search-form .search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%) !important;
    color: #1e293b !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.search-form .search-submit::before {
    content: '\f002';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
}

.search-form .search-submit:hover {
    background: linear-gradient(90deg, #fcd34d 0%, #f59e0b 100%) !important;
    color: #000000 !important;
}

/* ============================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ (единый блок)
   ============================================================ */

/* ---------- Панель управления ---------- */
.accessibility-panel {
  background: #240a0c;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 10000;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.accessibility-panel.a11y-panel-collapsed {
  display: none !important;
}

.a11y-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.a11y-label {
  font-weight: 700;
  color: #fbbf24;
  margin-right: 8px;
}

.a11y-sep {
  color: rgba(255, 255, 255, 0.3);
  padding: 0 2px;
}

.a11y-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  font-family: inherit;
  transition: all 0.2s ease;
}

.a11y-btn:hover,
.a11y-btn:focus-visible {
  background: #d4af37;
  color: #240a0c;
  outline: 2px solid #fbbf24;
  outline-offset: 1px;
}

.a11y-btn-speech      { background: #f59e0b; color: #0f172a; font-weight: 700; }
.a11y-btn-speech-on   { background: #059669; color: #ffffff; font-weight: 700; }
.a11y-btn-reset       { background: #d97706; color: #ffffff; }
.a11y-btn-close       { background: #991b1b; color: #ffffff; margin-left: 6px; }
.a11y-btn-close:hover { background: #7f1d1d; color: #ffffff; }

/* Кнопка открытия панели (когда она скрыта) */
.accessibility-open-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #240a0c;
  color: #fbbf24;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  transition: all 0.2s ease;
}

.accessibility-open-btn:hover {
  background: #d4af37;
  color: #240a0c;
  transform: translateY(-1px);
}

.accessibility-open-btn.hidden {
  display: none !important;
}

/* Кнопка в топбаре */
.a11y-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fbbf24;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  margin-left: 10px;
}
.a11y-topbar-btn:hover {
  background: #d4af37;
  color: #240a0c;
  border-color: #d4af37;
}
.a11y-topbar-btn i { font-size: 14px; }

/* ---------- Размеры шрифта ---------- */
body.font-size-large { font-size: 115% !important; }
body.font-size-large p,
body.font-size-large span,
body.font-size-large a,
body.font-size-large li,
body.font-size-large h1,
body.font-size-large h2,
body.font-size-large h3,
body.font-size-large h4 { font-size: 1.15rem !important; }

body.font-size-xlarge { font-size: 130% !important; }
body.font-size-xlarge p,
body.font-size-xlarge span,
body.font-size-xlarge a,
body.font-size-xlarge li,
body.font-size-xlarge h1,
body.font-size-xlarge h2,
body.font-size-xlarge h3,
body.font-size-xlarge h4 { font-size: 1.3rem !important; }

/* ---------- Светлая тема (Ч/Б) ---------- */
body.theme-white {
  background-color: #ffffff !important;
  color: #000000 !important;
}
body.theme-white p, body.theme-white span, body.theme-white a,
body.theme-white h1, body.theme-white h2, body.theme-white h3,
body.theme-white h4, body.theme-white h5, body.theme-white h6,
body.theme-white strong, body.theme-white li, body.theme-white td,
body.theme-white th, body.theme-white label, body.theme-white div {
  color: #000000 !important;
}
body.theme-white a { text-decoration: underline !important; }

body.theme-white .hero-banner,
body.theme-white header,
body.theme-white footer,
body.theme-white .glass-nav,
body.theme-white .status-bar-wrapper,
body.theme-white .status-bar-inner,
body.theme-white #secondary .widget,
body.theme-white #footer-1 .widget,
body.theme-white #toast-notification {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #cccccc !important;
  box-shadow: none !important;
}
body.theme-white .hero-banner { background-image: none !important; }
body.theme-white * {
  text-shadow: none !important;
  filter: none !important;
}

/* ---------- Тёмная тема (Т/С) ---------- */
body.theme-black {
  background-color: #000000 !important;
  color: #ffffff !important;
}
body.theme-black p, body.theme-black span, body.theme-black a,
body.theme-black h1, body.theme-black h2, body.theme-black h3,
body.theme-black h4, body.theme-black h5, body.theme-black h6,
body.theme-black strong, body.theme-black li, body.theme-black td,
body.theme-black th, body.theme-black label, body.theme-black div {
  color: #ffffff !important;
}
body.theme-black a { color: #ffff00 !important; text-decoration: underline !important; }

body.theme-black .hero-banner,
body.theme-black header,
body.theme-black footer,
body.theme-black .glass-nav,
body.theme-black .status-bar-wrapper,
body.theme-black .status-bar-inner,
body.theme-black #secondary .widget,
body.theme-black #footer-1 .widget,
body.theme-black #toast-notification {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #444444 !important;
  box-shadow: none !important;
}
body.theme-black .hero-banner { background-image: none !important; }
body.theme-black * {
  text-shadow: none !important;
  filter: none !important;
}

/* ---------- Синяя тема ---------- */
body.theme-blue {
  background-color: #0a192f !important;
  color: #64ffda !important;
}
body.theme-blue p, body.theme-blue span, body.theme-blue a,
body.theme-blue h1, body.theme-blue h2, body.theme-blue h3,
body.theme-blue h4, body.theme-blue h5, body.theme-blue h6,
body.theme-blue strong, body.theme-blue li, body.theme-blue td,
body.theme-blue th, body.theme-blue label, body.theme-blue div {
  color: #64ffda !important;
}
body.theme-blue a { color: #ffd700 !important; text-decoration: underline !important; }

body.theme-blue .hero-banner,
body.theme-blue header,
body.theme-blue footer,
body.theme-blue .glass-nav,
body.theme-blue .status-bar-wrapper,
body.theme-blue .status-bar-inner,
body.theme-blue #secondary .widget,
body.theme-blue #footer-1 .widget,
body.theme-blue #toast-notification {
  background: #0a192f !important;
  color: #64ffda !important;
  border-color: #64ffda !important;
  box-shadow: none !important;
}
body.theme-blue .hero-banner { background-image: none !important; }
body.theme-blue * {
  text-shadow: none !important;
}

/* ---------- Скрытие изображений ---------- */
body.hide-images img,
body.hide-images .hero-banner,
body.hide-images .logo-container,
body.hide-images .custom-logo-header,
body.hide-images .footer-slider-container,
body.hide-images #leaf-canvas,
body.hide-images iframe {
  display: none !important;
}

/* Убираем анимации в режиме слабовидящих */
@media (prefers-reduced-motion: reduce) {
  .accessibility-panel,
  .a11y-btn,
  .accessibility-open-btn,
  .a11y-topbar-btn {
    transition: none !important;
  }
}

/* Гарантируем, что контакты видны */
#contacts .grid {
    display: grid !important;
}
#contacts .space-y-3\.5 > div {
    display: block !important;
}

/* ============================================================
   КАСТОМНЫЙ ПОИСК В СТАТУСНОЙ СТРОКЕ (исправленный)
   ============================================================ */
#school-status-bar .custom-search-form {
    display: flex !important;
    align-items: center;
    position: relative;
    height: 34px !important;
    margin: 0 10px !important;
    background: #ffffff !important;
    border: 1px solid #d4af37 !important;
    border-radius: 999px !important;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0 !important;
}

#school-status-bar .custom-search-field {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    outline: none !important;
}

#school-status-bar .custom-search-field::placeholder {
    color: #94a3b8;
    font-style: italic;
}

#school-status-bar .custom-search-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 100% !important;
    border: none !important;
    background: #d4af37 !important;
    color: #240a0c !important;
    cursor: pointer;
    padding: 0 !important;
    transition: background 0.2s ease;
}

#school-status-bar .custom-search-submit:hover {
    background: #fcd34d !important;
}

#school-status-bar .custom-search-submit i {
    font-size: 14px;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    #school-status-bar .custom-search-form {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        margin: 6px 0 0 0 !important;
    }
    .status-bar-inner {
        flex-wrap: wrap !important;
        border-radius: 16px !important;
    }
}

/* ============================================================
   СЛАЙДЕР БАННЕРОВ (ШОРТКОД [school_slider]) - Обновленный
   ============================================================ */
.school-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 15px 0;
    padding: 0 40px; /* Отступ для стрелок */
}

.school-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    /* СКРЫВАЕМ ПОЛОСУ ПРОКРУТКИ */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

/* Скрываем скроллбар для Chrome, Safari, Opera */
.school-slider-track::-webkit-scrollbar {
    display: none;
}

.school-slider-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* Высота баннера */
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-slider-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

/* Делаем картинки качественными и запрещаем их выделение */
.school-slider-item img {
    max-height: 100%;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    
    /* Убираем выделение и перетаскивание */
    user-select: none;
    -webkit-user-drag: none;
}

/* Делаем всю область картинки кликабельной */
.school-slider-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Стрелки */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #d4af37;
    color: #581c20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.slider-arrow:hover {
    background: #d4af37;
    color: #ffffff;
    border-color: #d4af37;
}

.slider-arrow-prev {
    left: 0;
}

.slider-arrow-next {
    right: 0;
}

.slider-arrow i {
    font-size: 14px;
}

/* ============================================================
   СПЕЦИАЛЬНЫЙ СЛАЙД С БЕГУЩЕЙ СТРОКОЙ (БОРДОВЫЙ ФОН)
   ============================================================ */
.school-slider-item.custom-marquee-slide {
    background: #581c20 !important; /* Бордовый фон */
    border: 2px solid #d4af37 !important; /* Золотая рамка */
    width: 100% !important; /* Растягиваем на всю ширину */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    height: auto !important;
    min-height: 120px;
}

/* Стили для текста внутри marquee */
.school-slider-item.custom-marquee-slide marquee {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
}