/*
 * Общие стили сайта «Маленький город».
 * Подключается и главной (index.php), и страницами направлений (/uslugi/<slug>/),
 * поэтому оформление правится в одном файле (ТЗ: единый источник данных).
 */
        /* Все существующие стили (оставлены без изменений) */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "Manrope", sans-serif;
            color: #2d3e50;
            line-height: 1.5;
            background: #f6f9ff;
            overflow-x: hidden;
            text-rendering: optimizeLegibility;
        }

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

        .great-vibes-regular {
            font-family: "Great Vibes", cursive;
            font-weight: 400;
            font-style: normal;
        }

        .noto-serif-display-main {
            font-family: "Noto Serif Display", serif;
            font-optical-sizing: auto;
            font-weight: 700;
            font-style: normal;
            font-variation-settings: "wdth" 100;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Типографика */
        h1, h2, h3 {
            font-family: "Noto Serif Display", serif;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.01em;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
        }

        h2:after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #4aa3df, transparent);
            margin-top: 8px;
            border-radius: 2px;
        }

        h3 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }

        /* Кнопки с градиентом */
        .btn {
            display: inline-block;
            padding: 11px 22px;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            font-size: 0.9rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, #1a57a8, #3b88e3);
            color: white;
            box-shadow: 0 8px 20px rgba(26, 87, 168, 0.28);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #14478b, #3277cb);
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(26, 87, 168, 0.35);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid #4aa3df;
            color: #4aa3df;
        }

        .btn-outline:hover {
            background: linear-gradient(135deg, #4aa3df, transparent);
            color: white;
        }

        /* Маленькие социальные кнопки */
        .social-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
            color: white;
            padding: 6px 12px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 500;
            text-decoration: none;
            transition: 0.3s;
            margin-left: 8px;
            border: 1px solid rgba(255,255,255,0.28);
        }

        .social-btn i {
            font-size: 1rem;
            font-style: normal;
            display: inline-block;
        }

        /* FA: родительская ссылка в меню задаёт font-weight — иначе иконки не рисуются */
        .social-btn i.fas,
        .social-btn i.far {
            font-weight: 900;
        }

        .social-btn i.fab {
            font-weight: 400;
        }

        .contact-action-buttons .btn i {
            font-style: normal;
            display: inline-block;
        }

        .contact-action-buttons .btn i.fas,
        .contact-action-buttons .btn i.far {
            font-weight: 900;
        }

        .contact-action-buttons .btn i.fab {
            font-weight: 400;
        }

        .social-btn:hover {
            background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.15));
        }

        .header-contact-buttons {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-left: 8px;
        }

        .header-contact-buttons .social-btn {
            margin-left: 0;
        }

        /* Шапка */
        header {
            background: linear-gradient(270deg, #0b2f6b 0%, #1e5bab 55%, #4a8ee1 100%);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 14px rgba(0,0,0,0.12);
            position: sticky;
            top: 0;
            z-index: 100;
            width: 100%;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            min-height: 72px;
            gap: 16px;
            min-width: 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            flex: 1 1 auto;
        }

        .logo img {
            height: 50px;
            width: 50px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .logo h2 {
            font-size: 1.8rem;
            margin: 0;
            color: #f5f9ff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .logo h2:after {
            display: none;
        }

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

        .nav-menu a {
            text-decoration: none;
            color: #ffffff;
            font-weight: 600;
            transition: color 0.3s;
            text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        }

        .nav-menu a:hover {
            color: #d8e9ff;
        }

        .mobile-menu-btn {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            cursor: pointer;
            color: #ffffff;
            flex-shrink: 0;
            padding: 6px;
            line-height: 1;
        }

        nav {
            position: relative;
            flex-shrink: 0;
        }

        /* Hero секция */
        .hero {
            background: linear-gradient(135deg, #fdfefe 0%, #e8f2ff 100%);
            padding: 60px 0;
        }

        .hero-text h1 {
            color: #173e7a;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }

        .hero-text {
            max-width: 600px;
        }

        .hero-text p {
            font-size: 1.2rem;
            color: #4a5b6c;
            margin-bottom: 2rem;
        }

        .features {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 30px 0;
        }

        .feature-item {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(5px);
            padding: 10px 20px;
            border-radius: 40px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            font-weight: 500;
        }

        .feature-item i {
            color: #4aa3df;
            font-size: 1.2rem;
        }

        /* Стили для галереи на главном экране */
        .hero-image {
            border-radius: 20px;
            overflow: hidden;
            height: 400px;
            background: #d9e2e8;
            position: relative;
        }

        .hero-image .swiper {
            width: 100%;
            height: 100%;
        }

        .hero-image .swiper-slide {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .hero-image .swiper-slide picture {
            display: block;
            width: 100%;
            height: 100%;
        }

        .hero-image .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: scale-down; /* фото видно целиком: без обрезки и без увеличения */
            display: block;
        }

        .hero-image .swiper-pagination-bullet {
            background: white;
            opacity: 0.7;
        }

        .hero-image .swiper-pagination-bullet-active {
            background: #4aa3df;
            opacity: 1;
        }

        /* Секции */
        section {
            padding: 80px 0;
            content-visibility: auto;
            contain-intrinsic-size: 800px;
        }

        .section-light {
            background: linear-gradient(135deg, #ffffff 0%, #edf4ff 100%);
            backdrop-filter: blur(5px);
        }

        .section-dark {
            background: linear-gradient(135deg, #edf4ff 0%, #dfeeff 100%);
        }

        .section-dark > .container > h2 {
            color: #163f7b;
            text-shadow: none;
        }

        .section-dark > .container > h2:after {
            background: linear-gradient(90deg, #2f75ce, transparent);
        }

        #specialists {
            background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
        }

        #prices {
            background: linear-gradient(135deg, #e8f2ff 0%, #d9ebff 100%);
        }

        #kindergarten {
            background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
        }

        #contacts {
            background: linear-gradient(145deg, #0a2b5f 0%, #114087 45%, #1f5aad 100%);
        }

        #contacts > .container > h2 {
            color: #ffffff;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        #contacts > .container > h2:after {
            background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.2));
        }

        /* Карточки специалистов */
        .specialists-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .specialist-card {
            background: #ffffff;
            backdrop-filter: blur(10px);
            border-radius: 18px;
            padding: 24px;
            overflow: hidden;
            box-shadow: 0 10px 28px rgba(20, 65, 125, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid rgba(73, 132, 212, 0.15);
        }

        .specialist-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(74, 163, 223, 0.15);
        }

        .specialist-image {
            width: calc(100% + 48px);
            margin: -24px -24px 16px;
            aspect-ratio: 2 / 1;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            background-color: transparent;
        }

        .specialist-info {
            margin-bottom: 16px;
        }

        .specialization {
            color: #4aa3df;
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 8px;
        }

        .experience {
            color: #6c7a8a;
            font-size: 0.95rem;
            margin-bottom: 12px;
        }

        .specialist-price {
            color: #2f5f9f;
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .services-list {
            list-style: none;
            margin: 16px 0;
        }

        .services-list li {
            padding: 6px 0;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .services-list i {
            color: #4aa3df;
            font-size: 0.9rem;
            width: 20px;
        }

        .education-toggle {
            margin-top: 16px;
            border-top: 1px solid #eaeef2;
            padding-top: 12px;
        }

        .toggle-btn {
            background: none;
            border: none;
            color: #4aa3df;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .toggle-btn i {
            transition: transform 0.3s;
        }

        .education-content {
            margin-top: 12px;
            font-size: 0.9rem;
            color: #4a5b6c;
            display: none;
            background: rgba(255, 255, 255, 0.7);
            padding: 12px;
            border-radius: 8px;
        }

        .education-content.show {
            display: block;
        }

        /* Кнопка записи под карточкой */
        .booking-btn {
            display: inline-block;
            margin-top: 16px;
            padding: 8px 20px;
            background: linear-gradient(135deg, #4aa3df, rgba(74, 163, 223, 0.3));
            color: white;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: 0.3s;
            border: none;
            cursor: pointer;
        }

        .booking-btn:hover {
            background: #3b8ec0;
        }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }

        .action-buttons .booking-btn {
            margin-top: 0;
        }

        /* Карточки услуг */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .pricing-card {
            background: #ffffff;
            backdrop-filter: blur(10px);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 10px 26px rgba(18, 59, 113, 0.1);
            border: 1px solid rgba(73, 132, 212, 0.15);
            transition: all 0.3s;
        }

        .pricing-card:hover {
            border-color: #4aa3df;
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(74, 163, 223, 0.15);
        }

        .service-image {
            width: 100%;
            aspect-ratio: 2 / 1;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            background-color: transparent;
        }

        .specialist-image picture,
        .service-image picture {
            display: block;
            width: 100%;
            height: 100%;
        }

        .specialist-image img,
        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            display: block;
        }

        .lazy-bg {
            background-image: none;
        }

        .pricing-card-content {
            padding: 24px;
        }

        .pricing-card h4 {
            font-size: 1.3rem;
            margin-bottom: 12px;
        }

        .price {
            font-size: 2rem;
            font-weight: 700;
            color: #2d3e50;
            margin: 16px 0;
        }

        .price small {
            font-size: 1rem;
            font-weight: 400;
            color: #6c7a8a;
        }

        .service-meta {
            color: #6c7a8a;
            font-size: 0.9rem;
            margin-bottom: 16px;
        }

        /* Детский сад */
        .kindergarten-block {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 12px 30px rgba(0,0,0,0.05);
            margin-top: 30px;
        }

        .kindergarten-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }

        .kindergarten-features {
            list-style: none;
            margin: 20px 0;
        }

        .kindergarten-features li {
            padding: 8px 0;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .kindergarten-features i {
            color: #4aa3df;
        }

        .price-table {
            background: rgba(255, 255, 255, 0.7);
            padding: 24px;
            border-radius: 16px;
            margin-top: 20px;
        }

        .price-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px dashed #d0d9e2;
        }

        .price-row:last-child {
            border-bottom: none;
        }

        .price-row .value {
            font-weight: 700;
            color: #2d3e50;
        }

        .highlight {
            background: linear-gradient(135deg, #e6f7ff, transparent);
            padding: 16px;
            border-radius: 12px;
            margin: 20px 0;
            border-left: 4px solid #4aa3df;
        }

        /* Галерея детского сада */
        .kindergarten-gallery {
            margin-top: 30px;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        }

        .kindergartenSwiper {
            width: 100%;
            height: 400px;
        }

        .kindergartenSwiper .swiper-slide {
            position: relative;
            background: #d9e2e8; /* фон под фото, когда кадр шире или выше картинки */
        }

        .kindergartenSwiper .swiper-slide picture {
            display: block;
            width: 100%;
            height: 100%;
        }

        .kindergartenSwiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: scale-down; /* фото видно целиком: без обрезки и без увеличения */
            display: block;
        }

        .kindergartenSwiper .swiper-pagination-bullet {
            background: white;
            opacity: 0.7;
        }

        .kindergartenSwiper .swiper-pagination-bullet-active {
            background: #4aa3df;
            opacity: 1;
        }

        .kindergartenSwiper .swiper-button-next,
        .kindergartenSwiper .swiper-button-prev {
            color: white;
            background: rgba(0,0,0,0.3);
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .kindergartenSwiper .swiper-button-next:after,
        .kindergartenSwiper .swiper-button-prev:after {
            font-size: 18px;
        }

        .kindergartenSwiper .swiper-button-next:hover,
        .kindergartenSwiper .swiper-button-prev:hover {
            background: rgba(74, 163, 223, 0.8);
        }

        .kindergartenSwiper .swiper-counter {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: rgba(0,0,0,0.5);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.9rem;
            backdrop-filter: blur(5px);
            z-index: 10;
        }

        .kindergartenSwiper .slide-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
            color: white;
            padding: 30px 20px 15px;
            font-size: 1rem;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .kindergartenSwiper {
                height: 300px;
            }
            .kindergartenSwiper .swiper-button-next,
            .kindergartenSwiper .swiper-button-prev {
                display: none;
            }
        }

        /* Контакты */
        .contacts-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-top: 40px;
        }

        .contact-info {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 32px;
            border-radius: 24px;
            box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid #eaeef2;
        }

        .contact-item:last-child {
            border-bottom: none;
        }

        .contact-item i {
            font-size: 1.3rem;
            color: #4aa3df;
            width: 30px;
        }

        .contact-action-buttons {
            margin-top: 30px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .map-container {
            border-radius: 24px;
            overflow: hidden;
            height: 100%;
            min-height: 300px;
            background: #d9e2e8;
            box-shadow: 0 12px 30px rgba(0,0,0,0.14);
        }

        /* Плавающая кнопка чата */
        .chat-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #4aa3df, #6ab0e6);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2rem;
            box-shadow: 0 8px 20px rgba(74, 163, 223, 0.5);
            cursor: pointer;
            transition: 0.3s;
            z-index: 1000;
            border: none;
            text-decoration: none;
        }

        .chat-button:hover {
            transform: scale(1.1);
            background: #3b8ec0;
        }

        /* Футер */
        footer {
            background: #081f44;
            color: white;
            padding: 40px 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-logo h3 {
            color: white;
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #ccddee;
            text-decoration: none;
            display: block;
            margin-bottom: 8px;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #4aa3df;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #405b6c;
            color: #99b0c0;
            font-size: 0.9rem;
        }

        @media (min-width: 769px) {
            .specialist-image {
                aspect-ratio: 3 / 4;
                background-size: contain;
                background-position: center;
            }
            .service-image {
                aspect-ratio: 4 / 3;
                background-size: contain;
                background-position: center;
            }
        }

        /* ========== АДАПТИВНОСТЬ (Mobile First + Desktop improvements) ========== */

        /* Планшеты и небольшие ноутбуки */
        @media (max-width: 992px) {
            h1 { font-size: 2rem; }
            h2 { font-size: 1.8rem; }
            .logo h2 { font-size: 1.55rem; }
            .specialists-grid,
            .pricing-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .hero-text {
                max-width: 100%;
            }
            .features {
                justify-content: center;
            }
            .kindergarten-grid {
                grid-template-columns: 1fr;
            }
            .contacts-grid {
                grid-template-columns: 1fr;
            }
            .hero-image {
                height: 350px;
            }
            section {
                padding: 60px 0;
            }
            .kindergarten-block {
                padding: 28px;
            }
            .contact-info {
                padding: 24px;
            }
            .chat-button {
                width: 52px;
                height: 52px;
                font-size: 1.6rem;
                bottom: 20px;
                right: 20px;
            }
        }

        /* Мобильные устройства (до 768px) */
        @media (max-width: 768px) {
            .container {
                padding: 0 14px;
            }
            .header-content {
                gap: 8px;
                min-height: 60px;
                padding: 8px 0;
            }
            .logo {
                max-width: calc(100% - 48px);
            }
            .logo img {
                width: 40px;
                height: 40px;
            }
            .logo h2 {
                font-size: 1.2rem;
                white-space: normal;
                line-height: 1.2;
            }
            .nav-menu {
                display: none;
                position: fixed;
                top: 68px;
                left: 14px;
                right: 14px;
                background: linear-gradient(180deg, #17478f 0%, #2f6fc5 100%);
                backdrop-filter: blur(10px);
                flex-direction: column;
                padding: 16px;
                box-shadow: 0 10px 20px rgba(0,0,0,0.1);
                gap: 12px;
                border-radius: 14px;
                z-index: 200;
            }
            .nav-menu.active {
                display: flex;
            }
            .nav-menu a {
                padding: 10px 0;
                font-size: 1rem;
                min-height: 44px;
                display: flex;
                align-items: center;
            }
            .mobile-menu-btn {
                display: block;
                margin-left: auto;
                font-size: 1.6rem;
            }

            /* Hero секция — мобильная */
            .hero {
                padding: 32px 0 40px;
            }
            .hero-text h1 {
                font-size: 1.6rem;
                line-height: 1.25;
            }
            .hero-text p {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }
            .features {
                gap: 10px;
                margin: 20px 0;
            }
            .feature-item {
                padding: 8px 14px;
                font-size: 0.85rem;
                gap: 6px;
            }
            .feature-item i {
                font-size: 1rem;
            }
            .hero-image {
                height: 220px;
                border-radius: 14px;
            }

            /* Секции */
            section {
                padding: 40px 0;
                content-visibility: auto;
                contain-intrinsic-size: 600px;
            }
            h1 { font-size: 1.6rem; }
            h2 { font-size: 1.4rem; margin-bottom: 1rem; }
            h2:after { width: 40px; height: 3px; }
            h3 { font-size: 1.2rem; }

            /* Сетки */
            .specialists-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                margin-top: 24px;
            }
            .pricing-grid {
                grid-template-columns: 1fr;
                gap: 18px;
                margin-top: 24px;
            }
            .social-btn {
                margin: 4px 0;
                padding: 5px 10px;
                font-size: 0.8rem;
            }
            .header-contact-buttons {
                gap: 4px;
                margin-left: 4px;
            }

            /* Карточки специалистов */
            .specialist-card {
                padding: 18px;
            }
            .specialist-image {
                width: calc(100% + 36px);
                margin: -18px -18px 12px;
                aspect-ratio: 16 / 9;
                background-size: contain;
                background-position: center;
            }
            .specialization {
                font-size: 1.05rem;
            }
            .services-list li {
                font-size: 0.9rem;
                padding: 4px 0;
            }

            /* Карточки услуг */
            .pricing-card-content {
                padding: 18px;
            }
            .pricing-card h4 {
                font-size: 1.1rem;
            }
            .price {
                font-size: 1.6rem;
                margin: 12px 0;
            }
            .service-image {
                width: 100%;
                margin: 0 0 12px;
                aspect-ratio: 16 / 9;
                background-size: contain;
                background-position: center;
            }

            /* Детский сад */
            .kindergarten-block {
                padding: 20px;
                border-radius: 18px;
            }
            .kindergarten-grid {
                gap: 20px;
            }
            .kindergarten-features li {
                font-size: 0.9rem;
                padding: 6px 0;
            }
            .price-table {
                padding: 16px;
            }
            .price-row {
                padding: 10px 0;
                font-size: 0.9rem;
            }
            .kindergartenSwiper {
                height: 240px;
            }
            .kindergartenSwiper .swiper-button-next,
            .kindergartenSwiper .swiper-button-prev {
                display: none;
            }
            .kindergartenSwiper .slide-caption {
                font-size: 0.85rem;
                padding: 20px 14px 10px;
            }

            /* Контакты */
            .contacts-grid {
                gap: 20px;
                margin-top: 24px;
            }
            .contact-info {
                padding: 18px;
                border-radius: 18px;
            }
            .contact-item {
                padding: 12px 0;
                gap: 12px;
                font-size: 0.9rem;
            }
            .contact-item i {
                font-size: 1.1rem;
                width: 24px;
            }
            .contact-action-buttons {
                gap: 10px;
                margin-top: 20px;
            }
            .contact-action-buttons .btn {
                padding: 10px 18px;
                font-size: 0.85rem;
                width: 100%;
                text-align: center;
            }
            .map-container {
                min-height: 220px;
                border-radius: 18px;
            }

            /* Футер */
            footer {
                padding: 30px 0 16px;
            }
            .footer-content {
                grid-template-columns: 1fr;
                gap: 24px;
                margin-bottom: 24px;
            }
            .footer-links a {
                font-size: 0.9rem;
            }
            .copyright {
                font-size: 0.8rem;
            }

            /* Плавающая кнопка */
            .chat-button {
                width: 48px;
                height: 48px;
                font-size: 1.4rem;
                bottom: 16px;
                right: 16px;
            }

            /* Кнопки */
            .btn {
                padding: 10px 18px;
                font-size: 0.85rem;
            }
            .booking-btn {
                padding: 7px 16px;
                font-size: 0.85rem;
            }
            .action-buttons {
                gap: 8px;
            }
            .action-buttons .btn,
            .action-buttons .booking-btn {
                width: 100%;
                text-align: center;
            }
        }

        /* Очень маленькие экраны (до 400px) */
        @media (max-width: 400px) {
            .container {
                padding: 0 10px;
            }
            .hero-text h1 {
                font-size: 1.35rem;
            }
            .hero-text p {
                font-size: 0.9rem;
            }
            .features {
                gap: 8px;
            }
            .feature-item {
                padding: 6px 12px;
                font-size: 0.78rem;
            }
            .logo h2 {
                font-size: 1rem;
            }
            .logo img {
                width: 34px;
                height: 34px;
            }
            .hero-image {
                height: 180px;
            }
            h1 { font-size: 1.35rem; }
            h2 { font-size: 1.2rem; }
            .kindergartenSwiper {
                height: 200px;
            }
            .contact-info {
                padding: 14px;
            }
            .chat-button {
                width: 42px;
                height: 42px;
                font-size: 1.2rem;
                bottom: 12px;
                right: 12px;
            }
        }

        /* Планшеты в landscape (768-992px) — улучшаем hero */
        @media (min-width: 769px) and (max-width: 992px) {
            .hero-content {
                gap: 24px;
            }
            .hero-text h1 {
                font-size: 1.8rem;
            }
            .hero-image {
                height: 300px;
            }
            .features {
                gap: 14px;
            }
            .feature-item {
                padding: 8px 16px;
                font-size: 0.9rem;
            }
            .kindergarten-block {
                padding: 30px;
            }
            .kindergartenSwiper {
                height: 320px;
            }
        }

        /* Десктоп — большие экраны (1200px+) */
        @media (min-width: 1200px) {
            .hero-text h1 {
                font-size: 2.8rem;
            }
            .hero-text p {
                font-size: 1.3rem;
            }
            .hero-image {
                height: 450px;
            }
            .features {
                gap: 24px;
            }
            .feature-item {
                padding: 12px 24px;
                font-size: 1.05rem;
            }
        }

        /* Улучшение touch-targets для мобильных */
        @media (hover: none) and (pointer: coarse) {
            .nav-menu a {
                min-height: 44px;
                padding: 10px 0;
            }
            .social-btn {
                min-height: 40px;
            }
            .btn, .booking-btn {
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
            .feature-item {
                min-height: 36px;
            }
            .chat-button {
                width: 52px;
                height: 52px;
            }
            .toggle-btn {
                min-height: 40px;
            }
        }

        /* --- Появление блоков, панель записи и карточки направлений --- */
        /* Скрываем карточки только при работающем JS: без JS контент читается сразу (ТЗ, п. 2) */
        html.mg-js .specialist-card,
        html.mg-js .pricing-card,
        html.mg-js .kindergarten-block {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        html.mg-js .specialist-card.mg-revealed,
        html.mg-js .pricing-card.mg-revealed,
        html.mg-js .kindergarten-block.mg-revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Закреплённая панель записи на мобильных (ТЗ, п. 7) */
        .mobile-booking-bar {
            display: none;
        }
        @media (max-width: 768px) {
            .mobile-booking-bar {
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 900;
                display: flex;
                gap: 8px;
                padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
                background: rgba(255, 255, 255, 0.97);
                box-shadow: 0 -4px 18px rgba(11, 47, 107, 0.16);
            }
            .mobile-booking-bar a {
                flex: 1;
                min-height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                font-weight: 600;
                text-decoration: none;
                font-size: 0.95rem;
            }
            .mobile-booking-bar .mbb-book {
                background: #0b2f6b;
                color: #fff;
            }
            .mobile-booking-bar .mbb-call {
                border: 2px solid #0b2f6b;
                color: #0b2f6b;
            }
            body {
                padding-bottom: 70px;
            }
        }

        /* Ссылки-карточки направлений и справочник цен (ТЗ, п. 3, 4) */
        .directions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px;
            margin-top: 26px;
        }
        .direction-card {
            display: block;
            padding: 20px;
            border-radius: 14px;
            background: #fff;
            border: 1px solid rgba(11, 47, 107, 0.12);
            color: inherit;
            text-decoration: none;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }
        .direction-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 26px rgba(11, 47, 107, 0.14);
        }
        .direction-card h3 {
            margin: 0 0 8px;
            font-size: 1.15rem;
            color: #0b2f6b;
        }
        .direction-card p {
            margin: 0;
            font-size: 0.95rem;
            color: #4a5568;
        }
        .offer-format,
        .offer-age {
            font-size: 0.9rem;
            color: #4a5568;
        }
        .breadcrumbs {
            font-size: 0.9rem;
            color: #4a5568;
            margin-bottom: 14px;
        }
        .breadcrumbs a {
            color: #0b2f6b;
        }

        /* --- Страницы направлений /uslugi/<slug>/ (ТЗ, п. 3, 5) --- */
        a.logo {
            text-decoration: none;
            color: inherit;
        }
        .breadcrumbs ol {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 0;
            padding: 0;
        }
        .breadcrumbs li {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .breadcrumbs li + li::before {
            content: '/';
            color: rgba(11, 47, 107, 0.4);
        }
        main.service-page .breadcrumbs {
            padding: 18px 0 0;
        }
        .service-page {
            padding: 0 0 60px;
        }
        .service-page h1 {
            font-size: 2.2rem;
            color: #0b2f6b;
            margin: 8px 0 12px;
        }
        .service-lead {
            font-size: 1.08rem;
            color: #374151;
            max-width: 900px;
            margin-bottom: 18px;
        }
        .service-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 28px;
        }
        .service-actions .booking-btn,
        .service-actions .btn {
            min-height: 46px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .service-block {
            margin-bottom: 40px;
        }
        .service-includes {
            list-style: none;
            display: grid;
            gap: 10px;
            padding: 0;
            margin: 0;
            max-width: 900px;
        }
        .service-includes li {
            position: relative;
            padding-left: 30px;
            color: #374151;
        }
        .service-includes li::before {
            content: '\2713';
            position: absolute;
            left: 0;
            top: 0;
            color: #2f6fc5;
            font-weight: 700;
        }
        .faq-list {
            display: grid;
            gap: 10px;
            max-width: 900px;
        }
        .faq-item {
            background: #fff;
            border: 1px solid rgba(11, 47, 107, 0.12);
            border-radius: 12px;
            padding: 14px 18px;
        }
        .faq-item summary {
            cursor: pointer;
            font-weight: 600;
            color: #0b2f6b;
            list-style: none;
        }
        .faq-item summary::-webkit-details-marker {
            display: none;
        }
        .faq-item summary::after {
            content: '+';
            float: right;
            font-weight: 700;
            color: #2f6fc5;
        }
        .faq-item[open] summary::after {
            content: '\2212';
        }
        .faq-item p {
            margin: 10px 0 0;
            color: #374151;
        }

        /* Блок «Кому подходят занятия» */
        .audience-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 24px;
        }
        .audience-card {
            background: #fff;
            border: 1px solid rgba(11, 47, 107, 0.12);
            border-radius: 16px;
            padding: 22px 24px;
            box-shadow: 0 6px 18px rgba(11, 47, 107, 0.06);
        }
        .audience-card h3 {
            margin: 0 0 10px;
            color: #0b2f6b;
            font-size: 1.2rem;
        }
        .audience-card p {
            margin: 0;
            color: #374151;
            line-height: 1.6;
        }

        /* Блок «О центре»: список причин выбрать центр */
        .about-list {
            list-style: none;
            display: grid;
            gap: 10px;
            padding: 0;
            margin: 18px 0 0;
            max-width: 900px;
        }
        .about-list li {
            position: relative;
            padding-left: 30px;
            color: #374151;
        }
        .about-list li i {
            position: absolute;
            left: 0;
            top: 2px;
            color: #2f6fc5;
        }

        /* Подпись под блоком «Частые вопросы» */
        .faq-note {
            margin: 18px 0 0;
            color: #374151;
        }
        .faq-note a {
            color: #2f6fc5;
        }

        /* Предпочтение уменьшенному движению */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* Тёмная тема — минимальная поддержка */
        @media (prefers-color-scheme: dark) {
            .hero {
                background: linear-gradient(135deg, #f8faff 0%, #e4efff 100%);
            }
        }
