/*
Theme Name: KindergartenNL
Theme URI: https://example.com/kindergartennl
Author: Беликова С.А.
Author URI: https://example.com
Description: Тема для детского сада №9 с возможностью управления контентом через настройки темы, кастомные типы записей для групп, преподавателей и слайдов.
Version: 1.0
License: GPLv2 or later
Text Domain: kindergartennl
*/

 /* ---------- Базовые сбросы ---------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #6C9BCF;
            --primary-dark: #4A7A9E;
            --primary-light: #B5D3E8;
            --secondary: #E8B88A;
            --secondary-light: #F5DCC6;
            --bg: #F7FAFC;
            --text: #2D3748;
            --text-muted: #4A5568;
            --white: #FFFFFF;
            --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.10);
            --radius: 20px;
            --radius-sm: 12px;
            --transition: 0.25s ease;
            --padding-side: clamp(1rem, 5vw, 4rem);
            --sidebar-right-width: 280px;
            --font-size-base: 1rem;
        }

        html {
            font-size: 16px;
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            transition: background 0.2s, color 0.2s;
        }

        .container {
            width: 100%;
            padding: 0 var(--padding-side);
            margin: 0 auto;
        }

        /* ---------- Режим для слабовидящих ---------- */
        body.visually-impaired {
            --primary: #1a1a1a;
            --primary-dark: #000000;
            --primary-light: #cccccc;
            --secondary: #000000;
            --secondary-light: #e0e0e0;
            --bg: #ffffff;
            --text: #000000;
            --text-muted: #000000;
            --white: #ffffff;
            --shadow: none;
            --shadow-hover: none;
            --radius: 0px;
            --radius-sm: 0px;
            --font-size-base: 1.2rem;
            background: #ffffff;
            color: #000000;
        }

        body.visually-impaired .container {
            max-width: 1400px;
        }

        body.visually-impaired .hero {
            background: #ffffff !important;
            border: 2px solid #000;
            border-radius: 0;
        }

        body.visually-impaired .section-title::after {
            background: #000;
        }

        body.visually-impaired .btn {
            border: 2px solid #000;
            background: #fff !important;
            color: #000 !important;
            box-shadow: none !important;
        }

        body.visually-impaired .btn-primary {
            background: #000 !important;
            color: #fff !important;
        }

        body.visually-impaired .btn-primary:hover {
            background: #333 !important;
        }

        body.visually-impaired .group-card,
        body.visually-impaired .teacher-card,
        body.visually-impaired .news-item,
        body.visually-impaired .stat-item,
        body.visually-impaired .schedule-item,
        body.visually-impaired .parents-item,
        body.visually-impaired .banner {
            border: 2px solid #000;
            background: #fff;
            box-shadow: none !important;
            border-radius: 0 !important;
        }

        body.visually-impaired header {
            background: #fff !important;
            border-bottom: 3px solid #000;
            backdrop-filter: none;
        }

        body.visually-impaired nav a {
            border: 1px solid #000;
            color: #000;
            background: #fff;
        }

        body.visually-impaired nav a:hover,
        body.visually-impaired nav a.active {
            background: #000 !important;
            color: #fff !important;
        }

        body.visually-impaired .nav-cta {
            background: #000 !important;
            color: #fff !important;
        }

        body.visually-impaired footer {
            background: #000 !important;
            border-radius: 0;
        }

        body.visually-impaired .contacts-form input,
        body.visually-impaired .contacts-form textarea {
            border: 2px solid #000;
            background: #fff;
        }

        body.visually-impaired .contacts-form input:focus,
        body.visually-impaired .contacts-form textarea:focus {
            outline: 3px solid #000;
        }

        body.visually-impaired .contacts-info .contact-item i {
            background: #000;
            color: #fff;
        }

        body.visually-impaired .visually-impaired-toggle {
            background: #000;
            color: #fff;
        }
        body.visually-impaired .visually-impaired-toggle:hover {
            background: #333;
        }

        /* Увеличенный шрифт */
        body.visually-impaired,
        body.visually-impaired .hero-content p,
        body.visually-impaired .about-text p,
        body.visually-impaired .group-card p,
        body.visually-impaired .teacher-card p,
        body.visually-impaired .news-item .news-text p,
        body.visually-impaired .parents-item p,
        body.visually-impaired .schedule-item .desc,
        body.visually-impaired .contacts-info .contact-item,
        body.visually-impaired .footer-grid p,
        body.visually-impaired .footer-grid a,
        body.visually-impaired .banner p {
            font-size: 1.2rem;
            line-height: 1.8;
        }

        body.visually-impaired .hero-content h1 {
            font-size: 2.8rem;
        }
        body.visually-impaired .section-title {
            font-size: 2.4rem;
        }
        body.visually-impaired h3,
        body.visually-impaired h4 {
            font-size: 1.6rem;
        }
        body.visually-impaired .stat-item .number {
            font-size: 2.6rem;
        }

        /* ---------- Шапка ---------- */
        header {
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(8px);
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
            position: sticky;
            top: 0;
            z-index: 100;
            padding: 0.6rem 0;
            transition: background 0.2s;
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.8rem 1.5rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-weight: 700;
            font-size: clamp(1.2rem, 3vw, 1.6rem);
            color: var(--primary-dark);
            text-decoration: none;
            flex-shrink: 0;
        }

        .logo img {
            height: clamp(2rem, 4vw, 2.8rem);
            width: auto;
            display: block;
        }
        .logo span {
            color: var(--primary);
        }

        .visually-impaired-toggle {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 0.9rem;
            font-weight: 500;
            background: var(--primary-light);
            padding: 0.4rem 1rem;
            border-radius: 40px;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            color: var(--text);
            white-space: nowrap;
        }

        .visually-impaired-toggle:hover {
            background: var(--secondary-light);
        }

        .visually-impaired-toggle i {
            font-size: 1.2rem;
        }

        .burger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 6px 4px;
            z-index: 101;
        }

        .burger span {
            display: block;
            width: 26px;
            height: 3px;
            background: var(--primary-dark);
            border-radius: 4px;
            transition: var(--transition);
        }

        .burger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }
        .burger.active span:nth-child(2) {
            opacity: 0;
        }
        .burger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        nav {
            display: flex;
            align-items: center;
            gap: 0.2rem;
        }

        nav a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.5rem 1rem;
            border-radius: 40px;
            transition: var(--transition);
            white-space: nowrap;
        }

        nav a:hover,
        nav a.active {
            background: var(--primary-light);
            color: var(--primary-dark);
        }

        .nav-cta {
            background: var(--secondary);
            color: var(--white) !important;
            padding: 0.5rem 1.4rem !important;
            font-weight: 600;
        }

        .nav-cta:hover {
            background: var(--primary-dark) !important;
            color: var(--white) !important;
        }

        /* ---------- ГЕРОЙ СО СЛАЙДЕРОМ ---------- */
        .hero {
            padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
            background: linear-gradient(145deg, #E6F0F9 0%, #D4E6F2 100%);
            border-radius: 0 0 3rem 3rem;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: clamp(1.5rem, 5vw, 3rem);
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-content h1 {
            font-size: clamp(2rem, 6vw, 3rem);
            font-weight: 700;
            line-height: 1.2;
            color: var(--primary-dark);
            margin-bottom: 0.5rem;
        }

        .hero-content h1 .highlight {
            color: var(--secondary);
            background: rgba(255, 255, 255, 0.5);
            padding: 0.1rem 0.6rem;
            border-radius: 40px;
            display: inline-block;
        }

        .hero-content .subhead {
            font-size: clamp(1rem, 2vw, 1.2rem);
            color: var(--text-muted);
            margin: 0.8rem 0 1.2rem;
            background: rgba(255, 255, 255, 0.6);
            padding: 0.4rem 1.2rem;
            border-radius: 60px;
            display: inline-block;
            backdrop-filter: blur(4px);
        }

        .hero-content p {
            font-size: clamp(0.95rem, 1.4vw, 1.1rem);
            color: var(--text-muted);
            max-width: 32rem;
            margin-bottom: 1.6rem;
        }

        .hero-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.7rem 1.8rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            border: none;
            transition: var(--transition);
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .btn-primary {
            background: var(--primary);
            color: var(--white);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(108, 155, 207, 0.3);
        }

        .btn-secondary {
            background: var(--white);
            color: var(--primary-dark);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }

        .btn-secondary:hover {
            background: var(--secondary-light);
            transform: translateY(-2px);
        }

        /* ---------- Слайдер ---------- */
        .slider-container {
            width: 100%;
            max-width: 460px;
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
            aspect-ratio: 4/3;
            background: var(--primary-light);
        }

        .slider-wrapper {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }

        .slider-slide {
            min-width: 100%;
            height: 100%;
            flex-shrink: 0;
        }

        .slider-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Кнопки навигации */
        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(4px);
            border: none;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--primary-dark);
            transition: var(--transition);
            z-index: 5;
        }

        .slider-btn:hover {
            background: var(--white);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .slider-btn.prev {
            left: 10px;
        }

        .slider-btn.next {
            right: 10px;
        }

        /* Индикаторы (точки) */
        .slider-dots {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 5;
        }

        .slider-dots .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            border: none;
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
        }

        .slider-dots .dot.active {
            background: var(--white);
            transform: scale(1.2);
        }

        .slider-dots .dot:hover {
            background: rgba(255, 255, 255, 0.9);
        }

        /* Версия для слабовидящих: убираем размытие, делаем чёткие кнопки */
        body.visually-impaired .slider-btn {
            background: #fff;
            border: 2px solid #000;
            backdrop-filter: none;
        }

        body.visually-impaired .slider-dots .dot {
            background: #ccc;
            border: 1px solid #000;
        }

        body.visually-impaired .slider-dots .dot.active {
            background: #000;
        }

        /* ---------- Остальные секции ---------- */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr var(--sidebar-right-width);
            gap: 2rem;
            margin-top: 1rem;
        }

        .main-content {
            min-width: 0;
        }

        .sidebar-right {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .banner {
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.2rem 1rem;
            transition: var(--transition);
            overflow: hidden;
        }

        .banner:hover {
            box-shadow: var(--shadow-hover);
        }

        .banner img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius-sm);
            margin-bottom: 0.6rem;
        }

        .banner h4 {
            font-size: 1rem;
            margin-bottom: 0.3rem;
            color: var(--primary-dark);
        }

        .banner p {
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .banner .banner-btn {
            display: inline-block;
            margin-top: 0.6rem;
            padding: 0.4rem 1rem;
            background: var(--primary);
            color: #fff;
            border-radius: 40px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.85rem;
            transition: var(--transition);
        }

        .banner .banner-btn:hover {
            background: var(--primary-dark);
        }

        section {
            padding: clamp(2.5rem, 7vw, 4.5rem) 0;
        }

        .section-title {
            font-size: clamp(1.8rem, 4vw, 2.4rem);
            font-weight: 700;
            text-align: center;
            color: var(--primary-dark);
            position: relative;
            display: inline-block;
            margin: 0 auto 0.8rem;
            padding-bottom: 0.4rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 4rem;
            height: 4px;
            border-radius: 10px;
            background: var(--secondary);
        }

        .section-subtitle {
            text-align: center;
            color: var(--text-muted);
            font-size: clamp(1rem, 1.2vw, 1.15rem);
            max-width: 40rem;
            margin: 0 auto 2.5rem;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: clamp(1.5rem, 5vw, 3rem);
            align-items: center;
        }

        .about-text p {
            margin-bottom: 1rem;
            font-size: clamp(0.95rem, 1.1vw, 1.05rem);
            color: var(--text-muted);
        }

        .about-text .highlight {
            color: var(--primary);
            font-weight: 600;
        }

        .about-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .stat-item {
            background: var(--white);
            padding: 1rem 0.5rem;
            border-radius: var(--radius-sm);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .stat-item:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-hover);
        }

        .stat-item .number {
            font-size: clamp(1.6rem, 3vw, 2.2rem);
            font-weight: 700;
            color: var(--primary);
            display: block;
        }

        .stat-item .label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .about-image img {
            width: 100%;
            max-width: 460px;
            height: auto;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            display: block;
        }

        .groups-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
        }

        .group-card {
            background: var(--white);
            padding: 1.8rem 1rem 1.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            text-align: center;
            transition: var(--transition);
            border-bottom: 4px solid var(--primary-light);
        }

        .group-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-hover);
        }

        .group-card .icon {
            font-size: clamp(2.4rem, 4vw, 3rem);
            margin-bottom: 0.4rem;
            display: block;
        }

        .group-card h3 {
            font-size: clamp(1.1rem, 1.5vw, 1.3rem);
            margin-bottom: 0.2rem;
            color: var(--primary-dark);
        }

        .group-card .age {
            font-weight: 600;
            color: var(--secondary);
            font-size: 0.85rem;
            background: var(--secondary-light);
            display: inline-block;
            padding: 0.1rem 1rem;
            border-radius: 40px;
            margin-bottom: 0.5rem;
        }

        .group-card p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .teachers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
        }

        .teacher-card {
            background: var(--white);
            padding: 1.5rem 1rem;
            border-radius: var(--radius);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 2px solid transparent;
        }

        .teacher-card:hover {
            border-color: var(--primary-light);
            transform: scale(1.02);
        }

        .teacher-card img {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            display: block;
            margin: 0 auto 0.6rem;
            border: 3px solid var(--primary-light);
        }

        .teacher-card h4 {
            font-size: 1.1rem;
            margin-bottom: 0.2rem;
        }

        .teacher-card .role {
            font-weight: 600;
            color: var(--primary);
            font-size: 0.85rem;
        }

        .teacher-card p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.4rem;
        }

        .schedule-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .schedule-item {
            background: var(--white);
            padding: 1rem 1.2rem;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: var(--transition);
            flex-wrap: wrap;
        }

        .schedule-item:hover {
            transform: translateY(-3px);
            background: var(--secondary-light);
        }

        .schedule-item .time {
            font-weight: 700;
            font-size: clamp(1rem, 1.2vw, 1.2rem);
            color: var(--primary);
            min-width: 4.5rem;
        }

        .schedule-item .desc {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--text);
        }

        .news-list {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .news-item {
            display: flex;
            gap: 1.5rem;
            background: var(--white);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            padding: 0;
            align-items: stretch;
        }

        .news-item:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
        }

        .news-item .news-img {
            flex: 0 0 240px;
            min-height: 180px;
            overflow: hidden;
        }

        .news-item .news-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: var(--transition);
        }

        .news-item:hover .news-img img {
            transform: scale(1.03);
        }

        .news-item .news-body {
            flex: 1;
            padding: 1.2rem 1.5rem 1.2rem 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .news-item .news-body .date {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.3rem;
        }

        .news-item .news-body h4 {
            font-size: 1.2rem;
            margin-bottom: 0.4rem;
            color: var(--primary-dark);
        }

        .news-item .news-body p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0.8rem;
        }

        .news-item .news-body .read-more {
            align-self: flex-start;
            padding: 0.4rem 1.2rem;
            background: var(--primary);
            color: #fff;
            border-radius: 40px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.85rem;
            transition: var(--transition);
        }

        .news-item .news-body .read-more:hover {
            background: var(--primary-dark);
        }

        .news-divider {
            border: none;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--primary-light), transparent);
            margin: 0;
        }

        .parents-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.2rem;
        }

        .parents-item {
            background: var(--white);
            padding: 1.5rem 1rem;
            border-radius: var(--radius-sm);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .parents-item:hover {
            transform: translateY(-4px);
            background: var(--secondary-light);
        }

        .parents-item i {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 0.4rem;
        }

        .parents-item h4 {
            font-size: 1rem;
            margin-bottom: 0.2rem;
        }

        .parents-item p {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .contacts-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: clamp(1.5rem, 5vw, 3rem);
        }

        .contacts-info .contact-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: clamp(0.95rem, 1.1vw, 1.05rem);
            margin-bottom: 1rem;
        }

        .contacts-info .contact-item i {
            width: 44px;
            height: 44px;
            background: var(--primary);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .contacts-info .contact-item a {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
        }

        .contacts-info .contact-item a:hover {
            color: var(--primary);
        }

        .contacts-form {
            background: var(--white);
            padding: clamp(1.5rem, 4vw, 2.5rem);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }

        .contacts-form h3 {
            font-size: clamp(1.2rem, 2vw, 1.6rem);
            margin-bottom: 1rem;
        }

        .contacts-form input,
        .contacts-form textarea {
            width: 100%;
            padding: 0.8rem 1.2rem;
            border: 2px solid #E2E8F0;
            border-radius: var(--radius-sm);
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            transition: var(--transition);
            margin-bottom: 1rem;
            background: var(--bg);
        }

        .contacts-form input:focus,
        .contacts-form textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(108, 155, 207, 0.12);
        }

        .contacts-form textarea {
            min-height: 110px;
            resize: vertical;
        }

        .contacts-form .btn {
            width: 100%;
            justify-content: center;
        }

        /* ---------- ПОДВАЛ (расширенный) ---------- */
        footer {
            background: var(--primary-dark);
            color: rgba(255, 255, 255, 0.85);
            padding: 2.5rem 0 1.5rem;
            border-radius: 3rem 3rem 0 0;
            margin-top: 1rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }

        .footer-grid h4 {
            color: var(--white);
            font-size: 1.1rem;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-grid h4 i {
            color: var(--secondary);
        }

        .footer-grid ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-grid ul li {
            margin-bottom: 0.4rem;
        }

        .footer-grid ul li:last-child {
            margin-bottom: 0;
        }

        .footer-grid p,
        .footer-grid a {
            color: rgba(255, 255, 255, 0.75);
            text-decoration: none;
            font-size: 0.95rem;
            line-height: 1.8;
        }

        .footer-grid a:hover {
            color: var(--secondary-light);
        }

        .footer-grid .contact-mini span {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.4rem;
        }

        .footer-grid .contact-mini i {
            width: 1.2rem;
            color: var(--secondary);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 1.2rem;
            text-align: center;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
        }

        /* ---------- АДАПТИВНОСТЬ ---------- */
        @media (max-width: 1200px) {
            :root {
                --sidebar-right-width: 240px;
            }
        }

        @media (max-width: 992px) {
            .main-layout {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .sidebar-right {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 1rem;
                order: 3;
            }

            .main-content {
                order: 1;
            }

            .hero-grid,
            .about-grid,
            .contacts-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-content p {
                margin-left: auto;
                margin-right: auto;
            }
            .hero-buttons {
                justify-content: center;
            }
            .about-stats {
                justify-items: center;
            }
            .slider-container {
                max-width: 100%;
                margin: 0 auto;
            }

            .burger {
                display: flex;
            }

            nav {
                display: none;
                flex-direction: column;
                width: 100%;
                background: rgba(255, 255, 255, 0.98);
                backdrop-filter: blur(8px);
                padding: 1rem 0 1.5rem;
                border-radius: 0 0 20px 20px;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                z-index: 99;
            }

            nav.open {
                display: flex;
            }

            nav a {
                width: 100%;
                text-align: center;
                padding: 0.7rem 1rem;
                border-radius: 0;
                white-space: normal;
            }

            nav a.nav-cta {
                background: transparent !important;
                color: var(--primary) !important;
                font-weight: 600;
            }

            nav a.nav-cta:hover {
                background: var(--primary-light) !important;
            }

            .visually-impaired-toggle {
                font-size: 0.8rem;
                padding: 0.3rem 0.8rem;
            }

            .news-item {
                flex-direction: column;
            }

            .news-item .news-img {
                flex: 0 0 auto;
                height: 200px;
            }

            .news-item .news-body {
                padding: 1rem 1.2rem 1.2rem;
            }

            .news-item .news-body .read-more {
                align-self: center;
            }

            .footer-grid {
                grid-template-columns: 1fr 1fr 1fr;
            }
        }

        @media (max-width: 640px) {
            .header-inner {
                flex-wrap: nowrap;
                justify-content: space-between;
            }

            .hero-content h1 {
                font-size: 1.8rem;
            }
            .section-title {
                font-size: 1.6rem;
            }
            .about-stats {
                grid-template-columns: 1fr 1fr;
            }
            .schedule-item {
                flex-wrap: wrap;
                justify-content: center;
            }
            .contacts-info .contact-item {
                justify-content: center;
            }

            .sidebar-right {
                grid-template-columns: 1fr;
            }

            .news-item .news-img {
                height: 160px;
            }
            .news-item .news-body h4 {
                font-size: 1.1rem;
            }
            .news-item .news-body p {
                font-size: 0.9rem;
            }

            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 1.5rem;
            }

            .slider-btn {
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 400px) {
            .hero-content h1 {
                font-size: 1.5rem;
            }
            .group-card .icon {
                font-size: 2rem;
            }
            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .footer-grid h4 {
                justify-content: center;
            }
            .footer-grid .contact-mini span {
                justify-content: center;
            }
        }

        /* ---------- Вспомогательные классы ---------- */
        .text-center {
            text-align: center;
        }
        .mt-2 {
            margin-top: 1.5rem;
        }
        .mb-2 {
            margin-bottom: 1.5rem;
        }

.slider-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

/* Горизонтальное меню */
.primary-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-menu li {
    margin: 0;
    padding: 0;
}
.primary-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}
.primary-menu a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 40px;
}
@media (max-width: 992px) {
    .primary-menu {
        flex-direction: column;
        width: 100%;
    }
    .primary-menu a {
        text-align: center;
        padding: 0.7rem 1rem;
        border-radius: 0;
    }
}

/* Кнопка назад */
.back-link {
    margin-bottom: 1.5rem;
}

/* Стили для single новости */
.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius);
}
.single-post .post-thumbnail-bottom {
    margin-top: 2rem;
}
.single-post .post-thumbnail-bottom img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Подпись преподавателя */
.teacher-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -0.3rem;
}

/* ============================================
   ГОРИЗОНТАЛЬНОЕ МЕНЮ
   ============================================ */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.2rem;
}

.primary-menu li {
    margin: 0;
    padding: 0;
}

.primary-menu a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text, #2D3748);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item a {
    background: var(--primary-light, #B5D3E8);
    color: var(--primary-dark, #4A7A9E);
}

.primary-menu .current-menu-item a {
    background: var(--primary-light, #B5D3E8);
}

/* Бургер-меню (скрыто на десктопе) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    z-index: 101;
}

.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-dark, #4A7A9E);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Мобильная версия */
@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        padding: 1rem 0 1.5rem;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 99;
    }

    nav.open {
        display: flex;
    }

    .primary-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
        border-radius: 0;
        white-space: normal;
    }

    .primary-menu a:hover {
        background: var(--primary-light, #B5D3E8);
    }
}

/* Версия для слабовидящих */
.visually-impaired .primary-menu a {
    border: 1px solid #000;
    color: #000;
    background: #fff;
}
.visually-impaired .primary-menu a:hover,
.visually-impaired .primary-menu .current-menu-item a {
    background: #000 !important;
    color: #fff !important;
}

/* ============================================
   БЛОК РОДИТЕЛЯМ
   ============================================ */
.parents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
}

.parents-item {
    background: var(--white, #FFFFFF);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm, 12px);
    text-align: center;
    box-shadow: var(--shadow, 0 6px 24px rgba(0, 0, 0, 0.06));
    transition: var(--transition, 0.25s ease);
}

.parents-item:hover {
    transform: translateY(-4px);
    background: var(--secondary-light, #F5DCC6);
}

.parents-item i {
    font-size: 2.2rem;
    color: var(--primary, #6C9BCF);
    margin-bottom: 0.4rem;
}

.parents-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.parents-item p {
    color: var(--text-muted, #4A5568);
    font-size: 0.85rem;
}

/* Версия для слабовидящих */
.visually-impaired .parents-item {
    border: 2px solid #000;
    background: #fff;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.visually-impaired .parents-item i {
    color: #000;
}

@media (max-width: 640px) {
    .parents-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .parents-grid {
        grid-template-columns: 1fr;
    }
}