@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

/* ==========================================================================
   1. Переменные (Colors & Settings) из прототипа
   ========================================================================== */
:root {
    /* Цвета */
    --color-primary: #5A58F2; /* Синий/Фиолетовый */
    --color-primary-hover: #4846c8;
    --color-accent: #FDD13B;  /* Желтый */
    --color-accent-hover: #e5b925;
    
    --color-text-main: #1A1A1A; /* Темный текст */
    --color-text-muted: #7A7C87; /* Серый текст (описания) */
    
    --color-bg-light: #F6F7FA; /* Светло-серый фон для карточек */
    --color-white: #FFFFFF;
    
    /* Сетка и скругления */
    --container-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Шрифты */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. Типографика
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

/* ==========================================================================
   4. Кнопки (UI)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
}

.btn-yellow {
    background-color: var(--color-accent);
    color: var(--color-text-main);
}
.btn-yellow:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-bg-light);
}

/* ==========================================================================
   5. Шапка (Header)
   ========================================================================== */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #E5E7EB;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-nav ul {
    display: flex;
    gap: 30px;
}
.header-nav a {
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
}
.header-nav a:hover {
    color: var(--color-primary);
}
/* Акцент на Сертификаты и Мастер-классы в меню */
.nav-accent {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   6. Секции (Основа по прототипу)
   ========================================================================== */
section {
    padding: 80px 0;
}


/* ==========================================================================
   Главный экран (Hero) — Чистая изолированная верстка
   ========================================================================== */
/* ==========================================================================
   Фикс шапки и кнопок
   ========================================================================== */
.header {
    border-bottom: none !important; /* Убираем серую полосу под меню */
}

.btn {
    white-space: nowrap; /* Запрещаем тексту в кнопках переноситься на 2 строки */
}




/* ==========================================================================
   Главный экран (Hero) — 1 в 1 по архитектуре макета
   ========================================================================== */
.hero-section {
    padding-top: 10px;
    padding-bottom: 50px;
}

/* Главная единая карточка со скруглением */
.hero-card {
    position: relative;
    border-radius: 32px;
    background-color: #FAFAFC;
    overflow: hidden; /* Обрезает абсолютно всё по углам 32px */
}

/* Фото на всю высоту справа */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background-size: cover;
    background-position: center right;
    z-index: 1;
}

/* Растворяющаяся белая маска слева */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, 
        #FAFAFC 0%, 
        #FAFAFC 38%, 
        rgba(250, 250, 252, 0.85) 52%, 
        rgba(250, 250, 252, 0) 75%
    );
}

/* Векторные линии (Жёлтая дуга + Синий луч) */
.hero-decor-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Внутренняя структура */
.hero-inner {
    position: relative;
    z-index: 4;
    padding: 44px 44px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}

.hero-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.hero-text-col {
    max-width: 480px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid #E2E8F0;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #7A7C87;
    background: #FFFFFF;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    color: #1A1A1A;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: #5A58F2;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #7A7C87;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-actions .btn,
.hero-actions .btn-outline-white {
    white-space: nowrap !important;
}

.btn-glow {
    box-shadow: 0 10px 25px rgba(90, 88, 242, 0.35);
}

.btn-outline-white {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1A1A1A;
    padding: 16px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-white:hover {
    border-color: #5A58F2;
    color: #5A58F2;
}

/* Видео-кнопка */
.hero-video-col {
    padding-right: 20px;
}

.video-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.video-play-btn:hover {
    transform: scale(1.05);
}

.play-circle {
    width: 64px;
    height: 64px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding-left: 3px;
    flex-shrink: 0;
}

.play-text {
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.play-text strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.play-text small {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.95;
}

/* Виджет преимуществ (ВНУТРИ карточки баннера) */
.hero-features-bar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
    padding: 18px 28px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #1A1A1A;
}

.feature-item small {
    font-weight: 400;
    color: #7A7C87;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-light-blue { background: #F0F2FE; color: #5A58F2; }
.icon-light-orange { background: #FFF7ED; color: #FA9A2B; }
.icon-light-purple { background: #F8F5FF; color: #A855F7; }


/* Карточки занятий (Для детей, взрослых...) */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.class-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: transform 0.3s;
}
.class-card:hover {
    transform: translateY(-5px);
}
.class-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Цвета иконок из прототипа */
.icon-blue { background: #EAE9FF; color: var(--color-primary); }
.icon-green { background: #E7F7EC; color: #34A853; }
.icon-orange { background: #FDECE5; color: #FA6400; }
.icon-purple { background: #F3E8FF; color: #A855F7; }

/* Блок "Почему выбирают drumKit" */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.about-experience {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 700;
}
.about-experience span {
    display: block;
    font-size: 32px;
    color: var(--color-primary);
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Форма заявки (Синий блок) */
.promo-banner {
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: 40px 60px;
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.promo-form-wrapper {
    width: 400px;
}
.promo-form input {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-family: var(--font-main);
}
.promo-form .btn-yellow {
    width: 100%;
}
.form-agreement {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

/* Новости и события */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-content {
    padding: 24px;
}
.news-date {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}
.news-title {
    font-size: 20px;
    margin-bottom: 16px;
}

/* Подвал (Footer) */
.footer {
    border-top: 1px solid #E5E7EB;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul a {
    color: var(--color-text-muted);
}
.footer-col ul a:hover {
    color: var(--color-primary);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #E5E7EB;
    padding-top: 24px;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Top Bar */
.top-bar {
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 0;
    font-size: 13px;
    color: var(--color-text-muted);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-contacts {
    display: flex;
    gap: 24px;
    align-items: center;
}
.top-contacts a {
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}


@media (min-width: 900px) {
    .classes-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .hero-features { grid-template-columns: repeat(4, 1fr) !important; }
}


.header-nav ul { list-style: none; padding: 0; margin: 0; }
.header-nav ul li { list-style: none; }


/* Логотип */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img {
    height: 48px !important;
    width: auto !important;
    max-width: 180px;
    object-fit: contain;
}

/* Меню: убираем точки у li */
.header-nav ul {
    display: flex;
    gap: 30px;
    list-style: none !important;
    margin: 0;
    padding: 0;
}
.header-nav ul li {
    list-style: none !important;
}


/* ==========================================================================
   FIX: Hero в 2 колонки (как на прототипе)
   ========================================================================== */
.hero {
    padding: 60px 0 100px;
    margin: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #FAFBFF 0%, #FFFFFF 100%);
    overflow: visible;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content {
    max-width: 560px;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--color-text-main);
}
.hero h1 span {
    color: var(--color-primary);
}
.hero-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    object-fit: cover;
    max-height: 480px;
    box-shadow: 0 20px 60px rgba(90, 88, 242, 0.15);
}
.hero-video-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 12px 20px 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    cursor: pointer;
}
.hero-video-btn .play-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.hero-video-btn small {
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Features bar */
.hero-features {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    padding: 28px 32px;
    margin: -50px auto 0;
    position: relative;
    z-index: 10;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.feature-item small {
    font-weight: 400;
    color: var(--color-text-muted);
}
.feature-emoji {
    font-size: 28px;
    flex-shrink: 0;
}

/* ==========================================================================
   FIX: Наши занятия — 4 колонки
   ========================================================================== */
.section-classes {
    padding: 100px 0 80px;
}
.section-lead {
    color: var(--color-text-muted);
    margin-top: -28px;
    margin-bottom: 40px;
    font-size: 16px;
}
.classes-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
}
.class-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.class-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.class-card p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.class-card > a {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}
.class-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптив */
@media (max-width: 1024px) {
    .classes-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { order: -1; }
    .hero h1 { font-size: 36px; }
}
@media (max-width: 600px) {
    .classes-grid { grid-template-columns: 1fr !important; }
    .hero-features { grid-template-columns: 1fr 1fr !important; }
}



/* ==========================================================================
   About / Почему drumKit
   ========================================================================== */
.section-about {
    padding: 80px 0;
}
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.about-experience {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    line-height: 1.3;
}
.about-experience span {
    display: block;
    font-size: 32px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
}
.about-lead {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 16px;
    line-height: 1.6;
}
.about-list {
    margin-bottom: 32px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 16px;
}
.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #EAE9FF;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   Promo form (синий баннер)
   ========================================================================== */
.section-promo {
    padding: 40px 0 80px;
}
.promo-banner {
    background: linear-gradient(135deg, #5A58F2 0%, #7B79F7 100%);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}
.promo-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}
.promo-img {
    width: 120px;
    height: auto;
}
.promo-text h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}
.promo-text p {
    opacity: 0.9;
    font-size: 16px;
    margin: 0;
}
.promo-form-wrapper {
    width: 340px;
    flex-shrink: 0;
}
.promo-form input[type="text"],
.promo-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-family: var(--font-main);
    font-size: 15px;
}
.form-agreement {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 14px;
    cursor: pointer;
}
.form-agreement input {
    margin-top: 2px;
}
.promo-form .btn-yellow {
    width: 100%;
}
.form-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: rgba(255,255,255,0.2);
}
.form-message.success {
    background: rgba(255,255,255,0.95);
    color: #1a7f37;
}
.form-message.error {
    background: #fff0f0;
    color: #c62828;
}

/* ==========================================================================
   News
   ========================================================================== */
.section-news {
    padding: 40px 0 80px;
}
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Выравниваем кнопку по нижней линии текста */
    margin-bottom: 40px;
    gap: 20px;
}

.section-header-row .section-lead {
    margin-top: 0 !important; /* Убираем тот самый отрицательный отступ */
    margin-bottom: 0;
    font-size: 16px;
    color: var(--color-text-muted);
    display: block;
}

.section-header-row h2 {
    margin-bottom: 8px !important; /* Небольшой отступ до подписи */
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.news-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #E8E9F0;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-content {
    padding: 24px;
}
.news-date {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}
.news-title {
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.35;
}
.news-title a {
    color: var(--color-text-main);
}
.news-title a:hover {
    color: var(--color-primary);
}
.news-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

/* Benefits strip */
.section-benefits {
    padding: 0 0 80px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.benefit-icon {
    font-size: 24px;
}

/* Map */
.section-map {
    padding: 0 0 80px;
}
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    padding: 40px;
}
.map-info h2 {
    margin-bottom: 12px;
}
.map-info p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.map-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}
.map-contacts-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.map-contacts-card h4 {
    margin-bottom: 8px;
}
.map-contacts-card p {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}
.map-meta {
    font-size: 13px !important;
}
.map-messengers {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.map-messengers a {
    font-size: 13px;
    font-weight: 600;
}

/* Footer extras */
.footer-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 16px 0;
    max-width: 260px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}
.footer-contacts li {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Responsive for new blocks */
@media (max-width: 1024px) {
    .about-section,
    .map-grid,
    .map-card {
        grid-template-columns: 1fr;
    }
    .promo-banner {
        flex-direction: column;
        padding: 36px 28px;
    }
    .promo-form-wrapper {
        width: 100%;
    }
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .news-grid,
    .benefits-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ==========================================================================
   Логотип (Иконка + Текст + Подпись по макету)
   ========================================================================== */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

/* Если захочешь сделать Kit синим или особым акцентом */
.brand-title span {
    color: var(--color-text-main); /* Или var(--color-primary) */
}

.brand-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.brand-logo:hover .brand-title {
    color: var(--color-primary);
}




/* Фикс кнопок в Hero */
.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: nowrap;
}

.hero-actions .btn,
.hero-actions .btn-outline-white {
    white-space: nowrap !important; /* Запрещаем перенос текста на 2 строки */
}



/* ==========================================================================
   АДАПТИВНОСТЬ (Responsive)
   ========================================================================== */

/* Скрываем бургер на десктопе */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 100;
}
.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 11px; }
.mobile-menu-toggle span:nth-child(3) { top: 22px; }

/* Анимация крестика */
.mobile-menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); top: 11px; }


/* --- ПЛАНШЕТЫ (до 1024px) --- */
@media (max-width: 1024px) {
    /* Шапка */
    .header-container { position: relative; }
    .header-nav ul { gap: 16px; font-size: 14px; }
    
    /* Hero */
    .hero-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .hero-video-col { padding-right: 0; }
    .hero-features-bar {
        grid-template-columns: 1fr 1fr !important; /* 2 колонки для преимуществ */
    }
    .hero-bg { width: 100%; } /* Фото на всю ширину под градиентом */
    
    /* Остальные секции */
    .classes-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .about-section { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { height: 320px; }
    .promo-banner { flex-direction: column; text-align: center; padding: 40px 32px; }
    .promo-form-wrapper { width: 100%; max-width: 400px; margin: 0 auto; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .map-grid { grid-template-columns: 1fr; }
    .map-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}


/* --- СМАРТФОНЫ (до 768px) --- */
@media (max-width: 768px) {
    
    /* Глобальные отступы секций */
    section { padding: 40px 0; }
    .container { padding: 0 16px; }

    /* Top bar */
    .top-contacts span, .top-contacts a:not([href^="tel"]) { display: none; } /* Оставляем только телефон */
    .top-bar .btn { display: none; } /* Прячем кнопку "Записаться" из топ-бара на мобилке */

    /* Мобильное меню */
    .mobile-menu-toggle { display: block; }
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 99;
    }
    .header-nav.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .header-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Блокировка скролла, когда меню открыто */
    body.menu-open { overflow: hidden; }

    /* Hero (Мобильная версия) */
    .hero-section { padding-top: 0; padding-bottom: 30px; }
    .hero-card { border-radius: 20px; min-height: auto; display: block; }
    .hero-inner { padding: 32px 20px 24px; }
    
    /* На мобилке меняем направление градиента: сверху вниз */
    .hero-overlay {
        background: linear-gradient(180deg, #FAFAFC 0%, #FAFAFC 55%, rgba(250,250,252,0.9) 70%, rgba(250,250,252,0) 100%);
    }
    .hero-title { font-size: 32px; margin-bottom: 12px; }
    .hero-desc { font-size: 14px; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn, .hero-actions .btn-outline-white { width: 100%; text-align: center; }
    
    .hero-features-bar { 
        grid-template-columns: 1fr !important; /* 1 колонка */
        padding: 16px;
        margin-top: 20px;
    }

    /* Типографика */
    h2 { font-size: 28px; margin-bottom: 24px; }
    
    /* Сетки */
    .classes-grid { grid-template-columns: 1fr !important; }
    .news-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* Секция новостей */
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    
    /* Промо-баннер */
    .promo-img { display: none; } /* Прячем картинку подарка, чтобы сэкономить место */
    .promo-banner { padding: 32px 20px; }
    
    /* Карта */
    .map-info { margin-bottom: 30px; }
}



/* ==========================================================================
   Страница каталога услуг (Archive Service)
   ========================================================================== */
.services-archive-page {
    padding: 30px 0 60px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.breadcrumbs a {
    color: var(--color-text-muted);
}
.breadcrumbs a:hover {
    color: var(--color-primary);
}

.archive-header {
    margin-bottom: 32px;
}
.archive-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

/* Фильтры-табы */
.services-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--color-bg-light);
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #EAE9FF;
    color: var(--color-primary);
}

.filter-tab.active {
    background: var(--color-primary);
    color: #FFFFFF;
}

/* Сетка карточек услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F3F4F6;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.04);
}

/* Бейджик с ценой на фото */
.service-card-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-tags {
    margin-bottom: 10px;
}

.tag-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: #EAE9FF;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 6px;
}

.service-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card-title a {
    color: var(--color-text-main);
}

.service-card-title a:hover {
    color: var(--color-primary);
}

.service-card-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-card-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

/* Адаптивность для каталога */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .services-filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .filter-tab { flex-shrink: 0; }
}


/* ==========================================================================
   FIX: Заголовки каталога и карточки без фото
   ========================================================================== */
.archive-header {
    margin-bottom: 36px;
    display: block;
    clear: both;
}

.archive-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-top: 6px;
    margin-bottom: 8px;
    line-height: 1.2;
    display: block;
}

.archive-lead {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
    display: block;
}

/* Заглушка, если нет фото */
.service-card-no-img {
    width: 100%;
    height: 100%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фикс чекбокса согласия в синей форме */
.form-agreement {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 16px !important;
    cursor: pointer;
    text-align: left;
}

.form-agreement input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
}



/* ==========================================================================
   Типографика для внутренних страниц (редактор Gutenberg)
   ========================================================================== */
.entry-content {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 32px;
    margin-top: 2em;
    margin-bottom: 0.8em;
    font-weight: 700;
    color: #1A1A1A;
}

.entry-content h3 {
    font-size: 24px;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: #1A1A1A;
}

.entry-content ul {
    margin-bottom: 1.5em;
    padding-left: 0; 
    margin-left: 0;
}

.entry-content ul li {
    margin-bottom: 0.8em;
    list-style-type: disc !important;
    list-style-position: inside !important; /* Точка идет прямо в тексте */
    padding-left: 20px;
    text-indent: -20px; /* Ровняет многострочный текст под текстом, а не под точкой */
}

.entry-content ul li::marker {
    color: var(--color-primary);
    font-size: 1.2em;
}

/* На всякий случай гасим старые костыли, если остались */
.entry-content ul li::before {
    display: none !important;
}


.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 24px;
}

.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    background: #F3F4F6;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: 12px;
    margin: 1.5em 0;
    width: 100%;
    height: auto;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(90, 88, 242, 0.3);
    text-underline-offset: 4px;
}

.entry-content a:hover {
    text-decoration-color: var(--color-primary);
}


/* Фикс текста согласия на светлом фоне (на странице услуги) */
.service-sidebar .form-agreement {
    color: var(--color-text-muted) !important;
}


/* ==========================================================================
   Архив "Полезное" (Журнальный список статей)
   ========================================================================== */
.useful-archive-page {
    padding: 30px 0 80px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.article-list-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid #E5E7EB;
}

.article-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-list-thumb {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}

.article-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-list-item:hover .article-list-thumb img {
    transform: scale(1.05);
}

.article-list-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 800;
}

.article-list-title a {
    color: var(--color-text-main);
}

.article-list-title a:hover {
    color: var(--color-primary);
}

.article-list-excerpt {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Пагинация */
.archive-pagination .nav-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.archive-pagination a, 
.archive-pagination span {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: #F3F4F6;
    color: var(--color-text-main);
    font-weight: 600;
}
.archive-pagination span.current {
    background: var(--color-primary);
    color: #fff;
}
.archive-pagination a:hover {
    background: #EAE9FF;
    color: var(--color-primary);
}

/* Адаптив списка статей */
@media (max-width: 900px) {
    .article-list-item {
        flex-direction: column;
        gap: 24px;
    }
    .article-list-thumb {
        width: 100%;
        height: 240px;
    }
    .article-list-title {
        font-size: 24px;
    }
}


/* ==========================================================================
   Залипающая шапка (Sticky Header)
   ========================================================================== */
.site-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Легкая тень при скролле */
}


/* ==========================================================================
   Сетка: контент + боковая форма (услуги / статьи / новости)
   ========================================================================== */
.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 360px);
    gap: 48px;
    align-items: start;
    padding: 10px 0 80px;
}

.service-main-info {
    min-width: 0; /* чтобы длинный текст не ломал grid */
}

/* Липнет ВСЯ правая колонка (форма + другие программы) */
.service-sidebar {
    width: 100%;
    position: sticky;
    top: 135px;          /* ниже залипшей шапки + небольшой зазор */
    align-self: start;
}

/* У формы убираем sticky — она просто внутри колонки */
.service-form-card {
    background: var(--color-bg-light);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    position: static;    /* было: sticky */
    top: auto;           /* было: 120px */
}

.service-form-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-form-card .promo-form input[type="text"],
.service-form-card .promo-form input[type="tel"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #fff;
    font-family: var(--font-main);
}

.service-form-card .form-agreement {
    color: var(--color-text-muted) !important;
    margin-bottom: 16px !important;
}

.service-form-card .btn {
    width: 100%;
}

.service-form-card .form-message {
    margin-top: 12px;
    font-size: 14px;
}

/* На планшетах/мобилках форма уходит вниз */
@media (max-width: 992px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 48px;
    }
    .service-sidebar {
        position: static; /* на мобилке sticky не нужен */
        top: auto;
    }
}

/* Иллюстрация в промо-баннере */
.promo-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================================
   Выравнивание изображений в редакторе (alignleft, alignright, aligncenter)
   ========================================================================== */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Картинка слева, текст обтекает справа */
.entry-content img.alignleft,
.entry-content .alignleft img,
.entry-content .alignleft {
    float: left;
    margin: 6px 28px 20px 0 !important;
    max-width: 45%;
    width: auto;
}

/* Картинка справа, текст обтекает слева */
.entry-content img.alignright,
.entry-content .alignright img,
.entry-content .alignright {
    float: right;
    margin: 6px 0 20px 28px !important;
    max-width: 45%;
    width: auto;
}

/* По центру */
.entry-content img.aligncenter,
.entry-content .aligncenter img,
.entry-content .aligncenter {
    display: block;
    margin: 20px auto !important;
    clear: both;
}

/* Поднописи к фото (wp-caption) */
.entry-content .wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}
.entry-content .wp-caption-text {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* На мобильных экранах сбрасываем обтекание, чтобы картинка не сжималась */
@media (max-width: 600px) {
    .entry-content img.alignleft,
    .entry-content img.alignright,
    .entry-content .alignleft,
    .entry-content .alignright {
        float: none !important;
        display: block;
        margin: 16px auto !important;
        max-width: 100% !important;
    }
}


/* ==========================================================================
   Маркированный список (исправление для обтекания картинок)
   ========================================================================== */
.entry-content ul {
    margin-bottom: 1.5em;
    padding-left: 24px;
    list-style: disc;
}

.entry-content ul li {
    margin-bottom: 0.6em;
    position: static !important; /* Отключаем relative */
    list-style-type: disc !important;
}

/* Красивая фиолетовая точка через нативный ::marker */
.entry-content ul li::marker {
    color: var(--color-primary);
    font-size: 1.1em;
}

/* Полностью убираем старые псевдоэлементы */
.entry-content ul li::before {
    display: none !important;
    content: none !important;
}



/* ==========================================================================
   Боковое меню навигации
   ========================================================================== */
.sidebar-nav {
    background: #F6F7FA;
    border-radius: var(--radius-lg);
    padding: 16px 0;
    margin-bottom: 24px;
}

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

.sidebar-nav li {
    list-style: none;
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 12px 24px;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    color: var(--color-primary);
    background: #EAE9FF;
    border-left-color: var(--color-primary);
}

/* Активный пункт меню */
.sidebar-nav .current-menu-item > a {
    color: var(--color-primary);
    font-weight: 700;
    background: #EAE9FF;
    border-left-color: var(--color-primary);
}



/* ==========================================================================
   Маркированный список: Финальное решение
   ========================================================================== */
.entry-content ul {
    margin-bottom: 1.5em;
    padding-left: 20px;
    list-style: none; /* Убираем стандартные точки */
}

.entry-content ul li {
    margin-bottom: 0.8em;
    position: relative;
    padding-left: 25px;
    overflow: hidden; /* МАГИЯ: заставляет текст списка не затекать под картинку */
}

/* Рисуем красивую точку через псевдоэлемент, которая всегда будет на месте */
.entry-content ul li::before {
    content: "•";
    color: var(--color-primary);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -4px;
    line-height: 1;
    display: block !important;
}




/* ==========================================================================
   Видео галерея: фрейм с оверлеем и всплывающее окно
   ========================================================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

/* Отключаем клики внутри маленького фрейма карточки */
.video-card-thumb iframe,
.video-card-thumb .responsive-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important; /* Ключевая магия: клики пролетают сквозь iframe в оверлей */
}

/* Кликабельный слой поверх плеера */
.video-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-card:hover .video-card-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.video-play-btn-icon {
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    padding-left: 3px;
    transition: transform 0.3s ease;
}

.video-card:hover .video-play-btn-icon {
    transform: scale(1.1);
}

.video-card-body {
    padding: 20px;
}

.video-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--color-text-main);
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.video-modal-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    width: 100%;
}

/* Разрешаем клики внутри всплывающего окна */
.video-modal-body iframe,
.video-modal-body object,
.video-modal-body embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: auto !important; 
}

.video-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .video-grid { grid-template-columns: 1fr; }
    .video-modal-close { top: 10px; right: 10px; z-index: 10; color: #fff; }
}



/* ==========================================================================
   Новый современный стиль страницы Услуги
   ========================================================================== */
.service-page-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}


/* Акцентная плашка цены */
.service-price-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #F0F2FE 0%, #EAE9FF 100%);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    border: 1px solid rgba(90, 88, 242, 0.15);
}

.service-price-card .price-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.service-price-card .price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
}

.service-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #F8F9FC;
    border: 1px solid #EAECEF;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.info-bar-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-bar-price small {
    font-size: 13px;
    color: var(--color-text-muted);
}

.info-bar-price strong {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 800;
}

.info-bar-specs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main);
}


/* Быстрые фишки (Длительность, Формат) */
.service-quick-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.sq-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-main);
    background: #F9FAFB;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #E5E7EB;
}

.sq-icon {
    font-size: 16px;
}

/* Блок видео внизу услуги */
.service-video-block {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid #E5E7EB;
}

.service-video-block h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.service-video-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}


.service-cover-compact {
    width: 100%;
    height: 260px; /* Фиксированная небольшая высота */
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.service-cover-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .service-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .info-bar-specs {
        flex-wrap: wrap;
        gap: 10px;
    }
    .service-cover-compact {
        height: 200px;
    }
}

/* ==========================================================================
   Стильная Галерея фотографий из редактора WordPress ([gallery])
   ========================================================================== */
.entry-content .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin: 36px 0 !important;
    padding: 0 !important;
}

.entry-content .gallery-item {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.entry-content .gallery-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    transition: transform 0.3s ease;
    margin: 0 !important;
}

.entry-content .gallery-item:hover .gallery-icon img {
    transform: scale(1.05);
}

.entry-content .gallery-caption {
    display: none !important;
}

@media (max-width: 600px) {
    .entry-content .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .service-page-title {
        font-size: 30px;
    }
}


/* ==========================================================================
   Новая кастомная Галерея Услуги
   ========================================================================== */
/* ==========================================================================
   Галерея Услуги без огромных отступов + Lightbox
   ========================================================================== */
.entry-content p:last-child {
    margin-bottom: 0 !important; /* Убираем лишний отступ у последнего абзаца */
}

.service-photos-block {
    margin-top: 20px;  /* Уменьшили отступ сверху */
    padding-top: 20px; /* Уменьшили внутренний отступ */
    border-top: 1px solid #E5E7EB;
}

.service-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-photo-item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #F3F4F6;
    cursor: pointer;
}

.service-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-photo-item:hover img {
    transform: scale(1.05);
}

/* --- ВСПЛЫВАЮЩЕЕ ОКНО ДЛЯ ФОТО (LIGHTBOX) --- */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.image-modal-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 600px) {
    .service-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .image-modal-close {
        top: -40px;
        right: 0;
    }
}


/* ==========================================================================
   Lightbox: стрелки и счётчик
   ========================================================================== */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.image-modal-content {
    position: relative;
    z-index: 2;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-content img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    user-select: none;
}

.image-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    z-index: 3;
}

.image-modal-close:hover {
    opacity: 0.8;
}

/* Стрелки */
.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.image-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.image-modal-prev {
    left: 16px;
}

.image-modal-next {
    right: 16px;
}

/* Счётчик 2 / 5 */
.image-modal-counter {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .image-modal-nav {
        width: 40px;
        height: 40px;
    }
    .image-modal-prev {
        left: 8px;
    }
    .image-modal-next {
        right: 8px;
    }
    .image-modal-close {
        top: 12px;
        right: 16px;
        position: fixed;
    }
}


/* ==========================================================================
   Стили оформления контента услуг (Оформительские блоки)
   ========================================================================== */

/* 1. Лид-абзац (первый крупный абзац) */
.entry-content .lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-text-main);
    font-weight: 500;
    margin-bottom: 28px;
}

/* 2. Карточки цен внутри текста */
.price-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0 32px;
}

.price-card-item {
    background: #F8F9FC;
    border: 1px solid #EAECEF;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-card-item.accent {
    background: #F0F2FE;
    border-color: rgba(90, 88, 242, 0.2);
}

.price-card-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.price-card-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-primary);
}

.price-card-value small {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* 3. Акцентная врезка (Callout) */
.callout-box {
    background: linear-gradient(135deg, #F0F2FE 0%, #EAE9FF 100%);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 24px 0 32px;
    font-size: 16px;
    color: var(--color-text-main);
}

.callout-box a {
    color: var(--color-primary);
    text-decoration: none;
}

/* 4. Список с фиолетовыми галочками (ul.check-list) */
.entry-content ul.check-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 24px 0 32px !important;
}

.entry-content ul.check-list li {
    position: relative !important;
    padding-left: 36px !important;
    margin-bottom: 14px !important;
    font-size: 16px;
    line-height: 1.5;
    list-style: none !important;
    text-indent: 0 !important;
    overflow: visible !important;
}

.entry-content ul.check-list li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 24px !important;
    height: 24px !important;
    background: #EAE9FF !important;
    color: var(--color-primary) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* 5. Информационное окно (Notice) */
.info-notice {
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 28px 0;
    font-size: 15px;
    color: #9A3412;
    line-height: 1.5;
}

/* 6. Финальная плашка с призывом (Mini CTA) */
.cta-mini-card {
    background: #FAFAFC;
    border: 2px dashed #E2E8F0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-main);
}

@media (max-width: 600px) {
    .price-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Top bar: сертификаты + компактная кнопка
   ========================================================================== */
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.top-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-main);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.top-item:hover {
    color: var(--color-primary);
}

.top-gift {
    font-weight: 600;
    color: var(--color-primary) !important;
}

.top-gift:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* ==========================================================================
   Модалка записи
   ========================================================================== */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lead-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 25, 0.55);
    backdrop-filter: blur(6px);
}

.lead-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.lead-modal.is-open .lead-modal-dialog {
    transform: translateY(0) scale(1);
}

.lead-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
}

.lead-modal-close:hover {
    color: #111;
}

.lead-modal-header {
    margin-bottom: 20px;
    padding-right: 24px;
}

.lead-modal-header h3 {
    font-size: 22px;
    margin: 0 0 8px;
    font-weight: 800;
}

.lead-modal-header p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.lead-modal-form input[type="text"],
.lead-modal-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 12px;
    font-family: var(--font-main);
    font-size: 15px;
    background: #fff;
}

.lead-modal-agree {
    color: var(--color-text-muted) !important;
    margin-bottom: 16px !important;
}

body.lead-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .top-gift {
        /* на очень узких можно оставить — или скрыть иконкой только */
    }
    .top-contacts .top-item:not(.top-gift):not([href^="tel"]) {
        /* при желании можно прятать часть пунктов */
    }
}


/* ==========================================================================
   Подсветка активного пункта меню в шапке
   ========================================================================== */
.header-nav ul li.current-menu-item > a,
.header-nav ul li.current-menu-ancestor > a,
.header-nav ul li.current-menu-parent > a,
.header-nav ul li.current_page_parent > a {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    position: relative;
}

/* Маленькая аккуратная фиолетовая точка под активным пунктом */
.header-nav ul li.current-menu-item > a::after,
.header-nav ul li.current-menu-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}


/* ==========================================================================
   Виджет "Другие программы" в боковой колонке
   ========================================================================== */
.sidebar-other-services {
    background: #F8F9FC;
    border: 1px solid #EAECEF;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-top: 24px;
}

.sidebar-other-services .widget-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 16px;
}

.other-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.other-service-item:hover {
    border-color: var(--color-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(90, 88, 242, 0.08);
}

.other-service-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F3F4F6;
}

.other-service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.other-service-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.other-service-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.other-service-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.3;
    /* Убираем обрезку */
    white-space: normal !important; 
    overflow: visible !important;
    text-overflow: clip !important;
    display: block;
    margin-bottom: 2px;
}

/* Настраиваем выравнивание элементов в карточке, 
   чтобы иконка не прыгала, если текст стал в 2-3 строки */
.other-service-item {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.other-service-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Корректировка липкости всей правой колонки */
.service-sidebar {
    position: sticky;
    top: 100px;
}



/* ==========================================================================
   FIX: Точный отступ для залипающего сайдбара (с учетом WP Admin Bar)
   ========================================================================== */

/* Для обычных гостей сайта */
.service-sidebar {
    position: sticky !important;
    top: 155px !important; /* Увеличенный отступ, чтобы гарантированно не налезать */
    align-self: start !important;
}

/* Для залогиненного администратора (учитывает +32px черной панели WP) */
body.admin-bar .service-sidebar {
    top: 187px !important;
}

/* На мобильных устройствах сбрасываем sticky */
@media (max-width: 992px) {
    .service-sidebar,
    body.admin-bar .service-sidebar {
        position: static !important;
        top: auto !important;
    }
}



/* Компактный бейдж стоимости на странице услуги */
.service-simple-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0F2FE;
    border: 1px solid rgba(90, 88, 242, 0.15);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--color-text-main);
}

.service-simple-price-badge span {
    color: var(--color-text-muted);
}

.service-simple-price-badge strong {
    color: var(--color-primary);
    font-weight: 800;
}


/* ==========================================================================
   Каталог услуг: ровные заголовки при разном числе тегов
   ========================================================================== */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* карточки в ряду одной высоты */
}

.service-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 20px 24px;
}

/* Фиксируем зону тегов: всегда место под ~2 ряда */
.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 56px;   /* ← ключ: выравнивает старт заголовков */
    margin-bottom: 10px;
    align-content: flex-start;
}

.service-card-tags .tag-badge {
    margin: 0; /* gap вместо margin-right */
}

.service-card-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 16px;
    /* опционально: заголовок всегда ~2 строки по высоте */
    min-height: 2.6em;
}

/* Кнопка всегда внизу карточки */
.service-card-btn {
    margin-top: auto !important;
    width: 100%;
    text-align: center;
}



/* ==========================================================================
   Компактный и аккуратный видео-блок под услугой (16:9)
   ========================================================================== */
.service-video-block {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.service-video-block h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.service-video-container {
    max-width: 640px; /* Ограничиваем ширину плеера, чтобы он не был гигантским */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #000000;
}

/* Форсируем жесткие пропорции 16:9 */
.service-video-container .responsive-video-wrapper,
.service-video-container iframe {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 360px;
    border-radius: var(--radius-lg);
    display: block;
}


/* ==========================================================================
   Несколько видео под услугой
   ========================================================================== */
.service-video-block {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #E5E7EB;
}

.service-video-block h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.service-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Одно видео — не растягивать на всю ширину колонки */
.service-videos-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.service-video-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-video-item .responsive-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.service-video-item .responsive-video-wrapper iframe,
.service-video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 700px) {
    .service-videos-grid {
        grid-template-columns: 1fr;
    }
    .service-videos-grid.is-single {
        max-width: 100%;
    }
}

/* Запрет переноса номера телефона на новую строку */
a[href^="tel:"] {
    white-space: nowrap !important;
    display: inline-block; /* Гарантирует, что весь блок перенесется целиком, если не влезает */
}


/* ==========================================================================
   Стили для страницы "Расписание занятий"
   ========================================================================== */
.schedule-week-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0 40px;
}

.schedule-day-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.schedule-day-card.weekend {
    background: #FAFAFC;
    border-color: rgba(90, 88, 242, 0.2);
}

.schedule-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
}

.day-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-main);
}

.day-badge {
    font-size: 12px;
    font-weight: 600;
    background: #F3F4F6;
    color: var(--color-text-muted);
    padding: 4px 12px;
    border-radius: 100px;
}

.weekend-badge {
    background: #EAE9FF;
    color: var(--color-primary);
}

.schedule-slots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slot-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 14px;
    background: #F9FAFB;
    border-radius: var(--radius-md);
    border: 1px solid #F0F0F5;
}

.slot-item.accent {
    background: #F0F2FE;
    border-color: rgba(90, 88, 242, 0.15);
}

.slot-item.highlight {
    background: #FFF7ED;
    border-color: #FFEDD5;
}

.slot-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    background: #FFFFFF;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
}

.slot-info strong {
    display: block;
    font-size: 15px;
    color: var(--color-text-main);
    line-height: 1.3;
}

.slot-info small {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

@media (max-width: 768px) {
    .schedule-week-grid {
        grid-template-columns: 1fr;
    }
    .slot-item {
        flex-direction: column;
        gap: 8px;
    }
}


/* ==========================================================================
   Сетка расписания занятий (2 колонки)
   ========================================================================== */
.schedule-week-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin: 28px 0 36px !important;
}

.schedule-day-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.schedule-day-card.weekend {
    background: #FAFAFC;
    border-color: rgba(90, 88, 242, 0.2);
}

.schedule-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.day-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-main);
}

.day-badge {
    font-size: 11px;
    font-weight: 600;
    background: #F3F4F6;
    color: var(--color-text-muted);
    padding: 3px 10px;
    border-radius: 100px;
}

.weekend-badge {
    background: #EAE9FF;
    color: var(--color-primary);
}

.schedule-slots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slot-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: #F9FAFB;
    border-radius: var(--radius-md);
    border: 1px solid #F0F0F5;
}

.slot-item.accent {
    background: #F0F2FE;
    border-color: rgba(90, 88, 242, 0.15);
}

.slot-item.highlight {
    background: #FFF7ED;
    border-color: #FFEDD5;
}

.slot-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    background: #FFFFFF;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.slot-info strong {
    display: block;
    font-size: 14px;
    color: var(--color-text-main);
    line-height: 1.3;
}

.slot-info small {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* На небольших экранах перестраиваем в 1 колонку */
@media (max-width: 900px) {
    .schedule-week-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   Блок преподавателя (Teacher Card)
   ========================================================================== */
.teacher-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin: 36px 0;
    padding-bottom: 36px;
    border-bottom: 1px solid #E5E7EB;
}

.teacher-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.teacher-photo {
    width: 280px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.teacher-photo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    float: none !important;
    border-radius: var(--radius-lg);
}

.teacher-info {
    flex-grow: 1;
    min-width: 0;
}

.teacher-info h3 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 6px;
    line-height: 1.2;
}

.teacher-role {
    font-size: 15px;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.teacher-info ul.check-list {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .teacher-card {
        flex-direction: column;
        gap: 20px;
    }
    .teacher-photo {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}


/* ==========================================================================
   Страница Контакты
   ========================================================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 36px;
    align-items: start;
}

.contact-card-box {
    background: #F8F9FC;
    border: 1px solid #EAECEF;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    font-size: 15px;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.contact-details p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-main);
}

.contact-sub {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.phone-link {
    color: var(--color-primary) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.contact-messengers {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.msg-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.msg-btn:hover {
    transform: translateY(-2px);
}

.msg-btn.wa {
    background: #E7F7EC;
    color: #128C7E;
}

.msg-btn.tg {
    background: #EAE9FF;
    color: var(--color-primary);
}

.contacts-map-wrapper {
    margin-top: 56px;
}

.contacts-map-wrapper h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.map-container-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #E5E7EB;
}

@media (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-card-box {
        padding: 24px;
    }
}


/* ==========================================================================
   Стили бейджей общественного транспорта (Контакты)
   ========================================================================== */
.transport-routes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.route-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}

.route-label {
    color: var(--color-text-muted);
    font-weight: 500;
    width: 95px;
    flex-shrink: 0;
}

.route-badge {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}



/* Скрываем служебный заголовок пагинации */
.archive-pagination .screen-reader-text,
.navigation .screen-reader-text,
.pagination .screen-reader-text {
    display: none !important;
}


/* ==========================================================================
   Оформление для словаря терминов (Glossary)
   ========================================================================== */
.dict-letter {
    font-size: 32px;
    font-weight: 800;
    color: #E5E7EB; /* Светло-серый крупный фон буквы */
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 4px;
    margin: 40px 0 20px;
    line-height: 1;
}

.glossary-list {
    margin: 0 0 32px !important;
    padding: 0 !important;
}

.glossary-list dt {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-top: 24px;
    margin-bottom: 6px;
}

.glossary-list dt span.eng {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-left: 6px;
}

.glossary-list dd {
    margin: 0 0 0 0 !important;
    padding-left: 16px;
    border-left: 3px solid #EAE9FF;
    color: var(--color-text-main);
    font-size: 16px;
    line-height: 1.6;
}


/* ==========================================================================
   Фотографии здания на странице Контакты
   ========================================================================== */
.contact-building-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.contact-building-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.building-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.building-photo-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    background: #F3F4F6;
    text-decoration: none !important;
}

.building-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.building-photo-item:hover img {
    transform: scale(1.06);
}

.building-photo-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    padding: 16px 8px 6px;
    text-align: center;
    line-height: 1.2;
}



/* Ссылка на согласие в формах */
.form-agreement a {
    color: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.form-agreement a:hover {
    opacity: 0.8;
}



/* ==========================================================================
   Баннер уведомления Cookie
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
}

.cookie-banner-text {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.cookie-banner-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cookie-banner .btn {
        width: 100%;
    }
}



/* Стили для текстового поля сообщения в формах */
.promo-form textarea,
.service-form-card textarea,
.lead-modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 12px;
    font-family: var(--font-main);
    font-size: 14px;
    background: #FFFFFF;
    resize: vertical;
    min-height: 70px;
}

.promo-form textarea:focus,
.service-form-card textarea:focus,
.lead-modal-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Белый текст согласия для синего промо-баннера (на главной) */
.promo-banner .form-agreement {
    color: rgba(255, 255, 255, 0.9) !important;
}

.promo-banner .form-agreement a {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}
